|
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: Interface for presence block info object. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MXIMPFWPRESENCEBLOCKINFOSTUB_H |
|
19 #define MXIMPFWPRESENCEBLOCKINFOSTUB_H |
|
20 |
|
21 #include <presenceblockinfo.h> |
|
22 |
|
23 |
|
24 |
|
25 /** |
|
26 * Interface for presence block info object. |
|
27 * |
|
28 * Presence block info object presents single |
|
29 * presence block entry in the presence block list. |
|
30 * Presence block info object holds the identity |
|
31 * and display name information for the presence |
|
32 * block entry. |
|
33 * |
|
34 * @ingroup presencedatamodelapi |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 class MPresenceBlockInfoStub :public MPresenceBlockInfo |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Returns identity of the blocked entity. |
|
44 * |
|
45 * @return The identity of the blocked entity. |
|
46 */ |
|
47 const MXIMPIdentity& BlockedEntityId() const; |
|
48 |
|
49 |
|
50 |
|
51 /** |
|
52 * Returns displayname of the blocked entity. |
|
53 * |
|
54 * @return The displayname of the blocked entity. |
|
55 */ |
|
56 const TDesC16& BlockedEntityDisplayName() const; |
|
57 |
|
58 |
|
59 |
|
60 /** |
|
61 * Sets identity of the blocked entity. |
|
62 * |
|
63 * @param [in] aIdentity |
|
64 * Identity of the blocked entity. |
|
65 * Ownership of the argument is transfered to |
|
66 * callee, if method succeeds without a leave. |
|
67 * |
|
68 * @leave KErrNoMemory if failed to allocate memory. |
|
69 * @leave KErrArgument if NULL argument were provided. |
|
70 */ |
|
71 void SetBlockedEntityIdL( |
|
72 MXIMPIdentity* aIdentity ); |
|
73 |
|
74 |
|
75 /** |
|
76 * Sets displayname of the blocked entity. |
|
77 * |
|
78 * @param [in] aDisplayName |
|
79 * New display name value. |
|
80 * |
|
81 * @leave KErrNoMemory if failed to allocate memory. |
|
82 */ |
|
83 void SetBlockedEntityDisplayNameL( |
|
84 const TDesC16& aDisplayName ); |
|
85 |
|
86 const TAny* GetInterface( |
|
87 TInt32 aInterfaceId, |
|
88 TIfGetOps aOps ) const; |
|
89 |
|
90 TAny* GetInterface( |
|
91 TInt32 aInterfaceId, |
|
92 TIfGetOps aOps ); |
|
93 |
|
94 TInt32 GetInterfaceId() const; |
|
95 |
|
96 }; |
|
97 |
|
98 |
|
99 #endif // MXIMPFWPRESENCEBLOCKINFOSTUB_H |
|
100 |
|
101 |
|
102 |