/******************************************************************** ** File Name: app_guiobj_nativegame.h ** ** File Description: The header file of native game gui object ** ** Copyright(c) 2009 Sunplus Technologies - All Rights Reserved ** ********************************************************************/ #ifndef _APP_GUIOBJ_NATIVEGAME_H_ #define _APP_GUIOBJ_NATIVEGAME_H_ /******************************************************************** Including Files ********************************************************************/ #include #include #include #include #include "app_com_list.h" /******************************************************************** Type definitions ********************************************************************/ #define GAMELIST_PAGE_SIZE (10 ) #define GAMELIST_LENGTH (255) #define FLASH_GAME_STATUS (1<<0)/* 1 means now playing flash game, 0 mean not */ #define LIB_INIT_STATUS (1<<1)/* 1 means aL_middleware init success , 0 means fail */ #define GAME_LIST_STATUS (1<<2)/* 1 means now need open game list ui after change source , 0 mean not */ #define FLAG_GAME (APP_GUIOBJ_GameInfo()->flag) typedef struct MM_GameListHandle_t_ { HWND h_GameList; HWND h_Srcollbar; } MM_GameListHandle_t; typedef struct GameListCtrlData_t_ { DVB_COM_LIST stList; UINT32 dGameNum ; char** pGamelist; /* Number of directories */ UINT32 flag ; } GameListCtrlData_t; #define SET_FILE_FLAG(STATUS,dFlag) (STATUS = dFlag) #define ADD_FILE_FLAG(STATUS,dFlag) (STATUS |= dFlag) #define REMOVE_FILE_FLAG(STATUS,dFlag) (STATUS &= (~dFlag)) #define GET_FILE_FLAG(STATUS) (STATUS) /******************************************************************** Extern Global Functions ********************************************************************/ GameListCtrlData_t* APP_GUIOBJ_GameInfo(void); int APP_GUIOBJ_NativeGame_GetCurrSource(APP_Source_Type_t *eSource); #endif