source: svn/trunk/zasc/app_c/DST_CommonAPI.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

File size: 3.8 KB
Line 
1#ifndef __DST_COMMON_API_H__
2#define __DST_COMMON_API_H__
3
4#include "DST_Common.h"
5#include "DST_WindowType.h"
6#include "DST_WindowEvent.h"
7#include "sqlite3.h"
8
9
10#define TEXT_LENGTH_MAX 50
11#if 0
12____Channel_APIs___()
13#endif
14
15// ÇöÀç ä³ÎÀÇ DB »óÀÇ À§Ä¡¸¦ ¹ÝȯÇÑ´Ù.
16// ½ÇÆÐÇϸé -1 ¼º°øÇϸé 0ÀÌ»óÀÇ ¼ö¸¦ °¡Áø´Ù.
17int DST_GetCurrentChannelIndex(void);
18
19// ä³ÎÀÇ µðºñ »óÀÇ À§Ä¡¸¦ °¡Á®¿Â´Ù.
20// ½ÇÆÐÇϸé -1 ¼º°øÇϸé 0ÀÌ»óÀÇ ¼ö¸¦ °¡Áø´Ù.
21//int DST_GetChannelIndex(DS_U8 RF, DS_U16 Minor, bool b1Seg);
22//int DST_GetChannelIndex(DS_U8 RF, DS_U16 SourceID);
23
24// °¡Àå ³·Àº Á֯ļö ¹øÈ£
25DS_U8 DST_MinRF();
26
27// °¡Àå ³ôÀº Á֯ļö ¹øÈ£
28DS_U8 DST_MaxRF();
29
30// ÇöÀçä³ÎÀÌ ¸®¸ðÄÜÀ¸·Î Á¢±Ù °¡´ÉÇÑ ´ëÇ¥ ä³ÎÀÎÁö?
31//bool DST_IsPrimaryChannel();
32//bool DST_IsPrimaryChannel(DS_U8 RF, DS_U8 Minor);
33
34#if 0
35____Image_APIs___()
36#endif
37
38// À̹ÌÁöÀÇ ÆøÀ» °¡Á®¿Â´Ù.
39int DST_GetImageWidth(DS_U8 *Image);
40
41// À̹ÌÁöÀÇ ³ôÀ̸¦ °¡Á®¿Â´Ù.
42int DST_GetImageHeight(DS_U8 *Image);
43
44#if 0
45____EPG_APIs___()
46#endif
47
48// ½Ã°£ ¹üÀ§¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­À» °¡Á®¿Â´Ù.
49int DST_GetTimeDurationString(int date, int start, DS_U32 duration, DS_U16* strText);
50
51// ½Ã°£À» ³ªÅ³»´Â ¹®ÀÚ¿­À» °¡Á®¿Â´Ù.
52//int DST_GetTimeString(int start, DS_U32 duration, DS_U16* strText);
53
54// ÇöÀç ¹æ¼ÛÁßÀÎ ÇÁ·Î±×·¥ÀÇ À̸§°ú ŸÀӵ෹À̼ÇÀ» ¹®ÀÚ¿­·Î °¡Á®¿Â´Ù.
55//void DST_GetProgramInfoString(DS_U8 *cur_info, DS_U16 *duration);
56
57#if 0
58____Aspect_APIs___()
59#endif
60
61// ÇöÀç ÇØ»óµµ Á¤º¸¸¦ °¡Á®¿Â´Ù.
62// ¹Ýȯ°ªÀÌ 0À̸é ÇØ»óµµ Á¤º¸ ¾øÀ½
63int DST_GetResolutionInfo();
64
65// ÇöÀç ºñµð¿À°¡ Ç÷¡ÀÌ ÁßÀÎÁö ¹ÝȯÇÑ´Ù.
66bool DST_IsVideoPlay();
67
68// ÇöÀç ¹æ¼ÛÁßÀÎ ºñµð¿À°¡ HD ¹æ¼ÛÀΰ¡?
69bool DST_GetHDInfo();
70
71#if 0
72____CC_APIs___()
73#endif
74
75// ÇöÀç CC º¸¿©ÁֱⰡ °¡´ÉÇѰ¡?
76bool DST_GetCCInfo();
77
78#if 0
79____Date_Time_APIs___()
80#endif
81
82// ¿äÀÏ ¹®ÀÚ¿­À» °¡Á®¿Â´Ù.
83// 0(ÀÏ¿äÀÏ)-6(Åä¿äÀ×)
84DS_U16 *DST_GetDayOfWeakString(int nDayOfWeak);
85
86// °¢ ´ÞÀÇ À̸§À» °¡Á®¿Â´Ù.
87// 1-12
88DS_U16 *DST_GetMonthOfYearString(int nMonthOfYear);
89
90#if 0
91____Brightness_APIs___()
92#endif
93
94// ¹à±â ¼³Á¤À» ÇÑ´Ù.
95// 0(20) 1(40) 2(60) 3(80) 4(100)
96void DST_SetBrightness(DS_U8 value);
97
98#if 0
99____Power_APIs___()
100#endif
101
102void DST_PowerDown(void);
103
104#if 0
105____Country_APIs___()
106#endif
107// ±¹°¡Äڵ带 ¹®ÀÚ¿­·Î ¹ÝȯÇÑ´Ù.
108DS_U16* DST_GetISOLanguageName(DS_U8 nNumber);
109// 32ºñÆ® ±¹°¡¸¦ 8ºñÆ® ±¹°¡ÄÚµå·Î º¯È¯ÇÑ´Ù.
110DS_U8 DST_GetLangCodeFromISO639String(char* code);
111DS_U8 DST_GetLangCodeFromISO639(DS_U32 iso639);
112
113#if 0
114____String_APIs___()
115#endif
116
117void strcpy16(DS_U16* des, DS_U16* src);
118
119int strcmp16(DS_U16* des, DS_U16* src);
120
121void strcpy32(DS_U32* des, DS_U32* src);
122
123unsigned strlen16(DS_U16 *str);
124
125unsigned strlen32(DS_U32 *str);
126
127void str2uni(DS_U16* des, char* src);
128
129void str232(DS_U32* des, char* src);
130
131void uni232(DS_U32* des, DS_U16* src);
132
133void strcat16(DS_U16* des, DS_U16* src);
134void strcat16_8(DS_U16* des, char* src);
135
136#if 0
137____Reset_APIs___()
138#endif
139#define RESET_NO                0
140#define RESET_USER              1
141
142void DST_Reset(const char * function);
143
144#if 0
145____Item_Scroll_APIs____()
146#endif
147void InitItemValues(DS_U16 listNum, DS_U16 select, DS_U16 *start, DS_U16 *cursor);
148// void ItemDecrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step=1);
149void ItemDecrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step);
150//void ItemIncrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step=1);
151void ItemIncrease(DS_U16 itemNum, DS_U16 listNum, DS_U16 *start, DS_U16 *select, DS_U16 *cursor, DS_U16 step);
152
153
154#if 0
155____SQLITE___()
156#endif
157
158#define USED_DB 0
159
160extern char *DEFAULT_DB;
161extern sqlite3 *DST_DB;
162bool DST_OpenDB(sqlite3 **db, char *path);
163int DST_GetTable(sqlite3 *db, char *query, char ***resultTable, int *col_count, int *row_count);
164void DST_GetFieldValue(char **resultTable, int row, int totalColNum, const char* field, char **returnValue);
165
166
167DS_U32 DST_crc32 (DS_U8 *data, int len);
168
169#endif // __DST_COMMON_API_H__
Note: See TracBrowser for help on using the repository browser.