--- a/internetradio2.0/settingssrc/irsettings.cpp Mon May 03 12:25:23 2010 +0300
+++ b/internetradio2.0/settingssrc/irsettings.cpp Fri May 14 15:43:29 2010 +0300
@@ -21,7 +21,7 @@
#include <irsettings.rsg>
#include <pathinfo.h>
#include <s32file.h>
-#include <StringLoader.h>
+#include <centralrepository.h>
#include "irdebug.h"
#include "irsettings.h"
@@ -32,7 +32,6 @@
const TInt KSix = 6;
const TInt KFifty = 50;
const TInt KTimeSize = 60000000 ;
-const TInt KOne = 1;
// ---------------------------------------------------------------------------
// description_if_needed
@@ -136,48 +135,13 @@
// description_if_needed
// ---------------------------------------------------------------------------
//
-EXPORT_C TBool CIRSettings::IsFlagCostWarningL()
- {
- IRLOG_DEBUG( "CIRSettings::IsFlagCostWarningL() - Entering" );
- TBool value = ETrue;
- User::LeaveIfError( iRepository->Get(KIRCostWarningFlag, value) );
- IRLOG_DEBUG( "CIRSettings::IsFlagCostWarningL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetFlagCostWarningL()
- {
- IRLOG_DEBUG( "CIRSettings::SetFlagCostWarningL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRCostWarningFlag, 1));
- IRLOG_DEBUG( "CIRSettings::SetFlagCostWarningL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::ReSetFlagCostWarningL()
- {
- IRLOG_DEBUG( "CIRSettings::ReSetFlagCostWarningL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRCostWarningFlag, 0));
- IRLOG_DEBUG( "CIRSettings::ReSetFlagCostWarningL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
EXPORT_C TBool CIRSettings::IsFlagTermsAndConditionsL()
{
IRLOG_DEBUG( "CIRSettings::IsFlagTermsAndConditionsL() - Entering" );
- TBool value = ETrue;
+ TInt value = 0;
User::LeaveIfError( iRepository->Get(KIRTermsAndConditionsFlag, value) );
IRLOG_DEBUG( "CIRSettings::IsFlagTermsAndConditionsL() - Exiting" );
- return value;
+ return value == 1 ? ETrue : EFalse;
}
// ---------------------------------------------------------------------------
@@ -206,17 +170,6 @@
// description_if_needed
// ---------------------------------------------------------------------------
//
-EXPORT_C void CIRSettings::SetIrappVersionL(const TDesC& aIRAppVersion)
- {
- IRLOG_DEBUG( "CIRSettings::SetIrappVersionL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRIrappVer, aIRAppVersion) );
- IRLOG_DEBUG( "CIRSettings::SetIrappVersionL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
EXPORT_C const TDesC& CIRSettings::GetIrappVersionL() const
{
IRLOG_DEBUG( "CIRSettings::GetIrappVersionL() - Entering" );
@@ -299,41 +252,6 @@
User::LeaveIfError ( iRepository->Set(KIRDefaultPlayVolume, aPlayVolume));
IRLOG_DEBUG( "CIRSettings::SetVolumeSettingL() - Exiting" );
}
-
-
-
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TInt CIRSettings::GetManuallyAddedChId() const
- {
- IRLOG_DEBUG( "CIRSettings::GetManuallyAddedChId() - Entering" );
- TInt value = KOne;
- TInt err = iRepository->Get(KIRUserDefinedRunningChannelId, value);
- if(err)
- {
- IRLOG_DEBUG( "CIRSettings::GetManuallyAddedChId() - Error" );
- }
- IRLOG_DEBUG( "CIRSettings::GetManuallyAddedChId() - Exiting" );
- return value;
-
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetManuallyAddedChIdL()
- {
- IRLOG_DEBUG( "CIRSettings::SetManuallyAddedChIdL() - Entering" );
- iRunningChId++;
- User::LeaveIfError ( iRepository->Set(KIRUserDefinedRunningChannelId, iRunningChId));
- IRLOG_DEBUG( "CIRSettings::SetManuallyAddedChIdL() - Exiting" );
- }
-
-
// ---------------------------------------------------------------------------
// description_if_needed
@@ -478,257 +396,6 @@
IRLOG_DEBUG( "CIRSettings::GetSilencePeriodStartL() - Exiting" );
return iSilencePeriodStartTime;
}
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TBool CIRSettings::DisplayAccessPointL() const
- {
- IRLOG_DEBUG( "CIRSettings::DisplayAccessPointL() - Entering" );
- TBool value = ETrue;
- User::LeaveIfError( iRepository->Get(KIRDefaultAccessPoint, value) );
- IRLOG_DEBUG( "CIRSettings::DisplayAccessPointL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetDisplayAccessPointL()
- {
- IRLOG_DEBUG( "CIRSettings::SetDisplayAccessPointL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRDefaultAccessPoint, 1) );
- IRLOG_DEBUG( "CIRSettings::SetDisplayAccessPointL() - Exiting" );
- }
-
-EXPORT_C void CIRSettings::SetStereoModeL(TInt val)
-{
- IRLOG_DEBUG( "CIRSettings::SetStereoModeL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRStereoMode, val));
- IRLOG_DEBUG( "CIRSettings::SetStereoModeL() - Exiting" );
-
-}
-
-EXPORT_C TInt CIRSettings::GetStereoMode()
-{
- IRLOG_DEBUG( "CIRSettings::GetStereoMode() - Entering" );
- TInt value = 0;
- TInt err = iRepository->Get(KIRStereoMode, value);
- if(err)
- {
- IRLOG_DEBUG( "CIRSettings::GetStereoMode() - Error" );
- }
- IRLOG_DEBUG( "CIRSettings::GetStereoMode() - Exiting" );
- return value;
-}
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::ReSetDisplayAccessPointL()
- {
- IRLOG_DEBUG( "CIRSettings::ReSetDisplayAccessPointL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRDefaultAccessPoint, 0) );
- IRLOG_DEBUG( "CIRSettings::ReSetDisplayAccessPointL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetBearerIdL(TUint32 aBearerId)
- {
- IRLOG_DEBUG( "CIRSettings::SetBearerIdL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRUserDefinedBearerID, (TInt)aBearerId));
- IRLOG_DEBUG( "CIRSettings::SetBearerIdL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TUint32 CIRSettings::GetBearerIdL() const
- {
- IRLOG_DEBUG( "CIRSettings::GetBearerIdL() - Entering" );
- TInt value = 0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedBearerID, value) );
- IRLOG_DEBUG( "CIRSettings::GetBearerIdL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetNetworkIdL(TUint32 aBearerId)
- {
- IRLOG_DEBUG( "CIRSettings::SetNetworkIdL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRUserDefinedNetworkID, (TInt)aBearerId) );
- IRLOG_DEBUG( "CIRSettings::SetNetworkIdL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TUint32 CIRSettings::GetNetworkIdL() const
- {
- IRLOG_DEBUG( "CIRSettings::GetNetworkIdL() - Entering" );
- TInt value = 0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedNetworkID, value) );
- IRLOG_DEBUG( "CIRSettings::GetNetworkIdL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetApIdL(TUint32 aBearerId)
- {
- IRLOG_DEBUG( "CIRSettings::SetApIdL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRUserDefinedAccessPoint , (TInt)aBearerId) );
- IRLOG_DEBUG( "CIRSettings::SetApIdL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TUint32 CIRSettings::GetApIdL() const
- {
- IRLOG_DEBUG( "CIRSettings::GetApIdL() - Entering" );
- TInt value = 0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedAccessPoint, value) );
- IRLOG_DEBUG( "CIRSettings::GetApIdL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetUserSavedApSettingsL( TUint32 aBearerId,TUint32 aNetworkId,
- TUint32 aApId)
- {
- IRLOG_DEBUG( "CIRSettings::SetUserSavedApSettingsL() - Entering" );
- SetBearerIdL( aBearerId );
- SetNetworkIdL( aNetworkId );
- SetApIdL( aApId );
- IRLOG_DEBUG( "CIRSettings::SetUserSavedApSettingsL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::GetUserSavedApSettingsL( TUint32& aBearerId,TUint32& aNetworkId,
- TUint32& aApId) const
- {
- IRLOG_DEBUG( "CIRSettings::GetUserSavedApSettingsL() - Entering" );
- TInt value = 0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedAccessPoint, value) );
- aApId = value;
-
- value =0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedNetworkID, value) );
- aNetworkId = value;
-
- value =0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedBearerID, value) );
- aBearerId = value;
- IRLOG_DEBUG( "CIRSettings::GetUserSavedApSettingsL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetGPRSBitrateQualityL(TInt aBitrate)
- {
- IRLOG_DEBUG( "CIRSettings::SetGPRSBitrateQualityL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRGprsBitRate, aBitrate) );
- IRLOG_DEBUG( "CIRSettings::SetGPRSBitrateQualityL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TInt CIRSettings::GetGPRSBitrateQuality() const
- {
- IRLOG_DEBUG( "CIRSettings::GetGPRSBitrateQuality() - Entering" );
- TInt value =0;
- TInt err = iRepository->Get(KIRGprsBitRate, value);
- if(err)
- {
- IRLOG_DEBUG( "CIRSettings::GetGPRSBitrateQuality() - Error" );
- }
- IRLOG_DEBUG( "CIRSettings::GetGPRSBitrateQuality() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetWiFiBitrateQualityL(TInt aBitrate)
- {
- IRLOG_DEBUG( "CIRSettings::SetWiFiBitrateQualityL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRWifiBitRate, aBitrate) );
- IRLOG_DEBUG( "CIRSettings::SetWiFiBitrateQualityL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TInt CIRSettings::GetWiFiBitrateQuality() const
- {
- IRLOG_DEBUG( "CIRSettings::GetWiFiBitrateQuality() - Entering" );
- TInt value =2;
- TInt err = iRepository->Get(KIRWifiBitRate, value);
- if(err)
- {
- IRLOG_DEBUG( "CIRSettings::GetWiFiBitrateQuality() - Error" );
- }
-
- IRLOG_DEBUG( "CIRSettings::GetWiFiBitrateQuality() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::Set3GBitrateQualityL(TInt aBitrate)
- {
- IRLOG_DEBUG( "CIRSettings::Set3GBitrateQualityL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIR3GBitRate, aBitrate) );
- IRLOG_DEBUG( "CIRSettings::Set3GBitrateQualityL() - Exiting" );
- }
-
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TInt CIRSettings::Get3GBitrateQuality() const
- {
- IRLOG_DEBUG( "CIRSettings::Get3GBitrateQuality() - Entering" );
- TInt value = 1;
- TInt err = iRepository->Get(KIR3GBitRate, value);
- if(err)
- {
- IRLOG_DEBUG( "CIRSettings::Get3GBitrateQuality() - Error" );
- }
-
- IRLOG_DEBUG( "CIRSettings::Get3GBitrateQuality() - Exiting" );
- return value;
- }
// ---------------------------------------------------------------------------
// description_if_needed
@@ -849,112 +516,6 @@
IRLOG_DEBUG( "CIRSettings::PrivatePath" );
return iPrivatePath;
}
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C const RMobilePhone::TMobilePhoneSubscriberId& CIRSettings::SubscriberIdL() const
- {
- IRLOG_DEBUG( "CIRSettings::SubscriberIdL() - Entering" );
- User::LeaveIfError( iRepository->Get(KIRUserDefinedSubscriberId, (TDes&)iSubscriberId) );
- IRLOG_DEBUG( "CIRSettings::SubscriberIdL() - Exiting" );
- return iSubscriberId;
- }
-
-// ---------------------------------------------------------------------------
-// description_if_needed
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetSubscriberIdL( const RMobilePhone::TMobilePhoneSubscriberId&
- aSubscriberId )
- {
- IRLOG_DEBUG( "CIRSettings::SetSubscriberIdL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRUserDefinedSubscriberId, (TDes&)aSubscriberId) );
- IRLOG_DEBUG( "CIRSettings::SetSubscriberIdL() - Exiting" );
- }
-
-
-//Added for ALR/SNAP
-
-
-// ---------------------------------------------------------------------------
-// SetUserDefinedSelectionL()
-// Sets the UserDefinedSelection in cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetUserDefinedSelectionL(TUint32 aUserDefinedSelection)
- {
- IRLOG_DEBUG( "CIRSettings::SetUserDefinedSelectionL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRUserDefinedSelection, (TInt)aUserDefinedSelection) );
- IRLOG_DEBUG( "CIRSettings::SetUserDefinedSelectionL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// GetUserDefinedSelectionL()
-// Gets the UserDefinedSelection from cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TUint32 CIRSettings::GetUserDefinedSelectionL() const
- {
- IRLOG_DEBUG( "CIRSettings::GetUserDefinedSelectionL() - Entering" );
- TInt value = 0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedSelection, value) );
- IRLOG_DEBUG( "CIRSettings::GetUserDefinedSelectionL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// SetDestinationIdL()
-// Sets the DestinationId in cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetDestinationIdL(TUint32 aDestinationId)
- {
- IRLOG_DEBUG( "CIRSettings::SetDestinationIdL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRUserDefinedDestinationId, (TInt)aDestinationId) );
- IRLOG_DEBUG( "CIRSettings::SetDestinationIdL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// GetDestinationIdL()
-// Gets the DestinationId from cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TUint32 CIRSettings::GetDestinationIdL() const
- {
- IRLOG_DEBUG( "CIRSettings::GetDestinationIdL() - Entering" );
- TInt value = 0;
- User::LeaveIfError( iRepository->Get(KIRUserDefinedDestinationId, value) );
- IRLOG_DEBUG( "CIRSettings::GetDestinationIdL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// IsFlagIfAnyFavL()
-// Method to determine if any channel was added to favorites
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TBool CIRSettings::IsFlagIfAnyFavL()
- {
- IRLOG_DEBUG( "CIRSettings::IsFlagIfAnyFavL() - Entering" );
- TBool value = EFalse;
- User::LeaveIfError( iRepository->Get(KIRIfAnyFavFlag, value) );
- IRLOG_DEBUG( "CIRSettings::IsFlagIfAnyFavL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// SetFlagIfAnyFavL()
-// Method to set boolean value when any channel was added to favorites
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetFlagIfAnyFavL()
- {
- IRLOG_DEBUG( "CIRSettings::SetFlagIfAnyFavL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRIfAnyFavFlag, 1));
- IRLOG_DEBUG( "CIRSettings::SetFlagIfAnyFavL() - Exiting" );
- }
// ---------------------------------------------------------------------------
// SetStartingViewIdL()
@@ -983,58 +544,6 @@
}
// ---------------------------------------------------------------------------
-// SetStartingViewParameterL()
-// Sets the starting view parameter in cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetStartingViewParameterL(TUint32 aParameter)
- {
- IRLOG_DEBUG( "CIRSettings::SetStartingViewParameterL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRStartingViewParameter, (TInt)aParameter) );
- IRLOG_DEBUG( "CIRSettings::SetStartingViewParameterL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// GetStartingViewParameterL()
-// Gets the starting view parameter from cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TUint32 CIRSettings::GetStartingViewParameterL() const
- {
- IRLOG_DEBUG( "CIRSettings::GetStartingViewParameterL() - Entering" );
- TInt value = 0;
- User::LeaveIfError( iRepository->Get(KIRStartingViewParameter, value) );
- IRLOG_DEBUG( "CIRSettings::GetStartingViewParameterL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
-// SetStickyViewFlagL()
-// Sets the sticky view flag in cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C void CIRSettings::SetStickyViewFlagL(TBool aFlag)
- {
- IRLOG_DEBUG( "CIRSettings::SetStickyViewFlagL() - Entering" );
- User::LeaveIfError ( iRepository->Set(KIRStickyViewFlag, aFlag));
- IRLOG_DEBUG( "CIRSettings::SetStickyViewFlagL() - Exiting" );
- }
-
-// ---------------------------------------------------------------------------
-// GetStickyViewFlagL()
-// Gets the sticky view flag from cenrep
-// ---------------------------------------------------------------------------
-//
-EXPORT_C TBool CIRSettings::GetStickyViewFlagL()
- {
- IRLOG_DEBUG( "CIRSettings::GetStickyViewFlagL() - Entering" );
- TBool value = EFalse;
- User::LeaveIfError( iRepository->Get(KIRStickyViewFlag, value) );
- IRLOG_DEBUG( "CIRSettings::GetStickyViewFlagL() - Exiting" );
- return value;
- }
-
-// ---------------------------------------------------------------------------
// GetGlobalAdvFlagL()
// Gets the global advertisement flag from cenrep
// ---------------------------------------------------------------------------
@@ -1047,3 +556,49 @@
IRLOG_DEBUG( "CIRSettings::GetGlobalAdvFlagL() - Exiting" );
return value;
}
+
+// ---------------------------------------------------------------------------
+// description_if_needed
+// ---------------------------------------------------------------------------
+//
+EXPORT_C const TDesC& CIRSettings::GetManuallyInputtedStationUrlL() const
+ {
+ IRLOG_DEBUG( "CIRSettings::GetManuallyInputtedStationUrlL() - Entering" );
+ User::LeaveIfError( iRepository->Get(KIRStationUrl, (TDes&)iStationUrl) );
+ IRLOG_DEBUG( "CIRSettings::GetManuallyInputtedStationUrlL() - Exiting" );
+ return iStationUrl;
+ }
+
+// ---------------------------------------------------------------------------
+// description_if_needed
+// ---------------------------------------------------------------------------
+//
+EXPORT_C void CIRSettings::SetManuallyInputtedStationUrlL(const TDesC& aUrl)
+ {
+ IRLOG_DEBUG( "CIRSettings::SetManuallyInputtedStationUrlL() - Entering" );
+ User::LeaveIfError ( iRepository->Set(KIRStationUrl, aUrl) );
+ IRLOG_DEBUG( "CIRSettings::SetManuallyInputtedStationUrlL() - Exiting" );
+ }
+
+// ---------------------------------------------------------------------------
+// description_if_needed
+// ---------------------------------------------------------------------------
+//
+EXPORT_C const TDesC& CIRSettings::GetManuallyInputtedStationNameL() const
+ {
+ IRLOG_DEBUG( "CIRSettings::GetManuallyInputtedStationNameL() - Entering" );
+ User::LeaveIfError( iRepository->Get(KIRStationName, (TDes&)iStationName) );
+ IRLOG_DEBUG( "CIRSettings::GetManuallyInputtedStationNameL() - Exiting" );
+ return iStationName;
+ }
+
+// ---------------------------------------------------------------------------
+// description_if_needed
+// ---------------------------------------------------------------------------
+//
+EXPORT_C void CIRSettings::SetManuallyInputtedStationNameL(const TDesC& aName)
+ {
+ IRLOG_DEBUG( "CIRSettings::SetManuallyInputtedStationNameL() - Entering" );
+ User::LeaveIfError ( iRepository->Set(KIRStationName, aName) );
+ IRLOG_DEBUG( "CIRSettings::SetManuallyInputtedStationNameL() - Exiting" );
+ }