Fix coding rule error 23/191623/1
authorsinikang <sinikang@samsung.com>
Fri, 19 Oct 2018 05:47:34 +0000 (14:47 +0900)
committersinikang <sinikang@samsung.com>
Fri, 19 Oct 2018 05:47:34 +0000 (14:47 +0900)
Change-Id: I1bdcadfc7b1d74a5263fb6347ed7bc5cfcee183a

14 files changed:
include/ciss-common.h
include/ciss-converter.h
include/ciss-debug.h
include/ciss-string.h
include/ciss-types.h
include/ciss-widget.h
packaging/org.tizen.ciss.spec
src/ciss-converter.c
src/ciss-main.c
src/ciss-parser.c
src/ciss-resp.c
src/ciss-tapi-request.c
src/ciss-ussd.c
src/ciss-widget.c

index cca6cff..f05d823 100644 (file)
@@ -86,20 +86,20 @@ typedef struct _EventHandler {
  */
 typedef struct {
        unsigned char           opcode;
-       char                    user_string[MAX_USS_CHAR];                      /**< String to be parsed */
-       int                     user_string_length;                             /**< length of string */
-       unsigned char           dcs;                                            /**< the data coding scheme for ussd */
-       unsigned char           ss_flavor;                                      /**< current SS code being processed */
+       char                            user_string[MAX_USS_CHAR];                      /**< String to be parsed */
+       int                                     user_string_length;                             /**< length of string */
+       unsigned char           dcs;                                            /**< the data coding scheme for ussd */
+       unsigned char           ss_flavor;                                      /**< current SS code being processed */
        unsigned char           ss_type;                                        /**< barring, forwarding, waiting, etc */
        TelSsClass_t            tapi_bsg;                                       /**< The Basic Service Code */
        ciss_type_of_number_t   ton;
        ciss_number_plan_id_t   npi;
-       char                    forward_number[CISS_NUMBER_LEN_MAX+1];          /**< call forwarding number*/
-       char                    nr_timer;                                       /**< No Reply Timer */
-       char                    ss_password[CISS_MAX_PASSWORD_LEN+1];           /**< remember password if supplied so that */
-       char                    ss_new_password[CISS_MAX_PASSWORD_LEN+1];       /**< remember new password  */
-       char                    ss_new_password2[CISS_MAX_PASSWORD_LEN+1];      /**< remember the new pwd supplied again */
-       char                    ss_code[MAX_SC_LEN + 1];                        /**< the ss code */
+       char                            forward_number[CISS_NUMBER_LEN_MAX+1];          /**< call forwarding number*/
+       char                            nr_timer;                                                                       /**< No Reply Timer */
+       char                            ss_password[CISS_MAX_PASSWORD_LEN+1];           /**< remember password if supplied so that */
+       char                            ss_new_password[CISS_MAX_PASSWORD_LEN+1];       /**< remember new password  */
+       char                            ss_new_password2[CISS_MAX_PASSWORD_LEN+1];      /**< remember the new pwd supplied again */
+       char                            ss_code[MAX_SC_LEN + 1];                        /**< the ss code */
        TelSsUssdType_t         ussd_type;                              /* Type of ussd */
 } ciss_mmi_context_t;
 
@@ -107,11 +107,11 @@ typedef struct {
 * Received TAPI Event when CISS is not launched
 */
 typedef struct {
-       int     event_type;     /**< Event type */
-       int     request_id;     /**<  This parameter is applicable only for Asynchronous solicited responses. The request id    for a service request is sent back in the asynchronous response. For unsolicited indications, request id will be -1 */
-       int     status;         /**< This parameter is applicable only for Asynchronous solicited responses. This       status parameter informs the actual result of Asynchronous response. For unsolicited indications, status will be -1  */
-       void    *p_data;        /**< Event Data - Based on Event type response/indications. Event data information is captured in each API Section  */
-       int     data_length;    /**< Event Data size */
+       int             event_type;     /**< Event type */
+       int             request_id;     /**<  This parameter is applicable only for Asynchronous solicited responses. The request id  for a service request is sent back in the asynchronous response. For unsolicited indications, request id will be -1 */
+       int             status;         /**< This parameter is applicable only for Asynchronous solicited responses. This status parameter informs the actual result of Asynchronous response. For unsolicited indications, status will be -1  */
+       void    *p_data;        /**< Event Data - Based on Event type response/indications. Event data information is captured in each API Section  */
+       int             data_length;    /**< Event Data size */
 } ciss_tapi_event_t;
 
 /**
@@ -128,8 +128,7 @@ typedef struct {
        unsigned char   string[CISS_USSD_DATA_SIZE_MAX];                /**<character data*/
 } ciss_sat_call_control_data_t;
 
-typedef enum
-{
+typedef enum {
        CISS_SAT_CALL_CTRL_R_ALLOWED_NO_MOD                     = 0,            /**<    call control result type -  ALLOWED WITH NO MOD */
        CISS_SAT_CALL_CTRL_R_NOT_ALLOWED                        = 1,            /**<    call control result type -  NOT ALLOWED */
        CISS_SAT_CALL_CTRL_R_ALLOWED_WITH_MOD           = 2,            /**<    call control result type -  ALLOWED WITH MOD    */
index 6187711..6455a9f 100644 (file)
@@ -114,17 +114,17 @@ bsg_code_type;
 
 
 typedef struct {
-       char                    *local_sc;      /* local value of Service Code */
-       unsigned char           tapi_flavor;    /* TAPI flavor */
-       unsigned char           ss_type;        /* barring, fwding, waiting, etc*/
+       char                    *local_sc;      /* local value of Service Code */
+       unsigned char   tapi_flavor;    /* TAPI flavor */
+       unsigned char   ss_type;        /* barring, fwding, waiting, etc*/
 } sc_table_element_type;
 
 
 /* convert between local and network BSG values */
 typedef struct {
-       char                    *local_bsg;     /* local BSG value */
-       char                    bsg_type;       /* BSG type - bearer services, teleservices */
-       TelSsClass_t            tapi_bsg_code;  /* TAPI BSG value */
+       char                    *local_bsg;     /* local BSG value */
+       char                    bsg_type;       /* BSG type - bearer services, teleservices */
+       TelSsClass_t    tapi_bsg_code;  /* TAPI BSG value */
 } bsg_table_element_type;
 
 int _ciss_convert_bsg_to_tapi_bsg(char *local_bsg, TelSsClass_t *tapi_bsg);
index 9c4e21e..0708cc2 100644 (file)
 #define DBG(fmt, arg...) \
        do { \
                LOG(LOG_ERROR, CISS_LOG_TAG, "[CISS] "fmt"\n", ##arg); \
-       } while(0)
+       } while (0)
 
 #define DBG_SECURE(fmt, arg...) \
        do { \
                SECURE_LOG(LOG_INFO, CISS_LOG_TAG, "[CISS] "fmt"\n", ##arg); \
-       } while(0)
+       } while (0)
 
 #define ERR(fmt, arg...) \
        do { \
                LOG(LOG_ERROR, CISS_LOG_TAG, "[CISS] "fmt"\n", ##arg); \
-       } while(0)
+       } while (0)
 
 #define ERR_SECURE(fmt, arg...) \
        do { \
                SECURE_LOG(LOG_ERROR, CISS_LOG_TAG, "[CISS] "fmt"\n", ##arg); \
-       } while(0)
+       } while (0)
 
 #  define warn_if(expr, fmt, arg...) do { \
-               if(expr) { \
+               if (expr) { \
                        DBG("(%s) -> "fmt, #expr, ##arg); \
                } \
        } while (0)
 #  define ret_if(expr) do { \
-               if(expr) { \
+               if (expr) { \
                        DBG("(%s) -> %s() return", #expr, __FUNCTION__); \
                        return; \
                } \
        } while (0)
 #  define retv_if(expr, val) do { \
-               if(expr) { \
+               if (expr) { \
                        DBG("(%s) -> %s() return", #expr, __FUNCTION__); \
                        return (val); \
                } \
        } while (0)
 #  define retm_if(expr, fmt, arg...) do { \
-               if(expr) { \
+               if (expr) { \
                        ERR(fmt, ##arg); \
                        DBG("(%s) -> %s() return", #expr, __FUNCTION__); \
                        return; \
                } \
        } while (0)
 #  define retvm_if(expr, val, fmt, arg...) do { \
-               if(expr) { \
+               if (expr) { \
                        ERR(fmt, ##arg); \
                        DBG("(%s) -> %s() return", #expr, __FUNCTION__); \
                        return (val); \
index 1dfdb68..dadd861 100644 (file)
@@ -29,7 +29,7 @@
 
 #define CISS_STR_ALL_ASYNCHRONOUS_DATA                         gettext("IDS_ST_POP_ALL_ASYNCHRONOUS_DATA")
 #define CISS_STR_ALL_BEARER_SERVICES                           gettext("IDS_CST_POP_ALL_BEARER_SERVICES")
-#define CISS_STR_ALL_DATA_SERVICES                                     gettext("IDS_COM_POP_FOR_ALL_DATA_SERVICES")
+#define CISS_STR_ALL_DATA_SERVICES                                     gettext("IDS_COM_POP_FOR_ALL_DATA_SERVICES")
 #define CISS_STR_ALL_PADCA_SERVICES                                    gettext("IDS_IDLE_BODY_ALL_PADCA_SERVICES")
 #define CISS_STR_ALL_PDS_SERVICES                                      gettext("IDS_IDLE_BODY_ALL_PDS_SERVICES")
 #define CISS_STR_ALL_PLMN_BEARERS                                      gettext("IDS_CST_POP_ALL_PLMN_BEARERS")
 #define CISS_STR_FAX                                                           gettext("IDS_CST_BODY_FAX")
 
 #define CISS_STR_ENTER_NUMBER                                          gettext("IDS_CST_BODY_ENTER_NUMBER")
-#define CISS_STR_QUIT                                                  gettext("IDS_CALL_BUTTON_EXIT")
+#define CISS_STR_QUIT                                                          gettext("IDS_CALL_BUTTON_EXIT")
 #define CISS_STR_OK                                                                    gettext("IDS_CALL_BODY_OK")
 #define CISS_STR_CALLER_ID_SHOWN                                       gettext("IDS_ST_POP_CALLER_ID_SHOWN")
 #define CISS_STR_CALLER_ID_HIDDEN                                      gettext("IDS_ST_POP_CALLER_ID_HIDDEN")
-#define CISS_STR_MY_CALLER_ID_IS_NOT_SENT_WHEN_CALLING                 gettext("IDS_ST_POP_MY_CALLER_ID_IS_NOT_SENT_WHEN_CALLING")
-#define CISS_STR_MY_CALLER_ID_WILL_BE_SENT_WHEN_CALLING        gettext("IDS_CST_POP_MY_CALLER_ID_WILL_BE_SENT_WHEN_CALLING")
-#define CISS_STR_MY_CALLER_ID_WILL_BE_SENT_WHEN_ANSWERING_CALLS        gettext("IDS_CST_POP_MY_CALLER_ID_WILL_BE_SENT_WHEN_ANSWERING_CALLS")
-#define CISS_STR_MY_CALLER_ID_IS_NOT_SENT_WHEN_ANSWERING_CALLS                 gettext("IDS_CST_POP_MY_CALLER_ID_IS_NOT_SENT_WHEN_ANSWERING_CALLS")
-#define CISS_STR_ANSWERING_NUMBER_IS_SHOWN_WHEN_CALLING        gettext("IDS_CST_POP_ANSWERING_NUMBER_IS_SHOWN_WHEN_CALLING")
-#define CISS_STR_ANSWERING_NUMBER_IS_NOT_SHOWN_WHEN_CALLING            gettext("IDS_CST_POP_ANSWERING_NUMBER_IS_NOT_SHOWN_WHEN_CALLING")
-#define CISS_STR_CALLER_ID_AVAILABLE                           gettext("IDS_ST_POP_CALLER_ID_AVAILABLE")
+#define CISS_STR_MY_CALLER_ID_IS_NOT_SENT_WHEN_CALLING         gettext("IDS_ST_POP_MY_CALLER_ID_IS_NOT_SENT_WHEN_CALLING")
+#define CISS_STR_MY_CALLER_ID_WILL_BE_SENT_WHEN_CALLING                gettext("IDS_CST_POP_MY_CALLER_ID_WILL_BE_SENT_WHEN_CALLING")
+#define CISS_STR_MY_CALLER_ID_WILL_BE_SENT_WHEN_ANSWERING_CALLS                gettext("IDS_CST_POP_MY_CALLER_ID_WILL_BE_SENT_WHEN_ANSWERING_CALLS")
+#define CISS_STR_MY_CALLER_ID_IS_NOT_SENT_WHEN_ANSWERING_CALLS         gettext("IDS_CST_POP_MY_CALLER_ID_IS_NOT_SENT_WHEN_ANSWERING_CALLS")
+#define CISS_STR_ANSWERING_NUMBER_IS_SHOWN_WHEN_CALLING                                gettext("IDS_CST_POP_ANSWERING_NUMBER_IS_SHOWN_WHEN_CALLING")
+#define CISS_STR_ANSWERING_NUMBER_IS_NOT_SHOWN_WHEN_CALLING                    gettext("IDS_CST_POP_ANSWERING_NUMBER_IS_NOT_SHOWN_WHEN_CALLING")
+#define CISS_STR_CALLER_ID_AVAILABLE                                                           gettext("IDS_ST_POP_CALLER_ID_AVAILABLE")
 #define CISS_STR_CALLER_ID_RESTRICTED                          gettext("IDS_CST_POP_CALLER_ID_RESTRICTED")
 #define CISS_STR_CALLER_ID_DEFAULTS_TO_NOT_RESTRICTED_NEXT_CALL_C_NOT_RESTRICTED               gettext("IDS_COM_BODY_CALLER_ID_DEFAULTS_TO_NOT_RESTRICTED_NEXT_CALL_C_NOT_RESTRICTED")
 #define CISS_STR_CALLER_ID_DEFAULTS_TO_NOT_RESTRICTED_NEXT_CALL_C_RESTRICTED                   gettext("IDS_COM_BODY_CALLER_ID_DEFAULTS_TO_NOT_RESTRICTED_NEXT_CALL_C_RESTRICTED")
 #define CISS_STR_CHANGE_PASSWORD                                       gettext("IDS_CST_OPT_CHANGE_PASSWORD")
 #define CISS_STR_CALL_FORWARDING_ACTIVE_C_ALWAYS               gettext("IDS_CALL_POP_CALL_DIVERTING_ACTIVE_C_ALWAYS")
 #define CISS_STR_CALL_FORWARDING_ACTIVE_C_WHEN_NOREPLY         gettext("IDS_CALL_POP_CALL_DIVERTING_ACTIVE_C_NO_ANSWER")
-#define CISS_STR_CALL_FORWARDING_ACTIVE_C_WHEN_BUSY                    gettext("IDS_VCALL_POP_CALL_DIVERTING_ACTIVE_C_WHEN_BUSY")
-#define CISS_STR_CALL_FORWARDING_ACTIVE_C_UNREACHABLE          gettext("IDS_VCALL_POP_CALL_DIVERTING_ACTIVE_C_UNREACHABLE")
+#define CISS_STR_CALL_FORWARDING_ACTIVE_C_WHEN_BUSY                    gettext("IDS_VCALL_POP_CALL_DIVERTING_ACTIVE_C_WHEN_BUSY")
+#define CISS_STR_CALL_FORWARDING_ACTIVE_C_UNREACHABLE          gettext("IDS_VCALL_POP_CALL_DIVERTING_ACTIVE_C_UNREACHABLE")
 
-#define CISS_STR_CONDITIONAL                                                           gettext("IDS_CST_BODY_CONDITIONAL")
+#define CISS_STR_CONDITIONAL                                                           gettext("IDS_CST_BODY_CONDITIONAL")
 #define CISS_STR_ALL_OUTGOING_CALLS_BARRED                                     gettext("IDS_CALL_POP_ALL_OUTGOING_CALLS_BARRED")
 #define CISS_STR_OUTGOING_INTERNATIONAL_CALLS_BARRED           gettext("IDS_CALL_POP_OUTGOING_INTER_CALLS_BARRED")
-#define CISS_STR_OUTGOING_INTERNATIONAL_CALLS_EXCEPT_HOME_BARRED       gettext("IDS_COM_POP_ALL_OUTGOING_INTERNATIONAL_CALLS_EXCEPT_HOME_COUNTRY")
-#define CISS_STR_ALL_INCOMING_CALLS_BARRED                     gettext("IDS_CALL_POP_ALL_INCOMING_CALLS_BARRED")
-#define CISS_STR_INCOMING_CALLS_BARRED_WHEN_ROAMING            gettext("IDS_CALL_BODY_INCOMING_CALLS_BARRED_WHEN_ROAMING")
+#define CISS_STR_OUTGOING_INTERNATIONAL_CALLS_EXCEPT_HOME_BARRED       gettext("IDS_COM_POP_ALL_OUTGOING_INTERNATIONAL_CALLS_EXCEPT_HOME_COUNTRY")
+#define CISS_STR_ALL_INCOMING_CALLS_BARRED                                     gettext("IDS_CALL_POP_ALL_INCOMING_CALLS_BARRED")
+#define CISS_STR_INCOMING_CALLS_BARRED_WHEN_ROAMING                    gettext("IDS_CALL_BODY_INCOMING_CALLS_BARRED_WHEN_ROAMING")
 #define CISS_STR_ALL_BARRING                                                           gettext("IDS_ST_POP_ALL_BARRING")
 #define CISS_STR_OUTGOING_BARRING                                                      gettext("IDS_ST_POP_OUTGOING_BARRING")
 #define CISS_STR_INCOMING_BARRING                                                      gettext("IDS_ST_POP_INCOMING_BARRING")
index c538c90..38873e8 100644 (file)
 #define CISS_FORWARD_NUMBER_LEN_MAX    32      /**< Maximum length of Forward to number */
 #define CISS_TAPI_NW_USSD_HANDLE       255     /**< Mapped to the OEM_INVALID_REQUEST_ID of Tapi - OemTapiCommon.h*/
 
-#define REQ_STRING_MAX_LEN             255
-#define MAX_PWD_CHAR                   4
-#define MAX_SC_ENTRY                   20
-#define MAX_USS_CHAR                   182+1                   /**< Max num of char is USS data*/
-#define MAX_SC_LEN                     3       /**< Maximum length of service code */
-#define ENCODE_TYPE_GSM                        0x0F    /**< the value of the GSM encoding fromat for ussd */
+#define REQ_STRING_MAX_LEN                     255
+#define MAX_PWD_CHAR                           4
+#define MAX_SC_ENTRY                           20
+#define MAX_USS_CHAR                           182+1   /**< Max num of char is USS data*/
+#define MAX_SC_LEN                                     3               /**< Maximum length of service code */
+#define ENCODE_TYPE_GSM                                0x0F    /**< the value of the GSM encoding fromat for ussd */
 #define CISS_MMI_MAX_USSD_RESP_STRING  300
 #define CISS_MMI_MAX_SS_RESP_STRING    1664
 #define POPUP_DISPLAY_DURATION         70.0
 #define TAPI_EVENT_SS_USSD_IND         100
 #define TAPI_EVENT_SS_USSD_RESP                101
-#define TAPI_EVENT_SS_INFORMATION_IND          200
+#define TAPI_EVENT_SS_INFORMATION_IND  200
 
 /**
  * This enumeration defines the error codes returned from engine to UI
@@ -119,66 +119,66 @@ typedef enum {
        CISS_TELECOMM_SVC_ALL_TELE_BEARER,              /**<1 : All Tele and Bearer services */
 
        /* TELESERVICE */
-       CISS_TELECOMM_SVC_ALL_TELE,                     /**<2 : All Teleservices */
-       CISS_TELECOMM_SVC_VOICE,                        /**<3 : All Voice ( telephony ) */
+       CISS_TELECOMM_SVC_ALL_TELE,                             /**<2 : All Teleservices */
+       CISS_TELECOMM_SVC_VOICE,                                /**<3 : All Voice ( telephony ) */
        CISS_TELECOMM_SVC_ALL_DATA_TELE,                /**<4 : All Data Teleservices */
-       CISS_TELECOMM_SVC_FAX,                          /**<5 :All Fax Service */
-       CISS_TELECOMM_SVC_SMS,                          /**<6 : SMS service      */
-       CISS_TELECOMM_SVC_VGCS,                         /**<7 : Voice Group Call Service */
-       CISS_TELECOMM_SVC_VBS,                          /**<8 : Voice Broadcast */
-       CISS_TELECOMM_SVC_ALL_TELE_EXPT_SMS,            /**<9 : All teleservice except SMS */
+       CISS_TELECOMM_SVC_FAX,                                  /**<5 :All Fax Service */
+       CISS_TELECOMM_SVC_SMS,                                  /**<6 : SMS service      */
+       CISS_TELECOMM_SVC_VGCS,                                 /**<7 : Voice Group Call Service */
+       CISS_TELECOMM_SVC_VBS,                                  /**<8 : Voice Broadcast */
+       CISS_TELECOMM_SVC_ALL_TELE_EXPT_SMS,    /**<9 : All teleservice except SMS */
 
        /* BEARER SERVICE */
-       CISS_TELECOMM_SVC_ALL_BEARER,                   /**<10 : all bearer services */
+       CISS_TELECOMM_SVC_ALL_BEARER,                   /**<10 : all bearer services */
        CISS_TELECOMM_SVC_ALL_ASYNC,                    /**<11 : All Async services */
-       CISS_TELECOMM_SVC_ALL_SYNC,                     /**<12 : All sync services*/
-       CISS_TELECOMM_SVC_ALL_CS_SYNC,                  /**<13 : All Circuit switched sync */
+       CISS_TELECOMM_SVC_ALL_SYNC,                             /**<12 : All sync services*/
+       CISS_TELECOMM_SVC_ALL_CS_SYNC,                  /**<13 : All Circuit switched sync */
        CISS_TELECOMM_SVC_ALL_CS_ASYNC,                 /**<14 :  All Circuit switched async */
        CISS_TELECOMM_SVC_ALL_DEDI_PS,                  /**<15 :  All Dedicated packet Access */
        CISS_TELECOMM_SVC_ALL_DEDI_PAD,                 /**<16 :   All Dedicated PAD Access */
        CISS_TELECOMM_SVC_ALL_DATA_CDA,                 /**<17 :  All Data CDA*/
 
        /* PLMN SPECIFIC TELESERVICE */
-       CISS_TELECOMM_SVC_PLMN_TELE_ALL,                /**<18 : PLMN specific teleservices*/
+       CISS_TELECOMM_SVC_PLMN_TELE_ALL,                /**<18 : PLMN specific teleservices*/
        CISS_TELECOMM_SVC_PLMN_TELE_1,                  /**<19 : PLMN specific teleservice 1*/
        CISS_TELECOMM_SVC_PLMN_TELE_2,                  /**<20 : PLMN specific teleservice 2*/
-       CISS_TELECOMM_SVC_PLMN_TELE_3,                  /**<21 : PLMN specific teleservice 3*/
-       CISS_TELECOMM_SVC_PLMN_TELE_4,                  /**<22 : PLMN specific teleservice 4*/
-       CISS_TELECOMM_SVC_PLMN_TELE_5,                  /**<23 : PLMN specific teleservice 5*/
-       CISS_TELECOMM_SVC_PLMN_TELE_6,                  /**<24 : PLMN specific teleservice 6*/
-       CISS_TELECOMM_SVC_PLMN_TELE_7,                  /**<25 : PLMN specific teleservice 7*/
-       CISS_TELECOMM_SVC_PLMN_TELE_8,                  /**<26 : PLMN specific teleservice 8*/
-       CISS_TELECOMM_SVC_PLMN_TELE_9,                  /**<27 : PLMN specific teleservice 9*/
-       CISS_TELECOMM_SVC_PLMN_TELE_A,                  /**<28 :PLMN specific teleservice 10*/
-       CISS_TELECOMM_SVC_PLMN_TELE_B,                  /**<29 :PLMN specific teleservice 11*/
-       CISS_TELECOMM_SVC_PLMN_TELE_C,                  /**<30 : PLMN specific teleservice 12*/
-       CISS_TELECOMM_SVC_PLMN_TELE_D,                  /**<31 : PLMN specific teleservice 13*/
-       CISS_TELECOMM_SVC_PLMN_TELE_E,                  /**<32 : PLMN specific teleservice 14*/
-       CISS_TELECOMM_SVC_PLMN_TELE_F,                  /**<33 : PLMN specific teleservice 15*/
+       CISS_TELECOMM_SVC_PLMN_TELE_3,                  /**<21 : PLMN specific teleservice 3*/
+       CISS_TELECOMM_SVC_PLMN_TELE_4,                  /**<22 : PLMN specific teleservice 4*/
+       CISS_TELECOMM_SVC_PLMN_TELE_5,                  /**<23 : PLMN specific teleservice 5*/
+       CISS_TELECOMM_SVC_PLMN_TELE_6,                  /**<24 : PLMN specific teleservice 6*/
+       CISS_TELECOMM_SVC_PLMN_TELE_7,                  /**<25 : PLMN specific teleservice 7*/
+       CISS_TELECOMM_SVC_PLMN_TELE_8,                  /**<26 : PLMN specific teleservice 8*/
+       CISS_TELECOMM_SVC_PLMN_TELE_9,          /**<27 : PLMN specific teleservice 9*/
+       CISS_TELECOMM_SVC_PLMN_TELE_A,                  /**<28 :PLMN specific teleservice 10*/
+       CISS_TELECOMM_SVC_PLMN_TELE_B,                  /**<29 :PLMN specific teleservice 11*/
+       CISS_TELECOMM_SVC_PLMN_TELE_C,                  /**<30 : PLMN specific teleservice 12*/
+       CISS_TELECOMM_SVC_PLMN_TELE_D,                  /**<31 : PLMN specific teleservice 13*/
+       CISS_TELECOMM_SVC_PLMN_TELE_E,                  /**<32 : PLMN specific teleservice 14*/
+       CISS_TELECOMM_SVC_PLMN_TELE_F,                  /**<33 : PLMN specific teleservice 15*/
 
        /* PLMN SPECIFIC BEARER SERVICE */
-       CISS_TELECOMM_SVC_PLMN_BEAR_ALL,                /**<34 : All PLMN specific bearer services*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_1,                  /**<35 :PLMN specific bearer service 1*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_2,                  /**<36 : PLMN specific bearer service  2*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_3,                  /**<37 : PLMN specific bearer service  3*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_4,                  /**<38 : PLMN specific bearer service  4*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_5,                  /**<39 : PLMN specific bearer service  5*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_6,                  /**<40 : PLMN specific bearer service  6*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_7,                  /**<41 : PLMN specific bearer service  7*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_8,                  /**<42 : PLMN specific bearer service  8*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_9,                  /**<43 : PLMN specific bearer service  9*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_A,                  /**<44 : PLMN specific bearer service  10*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_B,                  /**<45 : PLMN specific bearer service  11*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_C,                  /**<46 : PLMN specific bearer service  12*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_D,                  /**<47 : PLMN specific bearer service  13*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_E,                  /**<48 : PLMN specific bearer service  14*/
-       CISS_TELECOMM_SVC_PLMN_BEAR_F,                  /**<49 : PLMN specific bearer service  15*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_ALL,                /**<34 : All PLMN specific bearer services*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_1,                  /**<35 :PLMN specific bearer service 1*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_2,                  /**<36 : PLMN specific bearer service  2*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_3,                  /**<37 : PLMN specific bearer service  3*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_4,                  /**<38 : PLMN specific bearer service  4*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_5,                  /**<39 : PLMN specific bearer service  5*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_6,                  /**<40 : PLMN specific bearer service  6*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_7,                  /**<41 : PLMN specific bearer service  7*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_8,                  /**<42 : PLMN specific bearer service  8*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_9,                  /**<43 : PLMN specific bearer service  9*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_A,                  /**<44 : PLMN specific bearer service  10*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_B,                  /**<45 : PLMN specific bearer service  11*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_C,                  /**<46 : PLMN specific bearer service  12*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_D,                  /**<47 : PLMN specific bearer service  13*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_E,                  /**<48 : PLMN specific bearer service  14*/
+       CISS_TELECOMM_SVC_PLMN_BEAR_F,                  /**<49 : PLMN specific bearer service  15*/
 
        /* CPHS - AUXILIARY SERVICE */
        CISS_TELECOMM_SVC_AUX_VOICE,                    /**<50 : All Auxiliary Voice ( Auxiliary telephony ) */
 
-       CISS_TELECOMM_SVC_ALL_GPRS_BEARER,              /**<51 : All GPRS bearer services */
-       CISS_TELECOMM_SVC_MAX                           /**<52 : Max count */
+       CISS_TELECOMM_SVC_ALL_GPRS_BEARER,              /**<51 : All GPRS bearer services */
+       CISS_TELECOMM_SVC_MAX                                   /**<52 : Max count */
 } ciss_telecomm_svc_t;
 
 /**
@@ -203,7 +203,7 @@ typedef enum {
        CISS_FLAVOR_BARRING_OUTGOING_INTERNATIONAL_CALLS_EXCEPT_HOME = 0x13,    /**<  bar all outgoing international calls except those to home country*/
        CISS_FLAVOR_BARRING_ALL_INCOMING_CALLS = 0x14,                          /**<  bar all incoming calls*/
        CISS_FLAVOR_BARRING_INCOMING_CALLS_WHEN_ROAMING = 0x15,                 /**<  bar all incoming calls when roaming*/
-       CISS_FLAVOR_BARRING_ALL_FLAVORS = 0x16,                                 /**< includes all other flavors.  Used for Cancel All */
+       CISS_FLAVOR_BARRING_ALL_FLAVORS = 0x16,                                 /**< includes all other flavors.  Used for Cancel All */
        CISS_FLAVOR_BARRING_OUTGOING = 0x17,                                    /**<  bar all outgoing flavors*/
        CISS_FLAVOR_BARRING_INCOMING = 0x18,                                    /**<  bar all incoming flavors*/
        CISS_FLAVOR_BARRING_END = 0x19,                                         /**<  Barring end*/
@@ -286,35 +286,35 @@ typedef enum {
  * This enumeration defines the ussd response type
  */
 typedef enum {
-       CISS_USSD_RES_UNKNOWN_ALPHABET = 0x00,          /**< unlnown alphabet */
+       CISS_USSD_RES_UNKNOWN_ALPHABET = 0x00,  /**< unlnown alphabet */
        CISS_USSD_RES_DISPL_BUSY = 0x01,                /**< display is busy  */
-       CISS_USSD_RES_OK = 0x02,                        /**< response */
-       CISS_USSD_RES_NONE = 0x03                       /**< no response  use for user release*/
+       CISS_USSD_RES_OK = 0x02,                                /**< response */
+       CISS_USSD_RES_NONE = 0x03                               /**< no response  use for user release*/
 } ciss_ussd_response_type_t;
 
 /**
 * These are the four types of identity presentation / restriction services.
 */
 typedef enum {
-       CISS_CC_VOICE_IDENTIFICATION_NONE = 0x00,               /**< none */
+       CISS_CC_VOICE_IDENTIFICATION_NONE = 0x00,                       /**< none */
        CISS_CALLING_LINE_IDENTITY_PRESENTATION = 0x01,         /**< identify the party calling this phone */
        CISS_CALLING_LINE_IDENTITY_RESTRICTION = 0x02,          /**< hide the identity of this phone when calling others */
-       CISS_CONNECTED_LINE_IDENTITY_PRESENTATION = 0x03,       /**< identify the party to whom the calling party (this phone) is connected */
+       CISS_CONNECTED_LINE_IDENTITY_PRESENTATION = 0x03,       /**< identify the party to whom the calling party (this phone) is connected */
        CISS_CONNECTED_LINE_IDENTITY_RESTRICTION = 0x04,        /**< restrict yourself from being identified by incoming calls, such as forwarded calls */
        CISS_CALLED_LINE_IDENTITY_PRESENTATION = 0x05,          /**< same as colr */
-       CISS_CALLING_NAME_PRESENTATION = 0x06                   /**< show the name of the calling party to the connected one */
+       CISS_CALLING_NAME_PRESENTATION = 0x06                           /**< show the name of the calling party to the connected one */
 } ciss_cc_voice_identification_type_t;
 
 /**
 * The ussd data recieved from the network
 */
 typedef struct {
-       ciss_ussd_ind_type_t            ind_type;                               /**< the ussd indication type */
-       unsigned char                   dcs;                                    /**< the data coding scheme */
-       int                             ussd_string_length;                     /**< Length of String */
-       char                            ussd_string[CISS_USSD_DATA_SIZE_MAX];   /**< The USSD data string to be displayed to the user */
-       int                             request_by;                             /**< The Engine information */
-       int                             sat_command_id;                         /**< The Engine information */
+       ciss_ussd_ind_type_t    ind_type;                               /**< the ussd indication type */
+       unsigned char                   dcs;                                    /**< the data coding scheme */
+       int                                             ussd_string_length;             /**< Length of String */
+       char                                    ussd_string[CISS_USSD_DATA_SIZE_MAX];   /**< The USSD data string to be displayed to the user */
+       int                                             request_by;                             /**< The Engine information */
+       int                                             sat_command_id;                         /**< The Engine information */
 } ciss_ussd_record_t;
 
 /**
@@ -322,26 +322,26 @@ typedef struct {
 */
 typedef struct {
        ciss_ussd_response_type_t       resp_type;                              /**< the ussd repsonse type */
-       int                             length;                                 /**< Length of String */
-       char                            string[CISS_USSD_DATA_SIZE_MAX];        /**< The USSD data string to be sent to network */
-       int                             request_by;                             /**< The Engine information */
-       int                             sat_command_id;                         /**< The Engine information */
-       int                             last_ussd_ind;                          /**< The Engine information */
+       int                                                     length;                                 /**< Length of String */
+       char                                            string[CISS_USSD_DATA_SIZE_MAX];        /**< The USSD data string to be sent to network */
+       int                                                     request_by;                             /**< The Engine information */
+       int                                                     sat_command_id;                         /**< The Engine information */
+       int                                                     last_ussd_ind;                          /**< The Engine information */
 } ciss_ussd_response_record_t;
 
 /**
 * ss request data to be sent to network.
 */
 typedef struct {
-       ciss_service_t                  service;                                        /**< barring, forwarding, waiting, etc */
+       ciss_service_t                  service;                                        /**< barring, forwarding, waiting, etc */
        ciss_telecomm_svc_t             telecommSvc;                                    /**< telecomm service */
        ciss_flavor_t                   flavor;                                         /**< the flavor of the SS used in service*/
-       ciss_action_type_t              action;                                         /**< the action to be performed on the SS */
-       int                             nForwardWaitingTime;                            /**< the no reply timer */
-       char                            szForwardedToNumber[CISS_NUMBER_LEN_MAX + 1];           /**< number to be forwarded to */
-       char                            szBarringPasswd[CISS_MAX_PASSWORD_LEN + 1];     /**< the old barring pwd */
-       char                            szBarringNewPasswd[CISS_MAX_PASSWORD_LEN + 1];  /**< the new barring pwd */
-       char                            szBarringCnfPasswd[CISS_MAX_PASSWORD_LEN + 1];  /**< the cnf barring pwd */
+       ciss_action_type_t              action;                                         /**< the action to be performed on the SS */
+       int                                             nForwardWaitingTime;                            /**< the no reply timer */
+       char                                    szForwardedToNumber[CISS_NUMBER_LEN_MAX + 1];           /**< number to be forwarded to */
+       char                                    szBarringPasswd[CISS_MAX_PASSWORD_LEN + 1];     /**< the old barring pwd */
+       char                                    szBarringNewPasswd[CISS_MAX_PASSWORD_LEN + 1];  /**< the new barring pwd */
+       char                                    szBarringCnfPasswd[CISS_MAX_PASSWORD_LEN + 1];  /**< the cnf barring pwd */
 } ciss_req_data_t;
 
 /**
index e7b7fa4..8984539 100644 (file)
@@ -49,8 +49,8 @@ enum {
        CISS_ICON_TYPE_OTHERS,
 };
 
-Evas_Object *_ciss_create_noti_popup(Evas_Object *parent, char *strtitle, char *strmsg, double t_timeout,void *data);
-Evas_Object *_ciss_create_error_popup(Evas_Object *parent, ciss_err_t ciss_error, double t_timeout,void *data);
+Evas_Object *_ciss_create_noti_popup(Evas_Object *parent, char *strtitle, char *strmsg, double t_timeout, void *data);
+Evas_Object *_ciss_create_error_popup(Evas_Object *parent, ciss_err_t ciss_error, double t_timeout, void *data);
 Evas_Object *_ciss_create_popup(Evas_Object *parent, char *msg);
 Evas_Object *_ciss_create_win(const char *name);
 Evas_Object *_ciss_create_conformant(Evas_Object *parent);
index 14a5353..7b9a70d 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 1
-%define patchlevel 0
+%define patchlevel 1
 
 Name:       org.tizen.ciss
 Summary:    CISS-MMI application
index 65790a5..e0a8ffb 100644 (file)
@@ -51,53 +51,53 @@ static const sc_table_element_type sc_conversion_table_ss[] = {
 
 /* need to find mapping with the call type or forward type for call barring and call forwarding else not required */
 static const bsg_table_element_type bsg_conversion_table[MAX_BSG_ENTRY] = {
-       {CISS_ENG_BSG_ALL,                      0,                  TAPI_SS_CLASS_ALL_TELE_BEARER},
-       {CISS_ENG_BSG_ALL_TS,                   TS_CODE,   TAPI_SS_CLASS_ALL_TELE},
-       {CISS_ENG_BSG_TELEPHONY,        TS_CODE,   TAPI_SS_CLASS_VOICE },
-       {CISS_ENG_BSG_AUX_TELEPHONY,    TS_CODE,   TAPI_SS_CLASS_AUX_VOICE},
-       {CISS_ENG_BSG_ALL_DATA,                 TS_CODE,   TAPI_SS_CLASS_ALL_DATA_TELE},
-       {CISS_ENG_BSG_FAX,                      TS_CODE,   TAPI_SS_CLASS_FAX},
-       {CISS_ENG_BSG_SMS,                      TS_CODE,   TAPI_SS_CLASS_SMS},
-       {CISS_ENG_BSG_ALL_TELE_EX_SMS,  TS_CODE,   TAPI_SS_CLASS_ALL_TELE_EXPT_SMS},
-       {CISS_ENG_BSG_PLMN_TELE_ALL,    TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_ALL },
-       {CISS_ENG_BSG_PLMN_TELE_1,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_1},
-       {CISS_ENG_BSG_PLMN_TELE_2,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_2},
-       {CISS_ENG_BSG_PLMN_TELE_3,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_3},
-       {CISS_ENG_BSG_PLMN_TELE_4,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_4},
-       {CISS_ENG_BSG_PLMN_TELE_5,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_5},
-       {CISS_ENG_BSG_PLMN_TELE_6,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_6},
-       {CISS_ENG_BSG_PLMN_TELE_7,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_7},
-       {CISS_ENG_BSG_PLMN_TELE_8,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_8},
-       {CISS_ENG_BSG_PLMN_TELE_9,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_9},
-       {CISS_ENG_BSG_PLMN_TELE_A,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_A},
-       {CISS_ENG_BSG_PLMN_TELE_B,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_B},
-       {CISS_ENG_BSG_PLMN_TELE_C,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_C},
-       {CISS_ENG_BSG_PLMN_TELE_D,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_D},
-       {CISS_ENG_BSG_PLMN_TELE_E,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_E},
-       {CISS_ENG_BSG_PLMN_TELE_F,      TS_CODE,   TAPI_SS_CLASS_PLMN_TELE_F},
-       {CISS_ENG_BSG_ALL_BS,                   BS_CODE,   TAPI_SS_CLASS_ALL_BEARER},
-       {CISS_ENG_BSG_ALL_ASYNC,        BS_CODE,   TAPI_SS_CLASS_ALL_ASYNC},
-       {CISS_ENG_BSG_ALL_SYNC,         BS_CODE,   TAPI_SS_CLASS_ALL_SYNC},
-       {CISS_ENG_BSG_ALL_DC_SYNC,      BS_CODE,   TAPI_SS_CLASS_ALL_CS_SYNC},
-       {CISS_ENG_BSG_ALL_DC_ASYNC,     BS_CODE,   TAPI_SS_CLASS_ALL_CS_ASYNC},
-       {CISS_ENG_BSG_ALL_DED_PACKET,   BS_CODE,   TAPI_SS_CLASS_ALL_DEDI_PS},
-       {CISS_ENG_BSG_ALL_DED_PAD,      BS_CODE,   TAPI_SS_CLASS_ALL_DEDI_PAD},
-       {CISS_ENG_BSG_PLMN_BEAR_ALL,    BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_ALL},
-       {CISS_ENG_BSG_PLMN_BEAR_1,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_1},
-       {CISS_ENG_BSG_PLMN_BEAR_2,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_2},
-       {CISS_ENG_BSG_PLMN_BEAR_3,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_3},
-       {CISS_ENG_BSG_PLMN_BEAR_4,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_4},
-       {CISS_ENG_BSG_PLMN_BEAR_5,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_5},
-       {CISS_ENG_BSG_PLMN_BEAR_6,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_6},
-       {CISS_ENG_BSG_PLMN_BEAR_7,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_7},
-       {CISS_ENG_BSG_PLMN_BEAR_8,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_8},
-       {CISS_ENG_BSG_PLMN_BEAR_9,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_9},
-       {CISS_ENG_BSG_PLMN_BEAR_A,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_A},
-       {CISS_ENG_BSG_PLMN_BEAR_B,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_B},
-       {CISS_ENG_BSG_PLMN_BEAR_C,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_C},
-       {CISS_ENG_BSG_PLMN_BEAR_D,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_D},
-       {CISS_ENG_BSG_PLMN_BEAR_E,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_E},
-       {CISS_ENG_BSG_PLMN_BEAR_F,      BS_CODE,   TAPI_SS_CLASS_PLMN_BEAR_F}
+       {CISS_ENG_BSG_ALL,                              0,                      TAPI_SS_CLASS_ALL_TELE_BEARER},
+       {CISS_ENG_BSG_ALL_TS,                   TS_CODE,        TAPI_SS_CLASS_ALL_TELE},
+       {CISS_ENG_BSG_TELEPHONY,                TS_CODE,        TAPI_SS_CLASS_VOICE },
+       {CISS_ENG_BSG_AUX_TELEPHONY,    TS_CODE,        TAPI_SS_CLASS_AUX_VOICE},
+       {CISS_ENG_BSG_ALL_DATA,                 TS_CODE,        TAPI_SS_CLASS_ALL_DATA_TELE},
+       {CISS_ENG_BSG_FAX,                              TS_CODE,        TAPI_SS_CLASS_FAX},
+       {CISS_ENG_BSG_SMS,                              TS_CODE,        TAPI_SS_CLASS_SMS},
+       {CISS_ENG_BSG_ALL_TELE_EX_SMS,  TS_CODE,        TAPI_SS_CLASS_ALL_TELE_EXPT_SMS},
+       {CISS_ENG_BSG_PLMN_TELE_ALL,    TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_ALL },
+       {CISS_ENG_BSG_PLMN_TELE_1,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_1},
+       {CISS_ENG_BSG_PLMN_TELE_2,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_2},
+       {CISS_ENG_BSG_PLMN_TELE_3,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_3},
+       {CISS_ENG_BSG_PLMN_TELE_4,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_4},
+       {CISS_ENG_BSG_PLMN_TELE_5,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_5},
+       {CISS_ENG_BSG_PLMN_TELE_6,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_6},
+       {CISS_ENG_BSG_PLMN_TELE_7,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_7},
+       {CISS_ENG_BSG_PLMN_TELE_8,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_8},
+       {CISS_ENG_BSG_PLMN_TELE_9,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_9},
+       {CISS_ENG_BSG_PLMN_TELE_A,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_A},
+       {CISS_ENG_BSG_PLMN_TELE_B,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_B},
+       {CISS_ENG_BSG_PLMN_TELE_C,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_C},
+       {CISS_ENG_BSG_PLMN_TELE_D,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_D},
+       {CISS_ENG_BSG_PLMN_TELE_E,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_E},
+       {CISS_ENG_BSG_PLMN_TELE_F,              TS_CODE,        TAPI_SS_CLASS_PLMN_TELE_F},
+       {CISS_ENG_BSG_ALL_BS,                   BS_CODE,        TAPI_SS_CLASS_ALL_BEARER},
+       {CISS_ENG_BSG_ALL_ASYNC,                BS_CODE,        TAPI_SS_CLASS_ALL_ASYNC},
+       {CISS_ENG_BSG_ALL_SYNC,                 BS_CODE,        TAPI_SS_CLASS_ALL_SYNC},
+       {CISS_ENG_BSG_ALL_DC_SYNC,              BS_CODE,        TAPI_SS_CLASS_ALL_CS_SYNC},
+       {CISS_ENG_BSG_ALL_DC_ASYNC,             BS_CODE,        TAPI_SS_CLASS_ALL_CS_ASYNC},
+       {CISS_ENG_BSG_ALL_DED_PACKET,   BS_CODE,        TAPI_SS_CLASS_ALL_DEDI_PS},
+       {CISS_ENG_BSG_ALL_DED_PAD,              BS_CODE,        TAPI_SS_CLASS_ALL_DEDI_PAD},
+       {CISS_ENG_BSG_PLMN_BEAR_ALL,    BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_ALL},
+       {CISS_ENG_BSG_PLMN_BEAR_1,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_1},
+       {CISS_ENG_BSG_PLMN_BEAR_2,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_2},
+       {CISS_ENG_BSG_PLMN_BEAR_3,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_3},
+       {CISS_ENG_BSG_PLMN_BEAR_4,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_4},
+       {CISS_ENG_BSG_PLMN_BEAR_5,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_5},
+       {CISS_ENG_BSG_PLMN_BEAR_6,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_6},
+       {CISS_ENG_BSG_PLMN_BEAR_7,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_7},
+       {CISS_ENG_BSG_PLMN_BEAR_8,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_8},
+       {CISS_ENG_BSG_PLMN_BEAR_9,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_9},
+       {CISS_ENG_BSG_PLMN_BEAR_A,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_A},
+       {CISS_ENG_BSG_PLMN_BEAR_B,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_B},
+       {CISS_ENG_BSG_PLMN_BEAR_C,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_C},
+       {CISS_ENG_BSG_PLMN_BEAR_D,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_D},
+       {CISS_ENG_BSG_PLMN_BEAR_E,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_E},
+       {CISS_ENG_BSG_PLMN_BEAR_F,              BS_CODE,        TAPI_SS_CLASS_PLMN_BEAR_F}
 };
 
 int _ciss_convert_bsg_to_tapi_bsg(char *local_bsg, TelSsClass_t *tapi_bsg)
@@ -105,7 +105,7 @@ int _ciss_convert_bsg_to_tapi_bsg(char *local_bsg, TelSsClass_t *tapi_bsg)
        int valid_bsg = FALSE;
 
        int n = 0;
-       int local_bsg_len =0;
+       int local_bsg_len = 0;
 
        local_bsg_len = strlen(local_bsg);
        if (local_bsg_len > MAX_BSG_LEN) {
index 46608ab..de7b322 100644 (file)
@@ -42,38 +42,38 @@ static void __ciss_app_service(app_control_h service, void *data);
 static int __ciss_relaunch_handler(void *data);
 
 #if 0
-static int __ciss_app_rotate (enum appcore_rm m, void *data)
+static int __ciss_app_rotate(enum appcore_rm m, void *data)
 {
        ciss_appdata_t *ad = data;
        int r;
 
        DBG("Enter");
 
-       if (ad == NULL || ad->win_main == NULL )
+       if (ad == NULL || ad->win_main == NULL)
                return 0;
 
        switch (m) {
-               case APPCORE_RM_PORTRAIT_NORMAL:
-                       r = 0;
-                       break;
+       case APPCORE_RM_PORTRAIT_NORMAL:
+               r = 0;
+               break;
 /*NOT suport PORTRAIT_REVERSE in Z9005, N099
-               case APPCORE_RM_PORTRAIT_REVERSE:
-                       r = 180;
-                       break;
+       case APPCORE_RM_PORTRAIT_REVERSE:
+               r = 180;
+               break;
 */
-               case APPCORE_RM_LANDSCAPE_NORMAL:
-                       r = 270;
-                       break;
-               case APPCORE_RM_LANDSCAPE_REVERSE:
-                       r = 90;
-                       break;
-               default:
-                       r = -1;
-                       break;
+       case APPCORE_RM_LANDSCAPE_NORMAL:
+               r = 270;
+               break;
+       case APPCORE_RM_LANDSCAPE_REVERSE:
+               r = 90;
+               break;
+       default:
+               r = -1;
+               break;
        }
 
        if (r >= 0)
-               elm_win_rotation_with_resize_set (ad->win_main, r);
+               elm_win_rotation_with_resize_set(ad->win_main, r);
 
        DBG("Leave");
        return 0;
@@ -159,17 +159,17 @@ static void __ciss_app_pause(void *data)
        ciss_appdata_t *ad = (ciss_appdata_t *)data;
        memset(ad->c_item, 0, sizeof(ad->c_item));
 
-       content = elm_object_part_content_get( ad->layout_main, "elm.swallow.content" );
-       elm_naviframe_item_pop( content );
+       content = elm_object_part_content_get(ad->layout_main, "elm.swallow.content");
+       elm_naviframe_item_pop(content);
 
 /*
-       if ((ad->resp_ss_type == CISS_SERVICE_USSD) && (ad->ussd_action_require)) {
+       if  ((ad->resp_ss_type == CISS_SERVICE_USSD) && (ad->ussd_action_require))  {
                ciss_mmi_context_t mmi_ctx;
-               memset(&mmi_ctx, 0x0, sizeof(ciss_mmi_context_t));
+               memset(&mmi_ctx,  0x0,  sizeof(ciss_mmi_context_t));
                mmi_ctx.opcode = processUnstructuredSS_Request;
                mmi_ctx.ussd_type = TAPI_SS_USSD_TYPE_USER_REL;
 
-               _ciss_send_tapi_request(&mmi_ctx, ad);
+               _ciss_send_tapi_request(&mmi_ctx,  ad);
        }
 
        elm_exit();
@@ -183,7 +183,7 @@ static void __ciss_app_resume(void *data)
        Evas_Object *content;
        ciss_appdata_t *ad = (ciss_appdata_t *)data;
 
-       if(ad->result != TAPI_SS_SUCCESS) {
+       if (ad->result != TAPI_SS_SUCCESS) {
                ciss_err_t ciss_err;
                _ciss_get_error_from_tapi_error(&ciss_err, ad->result);
                _ciss_create_error_popup(ad->layout_main, ciss_err, 2.0, ad);
@@ -191,11 +191,11 @@ static void __ciss_app_resume(void *data)
                return;
        }
 
-       if(ad->popup) {
+       if (ad->popup) {
                const char *popup_text;
                popup_text = elm_object_translatable_part_text_get(ad->popup, "title,text");
                DBG("popup_text = %s", popup_text);
-               if(g_strcmp0(popup_text, "IDS_CALL_BODY_INFORMATION") == 0) {
+               if (g_strcmp0(popup_text, "IDS_CALL_BODY_INFORMATION") == 0) {
                        evas_object_show(ad->popup);
                        return;
                }
@@ -203,14 +203,12 @@ static void __ciss_app_resume(void *data)
 
        if (ad->resp_ss_type == CISS_SERVICE_NONE) {
                ERR("No type");
-       }
-       else if (ad->resp_ss_type == CISS_SERVICE_USSD) {
+       } else if (ad->resp_ss_type == CISS_SERVICE_USSD) {
                DBG("win=0x%p main=0x%p", ad->win_main, ad->layout_main);
                content = (Evas_Object *)_ciss_create_ussd_view(ad->layout_main, ad->tapi_data, ad);
                ret_if(data == NULL);
                elm_object_part_content_set(ad->layout_main, "elm.swallow.content", content);
-       }
-       else {
+       } else {
                content = (Evas_Object *)_ciss_create_ss_resp_view(ad->layout_main, ad->tapi_data, ad);
                ret_if(content == NULL);
                elm_object_part_content_set(ad->layout_main, "elm.swallow.content", content);
@@ -237,7 +235,7 @@ static void __ciss_app_service(app_control_h service, void *data)
        }
 
        DBG("mmtvconfVal = %d", mmtvconfVal);
-       if(mmtvconfVal == 1) {
+       if (mmtvconfVal == 1) {
                elm_exit();
                return;
        }
@@ -386,7 +384,7 @@ static int __ciss_relaunch_handler(void *data)
                if (err != APP_CONTROL_ERROR_NONE) {
                        warn("app_control_get_extra_data for SAT_SETUP_REQUEST failed - (%d)\n", err);
                } else {
-                       if(strncmp(is_sat_request_val, "TRUE", 4) == 0) {
+                       if (strncmp(is_sat_request_val, "TRUE", 4) == 0) {
                                ad->is_sat_request = EINA_TRUE;
                        } else {
                                ad->is_sat_request = EINA_FALSE;
@@ -420,7 +418,7 @@ static int __ciss_relaunch_handler(void *data)
                if (ad->conformant == NULL) {
                        Evas_Object *conform = NULL;
                        conform = _ciss_create_conformant(ad->win_main);
-                       if(conform == NULL) {
+                       if (conform == NULL) {
                                if (launching_mode) {
                                        g_free(launching_mode);
                                        launching_mode = NULL;
@@ -476,7 +474,7 @@ static int __ciss_relaunch_handler(void *data)
                ad->popup = popup;
                _ciss_view_popup_win_set_noti_type(ad, TRUE);
 
-               ciss_mmi_context_t      mmi_ctx;
+               ciss_mmi_context_t      mmi_ctx;
 
                ciss_err_code = _ciss_parse_req_string(req_string, &mmi_ctx);
 
@@ -489,7 +487,7 @@ static int __ciss_relaunch_handler(void *data)
                                _ciss_create_error_popup(ad->layout_main, ciss_err_code, 2.0, ad);
                        }
                }
-       } else if (strncmp(launching_mode, "RESP", 4)== 0) {
+       } else if (strncmp(launching_mode, "RESP", 4) == 0) { 
                warn("RESP");
                err = app_control_get_extra_data(ad->app_control_handle, "CISS_SIM_INDEX", &sim_index);
                if (err != APP_CONTROL_ERROR_NONE) {
@@ -533,7 +531,7 @@ static int __ciss_relaunch_handler(void *data)
                        warn("app_control_get_extra_data for NO_DISPLAY_POPUP failed - (%d)\n", err);
                        ad->no_popup_display = EINA_FALSE;
                } else {
-                       if(strncmp(no_display_popup_val, "TRUE", 4) == 0) {
+                       if (strncmp(no_display_popup_val, "TRUE", 4) == 0) {
                                ad->no_popup_display = EINA_TRUE;
                        } else {
                                ad->no_popup_display = EINA_FALSE;
index e4ffdfb..08be993 100644 (file)
@@ -121,7 +121,7 @@ static unsigned char __ciss_parse_mmi_string(ciss_mmi_context_t *mmi_ctx, int *e
 
 
        if (sups_str[0] == '*') {
-               if (ISDIGIT(sups_str [1])) {
+               if (ISDIGIT(sups_str[1])) {
                        if (!strncmp(sups_str, "*03*", strlen("*03*"))) {
                                DBG("\n [CISS-ENGINE] registerPassword");
                                ss_operation = registerPassword;
@@ -176,7 +176,7 @@ static unsigned char __ciss_parse_mmi_string(ciss_mmi_context_t *mmi_ctx, int *e
 
        if (ss_operation != NULL_SS_OPERATION) {
                if (!__ciss_find_si_fields(user_sc, ss_code, sia, sib, sic)) {
-                       if (strlen(ss_code)!= 0) {
+                       if (strlen(ss_code) != 0) {
                                if (!_ciss_convert_sc_to_tapi_flavor(ss_code, &tapi_flavor, &ss_type)) {
                                        ss_operation = NULL_SS_OPERATION;
                                } else if (ss_type == CISS_SERVICE_BARRING) {
@@ -203,12 +203,12 @@ static unsigned char __ciss_parse_mmi_string(ciss_mmi_context_t *mmi_ctx, int *e
        }
 
        if (ss_operation != NULL_SS_OPERATION) {
-               if ((ss_operation != registerPassword)&&
-                               ((ss_type == CISS_SERVICE_FORWARDING)||
+               if ((ss_operation != registerPassword) &&
+                               ((ss_type == CISS_SERVICE_FORWARDING) ||
                                 (ss_type == CISS_SERVICE_BARRING))) {
                                strncpy(bsg, sib, MAX_SIB_LEN);
                } else if (ss_type == CISS_SERVICE_WAITING) {
-                       if ((sib[0] !=0) || (sic[0] != 0)) {
+                       if ((sib[0] != 0) || (sic[0] != 0)) {
                                ss_operation = NULL_SS_OPERATION;
                        } else {
                                strncpy(bsg, sia, MAX_SIA_LEN);
@@ -271,12 +271,12 @@ static unsigned char __ciss_parse_mmi_string(ciss_mmi_context_t *mmi_ctx, int *e
                                (ss_operation != registerPassword)) {
                        if (ss_operation != interrogateSS) {
                                if (strlen(sia) < 4) {
-                                       DBG("\n [CISS-ENGINE] Pwd Too Short : %d",strlen(sia));
+                                       DBG("\n [CISS-ENGINE] Pwd Too Short : %d", strlen(sia));
                                        ss_operation = NULL_SS_OPERATION;
                                        *error_code = CISS_ERR_CB_PWD_TOO_SORT;
                                        return ss_operation;
                                } else if (strlen(sia) > 4) {
-                                       DBG("\n [CISS-ENGINE] Pwd Too long : %d",strlen(sia));
+                                       DBG("\n [CISS-ENGINE] Pwd Too long : %d", strlen(sia));
                                        ss_operation = NULL_SS_OPERATION;
                                        *error_code = CISS_ERR_CB_PWD_TOO_LONG;
                                        return ss_operation;
@@ -296,16 +296,16 @@ static unsigned char __ciss_parse_mmi_string(ciss_mmi_context_t *mmi_ctx, int *e
                        memset(mmi_ctx->ss_password, '\0', CISS_MAX_PASSWORD_LEN + 1);
                        memset(mmi_ctx->ss_new_password, '\0', CISS_MAX_PASSWORD_LEN + 1);
                        memset(mmi_ctx->ss_new_password2, '\0', CISS_MAX_PASSWORD_LEN + 1);
-                       strncpy(mmi_ctx->ss_password,sia, CISS_MAX_PASSWORD_LEN);
-                       strncpy(mmi_ctx->ss_new_password,sib, CISS_MAX_PASSWORD_LEN);
-                       strncpy(mmi_ctx->ss_new_password2,sic, CISS_MAX_PASSWORD_LEN);
+                       strncpy(mmi_ctx->ss_password, sia, CISS_MAX_PASSWORD_LEN);
+                       strncpy(mmi_ctx->ss_new_password, sib, CISS_MAX_PASSWORD_LEN);
+                       strncpy(mmi_ctx->ss_new_password2, sic, CISS_MAX_PASSWORD_LEN);
                } else {
                        memset(mmi_ctx->ss_password, '\0', CISS_MAX_PASSWORD_LEN + 1);
                        memset(mmi_ctx->ss_new_password, '\0', CISS_MAX_PASSWORD_LEN + 1);
                        memset(mmi_ctx->ss_new_password2, '\0', CISS_MAX_PASSWORD_LEN + 1);
-                       strncpy(mmi_ctx->ss_password,sia, CISS_MAX_PASSWORD_LEN);
-                       strncpy(mmi_ctx->ss_new_password,sib, CISS_MAX_PASSWORD_LEN);
-                       strncpy(mmi_ctx->ss_new_password2,sic, CISS_MAX_PASSWORD_LEN);
+                       strncpy(mmi_ctx->ss_password, sia, CISS_MAX_PASSWORD_LEN);
+                       strncpy(mmi_ctx->ss_new_password, sib, CISS_MAX_PASSWORD_LEN);
+                       strncpy(mmi_ctx->ss_new_password2, sic, CISS_MAX_PASSWORD_LEN);
                }
        }
 
index eadef2d..2fc349e 100644 (file)
@@ -169,7 +169,7 @@ static void __ciss_create_cli_result_string(ciss_result_t *ciss_result /*out */,
        case TAPI_CALLING_LINE_IDENTITY_RESTRICTION:
                ciss_result->cli_type = CISS_CALLING_LINE_IDENTITY_RESTRICTION;
                DBG("\n [CISS-ENGINE] ciss_callId_display_identification: TAPI_CALLING_LINE_IDENTITY_RESTRICTION (ss_cli_info.status = %d)\n", ss_cli_info.Status);
-               if (ss_cli_info.Status == TAPI_CLI_STATUS_ACTIVATED || ss_cli_info.Status == TAPI_CLI_STATUS_TEMP_RESTRICTED ) {
+               if (ss_cli_info.Status == TAPI_CLI_STATUS_ACTIVATED || ss_cli_info.Status == TAPI_CLI_STATUS_TEMP_RESTRICTED) {
                        ciss_result->szResult[0] = CISS_STATUS_ACTIVE;
                } else {
                        ciss_result->szResult[0] = CISS_STATUS_NOTHING;
@@ -237,7 +237,7 @@ static void __ciss_ui_mmi_create_cnap_result_string(ciss_result_t *result, char
                }
                break;
        case CISS_CALLING_LINE_IDENTITY_RESTRICTION:
-               if( vconf_get_int(VCONFKEY_TELEPHONY_SS_CLI_STATE, &cli_status) < 0 ) {
+               if (vconf_get_int(VCONFKEY_TELEPHONY_SS_CLI_STATE, &cli_status) < 0) {
                        DBG("get_cli_status is failed (%d)", cli_status);
                }
 
@@ -245,9 +245,9 @@ static void __ciss_ui_mmi_create_cnap_result_string(ciss_result_t *result, char
                case CISS_STATUS_ACTIVE:
                        if ((ad->mmi_ctx.opcode == activateSS) || (ad->mmi_ctx.opcode == deactivateSS)) {
                                strncpy(szResult, CISS_STR_MY_CALLER_ID_IS_NOT_SENT_WHEN_CALLING, CISS_USSD_DATA_SIZE_MAX - 1);
-                       } else if(cli_status == VCONFKEY_TELEPHONY_SS_CLI_SHOW) {
+                       } else if (cli_status == VCONFKEY_TELEPHONY_SS_CLI_SHOW) {
                                strncpy(szResult, CISS_STR_CALLER_ID_DEFAULTS_TO_RESTRICTED_NEXT_CALL_C_NOT_RESTRICTED, CISS_USSD_DATA_SIZE_MAX - 1);
-                       } else if(cli_status == VCONFKEY_TELEPHONY_SS_CLI_HIDE) {
+                       } else if (cli_status == VCONFKEY_TELEPHONY_SS_CLI_HIDE) {
                                strncpy(szResult, CISS_STR_CALLER_ID_DEFAULTS_TO_RESTRICTED_NEXT_CALL_C_RESTRICTED, CISS_USSD_DATA_SIZE_MAX - 1);
                        } else {
                                strncpy(szResult, CISS_STR_CALLER_ID_DEFAULTS_TO_RESTRICTED_NEXT_CALL_C_RESTRICTED, CISS_USSD_DATA_SIZE_MAX - 1);
@@ -260,9 +260,9 @@ static void __ciss_ui_mmi_create_cnap_result_string(ciss_result_t *result, char
                default:
                        if ((ad->mmi_ctx.opcode == activateSS) || (ad->mmi_ctx.opcode == deactivateSS)) {
                                strncpy(szResult, CISS_STR_MY_CALLER_ID_WILL_BE_SENT_WHEN_CALLING, CISS_USSD_DATA_SIZE_MAX - 1);
-                       } else if(cli_status == VCONFKEY_TELEPHONY_SS_CLI_SHOW) {
+                       } else if (cli_status == VCONFKEY_TELEPHONY_SS_CLI_SHOW) {
                                strncpy(szResult, CISS_STR_CALLER_ID_DEFAULTS_TO_NOT_RESTRICTED_NEXT_CALL_C_NOT_RESTRICTED, CISS_USSD_DATA_SIZE_MAX - 1);
-                       } else if(cli_status == VCONFKEY_TELEPHONY_SS_CLI_HIDE) {
+                       } else if (cli_status == VCONFKEY_TELEPHONY_SS_CLI_HIDE) {
                                strncpy(szResult, CISS_STR_CALLER_ID_DEFAULTS_TO_NOT_RESTRICTED_NEXT_CALL_C_RESTRICTED, CISS_USSD_DATA_SIZE_MAX - 1);
                        } else {
                                strncpy(szResult, CISS_STR_CALLER_ID_DEFAULTS_TO_NOT_RESTRICTED_NEXT_CALL_C_NOT_RESTRICTED, CISS_USSD_DATA_SIZE_MAX - 1);
@@ -336,7 +336,7 @@ static void __ciss_ui_mmi_create_mmi_result_string(ciss_result_t *pSSResult, int
        _ciss_ui_mmi_get_result_status_type(pSSResult->szSsType, pSSResult->szResult[index], status);
 
        //strncpy(mszBuffer, service, CISS_TEXT_LEN_MAX - 1);
-       snprintf(mszBuffer,CISS_TEXT_LEN_MAX, "<br><br><br> %s", service);
+       snprintf(mszBuffer, CISS_TEXT_LEN_MAX, "<br><br><br> %s", service);
        mszBuffer[CISS_TEXT_LEN_MAX - 1] = '\0';
 
        if (strlen(teleservice)) {
@@ -425,7 +425,7 @@ static TelSsForwardResp_t* __ciss_tapi_handle_forward_cnf(ciss_result_t *ciss_re
        DBG("\n [CISS-ENGINE] this->ss_req_data.telecommSvc: %d\n, this->ss_req_data.action: %d \n",
                ciss_result->szBearer[0], ciss_result->szResult[0]);
 
-       out = g_new0( TelSsForwardResp_t, 1 );
+       out = g_new0(TelSsForwardResp_t, 1);
        memcpy(out, tapi_data, sizeof(TelSsForwardResp_t));
 
        return out;
@@ -449,7 +449,7 @@ static TelSsBarringResp_t* __ciss_tapi_handle_barring_cnf(ciss_result_t *ciss_re
        _ciss_get_barring_flavor_type(ss_barring_info.record[0].Flavour, &(ciss_result->szFlavor));
        __ciss_create_barring_result_string(ciss_result, ss_barring_info);
 
-       out = g_new0( TelSsBarringResp_t, 1 );
+       out = g_new0(TelSsBarringResp_t, 1);
        memcpy(out, tapi_data, sizeof(TelSsBarringResp_t));
 
        return out;
@@ -471,7 +471,7 @@ static TelSsWaitingResp_t* __ciss_tapi_handle_waiting_cnf(ciss_result_t *ciss_re
        memset(ciss_result, 0, sizeof(ciss_result_t));
        __ciss_create_waiting_result_string(ciss_result, ss_waiting_info);
 
-       out = g_new0( TelSsWaitingResp_t , 1 );
+       out = g_new0(TelSsWaitingResp_t , 1);
        memcpy(out, tapi_data, sizeof(TelSsWaitingResp_t));
 
        return out;
@@ -495,7 +495,7 @@ static TelSsCliResp_t* __ciss_tapi_handle_call_id(ciss_result_t *ciss_result, vo
        __ciss_create_cli_result_string(ciss_result, ss_cli_info, ad);
        ciss_result->nRecordNum = 1;
 
-       out = g_new0( TelSsCliResp_t , 1 );
+       out = g_new0(TelSsCliResp_t , 1);
        memcpy(out, tapi_data, sizeof(TelSsCliResp_t));
 
        return out;
@@ -558,8 +558,8 @@ static void __ciss_ssresp_view_quit_cb(void *data, Evas_Object *obj, void *event
 {
        ciss_appdata_t *ad = (ciss_appdata_t *)data;
 
-       if ( ad->tapi_data )
-               g_free( ad->tapi_data );
+       if (ad->tapi_data)
+               g_free(ad->tapi_data);
 
        ad->tapi_data = 0;
 
@@ -611,8 +611,8 @@ Evas_Object *_ciss_create_ss_resp_view(Evas_Object *parent, void *tapi_data, voi
                return NULL;
        }
 
-       if ( old_data )
-               g_free( old_data );
+       if (old_data)
+               g_free(old_data);
 
        __ciss_create_ss_result_string(ss_result_string, &ciss_result, ad);
 
@@ -629,12 +629,12 @@ Evas_Object *_ciss_create_ss_resp_view(Evas_Object *parent, void *tapi_data, voi
 
        navi_it = elm_naviframe_item_push(nf, CISS_STR_INFORMATION, NULL,
                        NULL, genlist, NULL);
-       if(navi_it == NULL) {
+       if (navi_it == NULL) {
                ERR("elm_naviframe_item_push returns NULL");
        }
 
        btn = elm_button_add(nf);
-       elm_object_style_set (btn, "bottom");
+       elm_object_style_set(btn, "bottom");
        elm_object_domain_translatable_text_set(btn, "ciss", "IDS_CALL_BODY_OK");
        elm_object_part_content_set(nf, "toolbar", btn);
        evas_object_smart_callback_add(btn, "clicked", __ciss_ssresp_view_quit_cb, ad);
@@ -643,7 +643,7 @@ Evas_Object *_ciss_create_ss_resp_view(Evas_Object *parent, void *tapi_data, voi
        l_button = elm_button_add(nf);
        evas_object_smart_callback_add(l_button, "clicked", __ciss_ssresp_view_quit_cb, NULL);
        navi_it = elm_naviframe_item_push(nf, CISS_STR_INFORMATION, l_button, NULL, genlist, NULL);
-       if(navi_it == NULL) {
+       if (navi_it == NULL) {
                ERR("elm_naviframe_item_push returns NULL");
        }
 
index 002c644..21045fd 100644 (file)
@@ -50,12 +50,12 @@ static gboolean __ciss_tapi_init(ciss_appdata_t *ad)
        char **cp_list = NULL;
 
        cp_list = tel_get_cp_name_list();
-       if(!cp_list) {
+       if (!cp_list) {
                ERR("cp_list is NULL.");
                return FALSE;
        }
 
-       while(cp_list[modem_num]) {
+       while (cp_list[modem_num]) {
                if (modem_num < CISS_TAPI_HANDLE_MAX) {
                        ad->multi_handles[modem_num] = tel_init(cp_list[modem_num]);
                        DBG("ad->multi_handles[modem_num] = 0x%x", ad->multi_handles[modem_num]);
@@ -89,7 +89,7 @@ int _ciss_tapi_event_setup(ciss_appdata_t *ad)
        //ad->tapi_handle = tel_init(NULL);
        __ciss_tapi_init(ad);
 
-       while(ad->multi_handles[modem_num]) {
+       while (ad->multi_handles[modem_num]) {
                if (ad->multi_handles[modem_num]) {
                        for (i = 0; i < len; i++) {
                                api_err = tel_register_noti_event(ad->multi_handles[modem_num], event_list[i].event_type, event_list[i].func, (void *) ad);
@@ -490,14 +490,14 @@ int _ciss_on_tapi_sat_ussd_event(void *tapi_data, void *data)
                DBG("ad->is_sat_request = %d", ad->is_sat_request);
                ad->sat_terminal_response.sat_command_id = send_ussd_info.commandId;
                ad->sat_terminal_response.rel_comp_msg_length = 0;                                              //response string length reset for new request.
-               memset(ad->sat_terminal_response.rel_comp_msg_string,0,sizeof(ad->sat_terminal_response.rel_comp_msg_string));
+               memset(ad->sat_terminal_response.rel_comp_msg_string, 0, sizeof(ad->sat_terminal_response.rel_comp_msg_string));
                TelSsUssdMsgInfo_t ussd_info;
                memset(&ussd_info, 0, sizeof(TelSsUssdMsgInfo_t));
                ad->is_ussd_request = EINA_TRUE;
 
                ussd_info.Type = TAPI_SS_USSD_TYPE_USER_INIT;
                ussd_info.Length = (int)(send_ussd_info.ussdStringLen);
-               if (ussd_info.Length >0) {
+               if (ussd_info.Length > 0) {
                        memcpy(&ussd_info.szString, send_ussd_info.ussdString, ussd_info.Length);
                }
                ussd_info.Dcs = send_ussd_info.rawDcs;
@@ -574,8 +574,7 @@ void _ciss_tapi_ss_information(TapiHandle *tapi_handle, const char *event_type,
                        }
                }
                /* and pass through if cause is TAPI_SS_SUCCESS */
-       }
-       else {
+       } else {
                if (ad->popup) {
                        DBG("Popup exists");
                        return;
@@ -589,7 +588,7 @@ void _ciss_tapi_ss_information(TapiHandle *tapi_handle, const char *event_type,
 
        /* create window */
 
-       DBG("win=0x%p main=0x%p",ad->win_main, ad->layout_main);
+       DBG("win=0x%p main=0x%p", ad->win_main, ad->layout_main);
 
        if (ad->win_main == NULL) {
                Evas_Object *win;
@@ -610,7 +609,7 @@ void _ciss_tapi_ss_information(TapiHandle *tapi_handle, const char *event_type,
 
        if (ad->layout_main == NULL) {
                ad->layout_main = _ciss_create_layout_main(ad->conformant);
-               ret_if(ad->layout_main== NULL);
+               ret_if(ad->layout_main == NULL);
                evas_object_show(ad->layout_main);
        }
 
@@ -628,7 +627,7 @@ void _ciss_tapi_ss_information(TapiHandle *tapi_handle, const char *event_type,
 
        ciss_err_t ciss_err;
 
-       if( ss_information.SsType == TAPI_SS_TYPE_SEND_USSD ) {
+       if (ss_information.SsType == TAPI_SS_TYPE_SEND_USSD) {
                _ciss_create_error_popup(ad->layout_main, CISS_ERR_USSD_FAILED, 2.0, ad);
        } else {
                _ciss_get_error_from_tapi_error(&ciss_err, ss_information.Cause);
@@ -760,7 +759,7 @@ static void __ciss_tapi_ss_resp_handle(int result, void *tapi_data, void *data)
                        app_ret_info.appsRet.sendSs.resp = TAPI_SAT_R_SUCCESS;
                        app_ret_info.appsRet.sendSs.ssCause = TAPI_SS_SUCCESS;
                        app_ret_info.appsRet.sendSs.meProblem = TAPI_SAT_ME_PROBLEM_NO_SPECIFIC_CAUSE;
-                       if (ad->sat_terminal_response.rel_comp_msg_length >0) {
+                       if (ad->sat_terminal_response.rel_comp_msg_length > 0) {
                                app_ret_info.appsRet.sendSs.ssString.stringLen = ad->sat_terminal_response.rel_comp_msg_length;
                                memcpy(app_ret_info.appsRet.sendSs.ssString.string,
                                           ad->sat_terminal_response.rel_comp_msg_string, ad->sat_terminal_response.rel_comp_msg_length);
@@ -779,9 +778,9 @@ static void __ciss_tapi_ss_resp_handle(int result, void *tapi_data, void *data)
                if (ret != TAPI_SS_SUCCESS) {
                        DBG("tel_send_sat_app_exec_result return error : %d", ret);
                }
-               if (result == TAPI_SS_SUCCESS){
-                       if ( ad->tapi_data ){
-                               g_free( ad->tapi_data );
+               if (result == TAPI_SS_SUCCESS) {
+                       if (ad->tapi_data) {
+                               g_free(ad->tapi_data);
                        }
                        ad->tapi_data = NULL;
                        DBG("Exit for Sat request");
@@ -794,7 +793,7 @@ static void __ciss_tapi_ss_resp_handle(int result, void *tapi_data, void *data)
        /* create window */
        Evas_Object *content;
 
-       DBG("win=0x%p main=0x%p",ad->win_main, ad->layout_main);
+       DBG("win=0x%p main=0x%p", ad->win_main, ad->layout_main);
 
        if (ad->win_main == NULL) {
                Evas_Object *win;
@@ -815,7 +814,7 @@ static void __ciss_tapi_ss_resp_handle(int result, void *tapi_data, void *data)
 
        if (ad->layout_main == NULL) {
                ad->layout_main = _ciss_create_layout_main(ad->conformant);
-               ret_if(ad->layout_main== NULL);
+               ret_if(ad->layout_main == NULL);
                evas_object_show(ad->layout_main);
        }
 
@@ -907,7 +906,7 @@ void _ciss_tapi_ussd_resp_handle(int result, void *tapi_data, void *data)
 
        DBG("ad->is_sat_request=%d", ad->is_sat_request);
 
-       if( ad->mmi_ctx.ussd_type == TAPI_SS_USSD_TYPE_USER_REL ) {
+       if (ad->mmi_ctx.ussd_type == TAPI_SS_USSD_TYPE_USER_REL) {
                DBG("TAPI_SS_USSD_TYPE_USER_REL");
                return;
        }
@@ -932,7 +931,7 @@ void _ciss_tapi_ussd_resp_handle(int result, void *tapi_data, void *data)
 
        if (ad->layout_main == NULL) {
                ad->layout_main = _ciss_create_layout_main(ad->conformant);
-               ret_if(ad->layout_main== NULL);
+               ret_if(ad->layout_main == NULL);
                evas_object_show(ad->layout_main);
        }
 
@@ -1041,7 +1040,7 @@ void _ciss_tapi_sat_ussd_resp_handle(int result, void *tapi_data, void *data)
                        app_ret_info.appsRet.sendUssd.ssCause = TAPI_SS_SUCCESS;
                        app_ret_info.appsRet.sendUssd.meProblem = TAPI_SAT_ME_PROBLEM_NO_SPECIFIC_CAUSE;
                        app_ret_info.appsRet.sendUssd.ussdString.stringLen = ussd_info.Length;
-                       if (ad->sat_terminal_response.rel_comp_msg_length >0) {
+                       if (ad->sat_terminal_response.rel_comp_msg_length > 0) {
                                app_ret_info.appsRet.sendUssd.ussdString.stringLen = ad->sat_terminal_response.rel_comp_msg_length;
                                memcpy(app_ret_info.appsRet.sendUssd.ussdString.string,
                                           ad->sat_terminal_response.rel_comp_msg_string, ad->sat_terminal_response.rel_comp_msg_length);
@@ -1077,13 +1076,13 @@ void _ciss_tapi_sat_ussd_resp_handle(int result, void *tapi_data, void *data)
                 *             for launching ciss app and ciss app doesn't show popup.
                 *
                 */
-               if(ad->no_popup_display == EINA_TRUE) {
+               if (ad->no_popup_display == EINA_TRUE) {
                        DBG("NO_POPUP_DISPLAY");
                        elm_exit();
                }
        }
 
-       if( ad->mmi_ctx.ussd_type == TAPI_SS_USSD_TYPE_USER_REL ) {
+       if (ad->mmi_ctx.ussd_type == TAPI_SS_USSD_TYPE_USER_REL) {
                DBG("TAPI_SS_USSD_TYPE_USER_REL");
                return;
        }
@@ -1108,7 +1107,7 @@ void _ciss_tapi_sat_ussd_resp_handle(int result, void *tapi_data, void *data)
 
        if (ad->layout_main == NULL) {
                ad->layout_main = _ciss_create_layout_main(ad->conformant);
-               ret_if(ad->layout_main== NULL);
+               ret_if(ad->layout_main == NULL);
                evas_object_show(ad->layout_main);
        }
 
@@ -1157,8 +1156,8 @@ void _ciss_tapi_event_clean(ciss_appdata_t *ad)
        memset(&ussd, 0, sizeof(TelSsUssdMsgInfo_t));
 
        ussd.Type = TAPI_SS_USSD_TYPE_USER_REL;
-       DBG("ad->is_ussd_request = %d",ad->is_ussd_request);
-       if(ad->is_ussd_request == EINA_TRUE) {
+       DBG("ad->is_ussd_request = %d", ad->is_ussd_request);
+       if (ad->is_ussd_request == EINA_TRUE) {
                ad->is_ussd_request = EINA_FALSE;
                TelSatAppsRetInfo_t app_ret_info;
                memset(&app_ret_info, 0, sizeof(TelSatAppsRetInfo_t));
@@ -1177,11 +1176,11 @@ void _ciss_tapi_event_clean(ciss_appdata_t *ad)
                }
        }
 
-       if ( ad->resp_ss_type == CISS_SERVICE_USSD ) {
+       if (ad->resp_ss_type == CISS_SERVICE_USSD) {
                tel_send_ss_ussd_request(ad->tapi_handle, &ussd, __ciss_deregister_tel_event, 0);
        } else {
 
-               __ciss_deregister_tel_event(ad->tapi_handle, 0, 0, 0 );
+               __ciss_deregister_tel_event(ad->tapi_handle, 0, 0, 0);
        }
 }
 
@@ -1208,7 +1207,7 @@ static void __ciss_get_ss_forward_resp_cb(TapiHandle *handle, int result, void *
        /* create window */
        Evas_Object *content;
 
-       DBG("win=0x%p main=0x%p",ad->win_main, ad->layout_main);
+       DBG("win=0x%p main=0x%p", ad->win_main, ad->layout_main);
 
        if (ad->popup) {
                evas_object_del(ad->popup);
@@ -1237,7 +1236,7 @@ static void __ciss_get_ss_forward_resp_cb(TapiHandle *handle, int result, void *
 
        if (ad->layout_main == NULL) {
                ad->layout_main = _ciss_create_layout_main(ad->conformant);
-               ret_if(ad->layout_main== NULL);
+               ret_if(ad->layout_main == NULL);
                evas_object_show(ad->layout_main);
        }
 
index f8dc8e8..9064a78 100644 (file)
@@ -60,7 +60,7 @@ void _ciss_ussd_quit_cb(void *data, Evas_Object *obj, void *event_info)
        Ecore_IMF_Context *imf_context;
        memset(ad->c_item, 0, sizeof(ad->c_item));
 
-       if( ad->ussd_action_require == TRUE ) {
+       if (ad->ussd_action_require == TRUE) {
                imf_context = elm_entry_imf_context_get(ad->ef_entry);
                if (imf_context) {
                        ecore_imf_context_input_panel_event_callback_del(imf_context, ECORE_IMF_INPUT_PANEL_STATE_EVENT, _ciss_input_panel_event_callback);
@@ -105,7 +105,7 @@ bool _ciss_check_hide_completed_popup(void *tapi_data, void *data) //CscFeature_
        bool ret = false;
 
 #if 0  // block lines to prevent build error
-       if(csc_feature_get_bool(CSC_FEATURE_DEF_BOOL_CALL_USSD_DISABLE_COMPLETE_NOTI) == CSC_FEATURE_BOOL_TRUE) {
+       if (csc_feature_get_bool(CSC_FEATURE_DEF_BOOL_CALL_USSD_DISABLE_COMPLETE_NOTI) == CSC_FEATURE_BOOL_TRUE) {
                ciss_appdata_t *ad = (ciss_appdata_t *)data;
                TelSsUssdResp_t ussd_resp_info;
                memset(&ussd_resp_info, 0, sizeof(TelSsUssdResp_t));
@@ -113,7 +113,7 @@ bool _ciss_check_hide_completed_popup(void *tapi_data, void *data) //CscFeature_
 
                if (ad->tapi_event.event_type == TAPI_EVENT_SS_USSD_RESP
                        && ussd_resp_info.Status ==  CISS_USSD_TERMINATED_BY_NET
-                       && (strncmp(ussd_resp_info.szString, "MMI Complete",12)==0 || ussd_resp_info.Length==0)) {
+                       && (strncmp(ussd_resp_info.szString, "MMI Complete", 12) == 0 || ussd_resp_info.Length == 0)) {
                        _ciss_ussd_quit_cb(data, NULL, NULL);
                        ret = true;
                }
@@ -158,13 +158,13 @@ Evas_Object *_ciss_create_ussd_view(Evas_Object *parent, void *tapi_data, void *
        Evas_Object *l_button;
 #endif /* !_CISS_HW_BACK_KEY */
 
-       if(ad->no_popup_display == EINA_TRUE) {
+       if (ad->no_popup_display == EINA_TRUE) {
                warn("Tapi Requested not to display screen");
                return NULL;
        }
 
        Evas_Object *nf = elm_naviframe_add(parent);
-       if(nf == NULL) {
+       if (nf == NULL) {
                DBG("Fail to Naviframe add");
                return NULL;
        }
index 7031209..6efdde6 100644 (file)
@@ -58,8 +58,7 @@ void _ciss_view_popup_win_set_noti_type(void *data, int bwin_noti)
                elm_win_type_set(ad->win_main, ELM_WIN_BASIC);
                /* Set Notification's priority to LEVEL_NONE */
                efl_util_set_notification_window_level(ad->win_main, EFL_UTIL_NOTIFICATION_LEVEL_NONE);
-       }
-       else {
+       } else {
                DBG("window type: NOTI-HIGH");
                /* Set Notification window */
                elm_win_type_set(ad->win_main, ELM_WIN_NOTIFICATION);
@@ -204,13 +203,13 @@ static gboolean __ciss_is_network_camped(TapiHandle *handle)
 
        ret = tel_get_property_int(handle, TAPI_PROP_NETWORK_SERVICE_TYPE, (int *) &svc_type);
        if (TAPI_API_SUCCESS != ret) {
-               ERR( "tel_get_property_int failed..!!![%d]", ret);
+               ERR("tel_get_property_int failed..!!![%d]", ret);
                return FALSE;
        }
 
        ret = tel_get_property_int(handle, TAPI_PROP_NETWORK_CIRCUIT_STATUS, (int *) &cs);
        if (TAPI_API_SUCCESS != ret) {
-               ERR( "tel_get_property_int failed..!!![%d]", ret);
+               ERR("tel_get_property_int failed..!!![%d]", ret);
                return FALSE;
        }
 
@@ -297,7 +296,7 @@ void __ciss_flight_mode_popup_ok_btn_clicked_cb(void *data, Evas_Object *obj, vo
                return;
        }
 
-       if(ad->popup) {
+       if (ad->popup) {
                evas_object_del(ad->popup);
                ad->popup = NULL;
        }
@@ -305,7 +304,7 @@ void __ciss_flight_mode_popup_ok_btn_clicked_cb(void *data, Evas_Object *obj, vo
        popup = _ciss_create_noti_popup(ad->layout_main, "IDS_CST_POP_REQUESTING_ING", NULL, POPUP_DISPLAY_DURATION, ad);
        ad->popup = popup;
 
-       if(ad->timer) {
+       if (ad->timer) {
                ecore_timer_del(ad->timer);
                ad->timer = NULL;
        }
@@ -325,17 +324,17 @@ Evas_Object *_ciss_create_2_btn_popup(Evas_Object *parent, const char *strmsg, E
        popup = elm_popup_add(parent);
        evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 
-       left_btn = elm_button_add (popup);
-       elm_object_style_set (left_btn, "popup");
-       elm_object_domain_translatable_text_set (left_btn, "ciss", "IDS_CALL_BUTTON_CANCEL");
-       elm_object_part_content_set (popup, "button1", left_btn);
-       evas_object_smart_callback_add (left_btn, "clicked", func1, ad);
+       left_btn = elm_button_add(popup);
+       elm_object_style_set(left_btn, "popup");
+       elm_object_domain_translatable_text_set(left_btn, "ciss", "IDS_CALL_BUTTON_CANCEL");
+       elm_object_part_content_set(popup, "button1", left_btn);
+       evas_object_smart_callback_add(left_btn, "clicked", func1, ad);
 
-       right_btn = elm_button_add (popup);
-       elm_object_style_set (right_btn, "popup");
-       elm_object_domain_translatable_text_set (right_btn, "ciss", "IDS_CALL_BODY_OK");
-       elm_object_part_content_set (popup, "button2", right_btn);
-       evas_object_smart_callback_add (right_btn, "clicked", func2, ad);
+       right_btn = elm_button_add(popup);
+       elm_object_style_set right_btn, "popup");
+       elm_object_domain_translatable_text_set(right_btn, "ciss", "IDS_CALL_BODY_OK");
+       elm_object_part_content_set(popup, "button2", right_btn);
+       evas_object_smart_callback_add(right_btn, "clicked", func2, ad);
 
        elm_object_domain_translatable_part_text_set(popup, "title,text", "ciss", "IDS_CALL_BODY_INFORMATION");
        elm_object_translatable_text_set(popup, strmsg);
@@ -463,13 +462,13 @@ Evas_Object *_ciss_create_error_popup(Evas_Object *parent, ciss_err_t ciss_error
 #else
        Evas_Object *btn;
 
-       btn = elm_button_add (popup);
-       elm_object_style_set (btn, "popup");
+       btn = elm_button_add(popup);
+       elm_object_style_set(btn, "popup");
        elm_object_text_set(btn, _("IDS_CALL_BODY_OK"));
-       elm_object_part_content_set (popup, "button1", btn);
-       evas_object_smart_callback_add (btn, "clicked", __ciss_err_cb, ad);
+       elm_object_part_content_set(popup, "button1", btn);
+       evas_object_smart_callback_add(btn, "clicked", __ciss_err_cb, ad);
 #endif
-       elm_object_part_text_set(popup,"title,text", _("IDS_CALL_BODY_INFORMATION"));
+       elm_object_part_text_set(popup, "title,text", _("IDS_CALL_BODY_INFORMATION"));
        elm_object_translatable_text_set(popup, strmsg);
 //     evas_object_smart_callback_add(popup, "block,clicked", __ciss_err_cb, ad);
 
@@ -492,17 +491,15 @@ Evas_Object *_ciss_create_noti_popup(Evas_Object *parent, char *strtitle, char *
        popup = elm_popup_add(parent);
 
 #if 0  // block lines to prevent build error
-       if(csc_feature_get_bool(CSC_FEATURE_DEF_BOOL_CALL_USSD_USE_TOAST_FOR_NET_NO_RESP) == CSC_FEATURE_BOOL_TRUE)
-       {
+       if (csc_feature_get_bool(CSC_FEATURE_DEF_BOOL_CALL_USSD_USE_TOAST_FOR_NET_NO_RESP) == CSC_FEATURE_BOOL_TRUE) {
                //CscFeature_VoiceCall_UseUssdToastForNetworkNoResp
                elm_object_style_set(popup, "toast");
                elm_popup_timeout_set(popup, 3.0);
-               elm_object_part_text_set(popup,"elm.text", strtitle);
+               elm_object_part_text_set(popup, "elm.text", strtitle);
 
                evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
                evas_object_smart_callback_add(popup, "timeout", __ciss_resp_timeout_cb, data);
-       }
-       else
+       } else
 #endif
        {
                //elm_object_part_text_set(popup, "title,text", strtitle);
@@ -793,17 +790,17 @@ static void __ciss_add_to_contact_list_clicked_cb(void *data, Evas_Object *obj,
                app_control_add_extra_data(svc_handle, "ct_num", title);
 
        if (g_strcmp0(label, dgettext("ciss", "IDS_CALL_BUTTON_CREATE_CONTACT")) == 0) {
-               if(app_control_set_app_id(svc_handle, CREATE_CONTACTS_UG) != APP_CONTROL_ERROR_NONE) {
+               if (app_control_set_app_id(svc_handle, CREATE_CONTACTS_UG) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_set_app_id() is failed");
-               } else if(app_control_add_extra_data(svc_handle, "show_detail", "true") != APP_CONTROL_ERROR_NONE) {
+               } else if (app_control_add_extra_data(svc_handle, "show_detail", "true") != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_add_extra_data() is failed");
-               } else if(app_control_send_launch_request(svc_handle, NULL, NULL) != APP_CONTROL_ERROR_NONE) {
+               } else if (app_control_send_launch_request(svc_handle, NULL, NULL) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_send_launch_request() is failed");
                }
        } else if (g_strcmp0(label, dgettext("ciss", "IDS_CALL_BUTTON_UPDATE_EXISTING")) == 0) {
-               if(app_control_set_app_id(svc_handle, CONTACTS_LIST_UG) != APP_CONTROL_ERROR_NONE) {
+               if (app_control_set_app_id(svc_handle, CONTACTS_LIST_UG) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_set_app_id() is failed");
-               } else if(app_control_send_launch_request(svc_handle, NULL, NULL) != APP_CONTROL_ERROR_NONE) {
+               } else if (app_control_send_launch_request(svc_handle, NULL, NULL) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_send_launch_request() is failed");
                }
        }
@@ -813,7 +810,7 @@ static void __ciss_add_to_contact_list_clicked_cb(void *data, Evas_Object *obj,
                ad->mode = MSG_VIEWER_LOAD_CONTACT_UG;
        }
 */
-CONTACT_LIST_FAIL :
+CONTACT_LIST_FAIL:
 
        app_control_destroy(svc_handle);
        DBG("Exit");
@@ -838,7 +835,7 @@ void __ciss_create_add_to_contact_popup(void *data, const char *address)
 //#else        /* _MSG_FEATURE_MULTI_WINDOW */
        popup = elm_popup_add(ad->win_main);
 //#endif       /* _MSG_FEATURE_MULTI_WINDOW */
-       elm_object_style_set(popup,"content_no_vhpad");
+       elm_object_style_set(popup, "content_no_vhpad");
        evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(popup, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
@@ -943,13 +940,13 @@ static void __ciss_cutlink_list_sel_cb(void *data, Evas_Object *obj, void *event
 
                snprintf(szPersonID, sizeof(szPersonID), "%d", person_id);
                DBG("Person id = %s", szPersonID);
-               if (app_control_set_operation(svc_handle, APP_CONTROL_OPERATION_VIEW) != APP_CONTROL_ERROR_NONE){
+               if (app_control_set_operation(svc_handle, APP_CONTROL_OPERATION_VIEW) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_set_operation() is failed");
-               } else if (app_control_set_mime(svc_handle, APP_CONTROL_MIME_CONTACT) != APP_CONTROL_ERROR_NONE){
+               } else if (app_control_set_mime(svc_handle, APP_CONTROL_MIME_CONTACT) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_set_mime() is failed");
-               } else if (app_control_add_extra_data(svc_handle, APP_CONTROL_DATA_ID, szPersonID) != APP_CONTROL_ERROR_NONE){
+               } else if (app_control_add_extra_data(svc_handle, APP_CONTROL_DATA_ID, szPersonID) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_add_extra_data() is failed");
-               } else if (app_control_send_launch_request(svc_handle, NULL, NULL) != APP_CONTROL_ERROR_NONE){
+               } else if (app_control_send_launch_request(svc_handle, NULL, NULL) != APP_CONTROL_ERROR_NONE) {
                        DBG("app_control_send_launch_request() failed");
                }
                app_control_destroy(svc_handle);
@@ -1115,7 +1112,7 @@ static void __ciss_anchor_clicked(void *data, Evas_Object *obj, void *event_info
 //#endif       /* _MSG_FEATURE_MULTI_WINDOW */
        evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 
-       elm_object_style_set(popup,"content_no_vhpad");
+       elm_object_style_set(popup, "content_no_vhpad");
        elm_object_part_text_set(popup, "title,text", markup_content_text);
 
        evas_object_event_callback_add(popup, EVAS_CALLBACK_MOUSE_UP, __ciss_popup_mouseup_cb, ad);
@@ -1356,7 +1353,7 @@ Evas_Object *_ciss_create_1_items_toolbar(ciss_appdata_t *ad, const char *label,
 
        /* create toolbar */
        obj = elm_toolbar_add(ad->nf);
-       if(obj == NULL) return NULL;
+       if (obj == NULL) return NULL;
        elm_object_style_set(obj, "default");
        elm_toolbar_shrink_mode_set(obj, ELM_TOOLBAR_SHRINK_EXPAND);
        elm_toolbar_transverse_expanded_set(obj, EINA_TRUE);
@@ -1373,7 +1370,7 @@ Evas_Object *_ciss_create_2_items_toolbar(ciss_appdata_t *ad, const char *label1
 
        /* create toolbar */
        obj = elm_toolbar_add(ad->nf);
-       if(obj == NULL) return NULL;
+       if (obj == NULL) return NULL;
        elm_object_style_set(obj, "default");
        elm_toolbar_shrink_mode_set(obj, ELM_TOOLBAR_SHRINK_EXPAND);
        elm_toolbar_transverse_expanded_set(obj, EINA_TRUE);
@@ -1533,6 +1530,6 @@ void _ciss_show_navi_title(void *data, Evas_Object *obj, void *event_info)
        ret_if(data == NULL);
        DBG("data = 0x%x", data);
        ciss_appdata_t *ad = (ciss_appdata_t *)data;
-       elm_naviframe_item_title_enabled_set (elm_naviframe_top_item_get(ad->nf), EINA_TRUE , EINA_TRUE);
+       elm_naviframe_item_title_enabled_set(elm_naviframe_top_item_get(ad->nf), EINA_TRUE , EINA_TRUE);
 }