app_guiobj_nativegame.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /********************************************************************
  2. ** File Name: app_guiobj_nativegame.h
  3. **
  4. ** File Description: The header file of native game gui object
  5. **
  6. ** Copyright(c) 2009 Sunplus Technologies - All Rights Reserved
  7. **
  8. ********************************************************************/
  9. #ifndef _APP_GUIOBJ_NATIVEGAME_H_
  10. #define _APP_GUIOBJ_NATIVEGAME_H_
  11. /********************************************************************
  12. Including Files
  13. ********************************************************************/
  14. #include <stdio.h>
  15. #include <string.h>
  16. #include <ctype.h>
  17. #include <types.h>
  18. #include "app_com_list.h"
  19. /********************************************************************
  20. Type definitions
  21. ********************************************************************/
  22. #define GAMELIST_PAGE_SIZE (10 )
  23. #define GAMELIST_LENGTH (255)
  24. #define FLASH_GAME_STATUS (1<<0)/* 1 means now playing flash game, 0 mean not */
  25. #define LIB_INIT_STATUS (1<<1)/* 1 means aL_middleware init success , 0 means fail */
  26. #define GAME_LIST_STATUS (1<<2)/* 1 means now need open game list ui after change source , 0 mean not */
  27. #define FLAG_GAME (APP_GUIOBJ_GameInfo()->flag)
  28. typedef struct MM_GameListHandle_t_
  29. {
  30. HWND h_GameList;
  31. HWND h_Srcollbar;
  32. } MM_GameListHandle_t;
  33. typedef struct GameListCtrlData_t_
  34. {
  35. DVB_COM_LIST stList;
  36. UINT32 dGameNum ;
  37. char** pGamelist; /* Number of directories */
  38. UINT32 flag ;
  39. } GameListCtrlData_t;
  40. #define SET_FILE_FLAG(STATUS,dFlag) (STATUS = dFlag)
  41. #define ADD_FILE_FLAG(STATUS,dFlag) (STATUS |= dFlag)
  42. #define REMOVE_FILE_FLAG(STATUS,dFlag) (STATUS &= (~dFlag))
  43. #define GET_FILE_FLAG(STATUS) (STATUS)
  44. /********************************************************************
  45. Extern Global Functions
  46. ********************************************************************/
  47. GameListCtrlData_t* APP_GUIOBJ_GameInfo(void);
  48. int APP_GUIOBJ_NativeGame_GetCurrSource(APP_Source_Type_t *eSource);
  49. #endif