wvuing/wvuieng/EngInc/MCAMessageObserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:12:18 +0200
changeset 1 9018c32e7116
parent 0 094583676ce7
permissions -rw-r--r--
Revision: 201001 Kit: 201003

/*
* Copyright (c) 2004 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:  Observer interface to handle message container changes.
*
*/


#ifndef __MCAMESSAGEOBSERVER_H__
#define __MCAMESSAGEOBSERVER_H__

//  INCLUDES
#include <e32def.h>

//	FORWARD CLASS DECLERATIONS

// CLASS DECLARATION

/**
 *  Observer interface to handle message container changes.
 *
 *  @lib CAEngine.dll
 *  @since 3.0
 */
class MCAMessageObserver
    {

    public: // Definitions

        /**
         * Events for observer to handle.
         */
        enum TMessageEventType
            {
            ENewMessage,
            EMessageChanged,
            EMessageDeleted,
            EChatDeleted
            };

    public: // Interface

        /**
         * Handle events.
         * @param aEvent Event to handle.
         * @param aIndex, Index of message which is affected by event.
         */
        virtual void HandleMessageEvent( TMessageEventType aEvent, TInt aIndex = -1 ) = 0;

    protected: // For protection.

        /**
         * Destructor for protection
         */
        virtual ~MCAMessageObserver() {}
    };

#endif      // __MCAMESSAGEOBSERVER_H__

// End of File