1 /* |
|
2 * Copyright (c) 2006 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: Screensaver slideset setting dialog implementation header. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_PSLNSLIDESETSCREENSAVERDIALOG_H |
|
20 #define C_PSLNSLIDESETSCREENSAVERDIALOG_H |
|
21 |
|
22 #include <pslnslidesetdialog.h> |
|
23 |
|
24 /** |
|
25 * Provides the dialog functionality for defining Slide Set Settings |
|
26 * for screensavers. |
|
27 * |
|
28 * To use this from code, instantiate the ECOM plugin. |
|
29 * Then call ExecuteLD. |
|
30 * Example: |
|
31 * |
|
32 * // List all implementations. |
|
33 * REComSession::ListImplementationsL( |
|
34 * KPslnSlideSetDialogUidInterface, |
|
35 * array ); |
|
36 * CleanupResetAndDestroyPushL( array ); |
|
37 * |
|
38 * // Load screensaver implementation. |
|
39 * CImplementationInformation* info = |
|
40 * array[ KPslnScreenSaverSlideSettingDialog ]; |
|
41 * TUid implUid = info->ImplementationUid(); |
|
42 * |
|
43 * // Instantiate plugin. |
|
44 * CPslnSlidesetScreensaverDialogInterface* plugin = |
|
45 * CPslnSlidesetDialogInterface::NewL( implUid ); |
|
46 * CleanupStack::PushL ( plugin ); |
|
47 * |
|
48 * // Finally execute. |
|
49 * plugin->ExecuteLD(); |
|
50 * CleanupStack::Pop( plugin ); |
|
51 * CleanupStack::PopAndDestroy(); // array |
|
52 * |
|
53 * @lib pslnslidesetdialog.dll |
|
54 * @since S60 3.2 |
|
55 */ |
|
56 NONSHARABLE_CLASS( CPslnSlidesetScreensaverDialog ): |
|
57 public CPslnSlidesetDialog |
|
58 { |
|
59 public: |
|
60 |
|
61 /** |
|
62 * Symbian OS two-phased constructor |
|
63 * @return Psln Slide Set Setting dialog instance. |
|
64 */ |
|
65 static CPslnSlidesetScreensaverDialog* NewL(); |
|
66 |
|
67 /** |
|
68 * Symbian OS two-phased constructor |
|
69 * @return Psln Slide Set Setting dialog instance. |
|
70 */ |
|
71 static CPslnSlidesetScreensaverDialog* NewLC(); |
|
72 |
|
73 /** |
|
74 * Destructor. |
|
75 */ |
|
76 ~CPslnSlidesetScreensaverDialog(); |
|
77 |
|
78 /** |
|
79 * From TPslnSlidesetDialogInterface - executes dialog. |
|
80 */ |
|
81 TInt ExecuteDialogLD(); |
|
82 |
|
83 /** |
|
84 * From TPslnSlidesetDialogInterface - sets dialog flags. |
|
85 */ |
|
86 void SetDialogFlag( const TInt aFlag, const TInt aValue ); |
|
87 |
|
88 /** |
|
89 * From TPslnSlidesetDialogInterface - gets dialog flags. |
|
90 */ |
|
91 TInt GetDialogFlag( const TInt aFlag ); |
|
92 |
|
93 /** |
|
94 * From CEikDialog - prelayouts dialog. |
|
95 */ |
|
96 void PreLayoutDynInitL(); |
|
97 |
|
98 private: |
|
99 |
|
100 /** |
|
101 * From CAknDialog. |
|
102 * Framework method to determine if it OK to exit the dialog. |
|
103 */ |
|
104 TBool OkToExitL( TInt aButtonId ); |
|
105 |
|
106 /** |
|
107 * From CPslnSlidesetDialog. |
|
108 * Creates setting page items. |
|
109 */ |
|
110 void CreateListBoxItemsL(); |
|
111 |
|
112 /** |
|
113 * From CCoeControl. Gets Help context. |
|
114 */ |
|
115 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
116 |
|
117 /** |
|
118 * Shows slide set duration setting page. |
|
119 */ |
|
120 void ShowDurationSliderL(); |
|
121 |
|
122 /** |
|
123 * Shows slide set backlight period setting page. |
|
124 */ |
|
125 void ShowBacklightSliderL(); |
|
126 |
|
127 /** |
|
128 * C++ constructor. |
|
129 */ |
|
130 CPslnSlidesetScreensaverDialog(); |
|
131 |
|
132 /** |
|
133 * Symbian 2nd phase constructor. |
|
134 */ |
|
135 void ConstructL(); |
|
136 |
|
137 }; |
|
138 |
|
139 #endif // C_PSLNSLIDESETSCREENSAVERDIALOG_H |
|