1 /* |
|
2 * Copyright (c) 2006, 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: Interface for XIMP Framework object factory. |
|
15 * |
|
16 */ |
|
17 #ifndef MyMXIMPObjectFactoryStub_H |
|
18 #define MyMXIMPObjectFactoryStub_H |
|
19 |
|
20 #include <e32std.h> |
|
21 #include <ximpbase.h> |
|
22 #include <ximpdatamodelifids.hrh> |
|
23 #include <ximpobjectfactory.h> |
|
24 |
|
25 |
|
26 class MXIMPStatus; |
|
27 class MXIMPIdentity; |
|
28 class MXIMPObjectCollection; |
|
29 class MXIMPRestrictedObjectCollection; |
|
30 class MXIMPDataSubscriptionState; |
|
31 |
|
32 |
|
33 /** |
|
34 * Interface for XIMP Framework object factory. |
|
35 * |
|
36 * XIMP object factory is used to instantiate |
|
37 * data objects declared in Data Model API. |
|
38 * |
|
39 * MXimpFwObjectFactory interface can be obtained from |
|
40 * MXIMPContext or MXIMPProtocolConnectionHost |
|
41 * interfaces. |
|
42 * |
|
43 * @ingroup ximpdatamodelapi |
|
44 * @since S60 v3.2 |
|
45 */ |
|
46 class MyMXIMPObjectFactoryStub : public CBase, public MXIMPObjectFactory |
|
47 { |
|
48 public: |
|
49 |
|
50 /** |
|
51 * Protected destructor. |
|
52 * Object instancies can't be deleted via this interface. |
|
53 */ |
|
54 ~MyMXIMPObjectFactoryStub() {}; |
|
55 |
|
56 MyMXIMPObjectFactoryStub() |
|
57 { |
|
58 |
|
59 }; |
|
60 |
|
61 |
|
62 /** |
|
63 * Instantiates new status object. |
|
64 * |
|
65 * @return New status object instance. |
|
66 * Object ownership is returned to caller. |
|
67 * |
|
68 * @leave KErrNoMemory if failed to allocate memory. |
|
69 */ |
|
70 MXIMPStatus* NewStatusLC() ; |
|
71 |
|
72 |
|
73 /** |
|
74 * Instantiates new identity object. |
|
75 * |
|
76 * @return New identity object instance. |
|
77 * Object ownership is returned to caller. |
|
78 * |
|
79 * @leave KErrNoMemory if failed to allocate memory. |
|
80 */ |
|
81 MXIMPIdentity* NewIdentityLC() ; |
|
82 |
|
83 |
|
84 /** |
|
85 * Instantiates new restricted object collection object. |
|
86 * |
|
87 * @return New restricted object collection instance. |
|
88 * Object ownership is returned to caller. |
|
89 * |
|
90 * @leave KErrNoMemory if failed to allocate memory. |
|
91 */ |
|
92 MXIMPRestrictedObjectCollection* NewRestrictedObjectCollectionLC() ; |
|
93 |
|
94 |
|
95 /** |
|
96 * Instantiates new object collection object. |
|
97 * |
|
98 * @return New object collection instance. |
|
99 * Object ownership is returned to caller. |
|
100 * |
|
101 * @leave KErrNoMemory if failed to allocate memory. |
|
102 */ |
|
103 MXIMPObjectCollection* NewObjectCollectionLC() ; |
|
104 |
|
105 |
|
106 /** |
|
107 * Instantiates new data subscription state object. |
|
108 * |
|
109 * @return New data subscription state instance. |
|
110 * Object ownership is returned to caller. |
|
111 * |
|
112 * @leave KErrNoMemory if failed to allocate memory. |
|
113 */ |
|
114 MXIMPDataSubscriptionState* NewDataSubscriptionStateLC() ; |
|
115 |
|
116 const TAny* GetInterface( |
|
117 TInt32 aInterfaceId, |
|
118 TIfGetOps aOps ) const; |
|
119 |
|
120 |
|
121 TAny* GetInterface( |
|
122 TInt32 aInterfaceId, |
|
123 TIfGetOps aOps ); |
|
124 |
|
125 TInt32 GetInterfaceId() const; |
|
126 |
|
127 |
|
128 |
|
129 }; |
|
130 |
|
131 #endif // MyMXIMPObjectFactoryStub_H |
|
132 |
|
133 |
|
134 |
|