1 /* |
|
2 * Copyright (c) 2006, 2007 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 identity object. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MyMXIMPIdentityStub_H |
|
19 #define MyMXIMPIdentityStub_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <ximpbase.h> |
|
23 #include <ximpdatamodelifids.hrh> |
|
24 #include <ximpidentity.h> |
|
25 |
|
26 /** |
|
27 * Interface for identity object. |
|
28 * |
|
29 * Identity objects are used to identify |
|
30 * presentities, presentity groups and |
|
31 * presentity group members, XIMP framework |
|
32 * client applications etc. entities in |
|
33 * XIMP Framework. |
|
34 * |
|
35 * @ingroup ximpdatamodelapi |
|
36 * @since S60 v3.2 |
|
37 */ |
|
38 class MyMXIMPIdentityStub : public CBase, public MXIMPIdentity |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 MyMXIMPIdentityStub(); |
|
44 |
|
45 /** |
|
46 * Public destructor. |
|
47 * Objects can be deleted through this interface. |
|
48 */ |
|
49 ~MyMXIMPIdentityStub() ; |
|
50 |
|
51 |
|
52 public: |
|
53 |
|
54 |
|
55 /** |
|
56 * Returns identity string. |
|
57 * |
|
58 * @return The identity string. |
|
59 */ |
|
60 const TDesC16& Identity() const ; |
|
61 |
|
62 |
|
63 |
|
64 /** |
|
65 * Sets identity. |
|
66 * |
|
67 * @param [in] aIdentity |
|
68 * Identity string. |
|
69 * |
|
70 * @leave KErrNoMemory if failed to allocate memory. |
|
71 */ |
|
72 void SetIdentityL( |
|
73 const TDesC16& aIdentity ) ; |
|
74 |
|
75 |
|
76 const TAny* GetInterface( |
|
77 TInt32 aInterfaceId, |
|
78 TIfGetOps aOps ) const; |
|
79 |
|
80 TAny* GetInterface( |
|
81 TInt32 aInterfaceId, |
|
82 TIfGetOps aOps ); |
|
83 |
|
84 TInt32 GetInterfaceId() const; |
|
85 private: |
|
86 HBufC* iIdentity; |
|
87 |
|
88 }; |
|
89 |
|
90 |
|
91 #endif // MyMXIMPIdentityStub_H |
|