|
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 |
|
19 #include "s_ximpobjectfactory.h" |
|
20 #include "s_ximpidentity.h" |
|
21 |
|
22 TBool gCreateXIMPIdentity = EFalse; |
|
23 /** |
|
24 * Instantiates new status object. |
|
25 * |
|
26 * @return New status object instance. |
|
27 * Object ownership is returned to caller. |
|
28 * |
|
29 * @leave KErrNoMemory if failed to allocate memory. |
|
30 */ |
|
31 MXIMPStatus* MyMXIMPObjectFactoryStub::NewStatusLC() |
|
32 { |
|
33 return NULL; |
|
34 } |
|
35 |
|
36 |
|
37 /** |
|
38 * Instantiates new identity object. |
|
39 * |
|
40 * @return New identity object instance. |
|
41 * Object ownership is returned to caller. |
|
42 * |
|
43 * @leave KErrNoMemory if failed to allocate memory. |
|
44 */ |
|
45 MXIMPIdentity* MyMXIMPObjectFactoryStub::NewIdentityLC() |
|
46 { |
|
47 if (gCreateXIMPIdentity) |
|
48 { |
|
49 MyMXIMPIdentityStub* ret = new (ELeave) MyMXIMPIdentityStub(); |
|
50 CleanupStack::PushL(ret); |
|
51 return ret; |
|
52 } |
|
53 |
|
54 return NULL; |
|
55 } |
|
56 |
|
57 |
|
58 /** |
|
59 * Instantiates new restricted object collection object. |
|
60 * |
|
61 * @return New restricted object collection instance. |
|
62 * Object ownership is returned to caller. |
|
63 * |
|
64 * @leave KErrNoMemory if failed to allocate memory. |
|
65 */ |
|
66 MXIMPRestrictedObjectCollection* MyMXIMPObjectFactoryStub::NewRestrictedObjectCollectionLC() { return NULL;} |
|
67 |
|
68 |
|
69 /** |
|
70 * Instantiates new object collection object. |
|
71 * |
|
72 * @return New object collection instance. |
|
73 * Object ownership is returned to caller. |
|
74 * |
|
75 * @leave KErrNoMemory if failed to allocate memory. |
|
76 */ |
|
77 MXIMPObjectCollection* MyMXIMPObjectFactoryStub::NewObjectCollectionLC() { return NULL; } |
|
78 |
|
79 |
|
80 /** |
|
81 * Instantiates new data subscription state object. |
|
82 * |
|
83 * @return New data subscription state instance. |
|
84 * Object ownership is returned to caller. |
|
85 * |
|
86 * @leave KErrNoMemory if failed to allocate memory. |
|
87 */ |
|
88 MXIMPDataSubscriptionState* MyMXIMPObjectFactoryStub::NewDataSubscriptionStateLC() { return NULL; } |
|
89 |
|
90 |
|
91 const TAny* MyMXIMPObjectFactoryStub::GetInterface( |
|
92 TInt32 /*aInterfaceId*/, |
|
93 TIfGetOps /*aOps*/ ) const |
|
94 { |
|
95 return NULL; |
|
96 } |
|
97 |
|
98 TAny* MyMXIMPObjectFactoryStub::GetInterface( |
|
99 TInt32 /*aInterfaceId*/, |
|
100 TIfGetOps /*aOps*/ ) |
|
101 { |
|
102 return NULL; |
|
103 } |
|
104 |
|
105 TInt32 MyMXIMPObjectFactoryStub::GetInterfaceId() const |
|
106 { |
|
107 return KErrNone; |
|
108 } |
|
109 |
|
110 |