|
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_ximpclient.h |
|
15 * |
|
16 */ |
|
17 #ifndef _MXIMPCLIENTSTUB_ |
|
18 #define _MXIMPCLIENTSTUB_ |
|
19 |
|
20 #include <ximpclient.h> |
|
21 |
|
22 class MXIMPProtocolInfo; |
|
23 class MXIMPFeatureInfo; |
|
24 class MXIMPContext; |
|
25 |
|
26 class MXIMPClientStub : public CBase, public MXIMPClient |
|
27 { |
|
28 |
|
29 public: |
|
30 /** |
|
31 * Factory method to instantiate MXIMPClient. |
|
32 * |
|
33 * Factory method to instantiate platform default |
|
34 * MXIMPClient implementation through the ECom. |
|
35 * If the default presence framework isn't supported |
|
36 * in the platform, leaves with errorcode signalled |
|
37 * from ECom. |
|
38 * |
|
39 * @return The new presence client object. Object |
|
40 * ownership is returned to caller. |
|
41 */ |
|
42 static MXIMPClient* NewClientL(); |
|
43 |
|
44 |
|
45 /** |
|
46 * Public destructor. |
|
47 * Object can be deleted through this interface. |
|
48 */ |
|
49 ~MXIMPClientStub(); |
|
50 |
|
51 void GetProtocolsL( |
|
52 RXIMPObjOwningPtrArray< MXIMPProtocolInfo >& aProtocols ); |
|
53 |
|
54 MXIMPFeatureInfo* GetFrameworkFeaturesLC(); |
|
55 |
|
56 MXIMPContext* NewPresenceContextLC(); |
|
57 |
|
58 const TAny* GetInterface( |
|
59 TInt32 aInterfaceId, |
|
60 TIfGetOps aOps ) const; |
|
61 |
|
62 TAny* GetInterface( |
|
63 TInt32 aInterfaceId, |
|
64 TIfGetOps aOps ); |
|
65 |
|
66 TInt32 GetInterfaceId() const; |
|
67 }; |
|
68 |
|
69 #endif // MXIMPFWCLIENT_H |
|
70 |
|
71 |
|
72 |