36 public: |
36 public: |
37 /* |
37 /* |
38 * If all parameters are default, all cid rows in IRDB will return; |
38 * If all parameters are default, all cid rows in IRDB will return; |
39 * condAND: condition for search IRDB, it is AND relationship in every pair; |
39 * condAND: condition for search IRDB, it is AND relationship in every pair; |
40 * condOR: condition for search IRDB, it is OR relationship in every pair; |
40 * condOR: condition for search IRDB, it is OR relationship in every pair; |
|
41 * here below enum can be input as condition(condAND or condOR): |
|
42 * channelId, channelName, channelNickName, |
|
43 genreName, genreId, languageName, languageCode, |
|
44 countryName, countryCode, description, shortDesc, |
|
45 lastModified, channelType, musicStoreStatus, |
|
46 imgUrl, |
|
47 advertisementUrl, advertisementInUse, expiration, |
|
48 channelUrl, bitRate; |
41 */ |
49 */ |
42 QList<uint>* getChannelId(const columnMap* const condAND = NULL, |
50 QList<uint>* getChannelId(const columnMap* const condAND = NULL, |
43 const columnMap* const condOR = NULL); |
51 const columnMap* const condOR = NULL); |
44 |
52 |
45 friend class IRDB; |
|
46 |
53 |
47 protected: |
|
48 /* |
54 /* |
49 * If all parameters are default, all rows in IRDB will return; |
55 * If all parameters are default, all rows in IRDB will return; |
50 * condAND: condition for search IRDB, it is AND relationship in every pair; |
56 * condAND: condition for search IRDB, it is AND relationship in every pair; |
51 * condOR: condition for search IRDB, it is OR relationship in every pair; |
57 * condOR: condition for search IRDB, it is OR relationship in every pair; |
52 */ |
58 */ |
53 QList<QVariant*>* getIRDB(const columnMap* const condAND = NULL, |
59 QList<QVariant*>* getIRDB(const columnMap* const condAND = NULL, |
54 const columnMap* const condOR = NULL); |
60 const columnMap* const condOR = NULL); |
|
61 |
|
62 friend class IRDB; |
55 |
63 |
56 protected: |
64 protected: |
57 /* |
65 /* |
58 * create sql condition(where) string according to the input condAND and condAND; |
66 * create sql condition(where) string according to the input condAND and condAND; |
59 * condAND: [direction:in] it is AND relationship in every pair; |
67 * condAND: [direction:in] it is AND relationship in every pair; |
78 void combinePutStr(const columnMap* const RowData, |
86 void combinePutStr(const columnMap* const RowData, |
79 const QString* pArryColName, |
87 const QString* pArryColName, |
80 QString& insSqlStr, |
88 QString& insSqlStr, |
81 QString& updSqlStr, |
89 QString& updSqlStr, |
82 const logoMap* const logoData = NULL, |
90 const logoMap* const logoData = NULL, |
83 QList<QByteArray>* logoArrayList = NULL); |
91 QList<QByteArray>* logoArrayList = NULL, |
|
92 int* logoType = NULL); |
84 |
93 |
85 /* |
94 /* |
86 * create sql select string according to the input condAND and condOR; |
95 * create sql select string according to the input condAND and condOR; |
87 * condAND: [direction:in] it is AND relationship in every pair; |
96 * condAND: [direction:in] it is AND relationship in every pair; |
88 * condOR: [direction:in] it is OR relationship in every pair; |
97 * condOR: [direction:in] it is OR relationship in every pair; |