cbs/CbsServer/ServerInc/MCbsDbTopicListObserver.H
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:45:17 +0300
branchRCL_3
changeset 19 7d48bed6ce0c
parent 0 ff3b6d0fd310
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2003 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:  Virtual class defining an interface for an observer which gets
*                notified when the topic list is changed. 
*
*/



#ifndef     MCBSDBTOPICLISTOBSERVER_H
#define     MCBSDBTOPICLISTOBSERVER_H

//  INCLUDES

#include <e32base.h>
#include "CbsCommon.h"

//  CLASS DECLARATION 

/**
*   This class defines the interface for topic list observers.
*/
class MCbsDbTopicListObserver
    {
    public:        // New functions
        /**
        *   Indicates that the topic list has been initialized.
        */
        virtual void TopicListInitializedIndL() = 0;

        /**
        *   Indicates that a new topic has been added.
        *
        *   @param  aNumber         Number of the topic that has been added
        */
        virtual void TopicAddedIndL( const TCbsDbTopicNumber& aNumber ) = 0;

        /**
        *   Indicates that a topic has been deleted.
        *
        *   @param  aNumber         Number of the topic that was deleted.
        */
        virtual void TopicDeletedIndL( const TCbsDbTopicNumber& aNumber ) = 0;

        /**
        *   Indicates that a topic has been modified.
        *
        *   @param  aNumber         Number of the topic that has been modified.
        */
        virtual void TopicModifiedIndL( const TCbsDbTopicNumber& aNumber ) = 0;

        /**
        *   Indicates that a topic has received a new message.
        *
        *   @param  aNumber         Number of the topic that has received 
        *                           a new message.
        */
        virtual void TopicNewMessageReceivedIndL( 
            const TCbsDbMessageHandle& aNumber ) = 0;
    };

#endif      //  MCBSDBTOPICLISTOBSERVER_H   
            
// End of File