app_private_data.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  1. #ifndef _APPLICATION_PRIVATE_DATA_H_
  2. #define _APPLICATION_PRIVATE_DATA_H_
  3. //#include "app_infra/event.h"
  4. //#include "app_infra/di_daemon.h"
  5. //#include "middlewares/ptnmng/ptnmng_if.h"
  6. //#include "app_guiobj_share.h"
  7. //#include "app_guiobj_mainmenu.h"
  8. //#include "middlewares/vcd/vcd_if.h"
  9. //#include "middlewares/cdda/cdda_if.h"
  10. //#include "resume.h"
  11. //#include "platform/pl_nvm_if.h"
  12. //#include "platform/isp.h"
  13. /*
  14. * \brief Define media type.
  15. */
  16. typedef enum
  17. {
  18. MEDIA_TYPE_NULL,
  19. MEDIA_TYPE_DATA_DISC,
  20. MEDIA_TYPE_CDDA,
  21. #ifdef KOK_SUPPORT
  22. MEDIA_TYPE_KOK,
  23. #endif
  24. MEDIA_TYPE_VCD,
  25. MEDIA_TYPE_SVCD,
  26. MEDIA_TYPE_DVD,
  27. MEDIA_TYPE_MINUSVR,
  28. MEDIA_TYPE_PLUSVR,
  29. MEDIA_TYPE_HDMV,
  30. MEDIA_TYPE_BD,
  31. #ifdef BDAV_SUPPORT //xh.song
  32. MEDIA_TYPE_BDAV,
  33. #endif
  34. #ifdef KODAK_PIC_MODE_SUPPORT //lgz 2011-6-3 21:26 add
  35. MEDIA_TYPE_KODAK_PIC,
  36. #endif
  37. }MediaType_e;
  38. #ifdef SMEDIO_APP_SUPPORT
  39. /*
  40. * \brief Define smedio app type
  41. */
  42. typedef enum {
  43. SMEDIO_APP_NETFLIX = 0,
  44. SMEDIO_APP_YOUTUBE,
  45. SMEDIO_APP_DLNA,
  46. #ifdef CINEMANOW_APP_SUPPORT
  47. SMEDIO_APP_CINEMANOW,
  48. #endif
  49. SMEDIO_APP_MAX
  50. } SmedioAppType_e;
  51. /*
  52. * \brief Define smedio app control block
  53. */
  54. typedef struct SmedioAppCtrlInfo_t_
  55. {
  56. SmedioAppType_e eAppType;
  57. }SmedioAppCtrlInfo_t;
  58. #endif
  59. /*
  60. * \brief Define file app type
  61. */
  62. typedef enum {
  63. FILE_APP_NULL = 0,
  64. FILE_APP_VIDEO,
  65. FILE_APP_AUDIO,
  66. FILE_APP_PHOTO,
  67. FILE_APP_EBOOK,
  68. #ifdef KOK_SUPPORT
  69. FILE_APP_KOK,
  70. FILE_APP_KOKN32,
  71. #endif
  72. #ifdef GAME_SUPPORT
  73. FILE_APP_GAME,
  74. #endif
  75. FILE_APP_CDDA,
  76. #ifdef SAMBA_SUPPORT
  77. FILE_APP_SMB,
  78. #endif
  79. #ifdef AIRPLAY_SUPPORT
  80. FILE_APP_AIRPLAY,
  81. #endif
  82. FILE_APP_MAX
  83. } FileAppType_e;
  84. typedef enum {
  85. FILE_APP_NORMAL = 0,
  86. FILE_APP_PREVIEW,
  87. FILE_APP_COPY,
  88. FILE_APP_DELETE,
  89. FILE_APP_RIPPING,
  90. FILE_APP_STATUS_MAX
  91. } FileAppStatus_e;
  92. /*
  93. * \brief Define disc app control block
  94. typedef struct DiscAppCtrlInfo_t_
  95. {
  96. TOC_INFO stVcdTrkInfo;
  97. }DiscAppCtrlInfo_t;
  98. */
  99. #ifdef SAMBA_SUPPORT
  100. #define MAX_NAME_LENGTH (17) //the max length of group/computer name
  101. #define MAX_ACCOUNT_LENGTH (21) //the max length of account text
  102. #define MAX_PWD_LENGTH (32) //the max length of password
  103. #define SMB_LOGININFO_COUNT (5)
  104. typedef struct
  105. {
  106. char szGroup[MAX_NAME_LENGTH];
  107. char szComputer[MAX_NAME_LENGTH];
  108. char szAccount[MAX_ACCOUNT_LENGTH];
  109. char szPwd[MAX_PWD_LENGTH];
  110. }SMB_LoginInfo_t;
  111. #endif
  112. #ifdef HLINK_SUPPORT
  113. typedef enum
  114. {
  115. HONMELINK_TYPE_NULL = 0,
  116. HONMELINK_TYPE_DLNASW,
  117. HONMELINK_TYPE_SMBSW,
  118. HONMELINK_TYPE_HLINK,
  119. HONMELINK_TYPE_DLNA,
  120. HONMELINK_TYPE_SMB
  121. }
  122. HLinkAPPType_e;
  123. #endif
  124. #ifdef AIRPLAY_SUPPORT
  125. typedef enum
  126. {
  127. AIRPLAY_TYPE_NULL = 0,
  128. AIRPLAY_TYPE_AUDIO,
  129. AIRPLAY_TYPE_VIDEO,
  130. AIRPLAY_TYPE_PHOTO,
  131. AIRPLAY_TYPE_MAX
  132. }AirPlayAPPType_e;
  133. #endif
  134. #ifdef SUPPORT_ISO_IMAGE
  135. typedef struct BrwListIndex_t_
  136. {
  137. UINT32 dCurActiveDirID;
  138. UINT32 dDirPgIdx;
  139. UINT32 dFilePgIdx;
  140. UINT32 bCurSelItemID;
  141. UINT32 dFileTotalCnt;
  142. UINT32 dIdxInMW;
  143. #ifdef SAMBA_SUPPORT
  144. SMB_LoginInfo_t stLoginInfo;
  145. #endif
  146. } BrwListIndex_t;
  147. typedef enum{
  148. IMAGE_PARAMETER_NONE,
  149. IMAGE_PARAMETER_UNSUPPORT,
  150. IMAGE_PARAMETER_MAX,
  151. }ImageEventPar_e; //lgz 2010/12/8 add
  152. #endif
  153. /*
  154. * \brief Define file app control block
  155. typedef struct FileAppCtrlInfo_t_
  156. {
  157. FileAppType_e eFileAppType;
  158. FileAppStatus_e eFileAppStatus;
  159. TOC_INFO stCDDATrkInfo;
  160. #ifdef SUPPORT_ISO_IMAGE
  161. BrwListIndex_t stListInfo;
  162. int dFileLoaderId;
  163. #endif
  164. }FileAppCtrlInfo_t;
  165. */
  166. #define SMARTUPGRADE_FROM_LOCAL 0
  167. #define SMARTUPGRADE_FROM_NET 1
  168. #define SMARTUPGRADE_CONNECT_ERROR 2
  169. #define SMARTUPGRADE_NET_ERROR 3
  170. #define SMARTUPGRADE_DOWNLOAD_ERROR 4
  171. #define DEVICE_PATH_LENGTH 256
  172. #define ROM_VERSION_LENGTH 32
  173. #define UPGRADING 2
  174. #define FILEVERLEN 10
  175. #define FILENAMELEN 32
  176. #define FILEADRLEN 32
  177. #define FILESIZELEN 32
  178. #define FILECKSUMLEN 32
  179. #define NVMVERSIONLEN 16
  180. #define NVMNAMELEN 32
  181. #define SMARTUPGRADE_LOADING 1
  182. #define SMARTUPGRADE_IDLE 2
  183. typedef enum {
  184. ISP_CONNECT_MSG,
  185. ISP_NET_FAIL_MSG,
  186. ISP_DOWNLOAD_FAIL_MSG,
  187. ISP_UPDATE_MSG,
  188. ISP_FIND_NET_BIN_MSG,
  189. ISP_FIND_BIN_MSG,
  190. ISP_GET_BIN_DONE_MSG,
  191. ISP_MSG_MAX
  192. }SmartUpgradeType_e;
  193. typedef enum{
  194. ISP_IF_NO_ACTIVE_SYS=0,
  195. ISP_IF_ACTIVE_SYS,
  196. ISP_IF_NO_ACTIVE_DISCSYS,
  197. ISP_IF_MAX
  198. }SmartUpgradeIFActSysType_e;
  199. typedef struct SmartUpgradeNvmVer_t_
  200. {
  201. char bVersion[NVMVERSIONLEN];
  202. char bName[NVMNAMELEN];
  203. }SmartUpgradeNvmVer_t;
  204. typedef struct SmartUpgradeHeaderInfo_t_
  205. {
  206. char bVersion[FILEVERLEN];
  207. char bName[FILENAMELEN];
  208. char bAddr[FILEADRLEN];
  209. char bSize[FILESIZELEN];
  210. char bChkSum[FILECKSUMLEN];
  211. } __attribute__((packed)) SmartUpgradeHeaderInfo_t;
  212. /*
  213. typedef struct SmartUpgradeFileHeader_t_
  214. {
  215. //const char *pId;//need mark;
  216. List_t stList;
  217. UINT16 wUsed;
  218. SmartUpgradeHeaderInfo_t stInfo;
  219. }SmartUpgradeHeader_t;
  220. typedef struct SmartUpgradeCtrlInfo_t_
  221. {
  222. UINT32 UpgradeType;
  223. UINT32 dMessage;
  224. UINT32 dParam;
  225. UINT32 dUpgradeState; //add by wumin
  226. UINT32 dUpgradeTotalSize;
  227. SmartUpgradeIFActSysType_e stFirst;
  228. char UpgradePath[DEVICE_PATH_LENGTH];
  229. SmartUpgradeNvmVer_t stNvmInfo;
  230. //SmartUpgradeHeader_t stFileHeader[UPGRADEFILES];//need mark
  231. List_t stListHead;
  232. UINT16 wListLen;
  233. UINT8 *pReadCacheBuf;
  234. UINT32 dReadCacheBufSize;
  235. UINT32 dHeaderInfoSize;
  236. }SmartUpgradeInfo_t;
  237. */
  238. #ifdef NET_SUPPORT
  239. /*
  240. * \brief Define file app type
  241. */
  242. typedef enum {
  243. NET_DRIVE_STATE_SHUT_DOWN,
  244. NET_DRIVE_STATE_BOOTUP,
  245. } NetDriveState_e;
  246. typedef struct NetDriveCtrlInfo_t_
  247. {
  248. NetDriveState_e eState;
  249. }NetDriveCtrlInfo_t;
  250. #ifdef NET_ET_SUPPORT
  251. /*
  252. * \brief Define et app type
  253. */
  254. typedef enum {
  255. ET_APP_NULL = 0,
  256. ET_APP_SETUP, /*for embedded thunder setup*/
  257. ET_APP_DOWNLOAD, /*for embedded thunder download*/
  258. #ifdef ET_SUPPORT_VOD
  259. ET_APP_VOD, /*for embedded thunder vod*/
  260. #endif
  261. ET_APP_DOWNLOAD_MGR, /*for embedded thunder download manager*/
  262. ET_APP_MAX
  263. } EtAppType_e;
  264. #ifdef ET_SUPPORT_VOD
  265. /*
  266. * \brief Define et vod type:movie or teleplay
  267. */
  268. typedef enum {
  269. ET_VOD_MOVE = 0,
  270. ET_VOD_TELEPLAY,
  271. ET_VOD_TYPE_MAX
  272. } EtVodType_e;
  273. #endif
  274. /*
  275. * \brief Define et app control block
  276. */
  277. typedef struct EtAppCtrlInfo_t_
  278. {
  279. EtAppType_e eEtAppType;
  280. #ifdef ET_SUPPORT_VOD
  281. EtVodType_e eEtVodType;
  282. #endif
  283. void* stDlPtnHdl;
  284. }EtAppCtrlInfo_t;
  285. #endif
  286. #ifdef NET_N32_SUPPORT
  287. /*
  288. * \brief Define n32 app type
  289. */
  290. typedef enum {
  291. N32_APP_NULL = 0,
  292. N32_APP_SETUP, /*for native32 web setup*/
  293. N32_APP_DOWNLOAD, /*for native32 web download*/
  294. N32_APP_DOWNLOAD_MGR, /*for native32 web download manager*/
  295. N32_APP_MAX
  296. } N32AppType_e;
  297. /*
  298. * \brief Define n32 app control block
  299. */
  300. typedef struct N32AppCtrlInfo_t_
  301. {
  302. N32AppType_e eN32AppType;
  303. }N32AppCtrlInfo_t;
  304. #endif
  305. #ifdef NET_VOD_SUPPORT
  306. /*
  307. * \brief Define Vod app type
  308. */
  309. typedef enum {
  310. #ifdef VOD_SINA_SUPPORT
  311. VOD_APP_SINA, /*for sina VOD support*/
  312. #endif
  313. #ifdef VOD_TUDOU_SUPPORT
  314. VOD_APP_TUDOU, /*for tudou VOD support*/
  315. #endif
  316. #ifdef VOD_VV8_SUPPORT
  317. VOD_APP_VV8, /*for vv8 VOD support*/
  318. #endif
  319. #ifdef VOD_GLOBAL_SUPPORT
  320. VOD_APP_GLOBAL, /*<!global vod support*/
  321. #endif
  322. VOD_APP_MAX
  323. } VodAppType_e;
  324. /*
  325. * \brief Define vod app control block
  326. */
  327. typedef struct VodAppCtrlInfo_t_
  328. {
  329. VodAppType_e eVodAppType;
  330. }VodAppCtrlInfo_t;
  331. #endif
  332. #ifdef NET_BROWSER_SUPPORT
  333. /*
  334. * \brief Define Browser Web entries app type
  335. */
  336. typedef enum{
  337. BROWSER_APP_DEFAULT = 0,
  338. BROWSER_APP_YOUKU,
  339. BROWSER_APP_TUDOU,
  340. BROWSER_APP_QIYI,
  341. BROWSEr_APP_SINA,
  342. BROWSER_APP_YOUMI,
  343. BROWSER_APP_YOUTUBE,
  344. BROWSER_APP_MAX
  345. }BrowserAppType_e;
  346. /*
  347. * \brief Define Browser Web entries app control block
  348. */
  349. typedef struct BrowserAppCtrlInfo_t_
  350. {
  351. BrowserAppType_e eBrowserAppType;
  352. }BrowserAppCtrlInfo_t;
  353. #endif
  354. #ifdef DLNA_SUPPORT
  355. /*
  356. * \brief Define dlna app type
  357. */
  358. typedef enum
  359. {
  360. #ifdef DLNA_DMP_SUPPORT
  361. PCLINK_APP_DMP, /*for dmp support*/
  362. #endif
  363. #ifdef DLNA_DMR_SUPPORT
  364. PCLINK_APP_DMR, /*for dmr support*/
  365. #endif
  366. PCLINK_APP_MAX
  367. } PclinkAppType_e;
  368. /*
  369. * \brief Define dlna app control block
  370. */
  371. typedef struct PclinkAppCtrlInfo_t_
  372. {
  373. PclinkAppType_e eAppType;
  374. } PclinkAppCtrlInfo_t;
  375. #endif
  376. #ifdef SUPPORT_WEB_APP
  377. /*
  378. * \brief Define smedio app type
  379. */
  380. typedef enum {
  381. #ifdef SUPPORT_NETFLIX
  382. WEB_APP_NETFLIX = 0,
  383. #endif
  384. #ifdef SUPPORT_YOUTUBE_LEANBACK
  385. WEB_APP_YOUTUBE,
  386. #endif
  387. WEB_APP_MAX
  388. } WebAppType_e;
  389. /*
  390. * \brief Define smedio app control block
  391. */
  392. typedef struct WebAppCtrlInfo_t_
  393. {
  394. WebAppType_e eAppType;
  395. }WebAppCtrlInfo_t;
  396. #endif
  397. #ifdef AIRPLAY_SUPPORT
  398. /*
  399. * \brief Define airplay app control block
  400. */
  401. typedef struct AirPlayAppCtrlInfo_t_
  402. {
  403. UINT32 dUrlAddr;
  404. UINT32 dVPosition; //for video play start position
  405. AirPlayAPPType_e eAirPlayApType;
  406. }AirPlayAppCtrlInfo_t;
  407. #endif
  408. #endif
  409. /*
  410. * \brief Define sys app control block, now it content disc app,file app
  411. */
  412. typedef struct SysAppCtrlInfo_t_
  413. {
  414. //FileAppCtrlInfo_t stFileAppCtrlInfo;
  415. //DiscAppCtrlInfo_t stDiscAppCtrlInfo;
  416. #ifdef SMEDIO_APP_SUPPORT
  417. SmedioAppCtrlInfo_t stSmedioCtrlInfo;
  418. #endif
  419. #ifdef NET_ET_SUPPORT
  420. EtAppCtrlInfo_t stEtAppCtrlInfo;
  421. #endif
  422. //SmartUpgradeInfo_t stSmartUpgradeInfo;
  423. #ifdef NET_N32_SUPPORT
  424. N32AppCtrlInfo_t stN32AppCtrlInfo;
  425. #endif
  426. #ifdef NET_VOD_SUPPORT
  427. VodAppCtrlInfo_t stVodAppCtrlInfo;
  428. #endif
  429. #ifdef NET_BROWSER_SUPPORT
  430. BrowserAppCtrlInfo_t stBrowserAppCtrlInfo;
  431. #endif
  432. #ifdef DLNA_SUPPORT
  433. PclinkAppCtrlInfo_t stPclinkAppCtrlInfo;
  434. #endif
  435. #ifdef SUPPORT_WEB_APP
  436. WebAppCtrlInfo_t stWebCtrlInfo;
  437. #endif
  438. #ifdef AIRPLAY_SUPPORT
  439. #ifndef NET_SUPPORT
  440. #error NET_SUPPORT not defined in product.conf!!!
  441. #endif
  442. AirPlayAppCtrlInfo_t stAirPlayInfo;
  443. #endif
  444. }SysAppCtrlInfo_t;
  445. /*
  446. * \brief Define system drive ctrl block
  447. */
  448. typedef struct SysDriveCtrlInfo_t_
  449. {
  450. void *stSysPrePtnHnd; /*!< previous system activate partition handle*/
  451. void *stSysCurPtnHnd; /*!< current system activate partition handle*/
  452. }SysDriveCtrlInfo_t;
  453. /**
  454. * \brief Main menu type,there are three type now.
  455. */
  456. typedef enum _MainMenuType_e {
  457. MAIN_MENU_TYPE_HOME = 0,
  458. #ifdef NET_SUPPORT
  459. #ifdef SUPPORT_NETWORK_MAIN_MENU
  460. MAIN_MENU_TYPE_NETWORK,
  461. #endif
  462. #ifdef NET_ET_SUPPORT
  463. MAIN_MENU_TYPE_NET_ET,
  464. #endif
  465. #ifdef NET_N32_SUPPORT
  466. MAIN_MENU_TYPE_NET_N32,
  467. #endif
  468. #ifdef NET_VOD_SUPPORT
  469. MAIN_MENU_TYPE_NET_VOD,
  470. #endif
  471. #ifdef NET_BROWSER_SUPPORT
  472. MAIN_MENU_TYPE_NET_BROWSER,
  473. #endif
  474. #ifdef SUPPORT_PCLINK_MAIN_MENU
  475. MAIN_MENU_TYPE_NET_PCLINK,
  476. #endif
  477. #endif
  478. MAIN_MENU_TYPE_MAX,
  479. } MainMenuType_e;
  480. typedef enum _DIHandleType_e {
  481. DI_Handle_PHYSICAL,
  482. DI_Handle_FILE_LOADER,
  483. DI_Handle_TYPE_MAX,
  484. } DIHandleType_e;
  485. typedef enum _LastAppState_e{
  486. LastApp_None = 0,
  487. LastApp_Normal =1,
  488. LastApp_Dvb =2,
  489. LastApp_Game =3,
  490. LastApp_MAX =4,
  491. }LastAppState_e;
  492. /**
  493. * \brief Define DivxDrm diag guiobj types
  494. */
  495. typedef enum {
  496. DIAG_DIVX_DRM_REGISTER,
  497. DIAG_DIVX_DRM_DEREGISTER_CONFIRM,
  498. DIAG_DIVX_DRM_DEREGISTER,
  499. DIAG_DIVX_DRM_TYPE_MAX
  500. } DivxDrmDiagType_e;
  501. #ifdef FORMAT_SUPPORT
  502. /**
  503. * \brief Define format diag guiobj types
  504. */
  505. typedef enum {
  506. FORMAT_DIAG_CONFIRM,
  507. FORMAT_DIAG_PROCESSBAR,
  508. FORMAT_DIAG_MAX,
  509. } FormatDiagType_e;
  510. /*
  511. * \brief Define common format gobj globle control info
  512. */
  513. typedef struct FormatGobj_t_
  514. {
  515. UINT32 dFormatMenuTimeOut;
  516. UINT8 bFormatErrorFlag;
  517. UINT8 bUpdateProcessbarFlag;
  518. UINT8 bUpdateInfoFlag;
  519. }FormatGobj_t;
  520. #endif
  521. /*
  522. * \brief Define common main gobj globle control info
  523. */
  524. typedef struct MainGobj_t_
  525. {
  526. MainMenuType_e eMenuType;
  527. }MainGobj_t;
  528. /*
  529. * \brief Define common main gobj globle control info
  530. */
  531. typedef struct SourceGobj_t_
  532. {
  533. UINT32 dMenuTimeOut;
  534. }SourceGobj_t;
  535. typedef struct MainMenuGobj_t_
  536. {
  537. LastAppState_e eLastAppState;
  538. }MainMenuGobj_t;
  539. typedef struct DivxDrmGobj_t_
  540. {
  541. DivxDrmDiagType_e eDivxDiagType;
  542. UINT8 bRentalConfirm;/*for matis bug 175023*/
  543. }DivxDrmGobj_t;
  544. /*
  545. * \brief Define common setup gobj globle control info
  546. */
  547. typedef struct SetupGobj_t_
  548. {
  549. UINT8 dIsBackFromSpeaker;
  550. UINT8 dIsBackFromPppoe;
  551. UINT8 dIsBackFromNetwork;
  552. UINT8 dIsBackFromDivx;
  553. #ifdef NET_WIFI_SUPPORT
  554. UINT8 bWifiDongleAtt;// 1: is attached 0: is detached
  555. #endif
  556. #ifdef NET_ET_SUPPORT
  557. UINT8 dIsFromET;
  558. #endif
  559. #ifdef NET_N32_SUPPORT
  560. UINT8 dIsFromN32;
  561. #endif
  562. #ifdef NET_PHOTO_SUPPORT
  563. UINT8 dIsFromNetPhoto;
  564. #endif
  565. }SetupGobj_t;
  566. /*
  567. * \brief Define common setup gobj globle control info
  568. */
  569. typedef struct SuperSetupGobj_t_
  570. {
  571. UINT32 dSuperPW[4];
  572. }SuperSetupGobj_t;
  573. typedef enum
  574. {
  575. COMMON_GOBJ_DIAG_N32EXIT,
  576. COMMON_GOBJ_DIAG_ETEXIT,
  577. #ifdef ET_SUPPORT_VOD
  578. COMMON_GOBJ_DIAG_ETDL2VOD,
  579. #endif
  580. COMMON_GOBJ_DIAG_MAX
  581. }ComGobjDiagType_e;
  582. typedef enum
  583. {
  584. HOME_CHANGE_CONTENT2NETWORK,
  585. HOME_CHANGE_CONTENT2HOME,
  586. HOME_CHANGE_MAX
  587. }HomeMenuChgType_e;
  588. typedef enum
  589. {
  590. DISC_LOAD_DOWN = 0,
  591. DISC_LOADING,
  592. DISC_LOADING_MAX
  593. }DiscLoadingState_e;
  594. typedef enum
  595. {
  596. PHYSICAL_TRAY_IN = 0,
  597. PHYSICAL_TRAY_OUT,
  598. TRAY_MAX
  599. }TrayState_e;
  600. #ifdef KOK_SUPPORT //xy.zhu add for 0132415 /0132109 2011-04-27
  601. typedef enum
  602. {
  603. KOK_DISC_IN = 0,
  604. KOK_DISC_OUT,
  605. KOK_DISC_MAX
  606. }KokDiscState_e;
  607. #endif
  608. typedef enum APBrowserMode_t_ {
  609. AP_BROWSER_NORMAL=0, /*!< directory is Tranditional and Normal Browser */
  610. AP_BROWSER_SPREADOUT=1, /*!< directory are spreaded out*/
  611. }APBrowserMode_t;
  612. /*
  613. * \brief Define common gobj globle control info
  614. */
  615. typedef struct ComGobj_t_
  616. {
  617. MainGobj_t stMainGobj;
  618. SetupGobj_t stSetupGobj;
  619. SuperSetupGobj_t stSuperSetupGobj;
  620. SourceGobj_t stSourceGobj;
  621. #ifdef FORMAT_SUPPORT
  622. FormatGobj_t stFormatGobj;
  623. #endif
  624. MainMenuGobj_t stMainMenuGobj;
  625. ComGobjDiagType_e eDiagType;
  626. HomeMenuChgType_e eChgType;
  627. DivxDrmGobj_t stDivxDrmGobj;
  628. /*......*/
  629. /*add common gobj control info here*/
  630. }ComGobj_t;
  631. #define IPOD_IN 1
  632. #define IPOD_OUT 0
  633. typedef struct MainAppUIEventHandlerInfo_t_
  634. {
  635. // members can be added according to requirements
  636. //TOC_INFO stPlayerInfo;/*this var should move to DiscAppCtrlInfo_t*/
  637. UINT32 dDevIdx;
  638. UINT32 dDetachDevIdx;
  639. UINT32 dCbkDetachDevIdx;
  640. UINT32 dIsBWMode32BitG2DOnly; //added by ted.chen
  641. UINT8 uIsAutoActiveFileApp; //added by heng.zhu
  642. UINT8 bIsDiscEjecting; //add by george.chang 2010.0929
  643. UINT32 bEjectPendingAction; //add by george.chang 2010.0929
  644. UINT8 bDiscResumeFlag; //added by ted.chen
  645. UINT8 bInETMode; //added by ted.chen
  646. UINT8 bDevmode;//add by jiangxl
  647. UINT32 dAppEvent;
  648. UINT8 bIsHoldHomeMenu; //add by heng.zhu_c1.
  649. UINT8 bIsSetupSettingChanged;//xieruirong add for PD2 mantis 0005882
  650. UINT8 bUsb_load_bdmv_enable; //add by george.chang 2011.0111
  651. UINT32 dVodType;
  652. UINT8 bServoStarted;//jiangxl for makesure check servo frist when system boot up;
  653. #ifdef SUPPORT_PLAYER_STB_DVB_T//lr.wu 11-04-12 if exit from DVB,ptnmgr thread is scaning partiton,show FILE loading
  654. UINT8 bPtnMngStatus;
  655. #endif
  656. DiscLoadingState_e eDiscState; //added by heng.zhu
  657. TrayState_e eTrayState; //added by heng.zhu
  658. SysDriveCtrlInfo_t stSysDriveCtrlInfo;
  659. SysAppCtrlInfo_t stSysAppCtrlInfo;
  660. ComGobj_t stComGobj;
  661. //DI_Handle DIHandle[DI_Handle_TYPE_MAX];
  662. #ifdef NET_SUPPORT
  663. NetDriveCtrlInfo_t stNetDriveCtrlInfo;
  664. #endif
  665. #ifdef KOK_SUPPORT //xy.zhu add for 0132415 /0132109 2011-04-27
  666. KokDiscState_e eKokDiscState;
  667. #endif
  668. #if defined(NET_WFD_SUPPORT)||defined(CUST_DEVICE_NAME_SUPPORT)
  669. UINT8 bP2PEnableFlag; //added by hong.zhang for P2P enable flag
  670. UINT8 bDongleReady; //added by hong.zhang for Dongle Ready flag
  671. #endif
  672. #ifdef HLINK_SUPPORT
  673. HLinkAPPType_e eHlinkCurApType;
  674. #endif
  675. #ifdef AIRPLAY_SUPPORT
  676. AirPlayAPPType_e eAirPlayApType;
  677. #endif
  678. //#if (SUPPORT_iPOD_DOCKING==1)//wangdeyou for ipod status
  679. //UINT8 bIpodStatus;
  680. //#endif
  681. DivxDrmDiagType_e eDivxDrmDiagType;
  682. #ifdef FORMAT_SUPPORT
  683. FormatDiagType_e eFormatDiagType;//added by hm.liang
  684. char bFormatStyle[10];//added by hm.liang
  685. UINT8 bIsDevFormating;
  686. #endif
  687. #if defined (SUPPORT_FA_TEST) || defined (SUPPORT_SERVO_DEBUG_TOOL)
  688. UINT8 bIsFaTestMode;
  689. #endif
  690. UINT8 bNeedDrawSystemBGInHomeMenu; //jamesliu@20120223, for first time bootup and no disc, do not need to draw BG in home menu
  691. UINT8 bVideoDimensionChange; //jamesliu@20120514 if resolution need to re-judge cause by PE dimension change
  692. UINT32 dSetupMenuLevelIndex;//jamesliu@20121018, for direct go to setup menu index (L1 | L2 in 32 bit)
  693. }MainAppUIEventHandlerInfo_t;
  694. #endif