ipsservices/ipssosplugin/inc/ipsplgdeletelocal.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:41:10 +0300
changeset 23 2dc6caa42ec3
parent 18 578830873419
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* 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:  Local message deletion class
*
*/

#ifndef IPSPLGDELETELOCAL_H
#define IPSPLGDELETELOCAL_H

//  INCLUDES

#include <cacheman.h>


//<qmail> removed
//<qmail> comment added
/**
* class CIpsPlgDeleteLocal
* Implements virtual Filter() of CImCacheManager and decides if
* message should be deleted. 
*/
//</qmail>
NONSHARABLE_CLASS( CIpsPlgDeleteLocal ) : public CImCacheManager
    {
    public:

        /**
        * Two-phased constructor.
        * @param aMessageSelection array of message ids to be purged
        * @param aMsvSession
        * @param aObserverRequestStatus
        * @return pointer to created CIpsPlgDeleteLocal object.
        */
        static CIpsPlgDeleteLocal* NewL(
            CMsvEntrySelection* aMessageSelection,
            CMsvSession& aMsvSession,
            TRequestStatus& aObserverRequestStatus );

        /**
        * destructor
        */
        virtual ~CIpsPlgDeleteLocal();

    
    protected:
    
        /**
        * Symbian OS constructor.
        * @param aMessageSelection array of message ids to be purged
        */
        void ConstructL( CMsvEntrySelection* aMessageSelection );

    private:
    
        /**
        * from CImCacheManager
        */
        TBool Filter() const;

    private:
    
        /**
        * C++ constructor
        */
        CIpsPlgDeleteLocal(
            CMsvSession& aMsvSession,
            TRequestStatus& aObserverRequestStatus );

    private: // data
//<qmail>
        CMsvEntrySelection*                 iMessageSelection; // owned
//</qmail>        
    };

#endif      // IPSPLGDELETELOCAL_H

// End of File