wvuing/wvcommandutils/Inc/mcaservicestateobserver.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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 interface to get events from service state changes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MCASERVICESTATEOBSERVER_H__
       
    20 #define MCASERVICESTATEOBSERVER_H__
       
    21 
       
    22 
       
    23 // CLASS DECLARATION
       
    24 
       
    25 /**
       
    26  *  Observer interface to get events from service state changes.
       
    27  *
       
    28  *  @lib Chat.exe
       
    29  *  @since S60 v3.1
       
    30  */
       
    31 class MCAServiceStateObserver
       
    32     {
       
    33     public:
       
    34 
       
    35         // Possible service states
       
    36         enum TServiceState
       
    37             {
       
    38             EUnknown = 0,
       
    39             EOffline,
       
    40             EOnline
       
    41             };
       
    42 
       
    43         /**
       
    44          * Handle service state event
       
    45          * @param aState Current service state
       
    46          */
       
    47         virtual void HandleServiceStateChangeL( TServiceState aState ) = 0;
       
    48 
       
    49     protected: // For protection.
       
    50 
       
    51         /**
       
    52          * Destructor for protection
       
    53          */
       
    54         virtual ~MCAServiceStateObserver() {}
       
    55     };
       
    56 
       
    57 #endif      // MCASERVICESTATEOBSERVER_H__
       
    58 
       
    59 // End of File