qtinternetradio/irdb/inc/channelhistorywrapper.h
changeset 17 38bbf2dcd608
parent 16 5723da102db1
equal deleted inserted replaced
16:5723da102db1 17:38bbf2dcd608
    26     ~channelHistoryWrapper();
    26     ~channelHistoryWrapper();
    27 
    27 
    28 public:
    28 public:
    29     /*
    29     /*
    30     * RowData:        [direction: in]table row value;
    30     * RowData:        [direction: in]table row value;
       
    31     *                 reminder, channelUrl and bitrate can't be input from here;
       
    32     *                 if the enum of channelUrl or bitrate is used here, return false;
    31     * cidUserDefined: [direction: out] return the channelid allocated by IRDB, 
    33     * cidUserDefined: [direction: out] return the channelid allocated by IRDB, 
    32     *                                  the channelId is a user-defined channelId;
    34     *                                  the channelId is a user-defined channelId;
    33     * logoMap: [direction: in]the logo rowData will be inserted into irdb via this structure;
    35     * logoMap: [direction: in]the logo rowData will be inserted into irdb via this structure;
    34     *                         the logo rowData should be filled into logoMap as below:
    36     *                         the logo rowData should be filled into logoMap as below:
    35     *                         logoMap* pLogo = new logoMap(); 
    37     *                         logoMap* pLogo = new logoMap(); 
    73                       QList<QVariant*>* pDataSet);
    75                       QList<QVariant*>* pDataSet);
    74 
    76 
    75 private:
    77 private:
    76     /*
    78     /*
    77     * search channelId according to parameter;
    79     * search channelId according to parameter;
    78     * condUserCidStr:[direction: in]specific condition(where) string for user-define uid;
       
    79     * condAND:       [direction: in]condition for search channelHistory, it is AND relationship in every pair;
    80     * condAND:       [direction: in]condition for search channelHistory, it is AND relationship in every pair;
    80     * condOR:        [direction: in]condition for search channelHistory, it is OR  relationship in every pair;
    81     * condOR:        [direction: in]condition for search channelHistory, it is OR  relationship in every pair;
    81     * uint:          return channelId;
    82     * uint:          return channelId;
    82     */    
    83     */    
    83     uint srhChannelId(QString& condUserCidStr,
    84     uint srhChannelId(const columnMap* const condAND = NULL,
    84                       const columnMap* const condAND,
       
    85                       const columnMap* const condOR = NULL);
    85                       const columnMap* const condOR = NULL);
    86 
    86 
    87 };
    87 };
    88 
    88 
    89 #endif
    89 #endif