1.1 --- a/epoc32/include/csmsaccount.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,96 +0,0 @@
1.4 -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -#ifndef __CSMSACCOUNT_H__
1.20 -#define __CSMSACCOUNT_H__
1.21 -
1.22 -
1.23 -#include <e32base.h>
1.24 -#include <msvapi.h>
1.25 -
1.26 -
1.27 -class CSmsSettings;
1.28 -class CMsvOffPeakTimes;
1.29 -class CMsvScheduleSettings;
1.30 -class CMsvSendErrorActions;
1.31 -class CMsvSysAgentActions;
1.32 -class CRepository;
1.33 -
1.34 -
1.35 -/**
1.36 -Stores SMS service and Schedule Send settings to Central Repository.
1.37 -
1.38 -@publishedAll
1.39 -@released
1.40 -*/
1.41 -class CSmsAccount : public CBase, public MMsvSessionObserver
1.42 - {
1.43 -public:
1.44 -
1.45 - IMPORT_C static CSmsAccount* NewL();
1.46 - IMPORT_C static CSmsAccount* NewLC();
1.47 - IMPORT_C virtual ~CSmsAccount();
1.48 -
1.49 - IMPORT_C void InitialiseDefaultSettingsL(CSmsSettings& aSmsSettings);
1.50 - IMPORT_C void InitialiseDefaultSettingsL(CMsvScheduleSettings& aScheduleSettings, CMsvOffPeakTimes& aOffPeakTimes, CMsvSendErrorActions& aErrorActions, CMsvSysAgentActions& aSysAgentActions);
1.51 - IMPORT_C void LoadSettingsL(CSmsSettings& aSmsSettings);
1.52 - IMPORT_C void LoadSettingsL(CMsvScheduleSettings& aScheduleSettings, CMsvOffPeakTimes& aOffPeakTimes, CMsvSendErrorActions& aErrorActions, CMsvSysAgentActions& aSysAgentActions);
1.53 - IMPORT_C void SaveSettingsL(const CSmsSettings& aSmsSettings) const;
1.54 - IMPORT_C void SaveSettingsL(const CMsvScheduleSettings& aScheduleSettings, const CMsvOffPeakTimes& aOffPeakTimes, const CMsvSendErrorActions& aErrorActions, const CMsvSysAgentActions& aSysAgentActions) const;
1.55 -
1.56 -private:
1.57 - CSmsAccount();
1.58 - void ConstructL();
1.59 - void HandleSessionEventL(TMsvSessionEvent , TAny* , TAny* , TAny* );
1.60 - CMsvSession& SessionL();
1.61 -
1.62 - TMsvId CreateSmsServiceL();
1.63 - void ResetSettings();
1.64 -
1.65 -private:
1.66 - enum TSmsSettingsCenRepId
1.67 - {
1.68 - // Service Settings
1.69 - ESmsServiceId = 0x00000000,
1.70 - ESmsSettingsVersionId = 0x00000001,
1.71 - ESmsSettingsMesssageVersionId = 0x00000002,
1.72 - ESmsValidityPeriodId = 0x00000003,
1.73 - ESmsValidityPeriodFormatId = 0x00000004,
1.74 - ESmsAlphabetId = 0x00000005,
1.75 - ESmsMsgFlagsId = 0x00000006,
1.76 - ESmsMessageConversionId = 0x00000007,
1.77 - ESmsFlagsId = 0x00000008,
1.78 - ESmsStatusReportHandlingId = 0x00000009,
1.79 - ESmsSpecialMessageHandlingId = 0x0000000A,
1.80 - ESmsCommDbActionId = 0x0000000B,
1.81 - ESmsDeliveryId = 0x0000000C,
1.82 - ESmsDefaultSCId = 0x0000000D,
1.83 - ESmsSCAddressesCountId = 0x0000000E,
1.84 - ESmsBearerActionId = 0x0000000F,
1.85 - ESmsBearerId = 0x00000010,
1.86 - ESmsClass2FolderId = 0x00000020,
1.87 - ESmsDescriptionLengthId = 0x00000030,
1.88 - ESmsAccountNameId = 0x00000040,
1.89 -
1.90 - ESmsSCAddressesPartialId = 0x00001000,
1.91 - EMsgSMSTimeStampSettings = 0x000A0020
1.92 - };
1.93 -
1.94 -private:
1.95 - CMsvSession* iMsvSession;
1.96 - CRepository* iRepository;
1.97 - };
1.98 -
1.99 -#endif // __CSMSACCOUNT_H__