|
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_presencepublishing.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "s_presencepublishing.h" |
|
19 |
|
20 TXIMPRequestId gMPresencePublishingStubId; |
|
21 TInt gPublishOwnPresenceLeaves = KErrNone; |
|
22 |
|
23 TXIMPRequestId MPresencePublishingStub::SubscribeOwnPresenceL( const MPresenceInfoFilter& /*aPif*/ ) |
|
24 { |
|
25 return gMPresencePublishingStubId; |
|
26 } |
|
27 |
|
28 TXIMPRequestId MPresencePublishingStub::UnsubscribeOwnPresenceL() |
|
29 { |
|
30 return gMPresencePublishingStubId; |
|
31 } |
|
32 |
|
33 TXIMPRequestId MPresencePublishingStub::PublishOwnPresenceL( const MPresenceInfo& /*aPresence*/ ) |
|
34 { |
|
35 User::LeaveIfError( gPublishOwnPresenceLeaves ); |
|
36 |
|
37 return gMPresencePublishingStubId; |
|
38 } |
|
39 |
|
40 TXIMPRequestId MPresencePublishingStub::SubscribePresenceWatcherListL() |
|
41 { |
|
42 return gMPresencePublishingStubId; |
|
43 } |
|
44 |
|
45 TXIMPRequestId MPresencePublishingStub::UnsubscribePresenceWatcherListL() |
|
46 { |
|
47 return gMPresencePublishingStubId; |
|
48 } |
|
49 |
|
50 const TAny* MPresencePublishingStub::GetInterface( |
|
51 TInt32 /*aInterfaceId*/, |
|
52 TIfGetOps /*aOps*/ ) const |
|
53 { |
|
54 return NULL; |
|
55 } |
|
56 |
|
57 TAny* MPresencePublishingStub::GetInterface( |
|
58 TInt32 /*aInterfaceId*/, |
|
59 TIfGetOps /*aOps*/ ) |
|
60 { |
|
61 return NULL; |
|
62 } |
|
63 |
|
64 TInt32 MPresencePublishingStub::GetInterfaceId() const |
|
65 { |
|
66 return 0; |
|
67 } |