|
1 /* |
|
2 * Copyright (c) 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: Data class for a separator item. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FSTSEPARATORDATA_H |
|
20 #define C_FSTSEPARATORDATA_H |
|
21 |
|
22 #include <e32base.h> |
|
23 //#include <fsconfig.h> <cmail> |
|
24 #include <gdi.h> |
|
25 |
|
26 #include "fstreeitemdata.h" |
|
27 |
|
28 const TFsTreeItemDataType KFsSeparatorDataType = 6; |
|
29 |
|
30 NONSHARABLE_CLASS( CFsSeparatorData ): public CBase, public MFsTreeItemData |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Two-phased constructor |
|
36 */ |
|
37 IMPORT_C static CFsSeparatorData* NewL( ); |
|
38 |
|
39 /** |
|
40 * C++ destructor |
|
41 */ |
|
42 virtual ~CFsSeparatorData(); |
|
43 |
|
44 public: |
|
45 |
|
46 /** |
|
47 * The function sets separator line's color. |
|
48 * |
|
49 * @aColor Color of the separator line. |
|
50 */ |
|
51 virtual void SetSeparatorColor( const TRgb& aColor ); |
|
52 |
|
53 |
|
54 /** |
|
55 * The function returns separator line's color. |
|
56 * |
|
57 * @return Color of the separator line. |
|
58 */ |
|
59 virtual TRgb SeparatorColor() const; |
|
60 |
|
61 // from base class MFsTreeItemData |
|
62 |
|
63 /** |
|
64 * From MFsTreeItemData. |
|
65 * Returns type id of the separator's data class. |
|
66 */ |
|
67 virtual TFsTreeItemDataType Type() const; |
|
68 |
|
69 protected: |
|
70 |
|
71 /** |
|
72 * C++ constructor |
|
73 */ |
|
74 CFsSeparatorData( ); |
|
75 |
|
76 /** |
|
77 * Second phase constructor. |
|
78 */ |
|
79 void ConstructL( ); |
|
80 |
|
81 protected: //Data |
|
82 |
|
83 /** |
|
84 * Separator's color. |
|
85 */ |
|
86 TRgb iColor; |
|
87 |
|
88 }; |
|
89 |
|
90 |
|
91 #endif // C_FSTSEPARATORDATA_H |