wvuing/wvuistorage/inc/MCAStoredGroupsObserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 22:44:11 +0200
branchRCL_3
changeset 6 d96c135bc497
parent 0 094583676ce7
permissions -rw-r--r--
Revision: 201002 Kit: 201007

/*
* Copyright (c) 2003-2005 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:  Group data container observer interface
*
*/



#ifndef MCASTOREDGROUPSOBSERVER_H
#define MCASTOREDGROUPSOBSERVER_H

#include <e32std.h>
#include "TStorageManagerGlobals.h"

// CLASS DECLARATION

/**
 *  Interface for group data container observer
 *
 *  @lib CAStorage.dll
 *  @since 2.1
 */
class MCAStoredGroupsObserver
    {
    public: // New functions

        /**
         * Called when a group is deleted.
         * @since 2.1
         * @param aId The ID of the deleted group
         */
        virtual void HandleDelete( const TDesC& aId ) = 0;

        /**
         * Called when a group is added.
         * @since 2.1
         * @param aId The ID of the added group
         */
        virtual void HandleAddition( const TDesC& aId ) = 0;

        /**
         * Called when a group is changed.
         * @since 2.1
         * @param aId The ID of the changed group
         */
        virtual void HandleChange( const TDesC& aId ) = 0;

        /**
         * Called when backup/restore starts/stops.
         * There is no distinction between backup/restore (Symbian limitation).
         * However, the called party should fetch new list(s) as they
         * may have changed if the operation was restore operation.
         * @since 2.1
         * @param aEventType Type of backup/restore event
         */
        virtual void HandleBackupRestoreEvent(
            const TStorageManagerGlobals::TCAObserverEventType aEventType ) = 0;

        /**
         * Virtual destructor
         */
        virtual ~MCAStoredGroupsObserver() {};
    };

#endif      // MCASTOREDGROUPSOBSERVER_H

// End of File