diff -r ecc8def7944a -r 2dc6caa42ec3 ipsservices/ipssosplugin/inc/ipsplgdeleteremote.h --- a/ipsservices/ipssosplugin/inc/ipsplgdeleteremote.h Mon May 03 12:23:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,136 +0,0 @@ -/* -* Copyright (c) 2007-2008 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: Deletes messages first locally and then from server -* -*/ - -#ifndef IPSPLGDELETEREMOTE_H -#define IPSPLGDELETEREMOTE_H - -// INCLUDES -#include -#include // TDesC8 - -class CMsvOperation; -class CMsvEntry; -class CMsvEntrySelection; -class CMsvSession; -class TRequestStatus; - -/** -* class CIpsPlgDeleteRemote -* Encapsulates delete locally operation and delete from server operation. -* First deletes message locally and after it has been completed, deletes from the server -*/ -NONSHARABLE_CLASS ( CIpsPlgDeleteRemote ) : - public CMsvOperation - { - public: - /** - * Constructor. - */ - static CIpsPlgDeleteRemote* NewL( - CMsvSession& aMsvSession, - TRequestStatus& aObserverRequestStatus, - CMsvEntrySelection& aDeletedEntries ); - - /** - * Destructor. - */ - virtual ~CIpsPlgDeleteRemote(); - - /** - * - */ - virtual const TDesC8& ProgressL(); - - - private: - - enum IpsPlgDeleteMessagesState - { - // - EDeletingMessagesStateSetFlags = 0, - // - EDeletingMessagesStateLocally, - EDeletingMessagesStateFromServer - }; - - /** - * Constructor. - */ - CIpsPlgDeleteRemote( - CMsvSession& aMsvSession, - TRequestStatus& aObserverRequestStatus ); - - /** - * Constructor. - */ - void ConstructL( CMsvEntrySelection& aDeletedEntries ); - - /** - * From CActive - */ - void DoCancel(); - - /** - * From CActive - */ - void RunL(); - - /** - * Starts new local delete progress - */ - void StartNextDeleteLocally(); - - /** - * Creates object of CImumDeleteMessagesLocally - */ - void MakeNextDeleteLocallyL(); - - /** - * Starts entry delete after local delete is completed. - */ - void StartDeleteFromServer(); - - /** - * Creates delete operation - */ - void MakeDeleteFromServerL(); - - // - /** - * Sets the locally deleted flag for the next item (iSetFlagIndex) - * return true if operation started successfully, otherwise false - */ - TBool SetNextLocallyDeletedFlagL(); - // - - private: - CMsvOperation* iOperation; - CMsvEntry* iEntry; - CMsvEntrySelection* iEntrySelection; - TInt iEntryCount; - // - TInt iSetFlagIndex; - CMsvEntry* iSetFlagEntry; - // - TBuf8<1> iBlank; - IpsPlgDeleteMessagesState iState; - - }; - -#endif // IPSPLGDELETEREMOTE_H - -// End of File