wvuing/wvuipresence/inc/MCAWatcherObserver.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Observer API for presence watcher events
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MCAWATCHEROBSERVER_H
       
    20 #define MCAWATCHEROBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MCAStoredContact;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  *  Interface for presence watcher observers.
       
    32  *
       
    33  *  @lib CAEngine.lib
       
    34  *  @since 1.2
       
    35  */
       
    36 class MCAWatcherObserver
       
    37     {
       
    38     public:
       
    39 
       
    40         /**
       
    41          * Gets called when watched friend's presence status changes. This event
       
    42          * is restricted to only network originated events, so if user refreshes
       
    43          * the friends-list by himself, then this event will not raise.
       
    44          * @param aContact Contact that was changed
       
    45          */
       
    46         virtual void HandleWatcherEvent( const MCAStoredContact* aContact ) = 0;
       
    47 
       
    48     protected:
       
    49 
       
    50         /**
       
    51          * Destrutor.
       
    52          */
       
    53         virtual ~MCAWatcherObserver() {};
       
    54     };
       
    55 
       
    56 #endif      // MCAWATCHEROBSERVER_H
       
    57 
       
    58 // End of File