imstutils/imconnectionprovider/tsrc/imconnectionprovider_test/src/stubs/s_ximppresensitypresenceevent.cpp
equal
deleted
inserted
replaced
|
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 |
|
20 MyMXIMPIdentityStub gMXIMPIdentity; |
|
21 //MPresenceInfo gMPresenceInfo; |
|
22 //MXIMPDataSubscriptionState gMXIMPDataSubscriptionState; |
|
23 |
|
24 TInt32 gMXIMPPresentityPresenceEventStubInterfaceId = 0; |
|
25 |
|
26 const MXIMPIdentity& MPresentityPresenceEventStub::PresentityId() const |
|
27 { |
|
28 return gMXIMPIdentity; |
|
29 } |
|
30 |
|
31 const MPresenceInfo& MPresentityPresenceEventStub::SubscribedPresence() const |
|
32 { |
|
33 MPresenceInfo* info = NULL; |
|
34 return *info; |
|
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 } |