*
* Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
- * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
+ * Contact: Ja-young Gu <jygu@samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#ifndef _TEL_SAT_H_
#define _TEL_SAT_H_
-/*==================================================================================================
- INCLUDE FILES
-==================================================================================================*/
#include <TelDefines.h>
#include <TelCall.h>
#include <TelSs.h>
{
#endif
-
-/*==================================================================================================
- CONSTANTS
-==================================================================================================*/
-
-
-/*==================================================================================================
- MACROS
-==================================================================================================*/
-
#define TAPI_SAT_DEF_TITLE_LEN_MAX 50 /**< max length for Menu Title */
#define TAPI_SAT_DEF_ITEM_STR_LEN_MAX 50 /**< max length for Menu Item */
#define TAPI_SAT_DEF_TEXT_STRING_LEN_MAX 500 /**< max length for Text String */
#define TAPI_SAT_DEF_SS_LEN_MAX 250
#define TAPI_SAT_DEF_USSD_LEN_MAX 250
-
-/*==================================================================================================
- ENUMS
-==================================================================================================*/
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony UI USER CONFIRM TYPE
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* @enum TelSatUiUserConfirmType_t
* This enumeration defines the UI User Confirm Type.
TAPI_SAT_USER_CONFIRM_TIMEOUT, /**<This enum informs that user did not respond */
}TelSatUiUserConfirmType_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony UI INKEY TYPE
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* @enum TelSatUiInkeyYesNoCaseType_t
* This enumeration defines the UI Inkey Type Yes or No.
TAPI_SAT_INKEY_CONFIRM_YES = 0x01, /**<Yes*/
}TelSatUiInkeyYesNoCaseType_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony UI DISPLAY STATUS
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* @enum TelSatUiDisplayStatusType_t
* This enumeration defines the UI Display Status.
TAPI_SAT_DISPLAY_FAIL = 0x01, /**<This enum informs UI display failure*/
}TelSatUiDisplayStatusType_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// TELEPHONY REFRESH APPLICATION TYPE
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* @enum TelSatRefreshAppType_t
* This enumeration defines the Refresh Application Type.
TAPI_SAT_REFRESH_MAX, /**<Maximum Enumeration Value*/
}TelSatRefreshAppType_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony COMMAND PERFORMED RESULT
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* @enum TelSatCommandPerformResultType_t
* This enumeration defines the Result of Proactive Command execution.
TAPI_SAT_CMD_PERFORM_MAX, /**<Maximum Enumeration Value*/
}TelSatCommandPerformResultType_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony CALL CONTROL TYPE
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* @enum TelSatCallCtrlType_t
* This enumeration defines Call Control Type.
TAPI_SAT_CALL_CNF_MAX, /**<Maximum Enumeration Value*/
}TelSatCallCtrlType_t;
-
-/*==================================================================================================
- STRUCTURES AND OTHER TYPEDEFS
-==================================================================================================*/
-///////////////////////////////////////////////////////////////////////////////////////////
// SAT UI USER CONFIRMATION INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the user confirmation data.
*/
int dataLen; /**<Additional Data Length*/
}TelSatUiUserConfirmInfo_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony TEXT INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the character data for sat engine data structure.
*/
unsigned char string[TAPI_SAT_DEF_TEXT_STRING_LEN_MAX+1]; /**<character data*/
}TelSatTextInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony MAIN MENU TITLE INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the main menu title to check sat menu.
*/
TelSatTextInfo_t mainMenuTitle; /**<main menu title data*/
}TelSatMainMenuTitleInfo_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony DISPLAY TEXT DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the display text proactive command for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**< Icon Identifier */
}TelSatDisplayTextInd_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony INKEY DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the get inkey proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
}TelSatGetInkeyInd_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony GET INPUT DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the get input proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
}TelSatGetInputInd_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony PLAY TONE DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the play tone proactive command data for application.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
}TelSatPlayToneInd_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SEND SMS DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send sms proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
}TelSatSendSmsIndUiInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SEND SS DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send ss proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
} TelSatSendSsIndUiInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SEND USSD DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send ussd proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
}TelSatSendUssdIndUiInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SEND DTMF DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send dtmf proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
}TelSatSendDtmfIndUiInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony LAUNCH BROWSER DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the launch browser proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
}TelSatLaunchBrowserIndUiInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SETUP CALL DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the setup call proactive command data for sat ui.
*/
TelSatIconIdentifierInfo_t iconId; /**<Icon Identifier*/
} TelSatSetupCallIndUiInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony MENU ITEM DATA FOR SETUP MENU
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the menu item info for setup menu.
*/
char itemId; /**<identifies the item on the menu that user selected*/
}TelSatMenuInfo_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SETUP MENU INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the sat main menu info.
*/
TelSatIconIdentifierListInfo_t iconIdList; /**<List of Icon Identifiers*/
}TelSatSetupMenuInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SELECT ITEM DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the select item proactive command data for sat ui.
*/
}TelSatSelectItemInd_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony IDLE MODE TEXT DATA
-///////////////////////////////////////////////////////////////////////////////////////////
-
/**
* This structure defines the setup idle mode text proactive command for idle application.
*/
TelSatIconIdentifierInfo_t iconId;
} TelSatSetupIdleModeTextInd_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony REFRESH DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the refresh proactive command data for sat ui.
*/
TelSatCmdQualiRefresh_t refreshType; /**<refresh mode*/
}TelSatRefreshIndUiInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony REFRESH DATA
-///////////////////////////////////////////////////////////////////////////////////////////
-
/**
* This structure defines the refresh proactive command data for applications which are concerned with files resident on USIM .
*/
TelSimFileID_t fileId[TAPI_SAT_REFRESH_FILE_LIST]; /**<refresh file identifier*/
}TelSatRefreshInd_t;
-
-//////////////////////////////////////////////////////////////////////////////////////////
// Telephony END PROACTIVE COMMAND INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the data objects to indicate to sat ui, the end of execution of a specific proactive command by other application.
*/
TelSatCommandPerformResultType_t result; /**<result of command execution by application*/
}TelSatProactiveCmdEndIndInfo_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SEND SMS DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send sms proactive command data for sms application.
*/
TelSatSmsTpduInfo_t smsTpdu; /**<SMS TPDU data*/
} TelSatSendSmsIndSmsData_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SEND SS DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send ss proactive command data for ss application.
*/
unsigned char ssString[TAPI_SAT_DEF_SS_LEN_MAX+1];
}TelSatSendSsIndSsData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony USSD DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send ussd proactive command data for ussd application.
*/
unsigned char ussdString[TAPI_SAT_DEF_USSD_LEN_MAX+1];
}TelSatSendUssdIndUssdData_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SEND DTMF DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the send dtmf proactive command data for dtmf application.
*/
TelSatTextInfo_t dtmfString; /**<dtmf string data*/
}TelSatSendDtmfIndDtmfData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SETUP CALL DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the setup call proactive command data for call application.
*/
TelSatIconIdentifierInfo_t iconId; /**<icon identifier for call application*/
}TelSatSetupCallIndCallData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony LAUNCH BROWSER DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the launch browser proactive command data for browser application.
*/
TelSatBrowserIdentityType_t IdentityType; /**<Browser Identity -default, html, etc*/
}TelSatLaunchBrowserIndBrowserData_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony PROVIDE LOCAL INFO DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the provide local info proactive command data for application.
*/
-
typedef struct
{
int commandId; /**<Proactive Command Number sent by USIM*/
TelSatCmdQualiProvideLocalInfo_t localInfoType; /**<Provide Local Information Type*/
}TelSatProvideLocalInfoInd_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony LANGUAGE NOTIFICATION DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the language notification proactive command data for application.
*/
-
typedef struct
{
int commandId; /**<Proactive Command Number sent by USIM*/
TelSatLanguageInfo_t language; /**<language info from USIM application */
}TelSatLanguageNotiInfoInd_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony PLAY TONE RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for Play Tone proactive command.
*/
TelSatResultType_t resp; /**<result response value*/
}TelSatSetupMenuRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony REFRESH RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for refresh proactive command.
*/
TelSatResultType_t resp; /**<result response value*/
}TelSatRefreshRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony CALL RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
-
/**
* This structure defines the return result data for setup call proactive command.
*/
TelSatTextTypeInfo_t text; /**<call control envelope display data*/
}TelSatCallRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SS RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for send ss proactive command.
*/
TelSatResultInfo_t result2; /**<call control envelope result value*/
}TelSatSsRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony USSD RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for send ussd proactive command.
*/
TelSatTextTypeInfo_t text2; /**<cc envelope display data */
}TelSatUssdRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SMS RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for send sms proactive command.
*/
TelSatResultType_t resp; /**<result response value*/
}TelSatSmsRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony DTMF RETUEN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for send dtmf proactive command.
*/
TelSatResultType_t resp; /**<result response value*/
}TelSatDtmfRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony BROWSER RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for launch browser proactive command.
*/
TelSatLaunchBrowserProblemType_t browserProblem; /**<specific browser problem*/
}TelSatBrowserRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony SETUP IDLE MODE TEXT RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for setup idle mode text proactive command.
*/
TelSatResultType_t resp; /**<result response value*/
}TelSatIdleTextRetInfo_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony PLAY TONE RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for Play Tone proactive command.
*/
TelSatResultType_t resp; /**<result response value*/
}TelSatPlayToneRetInfo_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony PROVIDE LOCAL INFO RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for setup idle mode text proactive command.
*/
}u; /**< Union*/
}TelSatProvideLocalRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony LANGUAGE NOTI RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for setup idle mode text proactive command.
*/
TelSatResultType_t resp; /**<result response value*/
}TelSatLanguageNotiRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony DISPLAY TEXT RETURN INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the return result data for setup idle mode text proactive command.
*/
TelSatMeProblemType_t meProblem; /**<Me Problem Type */
}TelSatDiplayTextRetInfo_t;
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony APPLICATIONS RETURN DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the common return result data for applications proactive command.
*/
}appsRet; /**< common union result value */
}TelSatAppsRetInfo_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony CALL CONTROL CONFIRM DATA FOR CALL
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the call control confirm data for call.
*/
TelSatTextInfo_t ccp2; /**< Configuration Capability Parameter 2*/
} TelSatCallCtrlIndCallData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony CALL CONTROL CONFIRM DATA FOR SS
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the call control confirm data for ss.
*/
TelSatTextInfo_t ccp2; /**< Configuration Capability Parameter 2*/
} TelSatCallCtrlIndSsData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony CALL CONTROL CONFIRM DATA FOR USSD
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the call control confirm data for ussd.
*/
TelSatTextInfo_t ussdString; /**< ussd destination address*/
} TelSatCallCtrlIndUssdData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony READ FILE REQUEST DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the common call control confirm data.
*/
}u; /**< Union*/
} TelSatCallCtrlIndData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony MO SMS CONTROL CONFIRMATION DATA
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the mo sms control confirm data.
*/
TelSatTextTypeInfo_t tpDestAddr; /**<the TP_Destination_Address */
} TelSatMoSmCtrlIndData_t;
-
-///////////////////////////////////////////////////////////////////////////////////////////
// Telephony EVENT LIST INFO
-///////////////////////////////////////////////////////////////////////////////////////////
/**
* This structure defines the Event List Info.
*/
} u; /**<Union*/
} TelSatEventDownloadReqInfo_t;
-
-/*==================================================================================================
- FUNCTION PROTOTYPES
-==================================================================================================*/
-
#ifdef __cplusplus
}
#endif
/**
* @}
*/
-