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