smsprotocols/smsstack/smsprot/Inc/smspdel.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 
       
    22 #if !defined (__SMSPDEL_H__)
       
    23 #define __SMSPDEL_H__
       
    24 
       
    25 #include "smspcomm.h"
       
    26 #include <e32base.h>
       
    27 #include <etelmm.h>
       
    28 #include "smsuact.h"
       
    29 
       
    30 class TSmsSettings;
       
    31 
       
    32 /**
       
    33  *  @internalComponent
       
    34  */
       
    35 class CSmsPDUDelete : public CSmsuActiveBase
       
    36 	{
       
    37 public:
       
    38 	static CSmsPDUDelete* NewL(const TSmsSettings& aSmsSettings,RMobileSmsMessaging& aSmsMessaging);
       
    39 	~CSmsPDUDelete();
       
    40 
       
    41 	void Start(CArrayFix<TGsmSmsSlotEntry>& aLocationArray, TRequestStatus& aStatus);
       
    42 
       
    43 protected:
       
    44 	void DoRunL();
       
    45 	void DoCancel();
       
    46 
       
    47 private:
       
    48     CSmsPDUDelete(const TSmsSettings& aSmsSettings,RMobileSmsMessaging& aSmsMessaging);
       
    49 	void ConstructL();
       
    50 	void OpenStore();
       
    51 	void DeletePDU();
       
    52 	void Complete(TInt aError);
       
    53 
       
    54 private:
       
    55 	enum TSmsPDUDeleteState
       
    56 		{
       
    57 		ESmsPDUDeleteIdle,
       
    58 		ESmsPDUDeleteOpeningStore,
       
    59 		ESmsPDUDeleteDeletingPDU
       
    60 		};
       
    61 private:
       
    62 	TSmsPDUDeleteState iState;			//< The current state of the state machine
       
    63 
       
    64 	const TSmsSettings& iSmsSettings;	//< Global SMS Protocol settings
       
    65 
       
    66 	RMobileSmsMessaging& iSmsMessaging;	//< Reference to the RMobileSmsMessaging class
       
    67 	RMobileSmsStore iSmsStorage;		//< Reference to the ETEL Mobile Sms Store
       
    68 
       
    69 	CArrayFix<TGsmSmsSlotEntry>* iLocationArray;		//< Pointer to the TGsmSmsSlotEntry class array. Not "owned" by this class.
       
    70 	RMobilePhone::TMobileName iCurrentStore;	//< Class attribute for current store name
       
    71 	};
       
    72 
       
    73 
       
    74 
       
    75 //#include "smspdel.inl"
       
    76 
       
    77 #endif // !defined __SMSPDEL_H__