|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __TLogsDummyUiControlExtension_H |
|
21 #define __TLogsDummyUiControlExtension_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include "MLogsUiControlExtension.h" |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Dummy ui control extension. Used as default implementation. |
|
32 */ |
|
33 class TLogsDummyUiControlExtension : public MLogsUiControlExtension |
|
34 { |
|
35 public: // Constructor and destructor |
|
36 /** |
|
37 * Constructor. |
|
38 */ |
|
39 TLogsDummyUiControlExtension(); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~TLogsDummyUiControlExtension(); |
|
45 |
|
46 private: // Fron MLogsUiExtensionBase |
|
47 void DoRelease(); |
|
48 |
|
49 public: // From MLogsUiControlExtension |
|
50 void AppendIconsL( CAknIconArray* aArray ); |
|
51 TBool GetIconIndexL( TContactItemId aContactId, TInt& aIndex ); |
|
52 |
|
53 // Sawfish VoIP changes >>>> |
|
54 public: |
|
55 /** |
|
56 * Creates and starts all the icon fetching processes |
|
57 * |
|
58 * @since S60 v3.2 |
|
59 * @param aModel the data model that contains the |
|
60 * information about the log event entries in the current view. |
|
61 * @param aListBox fetched icons will be added to the icon array |
|
62 * of the specified listbox |
|
63 */ |
|
64 void HandleAdditionalData( |
|
65 MLogsModel& aModel, |
|
66 CAknDoubleGraphicStyleListBox& aListBox ); |
|
67 |
|
68 /** |
|
69 * Modifies the icon string descriptor |
|
70 * e.g. adding the presence icon index '6' would change the icon string |
|
71 * from "0\ttext1\ttext2" to "0\ttext1\ttext2\t\t\t6" |
|
72 * If anything inside this function leaves it will be trapped and aDes |
|
73 * wont be changed, otherwise aDes contains the resulting icon string. |
|
74 * |
|
75 * @since S60 v3.2 |
|
76 * @param aDes the descriptor that contains the iconstring |
|
77 * @param aDataField a unparsed data field of a log event |
|
78 */ |
|
79 void ModifyIconString ( TDes& aDes, const MLogsEventGetter& aLogsEventGetter ); |
|
80 |
|
81 /** |
|
82 * Sets the observer of the extension. |
|
83 * |
|
84 * @since S60 v3.2 |
|
85 * @param aObserver an observer |
|
86 */ |
|
87 void SetObserver( MLogsExtObserver& aObserver ); |
|
88 // <<<< Sawfish VoIP changes |
|
89 }; |
|
90 |
|
91 #endif |
|
92 |
|
93 |
|
94 // End of File |