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