cbs/CbsServer/ServerInc/MCbsDbTopicListObserver.H
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Virtual class defining an interface for an observer which gets
       
    15 *                notified when the topic list is changed. 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef     MCBSDBTOPICLISTOBSERVER_H
       
    22 #define     MCBSDBTOPICLISTOBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 #include "CbsCommon.h"
       
    28 
       
    29 //  CLASS DECLARATION 
       
    30 
       
    31 /**
       
    32 *   This class defines the interface for topic list observers.
       
    33 */
       
    34 class MCbsDbTopicListObserver
       
    35     {
       
    36     public:        // New functions
       
    37         /**
       
    38         *   Indicates that the topic list has been initialized.
       
    39         */
       
    40         virtual void TopicListInitializedIndL() = 0;
       
    41 
       
    42         /**
       
    43         *   Indicates that a new topic has been added.
       
    44         *
       
    45         *   @param  aNumber         Number of the topic that has been added
       
    46         */
       
    47         virtual void TopicAddedIndL( const TCbsDbTopicNumber& aNumber ) = 0;
       
    48 
       
    49         /**
       
    50         *   Indicates that a topic has been deleted.
       
    51         *
       
    52         *   @param  aNumber         Number of the topic that was deleted.
       
    53         */
       
    54         virtual void TopicDeletedIndL( const TCbsDbTopicNumber& aNumber ) = 0;
       
    55 
       
    56         /**
       
    57         *   Indicates that a topic has been modified.
       
    58         *
       
    59         *   @param  aNumber         Number of the topic that has been modified.
       
    60         */
       
    61         virtual void TopicModifiedIndL( const TCbsDbTopicNumber& aNumber ) = 0;
       
    62 
       
    63         /**
       
    64         *   Indicates that a topic has received a new message.
       
    65         *
       
    66         *   @param  aNumber         Number of the topic that has received 
       
    67         *                           a new message.
       
    68         */
       
    69         virtual void TopicNewMessageReceivedIndL( 
       
    70             const TCbsDbMessageHandle& aNumber ) = 0;
       
    71     };
       
    72 
       
    73 #endif      //  MCBSDBTOPICLISTOBSERVER_H   
       
    74             
       
    75 // End of File