|
1 /* |
|
2 * s_presenceinfo.h :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_presenceinfo.h |
|
15 * |
|
16 */ |
|
17 #ifndef MPRESENCEINFOSTUB |
|
18 #define MPRESENCEINFOSTUB |
|
19 |
|
20 #include <presenceinfo.h> |
|
21 |
|
22 /** |
|
23 * Interface for presence info object. |
|
24 * |
|
25 * |
|
26 * @todo Interface might be extended with new methods. |
|
27 * |
|
28 * @ingroup presencedatamodelapi |
|
29 * @since S60 v3.2 |
|
30 */ |
|
31 class MPresenceInfoStub : public MPresenceInfo |
|
32 { |
|
33 public: |
|
34 |
|
35 const MPersonPresenceInfo* PersonPresence() const; |
|
36 MPersonPresenceInfo* PersonPresence(); |
|
37 |
|
38 void SetPersonPresenceL( MPersonPresenceInfo* aPersonPresence ); |
|
39 |
|
40 TInt ServicePresenceCount() const; |
|
41 |
|
42 const MServicePresenceInfo& ServicePresenceAt( TInt aIndex ) const; |
|
43 |
|
44 void LookupServicePresenceByServiceType( |
|
45 MServicePresenceInfo*& aServicePresence, |
|
46 const TDesC8& aMatch ) const; |
|
47 |
|
48 void AddServicePresenceL( MServicePresenceInfo* aServicePresence ); |
|
49 |
|
50 TInt DevicePresenceCount() const; |
|
51 |
|
52 const MDevicePresenceInfo& DevicePresenceAt( TInt aIndex ) const; |
|
53 |
|
54 void AddDevicePresenceL( MDevicePresenceInfo* aDevicePresence ); |
|
55 |
|
56 const TAny* GetInterface( |
|
57 TInt32 aInterfaceId, |
|
58 TIfGetOps aOps ) const; |
|
59 |
|
60 TAny* GetInterface( |
|
61 TInt32 aInterfaceId, |
|
62 TIfGetOps aOps ); |
|
63 |
|
64 TInt32 GetInterfaceId() const; |
|
65 }; |
|
66 |
|
67 #endif |