|
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_ximppresencegrantrequestlistevent.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "s_ximppresencegrantrequestlistevent.h" |
|
20 #include "s_presencegrantrequestinfo.h" |
|
21 |
|
22 TInt32 gMXIMPPresenceGrantRequestListEventStubInterfaceId = 0; |
|
23 MPresenceGrantRequestInfoStub gMPresenceGrantRequestInfo; |
|
24 TInt gNewRequestsCountValue = KErrNone; |
|
25 TInt gCurrentRequestsCountValue = KErrNone; |
|
26 |
|
27 TInt MPresenceGrantRequestListEventStub::NewRequestsCount() const |
|
28 { |
|
29 return gNewRequestsCountValue; |
|
30 } |
|
31 |
|
32 const MPresenceGrantRequestInfo& MPresenceGrantRequestListEventStub::NewRequest( |
|
33 TInt /*aIndex*/ ) const |
|
34 { |
|
35 MPresenceGrantRequestInfo* info = NULL; |
|
36 return *info; |
|
37 } |
|
38 |
|
39 TInt MPresenceGrantRequestListEventStub::DisappearedRequestsCount() const |
|
40 { |
|
41 return KErrNone; |
|
42 } |
|
43 |
|
44 const MPresenceGrantRequestInfo& MPresenceGrantRequestListEventStub::DisappearedRequest( |
|
45 TInt /*aIndex*/ ) const |
|
46 { |
|
47 MPresenceGrantRequestInfo* info = NULL; |
|
48 return *info; |
|
49 } |
|
50 |
|
51 TInt MPresenceGrantRequestListEventStub::CurrentRequestsCount() const |
|
52 { |
|
53 return gCurrentRequestsCountValue; |
|
54 } |
|
55 |
|
56 const MPresenceGrantRequestInfo& MPresenceGrantRequestListEventStub::CurrentRequest( |
|
57 TInt /*aIndex*/ ) const |
|
58 { |
|
59 return gMPresenceGrantRequestInfo; |
|
60 } |
|
61 |
|
62 const MXIMPDataSubscriptionState& MPresenceGrantRequestListEventStub::DataSubscriptionState() const |
|
63 { |
|
64 MXIMPDataSubscriptionState* state = NULL; |
|
65 return *state; |
|
66 } |
|
67 |
|
68 |
|
69 const TAny* MPresenceGrantRequestListEventStub::GetInterface( |
|
70 TInt32 /*aInterfaceId*/, |
|
71 TIfGetOps /*aOps*/ ) const |
|
72 { |
|
73 return this; |
|
74 } |
|
75 |
|
76 TAny* MPresenceGrantRequestListEventStub::GetInterface( |
|
77 TInt32 /*aInterfaceId*/, |
|
78 TIfGetOps /*aOps*/ ) |
|
79 { |
|
80 return NULL; |
|
81 } |
|
82 |
|
83 TInt32 MPresenceGrantRequestListEventStub::GetInterfaceId() const |
|
84 { |
|
85 return gMXIMPPresenceGrantRequestListEventStubInterfaceId; |
|
86 } |