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.cpp |
|
15 * |
|
16 */ |
|
17 #include "s_ximpcontext.h" |
|
18 #include "s_ximpobjectfactory.h" |
|
19 |
|
20 TInt gUnBindingLeaves = KErrNone; |
|
21 |
|
22 void MXIMPContextStub::RegisterObserverL( |
|
23 MXIMPContextObserver& /*aObserver*/, |
|
24 const TArray<TInt32>* /*aEventFilter*/ ) |
|
25 { |
|
26 } |
|
27 |
|
28 void MXIMPContextStub::UnregisterObserver( |
|
29 MXIMPContextObserver& /*aObserver*/ ) |
|
30 { |
|
31 } |
|
32 |
|
33 TXIMPRequestId MXIMPContextStub::BindToL( |
|
34 TUid /*aProtocolImpUid*/, |
|
35 const TDesC16& /*aServiceAddress*/, |
|
36 const TDesC16& /*aUsername*/, |
|
37 const TDesC16& /*aPassword*/, |
|
38 TInt32 /*aIapId*/ ) |
|
39 { |
|
40 TXIMPRequestId id; |
|
41 return id; |
|
42 } |
|
43 |
|
44 TXIMPRequestId MXIMPContextStub::BindToL( |
|
45 TUid /*aProtocolImpUid*/, |
|
46 const TDesC16& /*aServiceAddress*/, |
|
47 const TDesC16& /*aUsername*/, |
|
48 const TDesC16& /*aPassword*/, |
|
49 const TDesC16& /*aClientId*/, |
|
50 TInt32 /*aIapId*/ ) |
|
51 { |
|
52 TXIMPRequestId id; |
|
53 return id; |
|
54 } |
|
55 |
|
56 TXIMPRequestId MXIMPContextStub::BindToL( |
|
57 TUid /*aProtocolImpUid*/, |
|
58 const TDesC16& /*aUsername*/, |
|
59 const TDesC16& /*aPassword*/, |
|
60 TInt /*aSettingsId*/ ) |
|
61 { |
|
62 TXIMPRequestId id; |
|
63 return id; |
|
64 } |
|
65 |
|
66 TXIMPRequestId MXIMPContextStub::BindToL( TUid /*aProtocolImpUid*/, |
|
67 TInt /*aSettingsId*/ ) |
|
68 { |
|
69 TXIMPRequestId id; |
|
70 return id; |
|
71 } |
|
72 |
|
73 TXIMPRequestId MXIMPContextStub::UnbindL() |
|
74 { |
|
75 User::LeaveIfError( gUnBindingLeaves ); |
|
76 TXIMPRequestId id; |
|
77 return id; |
|
78 } |
|
79 |
|
80 MXIMPFeatureInfo* MXIMPContextStub::GetContextFeaturesLC() const |
|
81 { |
|
82 return NULL; |
|
83 } |
|
84 |
|
85 MXIMPObjectFactory& MXIMPContextStub::ObjectFactory() const |
|
86 { |
|
87 |
|
88 |
|
89 MXIMPContextStub* thisObject = const_cast <MXIMPContextStub*> (this); |
|
90 if (!thisObject->iObjFactory) |
|
91 { |
|
92 thisObject->iObjFactory = new (ELeave) MyMXIMPObjectFactoryStub(); |
|
93 } |
|
94 return *iObjFactory; |
|
95 } |
|
96 |
|
97 const TAny* MXIMPContextStub::GetInterface( |
|
98 TInt32 /*aInterfaceId*/, |
|
99 TIfGetOps /*aOps*/ ) const |
|
100 { |
|
101 return NULL; |
|
102 } |
|
103 |
|
104 TAny* MXIMPContextStub::GetInterface( |
|
105 TInt32 /*aInterfaceId*/, |
|
106 TIfGetOps /*aOps*/ ) |
|
107 { |
|
108 return NULL; |
|
109 } |
|
110 |
|
111 TInt32 MXIMPContextStub::GetInterfaceId() const |
|
112 { |
|
113 return 0; |
|
114 } |
|
115 |
|
116 MXIMPContextStub::MXIMPContextStub() |
|
117 { |
|
118 |
|
119 } |
|
120 |
|
121 MXIMPContextStub::~MXIMPContextStub() |
|
122 { |
|
123 delete iObjFactory; |
|
124 } |
|