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