|
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: Active Palette 2 Configuration details |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ACTIVE_PALETTE_2_CONFIGURATION_H |
|
20 #define ACTIVE_PALETTE_2_CONFIGURATION_H |
|
21 |
|
22 // =========================================================================== |
|
23 // Includes |
|
24 #include <e32base.h> |
|
25 #include <activepalette2factory.h> // for TActivePalette2DrawMode |
|
26 |
|
27 |
|
28 // =========================================================================== |
|
29 // Declarations |
|
30 struct TActivePalette2TooltipConfig |
|
31 { |
|
32 TActivePalette2TooltipConfig() |
|
33 : iPreshowDelay ( -1 ) |
|
34 , iFullshowPeriod ( -1 ) |
|
35 , iTimerTickLength ( -1 ) |
|
36 , iTransitionSpeed ( -1 ) |
|
37 , iTransitionFrames( -1 ) |
|
38 {}; |
|
39 |
|
40 TInt iPreshowDelay; |
|
41 TInt iFullshowPeriod; |
|
42 TInt iTimerTickLength; |
|
43 TInt iTransitionSpeed; // For scrolling tooltip |
|
44 TInt iTransitionFrames; // For fading tooltip |
|
45 }; |
|
46 |
|
47 class CActivePalette2Configuration : public CBase |
|
48 { |
|
49 // ======================================================= |
|
50 // Methods |
|
51 public: |
|
52 |
|
53 static CActivePalette2Configuration* NewL( TActivePalette2DrawMode aDrawMode ); |
|
54 virtual ~CActivePalette2Configuration(); |
|
55 |
|
56 protected: |
|
57 |
|
58 void ConstructL(); |
|
59 CActivePalette2Configuration( TActivePalette2DrawMode aDrawMode ); |
|
60 |
|
61 public: |
|
62 |
|
63 /** |
|
64 * Return the Tooltip details. |
|
65 * @param aTooltipTimes Structure where the details are filled. |
|
66 */ |
|
67 void TooltipConfiguration( TActivePalette2TooltipConfig& aTooltipTimes ); |
|
68 |
|
69 // ======================================================= |
|
70 // Data |
|
71 protected: |
|
72 |
|
73 TActivePalette2DrawMode iDrawMode; |
|
74 |
|
75 // ======================================================= |
|
76 }; |
|
77 #endif // ACTIVE_PALETTE_2_CONFIGURATION_H |
|
78 |
|
79 // =========================================================================== |
|
80 // end of file |