internetradio2.0/songhistorysrc/irsonghistoryinfo.cpp
changeset 5 0930554dc389
parent 0 09774dfdd46b
equal deleted inserted replaced
3:ee64f059b8e1 5:0930554dc389
    57 
    57 
    58 		iChannelInfo.Close();
    58 		iChannelInfo.Close();
    59 		
    59 		
    60 		iChannelDescription.Close();
    60 		iChannelDescription.Close();
    61 
    61 
    62 		iImageUrl.Close();
    62         iImageUrl.Close();
       
    63         iGenreName.Close();
       
    64         iCountryName.Close();
       
    65         iLanguageName.Close();
    63 		
    66 		
    64 		iMusicStoreStatus.Close();
    67 		iMusicStoreStatus.Close();
    65 		
    68 		
    66 	}
    69 	}
    67 
    70 
   122 //
   125 //
   123  void CIRSongHistoryInfo::SetChannelDesc(RBuf& aChannelDesc)
   126  void CIRSongHistoryInfo::SetChannelDesc(RBuf& aChannelDesc)
   124  {
   127  {
   125  	iChannelDescription.Create(aChannelDesc);
   128  	iChannelDescription.Create(aChannelDesc);
   126  }
   129  }
   127  // ---------------------------------------------------------------------------
   130 // ---------------------------------------------------------------------------
   128 // CIRSongHistoryInfo::SetImageUrl
   131 // CIRSongHistoryInfo::SetImageUrl
   129 // Sets Channel image Url
   132 // Sets Channel image Url
   130 // ---------------------------------------------------------------------------
   133 // ---------------------------------------------------------------------------
   131 //
   134 //
   132  void CIRSongHistoryInfo::SetImageUrl(RBuf& aImageUrl)
   135  void CIRSongHistoryInfo::SetImageUrl(RBuf& aImageUrl)
   133  {
   136  {
   134     iImageUrl.Create(aImageUrl);
   137     iImageUrl.Create(aImageUrl);
   135  }
   138  }
       
   139  
       
   140  // ---------------------------------------------------------------------------
       
   141  // CIRSongHistoryInfo::SetGenreName
       
   142  // Set channel genre name
       
   143  // ---------------------------------------------------------------------------
       
   144  //
       
   145 void CIRSongHistoryInfo::SetGenreName(const RBuf& aGenreName)
       
   146 {
       
   147     iGenreName.Create(aGenreName);
       
   148 }
       
   149 
       
   150 // ---------------------------------------------------------------------------
       
   151 // CIRSongHistoryInfo::SetCountryName
       
   152 // Set channel country name
       
   153 // ---------------------------------------------------------------------------
       
   154 //
       
   155 void CIRSongHistoryInfo::SetCountryName(const RBuf& aCountryName)
       
   156 {
       
   157     iCountryName.Create(aCountryName);
       
   158 }
       
   159 
       
   160 // ---------------------------------------------------------------------------
       
   161 // CIRSongHistoryInfo::SetLanguageName
       
   162 // Set channel language name
       
   163 // ---------------------------------------------------------------------------
       
   164 //
       
   165 void CIRSongHistoryInfo::SetLanguageName(const RBuf& aLanguageName)
       
   166 {
       
   167     iLanguageName.Create(aLanguageName);
       
   168 }
   136  // ---------------------------------------------------------------------------
   169  // ---------------------------------------------------------------------------
   137 // CIRSongHistoryInfo::SetChannelMusicStatus
   170 // CIRSongHistoryInfo::SetChannelMusicStatus
   138 // Sets Channel's MusicStoreStatus
   171 // Sets Channel's MusicStoreStatus
   139 // ---------------------------------------------------------------------------
   172 // ---------------------------------------------------------------------------
   140 //
   173 //
   173   // ---------------------------------------------------------------------------
   206   // ---------------------------------------------------------------------------
   174 // CIRSongHistoryInfo::SetHistoryInfo
   207 // CIRSongHistoryInfo::SetHistoryInfo
   175 // Sets Song History Information.
   208 // Sets Song History Information.
   176 // ---------------------------------------------------------------------------
   209 // ---------------------------------------------------------------------------
   177 //
   210 //
       
   211 
   178  EXPORT_C void CIRSongHistoryInfo::SetHistoryInfo(RBuf& aSongName,
   212  EXPORT_C void CIRSongHistoryInfo::SetHistoryInfo(RBuf& aSongName,
   179 												  RBuf& aArtist, 
   213 												  RBuf& aArtist, 
   180 												  RBuf& aStreamUrl, 
   214 												  RBuf& aStreamUrl, 
   181 												  RBuf& aChannelName ,
   215 												  RBuf& aChannelName ,
   182 												  TInt aChannelType, 
   216 												  TInt aChannelType, 
   183 												  TInt aChannelId,
   217 												  TInt aChannelId,
   184 												  TInt aBitrate,
   218 												  TInt aBitrate,
   185 												  RBuf& aChannelDesc,
   219 												  RBuf& aChannelDesc,
   186 												  RBuf& aImageUrl,
   220                                                   RBuf& aImageUrl,
       
   221                                                   RBuf& aGenreName,
       
   222                                                   RBuf& aCountryName,
       
   223                                                   RBuf& aLanguageName,
   187 												  RBuf& aMusicStoreStatus
   224 												  RBuf& aMusicStoreStatus
   188 												   )
   225 												   )
   189  {
   226  {
   190  	SetSongName(aSongName);
   227  	SetSongName(aSongName);
   191  	SetArtist(aArtist);
   228  	SetArtist(aArtist);
   194     SetChannelType(aChannelType);
   231     SetChannelType(aChannelType);
   195     SetChannelId(aChannelId);
   232     SetChannelId(aChannelId);
   196     SetBitrate(aBitrate);
   233     SetBitrate(aBitrate);
   197     SetChannelDesc(aChannelDesc);
   234     SetChannelDesc(aChannelDesc);
   198     SetImageUrl(aImageUrl);
   235     SetImageUrl(aImageUrl);
       
   236     SetGenreName(aGenreName);
       
   237     SetCountryName(aCountryName);
       
   238     SetLanguageName(aLanguageName);
   199     SetChannelMusicStatus(aMusicStoreStatus);
   239     SetChannelMusicStatus(aMusicStoreStatus);
   200 	
   240 	
   201  }
   241  }
   202  
   242  
   203   // ---------------------------------------------------------------------------
   243   // ---------------------------------------------------------------------------
   247  EXPORT_C const RBuf& CIRSongHistoryInfo::GetChannelDesc() const 
   287  EXPORT_C const RBuf& CIRSongHistoryInfo::GetChannelDesc() const 
   248  {
   288  {
   249  	return iChannelDescription;
   289  	return iChannelDescription;
   250  }
   290  }
   251 
   291 
   252  // ---------------------------------------------------------------------------
   292 // ---------------------------------------------------------------------------
   253 // CIRSongHistoryInfo::GetImageUrl
   293 // CIRSongHistoryInfo::GetImageUrl
   254 // Gets Channel image Url
   294 // Gets Channel image Url
   255 // ---------------------------------------------------------------------------
   295 // ---------------------------------------------------------------------------
   256 //
   296 //
   257 EXPORT_C const RBuf& CIRSongHistoryInfo::GetImageUrl() const 
   297  EXPORT_C const RBuf& CIRSongHistoryInfo::GetImageUrl() const 
   258 {
   298  {
   259    return iImageUrl;
   299     return iImageUrl;
   260 }
   300  }
       
   301  // ---------------------------------------------------------------------------
       
   302  // CIRSongHistoryInfo::GetGenreName
       
   303  // Get channel genre name
       
   304  // ---------------------------------------------------------------------------
       
   305  //
       
   306  
       
   307 const RBuf& CIRSongHistoryInfo::GetGenreName() const 
       
   308  {
       
   309     return iGenreName;
       
   310  }
       
   311  
       
   312 // ---------------------------------------------------------------------------
       
   313 // CIRSongHistoryInfo::GetCountryName
       
   314 // Get channel country name
       
   315 // ---------------------------------------------------------------------------
       
   316 //
       
   317 const RBuf& CIRSongHistoryInfo::GetCountryName() const 
       
   318  {
       
   319     return iCountryName;
       
   320  }
       
   321  
       
   322 // ---------------------------------------------------------------------------
       
   323 // CIRSongHistoryInfo::GetLanguageName
       
   324 // Get channel language name
       
   325 // ---------------------------------------------------------------------------
       
   326 //
       
   327 const RBuf& CIRSongHistoryInfo::GetLanguageName() const 
       
   328  {
       
   329     return iLanguageName;
       
   330  }
   261 
   331 
   262   // ---------------------------------------------------------------------------
   332   // ---------------------------------------------------------------------------
   263 // CIRSongHistoryInfo::GetChannelType
   333 // CIRSongHistoryInfo::GetChannelType
   264 // Gets Channel Type
   334 // Gets Channel Type
   265 // ---------------------------------------------------------------------------
   335 // ---------------------------------------------------------------------------