|
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: s_enginecontmgtextfeatures.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef S_VIMPSTSTORAGECONTACT_H |
|
19 #define S_VIMPSTSTORAGECONTACT_H |
|
20 |
|
21 #include "mvimpststoragecontact.h" |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 _LIT(KDummy,"dummy@presence"); |
|
28 |
|
29 class vimpststoragecontact_stub : public MVIMPSTStorageContact |
|
30 { |
|
31 public : |
|
32 ~vimpststoragecontact_stub(); |
|
33 |
|
34 static MVIMPSTStorageContact* NewL(); |
|
35 |
|
36 /** |
|
37 * @see MVIMPSTStorageContact |
|
38 */ |
|
39 void SetUserIdL( const TDesC& aUserId ); |
|
40 |
|
41 void SetAvatarContentL( const TDesC8& aAvatarContent , |
|
42 MVIMPSTStorageVPbkContactStore& aVPPkStoreHandler) ; |
|
43 //void SetAvatarContentL( const TDesC8& aAvatarContent ); |
|
44 |
|
45 /** |
|
46 * Set User ID |
|
47 * @param aUserId, user id to be set. |
|
48 */ |
|
49 void SetNameL( const TDesC& aName ) ; |
|
50 |
|
51 /** |
|
52 * @see MVIMPSTStorageContact |
|
53 */ |
|
54 MVPbkContactLink* ContactLink() const; |
|
55 |
|
56 |
|
57 /** |
|
58 * @see MVIMPSTStorageContact |
|
59 */ |
|
60 const TDesC8& AvatarContent() const; |
|
61 |
|
62 |
|
63 /** |
|
64 * @see MVIMPSTStorageContact |
|
65 */ |
|
66 const TDesC& UserId() const; |
|
67 |
|
68 /** |
|
69 * @see MVIMPSTStorageContact |
|
70 */ |
|
71 const TDesC& Name() const; |
|
72 |
|
73 |
|
74 /** |
|
75 * @see MVIMPSTStorageContact |
|
76 */ |
|
77 TVIMPSTEnums::TOnlineStatus OnlineStatus() const; |
|
78 |
|
79 |
|
80 /** |
|
81 * @see MVIMPSTStorageContact |
|
82 */ |
|
83 void SetOnlineStatus( |
|
84 TVIMPSTEnums::TOnlineStatus aOnlineStatus ); |
|
85 |
|
86 /** |
|
87 * @see MVIMPSTStorageContact |
|
88 */ |
|
89 const TDesC& StatusText() const; |
|
90 |
|
91 /** |
|
92 * @see MVIMPSTStorageContact |
|
93 */ |
|
94 void SetStatusTextL( const TDesC& aStatusText ); |
|
95 |
|
96 |
|
97 void SetAvatarIndex(TInt aIndex ) ; |
|
98 |
|
99 |
|
100 TInt AvatarIndex() const; |
|
101 |
|
102 private: |
|
103 |
|
104 /** |
|
105 * C++ default constructor. |
|
106 * @param aObserver contact data container observer |
|
107 * @param aContactManager reference to virtual pbk manager |
|
108 * @param aStoreContact pointer to the stored contact |
|
109 * @param aContactManagementObserver - Notified of ContactOperation Add/Deleted |
|
110 */ |
|
111 //CVIMPSTStorageContact(); |
|
112 |
|
113 /** |
|
114 * By default Symbian 2nd phase constructor is private. |
|
115 */ |
|
116 void ConstructL(const TDesC& aUserId, |
|
117 const TDesC& aDisplayName, |
|
118 const MVPbkContactLink& aContactLink |
|
119 ); |
|
120 |
|
121 /** |
|
122 * By default Symbian 2nd phase constructor is private. |
|
123 */ |
|
124 void ConstructL(const TDesC& aUserId, |
|
125 const TDesC& aDisplayName ); |
|
126 private: |
|
127 RPointerArray<HBufC> iServiceDetailArray ; |
|
128 TInt iAvatarIndex; |
|
129 }; |
|
130 |
|
131 #endif // S_VIMPSTSTORECONTACT_H |
|
132 |
|
133 // End of File |