diff -r 5723da102db1 -r 38bbf2dcd608 internetradio2.0/irsonghistory/inc/irsonghistoryinfo.h --- a/internetradio2.0/irsonghistory/inc/irsonghistoryinfo.h Fri Sep 17 08:27:59 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,311 +0,0 @@ -/* -* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: header for the songhistory information class -* -*/ - - -#ifndef C_CIRSONGHISTORYINFO_H -#define C_CIRSONGHISTORYINFO_H - -#include - -/** - * SongHistory meta data information wrapper. - */ -NONSHARABLE_CLASS( CIRSongHistoryInfo ) : public CBase - { - -public: - - /** - *Function : NewL - *Function returns an instance of CIRSongHistoryInfo - *Two phase constructor - *@return instance of CIRSongHistoryInfo - */ - IMPORT_C static CIRSongHistoryInfo * NewL(); - - /** - *CIRSongHistoryInfo::NewLC() - *Static function - *standard two phased constructor - *@return *CIRSongHistoryInfo - */ - IMPORT_C static CIRSongHistoryInfo* NewLC(); - - /** - *CIRSongHistoryInfo::~CIRSongHistoryInfo() - *standard C++ destructor - */ - IMPORT_C ~CIRSongHistoryInfo(); - - /** - *CIRSongHistoryInfo::SetHistoryInfoL() - *Function to set songhistory ingo from a RBuf - */ - - IMPORT_C void SetHistoryInfoL(RBuf& aSongName, - RBuf& aArtist, - RBuf& aStreamUrl, - RBuf& aChannelName, - TInt aChannelType , - TInt aChannelId, - TInt aBitrate, - RBuf& aChannelDesc, - RBuf& aImageUrl, - RBuf& aGenreName, - RBuf& aCountryName, - RBuf& aLanguageName, - RBuf& aMusicStoreStatus ); - - /** - *CIRSongHistoryInfo::SetChannelNameL() - *Function to set channel name from a RBuf - *@param RBuf aChannelName - */ - - void SetChannelNameL(RBuf& aChannelName); - - /** - *CIRSongHistoryInfo::SetArtistL() - *Function to set artist name from a RBuf - *@param RBuf aArtist - */ - - void SetArtistL(RBuf& aArtist); - - /** - *CIRSongHistoryInfo::SetSongNameL() - *Function to set song name from a RBuf - *@param RBuf aSongName - */ - - void SetSongNameL (RBuf& aSongName); - - /** - *CIRSongHistoryInfo::SetStreamUrlL() - *Function to set stream url from a RBuf - *@param RBuf aStreamUrl - */ - - void SetStreamUrlL(RBuf& aStreamUrl); - - /** - *CIRSongHistoryInfo::GetSongInfo() - *Function to get song name from a TDesC - *@return RBuf& instance - */ - - IMPORT_C const RBuf& GetSongInfo() const; - - /** - *CIRSongHistoryInfo::GetArtistName() - *Function to get artist name from a TDesC - *@return RBuf& instance - */ - - IMPORT_C const RBuf& GetArtistInfo() const; - - /** - *CIRSongHistoryInfo::GetStreamUrl() - *Function to get url name from a TDesC - *@return RBuf& instance - */ - - IMPORT_C const RBuf& GetStreamUrl() const; - - /** - *CIRSongHistoryInfo::GetChannelName() - *Function to get channel name from a TDesC - *@return RBuf& instance - */ - - IMPORT_C const RBuf& GetChannelName() const; - - /** - *CIRSongHistoryInfo::GetChannelType() - *Function to get channel Type - *@return TInt channeltype - */ - IMPORT_C TInt GetChannelType() const; - - /** - *CIRSongHistoryInfo::SetChannelType() - *Function to set channel Type - *@param TInt aChannelImgUrl - */ - void SetChannelType(TInt aChannelImgUrl); - /** - *CIRSongHistoryInfo::SetChannelId() - *Function to set channel Id - *@param TInt aChannelId - */ - void SetChannelId(TInt aChannelId); - /** - *CIRSongHistoryInfo::GetChannelId() - *Function to get channel Id - *@return TInt channelId - */ - IMPORT_C TInt GetChannelId() const; - /** - *CIRSongHistoryInfo::SetBitrate() - *Function to set bitrate - *@param TInt aBitrate - */ - void SetBitrate(TInt aBitrate); - /** - *CIRSongHistoryInfo::GetBitrate() - *Function to get bitrate - *@return TInt aBitrate - */ - IMPORT_C TInt GetBitrate() const; - /** - *CIRSongHistoryInfo::GetChannelDesc() - *Function to get channel Description - *@return RBuf& instance - */ - IMPORT_C const RBuf& GetChannelDesc() const ; - /** - *CIRSongHistoryInfo::SetChannelDescL() - *Function to set channel Description - * @param RBuf aChannelDesc - */ - void SetChannelDescL(RBuf& aChannelDesc) ; - /** - *CIRSongHistoryInfo::GetImageUrl() - *Function to get channel image Url - *@return RBuf& instance - */ - IMPORT_C const RBuf& GetImageUrl() const ; - /** - *CIRSongHistoryInfo::SetImageUrlL() - *Function to set channel image Url - * @param RBuf aImageUrl - */ - void SetImageUrlL(RBuf& aImageUrl) ; - /** - *IRQSongHistoryInfo::GetGenreName() - *Function to get channel genre name - *@return RBuf& instance - */ - IMPORT_C const RBuf& GetGenreName() const; - /** - *CIRSongHistoryInfo::SetGenreNameL() - *Function to set channel genre name - * @param RBuf aGenreName - */ - void SetGenreNameL(const RBuf& aGenreName); - /** - *IRQSongHistoryInfo::GetCountryName() - *Function to get channel country name - *@return RBuf& instance - */ - IMPORT_C const RBuf& GetCountryName() const; - /** - *CIRSongHistoryInfo::SetCountryNameL() - *Function to set channel country name - * @param RBuf& aCountryName - */ - void SetCountryNameL(const RBuf& aCountryName); - /** - *IRQSongHistoryInfo::getLanguageName() - *Function to get channel language name - *@return RBuf& instance - */ - IMPORT_C const RBuf& GetLanguageName() const; - /** - *CIRSongHistoryInfo::SetLanguageNameL() - *Function to set channel language name - * @param RBuf aLanguageName - */ - void SetLanguageNameL(const RBuf& aLanguageName); - /** - *CIRSongHistoryInfo::SetChannelMusicStatusL() - *Function to set Channel MusicStoreStatus - *@param RBuf aChannelMusicStatus - */ - void SetChannelMusicStatusL(RBuf& aChannelMusicStatus) ; - /** - *CIRSongHistoryInfo::GetChannelMusicStatus() - *Function to get channel MusicStoreStatus - *@return RBuf& instance - */ - IMPORT_C const RBuf& GetChannelMusicStatus() const ; -private: - - /** - * Default constructor. - */ - - CIRSongHistoryInfo(); - - -private: //data - - /** - * The name of the artist. - */ - RBuf iArtistInfo; - - /** - * The name of the song. - */ - RBuf iSongInfo; - - /** - * The stream URL. - */ - RBuf iStreamUrlInfo; - - /** - * Channel Name. - */ - RBuf iChannelInfo; - - /** - * Channel Type. - */ - TInt iChannelType; - - - /** - * Channel Description. - */ - RBuf iChannelDescription; - /** - * Channel Description. - */ - RBuf iImageUrl; - RBuf iGenreName; - RBuf iCountryName; - RBuf iLanguageName; - /** - * Channel Id. - */ - TInt iChannelId; - - /** - * Channel bitrate. - */ - TInt iBitrate; - - /** - * Channel's MusicStoreStatus. - */ - RBuf iMusicStoreStatus; - - }; - -#endif // C_CIRSONGHISTORYINFO_H