|
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 #include "cvimpstprocessarrayitem.h" |
|
18 |
|
19 class vimpstprocessarrayitem_stub: public MVIMPSTProcessArrayItem |
|
20 { |
|
21 private: |
|
22 |
|
23 vimpstprocessarrayitem_stub(TDesC & aItemName); |
|
24 |
|
25 public: |
|
26 |
|
27 static MVIMPSTProcessArrayItem* NewL(TDesC & aItemName); |
|
28 |
|
29 |
|
30 |
|
31 TPtrC GetItemNameText() |
|
32 { |
|
33 return KNullDesC(); |
|
34 } |
|
35 |
|
36 |
|
37 /** |
|
38 * Sets the name of the listbox item |
|
39 * @param aName: Name of the listbox item to be set |
|
40 * @return void |
|
41 */ |
|
42 |
|
43 void SetConversationOpen(TBool aConvOpen ) |
|
44 { |
|
45 |
|
46 } |
|
47 |
|
48 /** |
|
49 * gets the messages pending status of the contact item |
|
50 * @return iSMsgPending: true if the contact has pending messages |
|
51 * else false |
|
52 */ |
|
53 TBool IsConversationOpen() |
|
54 { |
|
55 return EFalse; |
|
56 } |
|
57 /** |
|
58 * Returns the default type of the listbox item |
|
59 * @return TEnumsPC::TItem: type of the listbox item as either EContactitem, EContactListItem etc |
|
60 */ |
|
61 TVIMPSTEnums::TItem Type() ; |
|
62 |
|
63 /** |
|
64 * Returns the name of the listbox item |
|
65 * @return TPtrC: name of the listbox item to be displayed |
|
66 */ |
|
67 // TPtrC GetItemNameText() ; |
|
68 |
|
69 TBool IsMsgPending(); |
|
70 void SetMsgPending(TBool aMsgPending); |
|
71 |
|
72 /** |
|
73 * Sets the name of the listbox item |
|
74 * @param aName: Name of the listbox item to be set |
|
75 * @return void |
|
76 */ |
|
77 //virtual void SetItemNameText(const TDesC& aName) = 0; |
|
78 |
|
79 /** |
|
80 * Returns the array index of the listbox item on engine/storage side |
|
81 * @return TInt: index of the listbox item on engine/storage side |
|
82 */ |
|
83 TInt GetItemIndex() ; |
|
84 |
|
85 /** |
|
86 * return the VPBK Contact Link |
|
87 */ |
|
88 MVPbkContactLink* ContactLink() ; |
|
89 |
|
90 |
|
91 /** |
|
92 * Sets the on engine/storage side index of the listbox item |
|
93 * @param aIndex: index of the listbox item on engine/storage side |
|
94 * @return void |
|
95 */ |
|
96 void SetItemIndex(TInt aIndex) ; |
|
97 |
|
98 /** |
|
99 * Returns the user id of the listbox item |
|
100 * @return TPtrC: user id of the listbox item. |
|
101 */ |
|
102 TPtrC GetItemUserId() ; |
|
103 /** |
|
104 * Returns the avatar index of the listbox item |
|
105 * @return TInt: avatar index of the listbox item. |
|
106 */ |
|
107 TInt AvatarIndex() ; |
|
108 |
|
109 /** |
|
110 * sets the avatar index of the listbox item |
|
111 * @param aAvatarIndex: avatar index to be set |
|
112 */ |
|
113 void SetAvatarIndex(TInt aAvatarIndex ) ; |
|
114 |
|
115 /** |
|
116 * returns status text of the contact |
|
117 */ |
|
118 const TDesC& StatusText() |
|
119 { |
|
120 |
|
121 } |
|
122 |
|
123 /** |
|
124 * returns online status of the contact |
|
125 */ |
|
126 TVIMPSTEnums::TOnlineStatus OnlineStatus() |
|
127 { |
|
128 |
|
129 } |
|
130 |
|
131 |
|
132 /** |
|
133 * return formatted string needed for listbox for this item |
|
134 */ |
|
135 TPtrC16 FormattedItemString() |
|
136 { |
|
137 |
|
138 } |
|
139 |
|
140 private: |
|
141 |
|
142 TDesC& iItemName; |
|
143 |
|
144 }; |
|
145 |
|
146 // End of File |