123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- /*****************************************************************************
- ** File: main_app_external.h
- **
- ** Description:
- **
- ** Copyright(c) 2008 Sunmedia Technologies - All Rights Reserved
- **
- ** Author : qin.he
- **
- ** $Id: $
- *****************************************************************************/
- #ifndef _APPLICAION_MAIN_APP_EXTERNAL_T_
- #define _APPLICAION_MAIN_APP_EXTERNAL_T_
- #include "al_fw.h"
- #ifdef CONFIG_SUPPORT_PVR
- #include "mid_recorder.h"
- #endif
- #define MAINAPP_DATABASE_NOSYNC (2<<16)
- typedef enum
- {
- ENTERSTANDBY_NOMAL = 0,
- ENTERSTANDBY_UPGRADE,
- ENTERSTANDBY_MAX,
- }EnterStandbyType_e;
- /*****************************************************************************
- ** FUNCTION : MAINAPP_InitFlow
- **
- ** DESCRIPTION :
- ** whole system initialize flow
- **
- ** PARAMETERS :
- ** param : total sys app number
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- int MAINAPP_InitFlow(void *param);
- int MAINAPP_EnterStandby(EnterStandbyType_e type);
- /*****************************************************************************
- ** FUNCTION : MAINAPP_FinalizeFlow
- **
- ** DESCRIPTION :
- ** whole system finalize flow
- **
- ** PARAMETERS :
- ** dParam - Finalize flow
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- int MAINAPP_FinalizeFlow(UINT32 dParam);
- /*****************************************************************************
- ** FUNCTION : MAINAPP_OnTimerUpdate
- **
- ** DESCRIPTION :
- ** main app 100ms message handler
- **
- ** PARAMETERS :
- ** None
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- int MAINAPP_OnTimerUpdate(void);
- /*****************************************************************************
- ** FUNCTION : MAINAPP_OnEvent
- **
- ** DESCRIPTION :
- ** main app external event handler
- **
- ** PARAMETERS :
- ** dMessage : message
- ** dParam : the parameter for dMessage
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- int MAINAPP_OnEvent(UINT32 dMessage, UINT32 dParam);
- /*****************************************************************************
- ** FUNCTION : _MAINAPP_FW_Callback
- **
- ** DESCRIPTION :
- ** Process messages received from AFW Framework
- **
- ** PARAMETERS :
- ** event - Event sent by FW component
- ** param - User parameter
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- void MAINAPP_FW_Callback(AFW_event_t event, void *param);
- /*****************************************************************************
- ** FUNCTION : MAINAPP_FW_GetContext
- **
- ** DESCRIPTION :
- ** call back use to read/write information
- **
- ** PARAMETERS :
- ** ContextType - context type
- ** op - read/write
- ** pContext - callback
- ** Param - User parameter
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- al_uint32 MAINAPP_FW_GetContext(AL_FW_Context_Type_t ContextType, al_uint32 opera,al_void * pContext, al_uint32 Param);
- /*****************************************************************************
- ** FUNCTION : MAINAPP_GetPowerOffState
- **
- ** DESCRIPTION :
- ** Get power off state
- **
- ** PARAMETERS :
- ** None
- **
- ** RETURN VALUES:
- ** g_bPowerOffFlag: power off state
- *****************************************************************************/
- Boolean MAINAPP_GetPowerOffState(void);
- void MAINAPP_SetPowerOffState(Boolean PowerOffFlag);
- void tv_SetSysTimetoRTC(void);
- void umf_GetData(void);
- void tv_SetBaseTimetoSystem(time_t rtcsec);
- #ifdef CONFIG_SUPPORT_PVR
- int _RecorderList_Callback(MID_PVRRecListParseMsg_t dPVRRecListCallbackType);
- #endif
- void MAINAPP_AddEevnetToTable(UINT32 dMessage,UINT32 dParm);
- void MAINAPP_ResendEventTableInTransition(void);
- #ifdef CONFIG_SUPPORT_MIRACAST
- int WriteP2pConfigToFlash(void);
- INT32 LoadP2pConfigFromFlash(void);
- #endif
- #ifdef CONFIG_KEYPAD_SINGLE_REUSE
- void APP_GetSingleKeyPadEvent(UINT32 *dMessage);
- #endif
- #endif
|