Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // 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
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __SMUTSIMPARAM_H__
17 #define __SMUTSIMPARAM_H__
23 The UID for the stream into which the SIM parameters are stored.
27 Should be moved to the cpp file for this class.
29 const TUid KUidMsvSimSmsParams = {0x100081BC};
31 class CMobilePhoneSmspList;
35 A packaged TInt value.
37 This is used by CSmsSimParamOperation.
39 @see CSmsSimParamOperation::ProgressL()
44 typedef TPckgBuf<TInt> TIntBuf;
47 Encapsulates an operation to read/write an array of SMS parameters from a SIM.
49 An operation of this type if returned by the SMS client MTM for the read and
50 write SIM paramter operations.
52 These operations are generated from calling the SMS client MTM APIs
53 CSmsClientMtm::ReadSimParamsL and CSmsClientMtm::WriteSimParamsL. The
54 CSmsClientMtm::InvokeAsyncFunctionL API should not be used for these operations.
56 @see CSmsClientMtm::ReadSimParamsL
57 @see CSmsClientMtm::WriteSimParamsL
62 class CSmsSimParamOperation : public CMsvOperation
66 static CSmsSimParamOperation* ReadSimParamsL(TUid aMtm, TMsvId aService, CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus);
67 static CSmsSimParamOperation* WriteSimParamsL(const CMobilePhoneSmspList& aList, TUid aMtm, TMsvId aService, CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus);
68 virtual ~CSmsSimParamOperation();
70 inline const CMobilePhoneSmspList& SmspList() const;
72 IMPORT_C CMobilePhoneSmspList* ServiceCentersLC() const;
73 IMPORT_C const TDesC8& ProgressL();
75 IMPORT_C static void RestoreSimParamsL(CMsvStore& aStore, CMobilePhoneSmspList& aList);
76 IMPORT_C static void StoreSimParamsL(CMsvStore& aStore, const CMobilePhoneSmspList& aList);
78 private: // methods from CActive
81 virtual void DoCancel();
82 virtual TInt RunError(TInt aError);
86 CSmsSimParamOperation(TUid aMtm, TMsvId aService, CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus);
88 void DoReadSimParamsL();
89 void DoRunReadSimParamsL(/*TSmsProgress aProgress*/);
90 void DoWriteSimParamsL(const CMobilePhoneSmspList& aList);
92 void TransferCommandL(TInt aCommandId);
98 This defines the state machine.
100 enum TReadSimParamsState
103 Specifies waiting state
107 Specifies reading state
109 EStateReadingSimParams,
111 Specifies writing state
113 EStateWritingSimParams
117 A list containing the SMS parameters
119 CMobilePhoneSmspList* iSimParams;
121 TIntBuf iProgressBuf;
122 CMsvOperation* iOperation;
126 Gets the list of SMS parameters on the SIM, after a successfully completed
129 If the operation has not successfully completed, this function returns an
132 This function should ot be used with a write SIM parameters operation.
135 The list of SMS parameters read from the SIM.
138 This operation was not reading the SIM parameters. The operation was not returned
139 from CSmsClientMtm::ReadSimParamsL (debug only).
141 inline const CMobilePhoneSmspList& CSmsSimParamOperation::SmspList() const
143 __ASSERT_DEBUG(iState == EStateReadingSimParams, Panic(ESmscPanicUnexpectedCommand));
147 #endif // __SMUTSIMPARAM_H__