|
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 #include "s_presenceblockinfo.h" |
|
19 #include "s_ximpidentity.h" |
|
20 |
|
21 extern MyMXIMPIdentityStub gMXIMPIdentity; // already defined in MPresentityPresenceEventStub |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS ============================= |
|
24 // --------------------------------------------------------------------------- |
|
25 // From MPresenceBlockInfo class. |
|
26 // CPresenceBlockInfoImp::BlockedEntityId() |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 const MXIMPIdentity& MPresenceBlockInfoStub::BlockedEntityId() const |
|
30 { |
|
31 return gMXIMPIdentity; ; |
|
32 } |
|
33 |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // From MPresenceBlockInfo class. |
|
37 // MPresenceBlockInfoStub::BlockedEntityDisplayName() |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 const TDesC16& MPresenceBlockInfoStub::BlockedEntityDisplayName() const |
|
41 { |
|
42 return KNullDesC(); |
|
43 } |
|
44 |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // From MPresenceBlockInfo class. |
|
48 // MPresenceBlockInfoStub::SetBlockedEntityIdL() |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 void MPresenceBlockInfoStub::SetBlockedEntityIdL( |
|
52 MXIMPIdentity* /*aIdentity*/ ) |
|
53 { |
|
54 /*CXIMPIdentityImp* identityImp = |
|
55 TXIMPGetImpClassOrPanic< CXIMPIdentityImp>::From( *aIdentity ); |
|
56 |
|
57 delete iIdentity; |
|
58 iIdentity = identityImp; */ |
|
59 } |
|
60 |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // From MPresenceBlockInfo class. |
|
64 // MPresenceBlockInfoStub::SetBlockedEntityDisplayNameL() |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 void MPresenceBlockInfoStub::SetBlockedEntityDisplayNameL( |
|
68 const TDesC16& /*aDisplayName*/ ) |
|
69 { |
|
70 /*HBufC16* displayNameBuf = aDisplayName.AllocL(); |
|
71 iDisplayName.Close(); |
|
72 iDisplayName.Assign( displayNameBuf );*/ |
|
73 } |
|
74 |
|
75 |
|
76 const TAny* MPresenceBlockInfoStub::GetInterface( |
|
77 TInt32 /*aInterfaceId*/, |
|
78 TIfGetOps /*aOps*/ ) const |
|
79 { |
|
80 return NULL; |
|
81 } |
|
82 |
|
83 TAny* MPresenceBlockInfoStub::GetInterface( |
|
84 TInt32 /*aInterfaceId*/, |
|
85 TIfGetOps /*aOps*/ ) |
|
86 { |
|
87 return NULL; |
|
88 } |
|
89 |
|
90 TInt32 MPresenceBlockInfoStub::GetInterfaceId() const |
|
91 { |
|
92 return 0; |
|
93 } |
|
94 |
|
95 |
|
96 // End of file |