imstutils/imconnectionprovider/tsrc/imconnectionprovider_test/src/stubs/s_ximpcontext.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2009 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: s_ximpcontext.h
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MXIMPFWPRESENCECONTEXTSTUB_H
       
    19 #define MXIMPFWPRESENCECONTEXTSTUB_H
       
    20 
       
    21 #include <ximpcontext.h>
       
    22 
       
    23 class MyMXIMPObjectFactoryStub;
       
    24 
       
    25 class MXIMPContextStub : public CBase, public MXIMPContext
       
    26     {
       
    27 public:
       
    28 	MXIMPContextStub();
       
    29 	~MXIMPContextStub();
       
    30     void RegisterObserverL(
       
    31             MXIMPContextObserver& aObserver,
       
    32             const TArray<TInt32>* aEventFilter = NULL );
       
    33 
       
    34     void UnregisterObserver(
       
    35             MXIMPContextObserver& aObserver );
       
    36 
       
    37      TXIMPRequestId BindToL(
       
    38                 TUid aProtocolImpUid,
       
    39                 const TDesC16& aServiceAddress,
       
    40                 const TDesC16& aUsername,
       
    41                 const TDesC16& aPassword,
       
    42                 TInt32 aIapId );
       
    43      TXIMPRequestId BindToL(
       
    44                 TUid aProtocolImpUid,
       
    45                 const TDesC16& aServiceAddress,
       
    46                 const TDesC16& aUsername,
       
    47                 const TDesC16& aPassword,
       
    48                 const TDesC16& aClientId,
       
    49                 TInt32 aIapId );
       
    50      TXIMPRequestId BindToL( TUid aProtocolImpUid,
       
    51                             TInt aSettingsId );
       
    52 
       
    53      TXIMPRequestId BindToL(
       
    54                  TUid aProtocolImpUid,
       
    55                  const TDesC16& aUsername,
       
    56                  const TDesC16& aPassword,
       
    57                  TInt aSettingsId );
       
    58      
       
    59     TXIMPRequestId UnbindL();
       
    60     MXIMPFeatureInfo* GetContextFeaturesLC() const;
       
    61     MXIMPObjectFactory& ObjectFactory() const;
       
    62 
       
    63     const TAny* GetInterface(
       
    64                         TInt32 aInterfaceId,
       
    65                         TIfGetOps aOps ) const;
       
    66 
       
    67     TAny* GetInterface(
       
    68                         TInt32 aInterfaceId,
       
    69                         TIfGetOps aOps );
       
    70 
       
    71     TInt32 GetInterfaceId() const;
       
    72     
       
    73     private:
       
    74     MyMXIMPObjectFactoryStub* iObjFactory;
       
    75     
       
    76     };
       
    77 
       
    78 
       
    79 #endif // MXIMPFWPRESENCECONTEXT_H
       
    80 
       
    81 
       
    82