presencefwsimpleadpt/inc/msimplepluginconnectionobs.h
branchRCL_3
changeset 17 2669f8761a99
parent 16 2580314736af
child 18 fbd2e7cec7ef
equal deleted inserted replaced
16:2580314736af 17:2669f8761a99
     1 /*
       
     2 * Copyright (c) 2007 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:    Presence FW SIMPLE plugin engine connection observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MSIMPLEPLUGINCONNECTIONOBSERVER_H
       
    22 #define MSIMPLEPLUGINCONNECTIONOBSERVER_H
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 class TXIMPRequestId;
       
    27 class MXIMPObjectFactory;
       
    28 class MPresenceObjectFactory;
       
    29 class MXIMPProtocolConnectionHost;
       
    30 
       
    31 class CSimplePluginWinfo;
       
    32 class MSimpleWinfo;
       
    33 class CSimplePluginXdmUtils;
       
    34 
       
    35 
       
    36 /**
       
    37  *  MSimplePluginConnectionObs
       
    38  *
       
    39  *  SIMPLE engine connection
       
    40  *
       
    41  *  @lib simpleengine
       
    42  *  @since s60 v5.0
       
    43  */
       
    44 
       
    45 class MSimplePluginConnectionObs
       
    46     {
       
    47 
       
    48 public:
       
    49 
       
    50 enum TReqType
       
    51     {
       
    52     /** undefined */
       
    53     ENoReq = 0,
       
    54     /** Connection initializing */
       
    55     EOpenSess
       
    56     };
       
    57 
       
    58     /**
       
    59      * Coplete the request
       
    60      *
       
    61      * @since S60 3.2
       
    62      * @param aType request type
       
    63      * @param aStatus status
       
    64      */
       
    65     virtual void CompleteReq( TReqType aType, TInt aStatus ) = 0;
       
    66 
       
    67     /**
       
    68      * Coplete the request
       
    69      *
       
    70      * @since S60 3.2
       
    71      * @param aReqId PrFw request id
       
    72      * @param aStatus status
       
    73      */
       
    74     virtual void CompleteReq( TXIMPRequestId aReqId, TInt aStatus ) = 0;
       
    75     
       
    76     /**
       
    77      * Coplete the SIP watcher info request
       
    78      *
       
    79      * @since S60 3.2
       
    80      * @param aReqId PrFw request id
       
    81      * @param aStatus status
       
    82      */
       
    83     virtual void CompleteWinfoReq( TXIMPRequestId aReqId, TInt aStatus ) = 0;    
       
    84 
       
    85     /**
       
    86      * PrFw Object Factory accessor
       
    87      * @since S60 3.2
       
    88      * @return PrFw Object Factory
       
    89      */
       
    90     virtual MXIMPObjectFactory& ObjectFactory()=0;
       
    91     
       
    92     /**
       
    93      * PrFw Object Factory accessor
       
    94      * @since S60 3.2
       
    95      * @return PrFw Object Factory
       
    96      */
       
    97     virtual MPresenceObjectFactory& PresenceObjectFactory()=0;
       
    98 
       
    99     /**
       
   100      * CSimplePluginWinfo accessor
       
   101      * @since S60 3.2
       
   102      * @return CSimplePluginWinfo, ownership is not transferred.
       
   103      */
       
   104     virtual CSimplePluginWinfo* WinfoHandlerL()=0;
       
   105 
       
   106     /**
       
   107      * CSimplePluginWinfoObserver is terminated
       
   108      * @since S60 3.2
       
   109      * @param aReason reason code
       
   110      */
       
   111     virtual void WinfoTerminatedL( TInt aReason )=0;
       
   112 
       
   113     /**
       
   114      * Watcher info subscription notification is received
       
   115      * @aWinfo notification content
       
   116      */
       
   117     virtual void WinfoNotification( MSimpleWinfo& aWinfo ) = 0;
       
   118 
       
   119     /**
       
   120      * Access CSimplePluginXdmUtils
       
   121      * @return CSimplePluginXdmUtils entity
       
   122      */
       
   123     virtual CSimplePluginXdmUtils* XdmUtilsL() = 0;
       
   124 
       
   125     /**
       
   126      * Access connection host
       
   127      * @return MXIMPProtocolConnectionHost
       
   128      */
       
   129     virtual MXIMPProtocolConnectionHost* Host() = 0;    
       
   130 
       
   131     };
       
   132 
       
   133 #endif
       
   134 
       
   135 // End of File