simpledatamodeladapter/inc/presenceplugincontactstate.h
branchRCL_3
changeset 35 fbd2e7cec7ef
parent 0 c8caa15ef882
equal deleted inserted replaced
34:2669f8761a99 35:fbd2e7cec7ef
       
     1 /*
       
     2 * Copyright (c) 2010 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:  IETF SIMPLE Protocol implementation for XIMP Framework
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CPRESENCEPLUGINCONTACTSTATE_H
       
    19 #define C_CPRESENCEPLUGINCONTACTSTATE_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class CPresencePluginContactStateHandler;
       
    24 class MPresenceContactsContextBase;
       
    25 
       
    26 /**
       
    27  *  Base class for presenceplugin contacts states
       
    28  * 
       
    29  *  @lib presenceplugin.dll
       
    30  *  @since S60 V5.0
       
    31  */
       
    32 class CPresencepluginContactState : public CBase
       
    33     {
       
    34 
       
    35 public:
       
    36 
       
    37     CPresencepluginContactState( MPresenceContactsContextBase& aContext,
       
    38         CPresencePluginContactStateHandler& aStateHandler );
       
    39     
       
    40     virtual ~CPresencepluginContactState();
       
    41 
       
    42     virtual void HandleL() = 0;
       
    43     
       
    44     virtual void Complete();
       
    45     
       
    46     virtual void Error( TInt aError );
       
    47     
       
    48 protected: // data
       
    49     
       
    50     /**
       
    51      * Context
       
    52      * Not own.
       
    53      */
       
    54     MPresenceContactsContextBase* iContext;
       
    55     
       
    56     /**
       
    57      * State handler
       
    58      * Not own.
       
    59      */
       
    60     CPresencePluginContactStateHandler* iStateHandler;
       
    61     
       
    62     };
       
    63 
       
    64 
       
    65 #endif // C_CPRESENCEPLUGINCONTACTSTATE_H