|
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_ximppresensitypresenceevent.cpp |
|
15 * |
|
16 */ |
|
17 #include "s_ximppresensitypresenceevent.h" |
|
18 #include "s_ximpidentity.h" |
|
19 #include "s_presenceinfo.h" |
|
20 |
|
21 MyMXIMPIdentityStub gMXIMPIdentity; |
|
22 MPresenceInfoStub gMPresenceInfo; |
|
23 //MXIMPDataSubscriptionState gMXIMPDataSubscriptionState; |
|
24 |
|
25 TInt32 gMXIMPPresentityPresenceEventStubInterfaceId = 0; |
|
26 |
|
27 const MXIMPIdentity& MPresentityPresenceEventStub::PresentityId() const |
|
28 { |
|
29 return gMXIMPIdentity; |
|
30 } |
|
31 |
|
32 const MPresenceInfo& MPresentityPresenceEventStub::SubscribedPresence() const |
|
33 { |
|
34 return gMPresenceInfo; |
|
35 } |
|
36 |
|
37 const MXIMPDataSubscriptionState& MPresentityPresenceEventStub::DataSubscriptionState() const |
|
38 { |
|
39 MXIMPDataSubscriptionState* state = NULL; |
|
40 return *state; |
|
41 } |
|
42 |
|
43 |
|
44 const TAny* MPresentityPresenceEventStub::GetInterface( |
|
45 TInt32 /*aInterfaceId*/, |
|
46 TIfGetOps /*aOps*/ ) const |
|
47 { |
|
48 return this; |
|
49 } |
|
50 |
|
51 TAny* MPresentityPresenceEventStub::GetInterface( |
|
52 TInt32 /*aInterfaceId*/, |
|
53 TIfGetOps /*aOps*/ ) |
|
54 { |
|
55 return NULL; |
|
56 } |
|
57 |
|
58 TInt32 MPresentityPresenceEventStub::GetInterfaceId() const |
|
59 { |
|
60 return gMXIMPPresentityPresenceEventStubInterfaceId; |
|
61 } |
|
62 |
|
63 |