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_presenceobjectfactory.cpp |
|
15 * |
|
16 */ |
|
17 #include "s_presenceobjectfactory.h" |
|
18 #include "s_servicepresenceinfo.h" |
|
19 #include "s_presenceinfofield.h" |
|
20 #include "s_presenceinfofieldvalueenum.h" |
|
21 #include "s_presencepersoninfo.h" |
|
22 #include "s_presenceinfofieldvaluetext.h" |
|
23 #include "s_presenceinfo.h" |
|
24 |
|
25 MPresenceInfoStub* gMPresenceInfoStub = NULL; |
|
26 MServicePresenceInfoStub gMPresenceObjectFactoryStubServicePresenceInfo; |
|
27 MPresenceInfoFieldStub gMPresenceObjectFactoryStubPresenceInfoField; |
|
28 MPresenceInfoFieldValueEnumStub gMPresenceObjectFactoryStubPresenceInfoFieldValueEnum; |
|
29 MPersonPresenceInfoStub gMPresenceObjectFactoryStubPersonPresenceInfo; |
|
30 MPresenceInfoFieldValueTextStub gMPresenceObjectFactoryStubPresenceInfoFieldValueText; |
|
31 |
|
32 MPresentityGroupInfo* MPresenceObjectFactoryStub::NewPresentityGroupInfoLC() |
|
33 { |
|
34 return NULL; |
|
35 } |
|
36 |
|
37 MPresentityGroupMemberInfo* MPresenceObjectFactoryStub::NewPresentityGroupMemberInfoLC() |
|
38 { |
|
39 return NULL; |
|
40 } |
|
41 |
|
42 MPresenceWatcherInfo* MPresenceObjectFactoryStub::NewPresenceWatcherInfoLC() |
|
43 { |
|
44 return NULL; |
|
45 } |
|
46 |
|
47 MPresenceGrantRequestInfo* MPresenceObjectFactoryStub::NewPresenceGrantRequestInfoLC() |
|
48 { |
|
49 return NULL; |
|
50 } |
|
51 |
|
52 MPresenceInfo* MPresenceObjectFactoryStub::NewPresenceInfoLC() |
|
53 { |
|
54 if ( !gMPresenceInfoStub ) |
|
55 { |
|
56 gMPresenceInfoStub = new ( ELeave )MPresenceInfoStub(); |
|
57 } |
|
58 |
|
59 CleanupStack::PushL( gMPresenceInfoStub ); |
|
60 return gMPresenceInfoStub; |
|
61 } |
|
62 |
|
63 MPresenceInfoFilter* MPresenceObjectFactoryStub::NewPresenceInfoFilterLC() |
|
64 { |
|
65 return NULL; |
|
66 } |
|
67 |
|
68 MPersonPresenceInfo* MPresenceObjectFactoryStub::NewPersonPresenceInfoLC() |
|
69 { |
|
70 CleanupStack::PushL( &gMPresenceObjectFactoryStubPersonPresenceInfo ); |
|
71 return &gMPresenceObjectFactoryStubPersonPresenceInfo; |
|
72 } |
|
73 |
|
74 MServicePresenceInfo* MPresenceObjectFactoryStub::NewServicePresenceInfoLC() |
|
75 { |
|
76 CleanupStack::PushL( &gMPresenceObjectFactoryStubServicePresenceInfo ); |
|
77 return &gMPresenceObjectFactoryStubServicePresenceInfo; |
|
78 } |
|
79 |
|
80 MDevicePresenceInfo* MPresenceObjectFactoryStub::NewDevicePresenceInfoLC() |
|
81 { |
|
82 return NULL; |
|
83 } |
|
84 |
|
85 MPresenceInfoField* MPresenceObjectFactoryStub::NewInfoFieldLC() |
|
86 { |
|
87 CleanupStack::PushL( &gMPresenceObjectFactoryStubPresenceInfoField ); |
|
88 return &gMPresenceObjectFactoryStubPresenceInfoField; |
|
89 } |
|
90 |
|
91 MPresenceInfoFieldValueEnum* MPresenceObjectFactoryStub::NewEnumInfoFieldLC() |
|
92 { |
|
93 CleanupStack::PushL( &gMPresenceObjectFactoryStubPresenceInfoFieldValueEnum ); |
|
94 return &gMPresenceObjectFactoryStubPresenceInfoFieldValueEnum; |
|
95 } |
|
96 |
|
97 MPresenceInfoFieldValueText* MPresenceObjectFactoryStub::NewTextInfoFieldLC() |
|
98 { |
|
99 CleanupStack::PushL( &gMPresenceObjectFactoryStubPresenceInfoFieldValueText ); |
|
100 return &gMPresenceObjectFactoryStubPresenceInfoFieldValueText; |
|
101 } |
|
102 |
|
103 MPresenceInfoFieldValueBinary* MPresenceObjectFactoryStub::NewBinaryInfoFieldLC() |
|
104 { |
|
105 return NULL; |
|
106 } |
|
107 |
|
108 MPresenceBlockInfo* MPresenceObjectFactoryStub::NewPresenceBlockInfoLC() |
|
109 { |
|
110 return NULL; |
|
111 } |
|
112 |
|
113 const TAny* MPresenceObjectFactoryStub::GetInterface( |
|
114 TInt32 /*aInterfaceId*/, |
|
115 TIfGetOps /*aOps*/ ) const |
|
116 { |
|
117 return NULL; |
|
118 } |
|
119 |
|
120 TAny* MPresenceObjectFactoryStub::GetInterface( |
|
121 TInt32 /*aInterfaceId*/, |
|
122 TIfGetOps /*aOps*/ ) |
|
123 { |
|
124 return NULL; |
|
125 } |
|
126 |
|
127 TInt32 MPresenceObjectFactoryStub::GetInterfaceId() const |
|
128 { |
|
129 return 0; |
|
130 } |
|