blob: 82cb505ce9adf8410278ab192a31713d583e0853
1 | // |
2 | // |
3 | // amlogic 2013 |
4 | // |
5 | // @ Project : tv |
6 | // @ File Name : CTvRegion.h |
7 | // @ Date : 2013-11 |
8 | // @ Author : |
9 | // |
10 | // |
11 | |
12 | |
13 | #if !defined(_CTVREGION_H) |
14 | #define _CTVREGION_H |
15 | |
16 | #include "CTvDatabase.h" |
17 | #include "CTvChannel.h" |
18 | #include <utils/String8.h> |
19 | #include <utils/Vector.h> |
20 | // TV 区域 |
21 | // 可以获得每个区域的频率列表等信息 |
22 | using namespace android; |
23 | class CTvRegion { |
24 | public: |
25 | int id; |
26 | String8 name; |
27 | String8 country; |
28 | CTvRegion(CTvDatabase db); |
29 | CTvRegion(); |
30 | ~CTvRegion(); |
31 | static CTvRegion selectByID(); |
32 | static int getChannelListByName(char *name, Vector<sp<CTvChannel> > &vcp); |
33 | static int getChannelListByNameAndFreqRange(char *name, int beginFreq, int endFreq, Vector<sp<CTvChannel> > &vcp); |
34 | static int getLogicNumByNameAndfreq(char *name, int freq); |
35 | void selectByCountry(); |
36 | Vector<String8> getAllCountry(); |
37 | // 取得该Region的信号源频率参数列表 |
38 | // @return 返回信号源频率参数列表 |
39 | CTvChannel getChannels(); |
40 | }; |
41 | |
42 | #endif //_CTVREGION_H |
43 |