--- a/profilesservices/ProfileEngine/EngSrc/CProfileExtraTonesImpl.cpp Tue Aug 31 15:29:50 2010 +0300
+++ b/profilesservices/ProfileEngine/EngSrc/CProfileExtraTonesImpl.cpp Wed Sep 01 12:20:44 2010 +0100
@@ -19,11 +19,11 @@
// INCLUDE FILES
#include "CProfileExtraTonesImpl.h"
+#include "ProfilesVariant.hrh"
+#include <s32strm.h>
+#include <centralrepository.h>
#include "ProfileEngUtils.h"
#include "ProfileEnginePrivateCRKeys.h"
-#include <ProfilesVariant.hrh>
-#include <s32strm.h>
-#include <centralrepository.h>
// ============================ MEMBER FUNCTIONS ===============================
@@ -37,8 +37,6 @@
iIMMessageAlertTone = KNullDesC().AllocL();
iEmailAlertTone = KNullDesC().AllocL();
iVideoCallRingingTone = KNullDesC().AllocL();
- iReminderTone = KNullDesC().AllocL();
- iClockAlarmTone = KNullDesC().AllocL();
}
// -----------------------------------------------------------------------------
@@ -47,14 +45,12 @@
// -----------------------------------------------------------------------------
//
void CProfileExtraTonesImpl::ConstructL(
- const MProfileExtraTones2& aProfileExtraTones )
+ const MProfileExtraTones& aProfileExtraTones )
{
iIMMessageAlertTone = aProfileExtraTones.IMMessageAlertTone().AllocL();
iEmailAlertTone = aProfileExtraTones.EmailAlertTone().AllocL();
iVideoCallRingingTone =
aProfileExtraTones.VideoCallRingingTone().AllocL();
- iReminderTone = aProfileExtraTones.ReminderTone().AllocL();
- iClockAlarmTone = aProfileExtraTones.ClockAlarmTone().AllocL();
}
// -----------------------------------------------------------------------------
@@ -79,7 +75,7 @@
// -----------------------------------------------------------------------------
//
CProfileExtraTonesImpl* CProfileExtraTonesImpl::NewL(
- const MProfileExtraTones2& aProfileExtraTones )
+ const MProfileExtraTones& aProfileExtraTones )
{
CProfileExtraTonesImpl* self = new( ELeave ) CProfileExtraTonesImpl;
@@ -97,8 +93,6 @@
delete iIMMessageAlertTone;
delete iEmailAlertTone;
delete iVideoCallRingingTone;
- delete iReminderTone;
- delete iClockAlarmTone;
}
@@ -139,24 +133,6 @@
aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngVideoCallTone,
aProfileId ), toneFile ) );
iVideoCallRingingTone = toneFile.AllocL();
-
- delete iReminderTone;
- iReminderTone = NULL;
-
- // Reminder tone
- User::LeaveIfError(
- aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngReminderTone,
- aProfileId ), toneFile ) );
- iReminderTone = toneFile.AllocL();
-
- delete iClockAlarmTone;
- iClockAlarmTone = NULL;
-
- // Clock alarm tone
- User::LeaveIfError(
- aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngClockAlarmTone,
- aProfileId ), toneFile ) );
- iClockAlarmTone = toneFile.AllocL();
}
// -----------------------------------------------------------------------------
@@ -182,16 +158,6 @@
User::LeaveIfError(
aCenRep.Set( ProfileEngUtils::ResolveKey( KProEngVideoCallTone,
aProfileId ), *iVideoCallRingingTone ) );
-
- // Reminder Tone
- User::LeaveIfError(
- aCenRep.Set( ProfileEngUtils::ResolveKey( KProEngReminderTone,
- aProfileId ), *iReminderTone ) );
-
- // Clock Alarm Tone
- User::LeaveIfError(
- aCenRep.Set( ProfileEngUtils::ResolveKey( KProEngClockAlarmTone,
- aProfileId ), *iClockAlarmTone ) );
}
// -----------------------------------------------------------------------------
@@ -269,56 +235,4 @@
iVideoCallRingingTone = tmp;
}
-
-
-// -----------------------------------------------------------------------------
-// CProfileExtraTonesImpl::ReminderTone
-//
-// (other items were commented in a header).
-// -----------------------------------------------------------------------------
-//
-const TDesC& CProfileExtraTonesImpl::ReminderTone() const
- {
- return *iReminderTone;
- }
-
-// -----------------------------------------------------------------------------
-// CProfileExtraTonesImpl::SetReminderToneL
-//
-// (other items were commented in a header).
-// -----------------------------------------------------------------------------
-//
-void CProfileExtraTonesImpl::SetReminderToneL(
- const TDesC& aReminderTone )
- {
- HBufC* tmp = aReminderTone.Left( KMaxFileName ).AllocL();
- delete iReminderTone;
- iReminderTone = tmp;
- }
-
-// -----------------------------------------------------------------------------
-// CProfileExtraTonesImpl::ClockAlarmTone
-//
-// (other items were commented in a header).
-// -----------------------------------------------------------------------------
-//
-const TDesC& CProfileExtraTonesImpl::ClockAlarmTone() const
- {
- return *iClockAlarmTone;
- }
-
-// -----------------------------------------------------------------------------
-// CProfileExtraTonesImpl::SetClockAlarmToneL
-//
-// (other items were commented in a header).
-// -----------------------------------------------------------------------------
-//
-void CProfileExtraTonesImpl::SetClockAlarmToneL(
- const TDesC& aClockAlarmTone )
- {
- HBufC* tmp = aClockAlarmTone.Left( KMaxFileName ).AllocL();
- delete iClockAlarmTone;
- iClockAlarmTone = tmp;
- }
-
// End of File