telephonyserverplugins/multimodetsy/Multimode/sms/mSMSDEL.H
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalAll 
       
    19 */
       
    20 
       
    21 #ifndef __MSMSDEL_H__
       
    22 #define __MSMSDEL_H__
       
    23 
       
    24 #include "smsbase.H"
       
    25 
       
    26 
       
    27 class CMobileSmsStore;
       
    28 class CATSmsStorageDelete : public CATSmsCommands
       
    29 	{
       
    30 public:
       
    31 	static CATSmsStorageDelete* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    32 	CATSmsStorageDelete(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    33 	~CATSmsStorageDelete();
       
    34 	virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams);
       
    35 	virtual void Stop(TTsyReqHandle aTsyReqHandle);
       
    36 	virtual void EventSignal(TEventSource aSource);
       
    37 	virtual void CompleteWithIOError(TEventSource aSource, TInt aStatus);
       
    38 	void Complete(TInt aError);
       
    39 	virtual void Complete(TInt aError, TEventSource aSource);
       
    40 	
       
    41 private:
       
    42 	TInt ValidateExpectStringsWithCmsError();
       
    43 	void ConstructL();
       
    44 	void StartDeleteSequence();
       
    45 private:
       
    46 	enum {
       
    47 		EATNotInProgress,
       
    48 		EATWaitForSendingDeleteComplete,
       
    49 		EATWaitForOKResponseComplete,
       
    50 		EATWaitForSendingPrefMemComplete,
       
    51 		EATWaitForPrefMemResponse
       
    52 		} iState;
       
    53 
       
    54 	TBuf8<KGenericBufferSize> iTxBuffer;
       
    55 	TInt iDeleteIndex; 
       
    56 	TBool iSmsDeleted;
       
    57 	TBool iCancelled;
       
    58 
       
    59 	CMobileSmsStore* iSmsStore;
       
    60 	};
       
    61 
       
    62 #endif