qtinternetradio/irqsonghistory/inc/irqsonghistoryengine.h
branchGCC_SURGE
changeset 13 c9471d26c7f2
parent 8 3b03c28289e6
equal deleted inserted replaced
9:bfc95e24a059 13:c9471d26c7f2
    63     /**
    63     /**
    64     * Called by the UI when a particular channel has been changed in the ISDS.
    64     * Called by the UI when a particular channel has been changed in the ISDS.
    65     */
    65     */
    66 
    66 
    67     IMPORT_C void updateSongHistoryDb(int aChannelId,
    67     IMPORT_C void updateSongHistoryDb(int aChannelId,
    68                                       const QString& aChannelName,
    68             const QString& aChannelName, const QString& aChannelUrl,
    69                                       const QString& aChannelUrl,
    69             const QString& aImageUrl, const QString& aGenreName,
    70                                       const QString& aImageUrl,
    70             const QString& aCountryName, const QString& aLanguageName,
    71                                       const QString& aMusicFlag);
    71             const QString& aMusicFlag);
    72 
    72 
    73     /**
    73     /**
    74     * Connected with play controller with the song name changed.
    74     * Connected with play controller with the song name changed.
    75     * @param    aMetaData   The meta data contains song name, artist and bitrate.
    75     * @param    aMetaData   The meta data contains song name, artist and bitrate.
    76     * @param    aPreset     The preset contains other information.
    76     * @param    aPreset     The preset contains other information.
    79     /**
    79     /**
    80     * Connected with play controller with the song name changed.
    80     * Connected with play controller with the song name changed.
    81     * @param    aMetaData   The meta data contains song name, artist and bitrate.
    81     * @param    aMetaData   The meta data contains song name, artist and bitrate.
    82     * @param    aMusicshopStatus     The music shop status of the song
    82     * @param    aMusicshopStatus     The music shop status of the song
    83     */
    83     */
    84     IMPORT_C void handleSongMetaDataReceived(const IRQMetaData& aMetaData, QString& aMusicshopStatus);
    84     IMPORT_C void handleSongMetaDataReceived(const IRQMetaData& aMetaData, const IRQPreset& preset);
    85     
    85     
    86     /*
    86     /*
    87      * delete one item from the station history db
    87      * delete one item from the station history db
    88      * @param   aIndex    the index of the item need deleted
    88      * @param   aIndex    the index of the item need deleted
    89      */
    89      */
    90     IMPORT_C bool deleteOneItem(int aIndex);
    90     IMPORT_C bool deleteOneItem(int aIndex);
       
    91 
       
    92     /*
       
    93      * delete one item from the song history db
       
    94      * @param   aIndex    the index of the item need deleted
       
    95      */
       
    96     IMPORT_C bool deleteOneSongHistoryItem(int aIndex);
    91 
    97 
    92 private:
    98 private:
    93 
    99 
    94     enum TSongHistoryItemChange
   100     enum TSongHistoryItemChange
    95     {
   101     {
   120     
   126     
   121     TSongHistoryItemChange detectSongHistoryItemChangesL(const IRQMetaData& aMetaData, const QString& aChannelName);
   127     TSongHistoryItemChange detectSongHistoryItemChangesL(const IRQMetaData& aMetaData, const QString& aChannelName);
   122     
   128     
   123     void handleMetaDataReceivedL(const IRQMetaData& aMetaData, const IRQPreset& aPreset);
   129     void handleMetaDataReceivedL(const IRQMetaData& aMetaData, const IRQPreset& aPreset);
   124 	void getAllHistoryL(QList<IRQSongHistoryInfo *>& aSongHistoryArr);
   130 	void getAllHistoryL(QList<IRQSongHistoryInfo *>& aSongHistoryArr);
   125 	void handleSongMetaDataReceivedL(const IRQMetaData& aMetaData, QString& aMusicshopStatus);
   131 	void handleSongMetaDataReceivedL(const IRQMetaData& aMetaData, const IRQPreset& aPreset);
   126     void getAllSongHistoryL(QList<IRQSongInfo *>& aSongHistoryArr);
   132     void getAllSongHistoryL(QList<IRQSongInfo *>& aSongHistoryArr);
   127 
   133 
   128 private:
   134 private:
   129 
   135 
   130     /** An instance of songhistory database. */
   136     /** An instance of songhistory database. */