|
1 /* |
|
2 * s_presenceinfo.cpp :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_presenceinfo.cpp |
|
15 * |
|
16 */ |
|
17 #include "s_presenceinfo.h" |
|
18 #include "s_presencepersoninfo.h" |
|
19 |
|
20 MPersonPresenceInfoStub gMPersonPresenceInfo; |
|
21 TBool gPersonPresenceInfoAvailable = EFalse; |
|
22 |
|
23 const MPersonPresenceInfo* MPresenceInfoStub::PersonPresence() const |
|
24 { |
|
25 if ( gPersonPresenceInfoAvailable ) |
|
26 { |
|
27 return &gMPersonPresenceInfo; |
|
28 } |
|
29 MPersonPresenceInfo* info = NULL; |
|
30 return info; |
|
31 } |
|
32 MPersonPresenceInfo* MPresenceInfoStub::PersonPresence() |
|
33 { |
|
34 MPersonPresenceInfo* info = NULL; |
|
35 return info; |
|
36 } |
|
37 |
|
38 void MPresenceInfoStub::SetPersonPresenceL( MPersonPresenceInfo* /*aPersonPresence*/ ) |
|
39 { |
|
40 } |
|
41 |
|
42 TInt MPresenceInfoStub::ServicePresenceCount() const |
|
43 { |
|
44 return 0; |
|
45 } |
|
46 |
|
47 const MServicePresenceInfo& MPresenceInfoStub::ServicePresenceAt( TInt /*aIndex*/ ) const |
|
48 { |
|
49 MServicePresenceInfo* info = NULL; |
|
50 return *info; |
|
51 } |
|
52 |
|
53 void MPresenceInfoStub::LookupServicePresenceByServiceType( |
|
54 MServicePresenceInfo*& /*aServicePresence*/, |
|
55 const TDesC8& /*aMatch*/ ) const |
|
56 { |
|
57 } |
|
58 |
|
59 void MPresenceInfoStub::AddServicePresenceL( MServicePresenceInfo* /*aServicePresence*/ ) |
|
60 { |
|
61 } |
|
62 |
|
63 TInt MPresenceInfoStub::DevicePresenceCount() const |
|
64 { |
|
65 return 0; |
|
66 } |
|
67 |
|
68 const MDevicePresenceInfo& MPresenceInfoStub::DevicePresenceAt( TInt /*aIndex*/ ) const |
|
69 { |
|
70 MDevicePresenceInfo* info = NULL; |
|
71 return *info; |
|
72 } |
|
73 |
|
74 void MPresenceInfoStub::AddDevicePresenceL( MDevicePresenceInfo* /*aDevicePresence*/ ) |
|
75 { |
|
76 } |
|
77 |
|
78 const TAny* MPresenceInfoStub::GetInterface( |
|
79 TInt32 /*aInterfaceId*/, |
|
80 TIfGetOps /*aOps*/ ) const |
|
81 { |
|
82 return NULL; |
|
83 } |
|
84 |
|
85 TAny* MPresenceInfoStub::GetInterface( |
|
86 TInt32 /*aInterfaceId*/, |
|
87 TIfGetOps /*aOps*/ ) |
|
88 { |
|
89 return NULL; |
|
90 } |
|
91 |
|
92 TInt32 MPresenceInfoStub::GetInterfaceId() const |
|
93 { |
|
94 return 0; |
|
95 } |
|
96 |
|
97 |
|
98 |