qtinternetradio/irqcommon/inc/irqisdsdatastructure.h
changeset 3 ee64f059b8e1
parent 0 09774dfdd46b
child 8 3b03c28289e6
equal deleted inserted replaced
2:2e1adbfc62af 3:ee64f059b8e1
    76    /* get the url for the specify bitrate
    76    /* get the url for the specify bitrate
    77     * the caller should delete the QList */
    77     * the caller should delete the QList */
    78    IMPORT_C QList<QString> * getURLsForBitrate(int aBitrate) const;
    78    IMPORT_C QList<QString> * getURLsForBitrate(int aBitrate) const;
    79    /* the following functions may be changed in future */
    79    /* the following functions may be changed in future */
    80    IMPORT_C int getChannelUrlAt(int aIndex, QString& aURL) const;   
    80    IMPORT_C int getChannelUrlAt(int aIndex, QString& aURL) const;   
    81    IMPORT_C int getChannelBitrate(int aIndex, int &aBitrate) const;    
    81    IMPORT_C int getChannelBitrate(unsigned int aIndex, unsigned int &aBitrate) const;    
    82    
    82    
    83    /* sort the urlArray with bitrates by ascending. for 
    83    /* sort the urlArray with bitrates by ascending. for 
    84     * there are not many items, here we use bubble sorting.
    84     * there are not many items, here we use bubble sorting.
    85     */
    85     */
    86    IMPORT_C void sortURLArray();
    86    IMPORT_C void sortURLArray();
    94     */
    94     */
    95    IMPORT_C void clearChannelServerList();   
    95    IMPORT_C void clearChannelServerList();   
    96    
    96    
    97    IMPORT_C int getChannelURLCount() const;
    97    IMPORT_C int getChannelURLCount() const;
    98    
    98    
    99    IMPORT_C bool setUrlBitrate(const int aUrlIndex, const int aBitrate);
    99    IMPORT_C bool setUrlBitrate(const unsigned int aUrlIndex, const unsigned int aBitrate);
   100   
   100   
   101    int uniqID; //unique id generated for the preset saved at favourite
   101    int uniqID; //unique id generated for the preset saved at favourite
   102    
   102    
   103    int type; //0 for user defined 1 for isds type.
   103    int type; //0 for user defined 1 for isds type.
   104    int index;//index in the preset table
   104    int index;//index in the preset table