diff -r f3d95d9c00ab -r 46974bebc798 radioengine/settings/api/cradioregion.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/radioengine/settings/api/cradioregion.h Fri Mar 19 09:29:04 2010 +0200 @@ -0,0 +1,125 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef CRADIOREGION_H +#define CRADIOREGION_H + + +// INCLUDES +#include + +#include "radioengine.hrh" + +// FORWARD DECLARATIONS +class CRadioRegion; +class TResourceReader; + +// DATA TYPES +typedef RPointerArray RRadioRegionArray; +typedef RPointerArray RRadioCountryCodeArray; + +// CLASS DECLARATION + +/** +* Class CRadioRegion provides information about FM region +*/ +NONSHARABLE_CLASS( CRadioRegion ) : public CBase + { +public: + + static CRadioRegion* NewL( TResourceReader& aRr ); + + ~CRadioRegion(); + +// New methods + + /** + * Id Get the id of region + * @return id of region + */ + IMPORT_C TRadioRegion Id() const; + + /** + * StepSize Get the step interval of region + * @return Step size + */ + IMPORT_C TUint32 StepSize() const; + + /** + * Get the minimum frequency of region + * @return Minimum frequency + */ + IMPORT_C TUint32 MinFrequency() const; + + /** + * Get the maximum frequency of region + * @return Maximum frequency + */ + IMPORT_C TUint32 MaxFrequency() const; + + /** + * Get the decimal count of region. + * @return Decimal count. + */ + IMPORT_C TInt DecimalCount() const; + + /** + * CountryCode Get the country code of region + * @return Country code, or empty descriptor if country code doesn't exist + */ + IMPORT_C const RRadioCountryCodeArray& CountryCodes(); + + /** + * Name Get the name of region + * @return Name of region + */ + IMPORT_C const TDesC16& Name() const; + + /** + * SettingItemName Get the name of region for setting item + * @return Name of region + */ + IMPORT_C const TDesC16& SettingItemName() const; + +private: + + CRadioRegion(); + + void ConstructL( TResourceReader& aRr ); + +private: // data + + /** Id of the region*/ + TRadioRegion iId; + /** Step interval*/ + TUint16 iStepSize; + /** Min frequency */ + TUint32 iMinFreq; + /** Max frequency */ + TUint32 iMaxFreq; + /** Decimal count */ + TInt iDecimalCount; + /** Country code*/ + RRadioCountryCodeArray iCountryCodes; + /** Region name*/ + HBufC* iName; + /** Region name for setting item*/ + HBufC* iSettingName; + + }; + +#endif // CRADIOREGION_H