internetradio2.0/presetplugininc/irpreset.h
changeset 8 3b03c28289e6
parent 0 09774dfdd46b
child 12 608f67c22514
equal deleted inserted replaced
5:0930554dc389 8:3b03c28289e6
    21 
    21 
    22 #include <badesca.h>
    22 #include <badesca.h>
    23 #include <pspresetinterface.h>
    23 #include <pspresetinterface.h>
    24 
    24 
    25 class CIRIsdsPreset;
    25 class CIRIsdsPreset;
       
    26 class CIRChannelServerUrl;
    26 
    27 
    27 const TUid KIRPreset = { 0x10009DC1 };
    28 const TUid KIRPreset = { 0x10009DC1 };
    28 
    29 
    29 /**
    30 /**
    30  *preset abstract class to expose general apis to the app
    31  *preset abstract class to expose general apis to the app
   293 	*gets the channel  advertisement url
   294 	*gets the channel  advertisement url
   294 	*@return TDesC
   295 	*@return TDesC
   295 	*/
   296 	*/
   296 	virtual const TDesC& GetAdvertisementUrl() const=0;
   297 	virtual const TDesC& GetAdvertisementUrl() const=0;
   297 
   298 
       
   299     /**
       
   300     *CIRPreset::GetAdvertisementInUse()
       
   301     *gets the channel  advertisement In Use
       
   302     *@return TDesC
       
   303     */
       
   304     virtual const TDesC& GetAdvertisementInUse() const = 0;
       
   305 	
   298 	/**
   306 	/**
   299 	*CIRPreset::GetImgUrl()
   307 	*CIRPreset::GetImgUrl()
   300 	*gets the channel  image url
   308 	*gets the channel  image url
   301 	*@return TDesC
   309 	*@return TDesC
   302 	*/
   310 	*/
   307 	*gets the channel  url count
   315 	*gets the channel  url count
   308 	*@return TDesC
   316 	*@return TDesC
   309 	*/
   317 	*/
   310 	virtual TInt GetUrlCount()const=0;
   318 	virtual TInt GetUrlCount()const=0;
   311 
   319 
       
   320 	virtual CIRChannelServerUrl& GetUrl(TInt aIndex) const = 0;
       
   321 	
   312 	/*
   322 	/*
   313 	 * get the channel url at specified position
   323 	 * get the channel url at specified position
   314 	 *
   324 	 *
   315 	 */
   325 	 */
   316 	virtual const TDesC& GetChannelUrlAt(TInt aIndex) const = 0;
   326 	virtual const TDesC& GetChannelUrlAt(TInt aIndex) const = 0;
   334 	*CIRPreset::CopyPresetData()
   344 	*CIRPreset::CopyPresetData()
   335 	*copy data to CIRIsdsPreset
   345 	*copy data to CIRIsdsPreset
   336 	*@param CIRIsdsPreset&,the preset to be copied into
   346 	*@param CIRIsdsPreset&,the preset to be copied into
   337 	*/
   347 	*/
   338 	virtual void CopyPresetData(CIRIsdsPreset& aIsdsPreset) const =0;
   348 	virtual void CopyPresetData(CIRIsdsPreset& aIsdsPreset) const =0;
   339 
       
   340 	/**
       
   341 	*CIRPreset::UniqId()
       
   342 	*gets the unique id
       
   343 	*@return TUint32
       
   344 	*/
       
   345 	virtual TUint32 UniqId()=0;
       
   346 
       
   347 	/**
       
   348 	*CIRPreset::SetUniqId()
       
   349 	*sets the unique id for the preset
       
   350 	*@param aId
       
   351 	*/
       
   352 	virtual void SetUniqId( const TUint32 aId)=0;
       
   353 
   349 
   354 	 /**
   350 	 /**
   355      * Sets the logo data for this preset for a specific size.
   351      * Sets the logo data for this preset for a specific size.
   356      *
   352      *
   357      * @param   aData           Raw image data to set.
   353      * @param   aData           Raw image data to set.
   374     
   370     
   375     /*
   371     /*
   376      * Set the played times of the channel
   372      * Set the played times of the channel
   377      */
   373      */
   378     virtual void SetPlayedTimes(TInt aPlayedTimes) = 0;
   374     virtual void SetPlayedTimes(TInt aPlayedTimes) = 0;
       
   375     
       
   376     virtual TBool GetRenamed() const = 0;
       
   377     
       
   378     virtual void SetRenamed() = 0;
   379 	};
   379 	};
   380 
   380 
   381 #endif	//end of IRPRESET_H
   381 #endif	//end of IRPRESET_H