internetradio2.0/presetplugininc/irpresetimpl.h
changeset 8 3b03c28289e6
parent 0 09774dfdd46b
equal deleted inserted replaced
5:0930554dc389 8:3b03c28289e6
   316 	*gets the channel  advertisement url
   316 	*gets the channel  advertisement url
   317 	*@return TDesC
   317 	*@return TDesC
   318 	*/
   318 	*/
   319 	const TDesC& GetAdvertisementUrl() const;
   319 	const TDesC& GetAdvertisementUrl() const;
   320 
   320 
       
   321 	const TDesC& GetAdvertisementInUse() const;
       
   322 	
   321 	/**
   323 	/**
   322 	*CIRPresetImpl::GetImgUrl()
   324 	*CIRPresetImpl::GetImgUrl()
   323 	*gets the channel  image url
   325 	*gets the channel  image url
   324 	*@return TDesC
   326 	*@return TDesC
   325 	*/
   327 	*/
   330 	*gets the channel  url count
   332 	*gets the channel  url count
   331 	*@return TDesC
   333 	*@return TDesC
   332 	*/
   334 	*/
   333 	TInt GetUrlCount()const;
   335 	TInt GetUrlCount()const;
   334 
   336 
       
   337 	CIRChannelServerUrl& GetUrl(TInt aIndex) const;
       
   338 	
   335 	/*
   339 	/*
   336 	*CIRPresetImpl::GetLogoData()
   340 	*CIRPresetImpl::GetLogoData()
   337 	*gets the Logo Data
   341 	*gets the Logo Data
   338 	*@return TDesC8&
   342 	*@return TDesC8&
   339 	*/
   343 	*/
   340     const TDesC8& GetLogoData() const;
   344     const TDesC8& GetLogoData() const;
   341 
       
   342 	/**
       
   343 	*CIRPresetImpl::GetUrl()
       
   344 	*gets the channel  url from zeroth position
       
   345 	*@return CIRChannelServerUrlImpl&
       
   346 	*/
       
   347 	CIRChannelServerUrlImpl& GetUrl(TInt aInt)const;
       
   348 	
   345 	
   349 	/*
   346 	/*
   350 	 * get the channel url at specified position
   347 	 * get the channel url at specified position
   351      *
   348      *
   352      */
   349      */
   387 	*CIRPresetImpl::GetAvailableBitrates()
   384 	*CIRPresetImpl::GetAvailableBitrates()
   388 	*gets the bitrate array
   385 	*gets the bitrate array
   389 	*@return RArray<TInt>
   386 	*@return RArray<TInt>
   390 	*/
   387 	*/
   391 	RArray<TInt>& GetAvailableBitrates();
   388 	RArray<TInt>& GetAvailableBitrates();
   392 
       
   393     /**
       
   394 	*CIRPresetImpl::UniqId()
       
   395 	*gets the unique id
       
   396 	*@return TUint32
       
   397 	*/
       
   398 	TUint32 UniqId() ;
       
   399 
       
   400 	/**
       
   401 	*CIRPresetImpl::SetUniqId()
       
   402 	*sets the unique id for the preset
       
   403 	*@param aId
       
   404 	*/
       
   405 	void SetUniqId( TUint32 aUniqId);
       
   406 
   389 
   407     /*
   390     /*
   408      * Returns the played times of the channel
   391      * Returns the played times of the channel
   409      */
   392      */
   410     TInt GetPlayedTimes() const;
   393     TInt GetPlayedTimes() const;
   411     
   394     
   412     /*
   395     /*
   413      * Set the played times of the channel
   396      * Set the played times of the channel
   414      */
   397      */
   415     void SetPlayedTimes(TInt aPlayedTimes);
   398     void SetPlayedTimes(TInt aPlayedTimes);
       
   399     
       
   400     TBool GetRenamed() const;
       
   401     
       
   402     void SetRenamed();
   416     
   403     
   417 protected:
   404 protected:
   418 
   405 
   419     /**CIRPresetImpl::CIRIsdsPreset()
   406     /**CIRPresetImpl::CIRIsdsPreset()
   420     *standard C++ constructor
   407     *standard C++ constructor
   447     void InternalizeL(RReadStream& aReadStream);
   434     void InternalizeL(RReadStream& aReadStream);
   448     
   435     
   449 private:
   436 private:
   450 
   437 
   451 	/**
   438 	/**
   452 	 * unique id generated for the preset saved at favourite
       
   453 	 */
       
   454 	TUint32 iUniqId;
       
   455 
       
   456 	/**
       
   457 	 * no of channel urls
   439 	 * no of channel urls
   458 	 */
   440 	 */
   459 	TInt iChannelUrlCount;
   441 	TInt iChannelUrlCount;
   460 
   442 
   461 	/**
   443 	/**
   462 	 * 0 for user defined 1 for isds type.
   444 	 * 0 for user defined 1 for isds type.
   463 	 */
   445 	 */
   464 	TInt iType;
   446 	TInt iType;
   465 
       
   466 	/**
       
   467 	 * index in the preset table
       
   468 	 */
       
   469 	//TInt iIndex;not required
       
   470 
   447 
   471 	/**
   448 	/**
   472 	 * isds generated preset id
   449 	 * isds generated preset id
   473 	 */
   450 	 */
   474 	TInt iPresetId;
   451 	TInt iPresetId;
   542 	/**
   519 	/**
   543 	 * musicStoreEnabled value
   520 	 * musicStoreEnabled value
   544 	 */
   521 	 */
   545 	RBuf iMusicStoreStatus;
   522 	RBuf iMusicStoreStatus;
   546 
   523 
   547 
       
   548 	/**
   524 	/**
   549 	 * url array
   525 	 * url array
   550 	 */
   526 	 */
   551 	CDesCArrayFlat* iUrlForBitrate;
   527 	CArrayPtrFlat<CIRChannelServerUrl>* iUrlArray;
   552 
       
   553 	/**
       
   554 	 * url array
       
   555 	 */
       
   556 	CArrayPtrFlat<CIRChannelServerUrlImpl>* iUrlArray;
       
   557 
   528 
   558 	/**
   529 	/**
   559 	 * bitrate array
   530 	 * bitrate array
   560 	 */
   531 	 */
   561 	RArray<TInt> iBitrateArray;
   532 	RArray<TInt> iBitrateArray;
   562 	
   533 	
   563 	//added by Peter on June 23rd, 2009
   534 	//how many times the station has been played
   564 	TInt iPlayedTimes;
   535 	TInt iPlayedTimes;
       
   536 	
       
   537 	//if the station is renamed after it's added into favorites
       
   538 	TBool iRenamed;
   565 	};
   539 	};
   566 
   540 
   567 #endif	//end of IRPRESETIMPL_H
   541 #endif	//end of IRPRESETIMPL_H