internetradio2.0/songhistoryinc/irsonghistorydb.h
changeset 8 3b03c28289e6
parent 5 0930554dc389
equal deleted inserted replaced
5:0930554dc389 8:3b03c28289e6
   108 	 * adds the song history entry into data base
   108 	 * adds the song history entry into data base
   109 	 * @param various song information 
   109 	 * @param various song information 
   110 	 */
   110 	 */
   111 	 TBool AddToSongHistoryDb2L( const TDesC& aSongName,
   111 	 TBool AddToSongHistoryDb2L( const TDesC& aSongName,
   112 	                             const TDesC& aArtistName, 	                                
   112 	                             const TDesC& aArtistName, 	                                
       
   113                                  const TDesC& aChannelName,
   113 	                             const TDesC& aMusicFlag);
   114 	                             const TDesC& aMusicFlag);
   114 
   115 
   115 
   116 
   116 	/**
   117 	/**
   117 	* CIRSongHistoryDb::GetAllSongHistoryListL()
   118 	* CIRSongHistoryDb::GetAllSongHistoryListL()
   181 	/**
   182 	/**
   182 	* Function : UpdateSongHistoryDb()
   183 	* Function : UpdateSongHistoryDb()
   183 	* Updates the song history DB when there is a channel change in the isds.
   184 	* Updates the song history DB when there is a channel change in the isds.
   184 	*/
   185 	*/
   185     TInt UpdateSongHistoryDbL( TInt aChannelId,
   186     TInt UpdateSongHistoryDbL( TInt aChannelId,
   186     	                      const TDesC& aChannelName, 
       
   187 						      const TDesC& aChannelUrl,
   187 						      const TDesC& aChannelUrl,
   188 						      const TDesC& aImageUrl,
   188 						      const TDesC& aImageUrl,
   189                               const TDesC& aGenreName,
   189                               const TDesC& aGenreName,
   190                               const TDesC& aCountryName,
   190                               const TDesC& aCountryName,
   191                               const TDesC& aLanguageName,						      
   191                               const TDesC& aLanguageName,						      
   193 
   193 
   194     /*
   194     /*
   195      * search if a record already exists in database. If yes, delete it.
   195      * search if a record already exists in database. If yes, delete it.
   196      */
   196      */
   197     void SearchAndDeleteRecordL(const TDesC& aChannelName, const TDesC& aChannelUrl,
   197     void SearchAndDeleteRecordL(const TDesC& aChannelName, const TDesC& aChannelUrl,
   198                                 TInt aChannelType);
   198                                 TInt aChannelType, TInt aPresetId);
   199     
   199     
   200     /*
   200     /*
   201      * delete a recorder by the index, for station history database
   201      * delete a recorder by the index, for station history database
   202      * */
   202      * */
   203     TInt DeleteOneHistory(TInt aIndex);
   203     TInt DeleteOneHistory(TInt aIndex);
   240 	* creates songhistory table with three columns
   240 	* creates songhistory table with three columns
   241 	* log data
   241 	* log data
   242 	* ---------------------------------------------------------------------------
   242 	* ---------------------------------------------------------------------------
   243 	* SongHistoryTable
   243 	* SongHistoryTable
   244 	*---------------------------
   244 	*---------------------------
   245 	*| SongName | ArtistName | MusicStatusFlag
   245 	*| SongName | ArtistName | ChannelName | MusicStatusFlag
   246 	*---------------------------
   246 	*---------------------------
   247 	*|EDbColText| EDbColText | EDbColText |
   247 	*|EDbColText| EDbColText | EDbColText  | EDbColText |
   248 	*----------------------------------------------------------------------------
   248 	*----------------------------------------------------------------------------
   249 	*/
   249 	*/
   250 	void CreateSongHistoryTables2L();
   250 	void CreateSongHistoryTables2L();
   251 
   251 
   252    /**
   252    /**