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