summaryrefslogtreecommitdiff
path: root/tvapi/libtv/tvdb/CTvRegion.h (plain)
blob: e7ccdcdef32d14c99559704d0e2d84ca3c79884c
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// 可以获得每个区域的频率列表等信息
22using namespace android;
23class CTvRegion
24{
25public:
26 int id;
27 String8 name;
28 String8 country;
29 CTvRegion(CTvDatabase db);
30 CTvRegion();
31 ~CTvRegion();
32 static CTvRegion selectByID();
33 static int getChannelListByName(char *name, Vector<sp<CTvChannel> > &vcp);
34 static int getChannelListByNameAndFreqRange(char *name, int beginFreq, int endFreq, Vector<sp<CTvChannel> > &vcp);
35 static int getLogicNumByNameAndfreq(char *name, int freq);
36 void selectByCountry();
37 Vector<String8> getAllCountry();
38 // 取得该Region的信号源频率参数列表
39 // @return 返回信号源频率参数列表
40 CTvChannel getChannels();
41};
42
43#endif //_CTVREGION_H
44