inc/NPRStation.h
changeset 0 0049171ecffb
equal deleted inserted replaced
-1:000000000000 0:0049171ecffb
       
     1 /*
       
     2  ============================================================================
       
     3  Name	: NPRStation.h
       
     4  Author	: Symsource
       
     5  
       
     6  Copyright (c) 2009 Symbian Foundation Ltd
       
     7  This component and the accompanying materials are made available
       
     8  under the terms of the License "Eclipse Public License v1.0"
       
     9  which accompanies this distribution, and is available
       
    10  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 
       
    12  Initial Contributors:
       
    13  - Symsource
       
    14  
       
    15  Contributors:
       
    16  - Symsource
       
    17  
       
    18  Description : Class to wrap all the Station fields 
       
    19  ============================================================================
       
    20  */
       
    21 
       
    22 #ifndef __NPR_STATION_H__
       
    23 #define __NPR_STATION_H__
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32std.h>
       
    27 #include <e32base.h>
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  *  CNPRStation
       
    34  * 
       
    35  */
       
    36 class CNPRStation : public CBase
       
    37 	{
       
    38 public:
       
    39 	/**
       
    40 	 * Two-phased constructor.
       
    41 	 */
       
    42 	static CNPRStation* NewL();
       
    43 
       
    44 	/**
       
    45 	 * Two-phased constructor.
       
    46 	 */
       
    47 	static CNPRStation* NewLC();
       
    48 	
       
    49 	/**
       
    50 	 * Destructor.
       
    51 	 */
       
    52 	~CNPRStation();
       
    53 
       
    54 public:	
       
    55 	inline void SetStationId(TInt aId) {iStationId = aId;};
       
    56 	inline TInt StationId() {return iStationId;};
       
    57 	
       
    58 	void SetNameL(const TDesC8& aName);
       
    59 	inline const TDesC& Name() {return iName;};
       
    60 
       
    61 	void SetFrequencyL(const TDesC8& aFrequency);
       
    62 	inline const TDesC& Frequency() {return iFrequency;};
       
    63 
       
    64 	void SetMarketCityL(const TDesC8& aMarketCity);
       
    65 	inline const TDesC& MarketCity() {return iMarketCity;};
       
    66 		
       
    67 private:
       
    68 	/**
       
    69 	 * EPOC default constructor for performing 2nd stage construction
       
    70 	 */
       
    71 	void ConstructL();
       
    72 	
       
    73 private:
       
    74 	TInt	iStationId;
       
    75 	RBuf	iName;
       
    76 	RBuf	iFrequency;
       
    77 	RBuf	iMarketCity; 
       
    78 	};
       
    79 
       
    80 #endif // __NPR_STATION_H__