1 /* |
|
2 * s_presencebuddyinfo.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_presencebuddyinfo.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "s_presencebuddyinfo.h" |
|
19 #include "s_presenceinfo.h" |
|
20 |
|
21 |
|
22 |
|
23 MPresenceBuddyInfoStub* MPresenceBuddyInfoStub::NewStubL() |
|
24 { |
|
25 return new ( ELeave ) MPresenceBuddyInfoStub(); |
|
26 } |
|
27 |
|
28 TInt MPresenceBuddyInfoStub::Set( |
|
29 MXIMPIdentity* /*aIdentity*/, |
|
30 MPresenceInfo* /*aPresenceInfo*/) |
|
31 { |
|
32 return KErrNone; |
|
33 } |
|
34 |
|
35 TInt MPresenceBuddyInfoStub::SetPresenceInfo(MPresenceInfo* /*aPresenceInfo*/) |
|
36 { |
|
37 return KErrNone; |
|
38 } |
|
39 |
|
40 TInt MPresenceBuddyInfoStub::SetBuddyId(MXIMPIdentity* /*aIdentity*/) |
|
41 { |
|
42 return KErrNone; |
|
43 } |
|
44 |
|
45 TInt MPresenceBuddyInfoStub::SetPersonPresenceL( |
|
46 MPersonPresenceInfo* /*aPersonPresenceInfo*/) |
|
47 { |
|
48 return KErrNone; |
|
49 } |
|
50 |
|
51 const MPresenceInfo* MPresenceBuddyInfoStub::PresenceInfo() const |
|
52 { |
|
53 if ( !gMPresenceInfoStub ) |
|
54 { |
|
55 gMPresenceInfoStub = new ( ELeave ) MPresenceInfoStub(); |
|
56 } |
|
57 |
|
58 return gMPresenceInfoStub; |
|
59 } |
|
60 |
|
61 const MXIMPIdentity* MPresenceBuddyInfoStub::BuddyId() const |
|
62 { |
|
63 MXIMPIdentity* identity = NULL; |
|
64 return identity; |
|
65 } |
|
66 |
|
67 TBool MPresenceBuddyInfoStub::EqualsIdentity( |
|
68 const MPresenceBuddyInfo* /*aOtherInstance*/ ) const |
|
69 { |
|
70 return ETrue; |
|
71 } |
|
72 |
|
73 const TAny* MPresenceBuddyInfoStub::GetInterface( |
|
74 TInt32 /*aInterfaceId*/, |
|
75 TIfGetOps /*aOps*/ ) const |
|
76 { |
|
77 return NULL; |
|
78 } |
|
79 |
|
80 TAny* MPresenceBuddyInfoStub::GetInterface( |
|
81 TInt32 /*aInterfaceId*/, |
|
82 TIfGetOps /*aOps*/ ) |
|
83 { |
|
84 return NULL; |
|
85 } |
|
86 |
|
87 TInt32 MPresenceBuddyInfoStub::GetInterfaceId() const |
|
88 { |
|
89 return 0; |
|
90 } |
|
91 |
|
92 |
|
93 |
|
94 |
|