diff -r 6b1d113cdff3 -r 6638e7f4bd8f smsprotocols/smsstack/smsprot/Inc/smspdel.h --- a/smsprotocols/smsstack/smsprot/Inc/smspdel.h Mon May 03 13:37:20 2010 +0300 +++ b/smsprotocols/smsstack/smsprot/Inc/smspdel.h Thu May 06 15:10:38 2010 +0100 @@ -1,77 +1,77 @@ -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -/** - @file - @internalAll -*/ - - -#if !defined (__SMSPDEL_H__) -#define __SMSPDEL_H__ - -#include "smspcomm.h" -#include -#include -#include "smsuact.h" - -class TSmsSettings; - -/** - * @internalComponent - */ -class CSmsPDUDelete : public CSmsuActiveBase - { -public: - static CSmsPDUDelete* NewL(const TSmsSettings& aSmsSettings,RMobileSmsMessaging& aSmsMessaging); - ~CSmsPDUDelete(); - - void Start(CArrayFix& aLocationArray, TRequestStatus& aStatus); - -protected: - void DoRunL(); - void DoCancel(); - -private: - CSmsPDUDelete(const TSmsSettings& aSmsSettings,RMobileSmsMessaging& aSmsMessaging); - void ConstructL(); - void OpenStore(); - void DeletePDU(); - void Complete(TInt aError); - -private: - enum TSmsPDUDeleteState - { - ESmsPDUDeleteIdle, - ESmsPDUDeleteOpeningStore, - ESmsPDUDeleteDeletingPDU - }; -private: - TSmsPDUDeleteState iState; //< The current state of the state machine - - const TSmsSettings& iSmsSettings; //< Global SMS Protocol settings - - RMobileSmsMessaging& iSmsMessaging; //< Reference to the RMobileSmsMessaging class - RMobileSmsStore iSmsStorage; //< Reference to the ETEL Mobile Sms Store - - CArrayFix* iLocationArray; //< Pointer to the TGsmSmsSlotEntry class array. Not "owned" by this class. - RMobilePhone::TMobileName iCurrentStore; //< Class attribute for current store name - }; - - - -//#include "smspdel.inl" - -#endif // !defined __SMSPDEL_H__ +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @internalAll +*/ + + +#if !defined (__SMSPDEL_H__) +#define __SMSPDEL_H__ + +#include "smspcomm.h" +#include +#include +#include "smsuact.h" + +class TSmsSettings; + +/** + * @internalComponent + */ +class CSmsPDUDelete : public CSmsuActiveBase + { +public: + static CSmsPDUDelete* NewL(const TSmsSettings& aSmsSettings,RMobileSmsMessaging& aSmsMessaging); + ~CSmsPDUDelete(); + + void Start(CArrayFix& aLocationArray, TRequestStatus& aStatus); + +protected: + void DoRunL(); + void DoCancel(); + +private: + CSmsPDUDelete(const TSmsSettings& aSmsSettings,RMobileSmsMessaging& aSmsMessaging); + void ConstructL(); + void OpenStore(); + void DeletePDU(); + void Complete(TInt aError); + +private: + enum TSmsPDUDeleteState + { + ESmsPDUDeleteIdle, + ESmsPDUDeleteOpeningStore, + ESmsPDUDeleteDeletingPDU + }; +private: + TSmsPDUDeleteState iState; //< The current state of the state machine + + const TSmsSettings& iSmsSettings; //< Global SMS Protocol settings + + RMobileSmsMessaging& iSmsMessaging; //< Reference to the RMobileSmsMessaging class + RMobileSmsStore iSmsStorage; //< Reference to the ETEL Mobile Sms Store + + CArrayFix* iLocationArray; //< Pointer to the TGsmSmsSlotEntry class array. Not "owned" by this class. + RMobilePhone::TMobileName iCurrentStore; //< Class attribute for current store name + }; + + + +//#include "smspdel.inl" + +#endif // !defined __SMSPDEL_H__