#ifndef __DST_COMMON_API_H__ #define __DST_COMMON_API_H__ #include "DST_Common.h" #include "DST_WindowType.h" #include "DST_WindowEvent.h" #include "sqlite3.h" #define TEXT_LENGTH_MAX 50 #if 0 ____Channel_APIs___() #endif // ÇöÀç ä³ÎÀÇ DB »óÀÇ À§Ä¡¸¦ ¹ÝȯÇÑ´Ù. // ½ÇÆÐÇϸé -1 ¼º°øÇϸé 0ÀÌ»óÀÇ ¼ö¸¦ °¡Áø´Ù. int DST_GetCurrentChannelIndex(void); // ä³ÎÀÇ µðºñ »óÀÇ À§Ä¡¸¦ °¡Á®¿Â´Ù. // ½ÇÆÐÇϸé -1 ¼º°øÇϸé 0ÀÌ»óÀÇ ¼ö¸¦ °¡Áø´Ù. //int DST_GetChannelIndex(DS_U8 RF, DS_U16 Minor, bool b1Seg); //int DST_GetChannelIndex(DS_U8 RF, DS_U16 SourceID); // °¡Àå ³·Àº Á֯ļö ¹øÈ£ DS_U8 DST_MinRF(); // °¡Àå ³ôÀº Á֯ļö ¹øÈ£ DS_U8 DST_MaxRF(); // ÇöÀçä³ÎÀÌ ¸®¸ðÄÜÀ¸·Î Á¢±Ù °¡´ÉÇÑ ´ëÇ¥ ä³ÎÀÎÁö? //bool DST_IsPrimaryChannel(); //bool DST_IsPrimaryChannel(DS_U8 RF, DS_U8 Minor); #if 0 ____Image_APIs___() #endif // À̹ÌÁöÀÇ ÆøÀ» °¡Á®¿Â´Ù. int DST_GetImageWidth(DS_U8 *Image); // À̹ÌÁöÀÇ ³ôÀ̸¦ °¡Á®¿Â´Ù. int DST_GetImageHeight(DS_U8 *Image); #if 0 ____EPG_APIs___() #endif // ½Ã°£ ¹üÀ§¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­À» °¡Á®¿Â´Ù. int DST_GetTimeDurationString(int date, int start, DS_U32 duration, DS_U16* strText); // ½Ã°£À» ³ªÅ³»´Â ¹®ÀÚ¿­À» °¡Á®¿Â´Ù. //int DST_GetTimeString(int start, DS_U32 duration, DS_U16* strText); // ÇöÀç ¹æ¼ÛÁßÀÎ ÇÁ·Î±×·¥ÀÇ À̸§°ú ŸÀӵ෹À̼ÇÀ» ¹®ÀÚ¿­·Î °¡Á®¿Â´Ù. //void DST_GetProgramInfoString(DS_U8 *cur_info, DS_U16 *duration); #if 0 ____Aspect_APIs___() #endif // ÇöÀç ÇØ»óµµ Á¤º¸¸¦ °¡Á®¿Â´Ù. // ¹Ýȯ°ªÀÌ 0À̸é ÇØ»óµµ Á¤º¸ ¾øÀ½ int DST_GetResolutionInfo(); // ÇöÀç ºñµð¿À°¡ Ç÷¡ÀÌ ÁßÀÎÁö ¹ÝȯÇÑ´Ù. bool DST_IsVideoPlay(); // ÇöÀç ¹æ¼ÛÁßÀÎ ºñµð¿À°¡ HD ¹æ¼ÛÀΰ¡? bool DST_GetHDInfo(); #if 0 ____CC_APIs___() #endif // ÇöÀç CC º¸¿©ÁֱⰡ °¡´ÉÇѰ¡? bool DST_GetCCInfo(); #if 0 ____Date_Time_APIs___() #endif // ¿äÀÏ ¹®ÀÚ¿­À» °¡Á®¿Â´Ù. // 0(ÀÏ¿äÀÏ)-6(Åä¿äÀ×) DS_U16 *DST_GetDayOfWeakString(int nDayOfWeak); // °¢ ´ÞÀÇ À̸§À» °¡Á®¿Â´Ù. // 1-12 DS_U16 *DST_GetMonthOfYearString(int nMonthOfYear); #if 0 ____Brightness_APIs___() #endif // ¹à±â ¼³Á¤À» ÇÑ´Ù. // 0(20) 1(40) 2(60) 3(80) 4(100) void DST_SetBrightness(DS_U8 value); #if 0 ____Power_APIs___() #endif void DST_PowerDown(void); #if 0 ____Country_APIs___() #endif // ±¹°¡Äڵ带 ¹®ÀÚ¿­·Î ¹ÝȯÇÑ´Ù. DS_U16* DST_GetISOLanguageName(DS_U8 nNumber); // 32ºñÆ® ±¹°¡¸¦ 8ºñÆ® ±¹°¡ÄÚµå·Î º¯È¯ÇÑ´Ù. DS_U8 DST_GetLangCodeFromISO639String(char* code); DS_U8 DST_GetLangCodeFromISO639(DS_U32 iso639); #if 0 ____String_APIs___() #endif void strcpy16(DS_U16* des, DS_U16* src); int strcmp16(DS_U16* des, DS_U16* src); void strcpy32(DS_U32* des, DS_U32* src); unsigned strlen16(DS_U16 *str); unsigned strlen32(DS_U32 *str); void str2uni(DS_U16* des, char* src); void str232(DS_U32* des, char* src); void uni232(DS_U32* des, DS_U16* src); void strcat16(DS_U16* des, DS_U16* src); void strcat16_8(DS_U16* des, char* src); #if 0 ____Reset_APIs___() #endif #define RESET_NO 0 #define RESET_USER 1 void DST_Reset(const char * function); #if 0 ____Item_Scroll_APIs____() #endif void InitItemValues(DS_U16 listNum, DS_U16 select, DS_U16 *start, DS_U16 *cursor); // void ItemDecrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step=1); void ItemDecrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step); //void ItemIncrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step=1); void ItemIncrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step); #if 0 ____SQLITE___() #endif #define USED_DB 0 extern char *DEFAULT_DB; extern sqlite3 *DST_DB; bool DST_OpenDB(sqlite3 **db, char *path); int DST_GetTable(sqlite3 *db, char *query, char ***resultTable, int *col_count, int *row_count); void DST_GetFieldValue(char **resultTable, int row, int totalColNum, const char* field, char **returnValue); DS_U32 DST_crc32 (DS_U8 *data, int len); #endif // __DST_COMMON_API_H__