internetradio2.0/presetplugininc/irchannelserverurlimpl.h
branchGCC_SURGE
changeset 13 c9471d26c7f2
parent 9 bfc95e24a059
parent 12 608f67c22514
equal deleted inserted replaced
9:bfc95e24a059 13:c9471d26c7f2
     1 /*
       
     2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IRCHANNELSERVERURLIMPL_H
       
    21 #define IRCHANNELSERVERURLIMPL_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 class RReadStream;
       
    26 class RWriteStream;
       
    27 
       
    28 /**
       
    29  * This class provides the basic structure to hold the preset's url data
       
    30  *information that come from the isds server.
       
    31  *It also provides the basic getter and setter functions to 
       
    32  *manage the preset's url information.
       
    33  *has been provided 
       
    34  *   
       
    35  */
       
    36 class CIRChannelServerUrlImpl:public CBase
       
    37 	{
       
    38 public:
       
    39 	
       
    40 	
       
    41 	/**CIRChannelServerUrlImpl::NewL()
       
    42 	*Static function
       
    43 	*standard two phased constructor
       
    44 	*@param void
       
    45 	*@return *CIRChannelServerUrlImpl
       
    46 	**/
       
    47 	static  CIRChannelServerUrlImpl* NewL();
       
    48 	
       
    49 	
       
    50 	/**CIRChannelServerUrlImpl::NewLC()
       
    51 	*Static function
       
    52 	*standard two phased constructor
       
    53 	*@param void
       
    54 	*@return *CIRChannelServerUrlImpl
       
    55 	**/
       
    56 	static CIRChannelServerUrlImpl* NewLC();
       
    57 	
       
    58 	
       
    59 	/**CIRChannelServerUrlImpl::SetServerName()
       
    60 	*sets server name 
       
    61 	*@param TDesC
       
    62 	*@return void
       
    63 	**/
       
    64 	void SetServerName(const TDesC& aServerName);
       
    65 	
       
    66 	
       
    67 	/**CIRChannelServerUrlImpl::SetServerUrl()
       
    68 	*sets server url 
       
    69 	*@param TDesC
       
    70 	*@return void
       
    71 	**/
       
    72 	void SetServerUrl(const TDesC& aServerUrl);
       
    73 	
       
    74 	
       
    75 	/**CIRChannelServerUrlImpl::SetBitRate()
       
    76 	*sets server bitrate 
       
    77 	*@param TInt
       
    78 	*@return void
       
    79 	**/
       
    80 	void SetBitRate(TInt aBitrate);
       
    81 	
       
    82 	
       
    83 	/**CIRChannelServerUrlImpl::GetServerName()
       
    84 	*gets server name 
       
    85 	*@param void
       
    86 	*@return TDesC
       
    87 	**/
       
    88 	TDesC& GetServerName();
       
    89 	
       
    90 	
       
    91 	/**CIRChannelServerUrlImpl::GetServerUrl()
       
    92 	*gets server url 
       
    93 	*@param void
       
    94 	*@return TDesC
       
    95 	**/
       
    96 	TDesC& GetServerUrl();
       
    97 	
       
    98 	
       
    99 	/**CIRChannelServerUrlImpl::GetBitRate()
       
   100 	*gets server bitrate
       
   101 	*@param void
       
   102 	*@return TInt
       
   103 	**/
       
   104 	TInt GetBitRate();
       
   105 	
       
   106 	
       
   107 	/**CIRChannelServerUrlImpl::~CIRChannelServerUrl()
       
   108 	*standard C++ destructor 
       
   109 	*@param NA
       
   110 	*@return NA
       
   111 	**/	
       
   112 	~CIRChannelServerUrlImpl();
       
   113 	
       
   114 	
       
   115 	/**CIRChannelServerUrlImpl::=()
       
   116 	*standard C++ copy constructor(deep copy) 
       
   117 	*@param CIRChannelServerUrl
       
   118 	*@return NA
       
   119 	**/	
       
   120 	CIRChannelServerUrlImpl& operator=(const CIRChannelServerUrlImpl& churl);
       
   121 		
       
   122 	
       
   123 	/**CIRChannelServerUrlImpl::ExternalizeL()
       
   124 	*function to externalize url data
       
   125 	*@param CIRChannelServerUrl
       
   126 	*@return NA
       
   127 	**/
       
   128 	void ExternalizeL(RWriteStream& aWriteStream);	
       
   129 	
       
   130 	/**CIRChannelServerUrlImpl::InternalizeL()
       
   131 	*function to internalize url data
       
   132 	*@param CIRChannelServerUrlImpl
       
   133 	*@return NA
       
   134 	**/
       
   135 	void InternalizeL(RReadStream& aReadStream);
       
   136 	
       
   137 protected:
       
   138 	
       
   139 	
       
   140 	/**CIRChannelServerUrlImpl::ConstructL()
       
   141 	*standard second phase construction
       
   142 	*@param void
       
   143 	*@return void
       
   144 	**/	
       
   145 	void ConstructL();
       
   146 	
       
   147 public:
       
   148 	//channel server name
       
   149 	HBufC *iServerName;
       
   150 	//channel server url
       
   151 	HBufC *iURL;
       
   152 	//bitrate supported by channel server
       
   153 	TInt iBitrate;
       
   154 	};
       
   155 	
       
   156 #endif//IRCHANNELSERVERURLIMPL_H