|
1 /* |
|
2 * Copyright (c) 2009 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GLXSETTINGINTERFACE_H |
|
19 #define GLXSETTINGINTERFACE_H |
|
20 |
|
21 #include <qglobal.h> |
|
22 |
|
23 #ifdef BUILD_GLXVIEWUTILITIES |
|
24 #define GLX_VIEWUTILITIES_EXPORT Q_DECL_EXPORT |
|
25 #else |
|
26 #define GLX_VIEWUTILITIES_EXPORT Q_DECL_IMPORT |
|
27 #endif |
|
28 |
|
29 class QStringList ; |
|
30 |
|
31 /* |
|
32 * This is an interface for read and write the photos application related setting from the centrep. |
|
33 */ |
|
34 class GLX_VIEWUTILITIES_EXPORT GlxSettingInterface |
|
35 { |
|
36 |
|
37 public : |
|
38 /* |
|
39 * return the instance of the GlxSetting |
|
40 */ |
|
41 static GlxSettingInterface * instance(); |
|
42 |
|
43 /* |
|
44 * Returns the index to the selected transition effect |
|
45 * This value is fetched from Central repository |
|
46 */ |
|
47 virtual int slideShowEffectIndex() = 0 ; |
|
48 |
|
49 /* |
|
50 * SlideShowSettingsView will call this API to set the index of the transition effect chosen. |
|
51 * This data will be written to the Central Repository |
|
52 */ |
|
53 virtual void setslideShowEffectIndex( int index ) = 0 ; |
|
54 |
|
55 /* |
|
56 * Returns the index to the selected transition delay |
|
57 * This value is fetched from Central repository |
|
58 */ |
|
59 virtual int slideShowDelayIndex() = 0 ; |
|
60 |
|
61 /* |
|
62 * SlideShowSettingsView will call this API to set the index of the transition delay chosen. |
|
63 * This data will be written to the Central Repository |
|
64 */ |
|
65 virtual void setSlideShowDelayIndex( int index ) = 0; |
|
66 |
|
67 /* |
|
68 * It will return the slide show delay time for playing the slide show. |
|
69 * This value is fetched for central repository |
|
70 */ |
|
71 virtual int slideShowDelayTime() = 0; |
|
72 |
|
73 /* |
|
74 * This will return the list of effects as available in the central repository |
|
75 */ |
|
76 virtual QStringList slideShowEffectList() = 0; |
|
77 |
|
78 /* |
|
79 * This will return the effect ID based on the effect index |
|
80 * Effect index will be 0,1,2... and effect ID is GLX_EFFECT |
|
81 * Effect id is store in the centrep with respect to index. |
|
82 */ |
|
83 virtual int slideShowEffectId( int index ) = 0; |
|
84 |
|
85 protected : |
|
86 /* |
|
87 * Constructor |
|
88 */ |
|
89 GlxSettingInterface( ); |
|
90 |
|
91 /* |
|
92 * Copy Constructor |
|
93 */ |
|
94 GlxSettingInterface( GlxSettingInterface & ); |
|
95 |
|
96 /* |
|
97 * Destructor |
|
98 */ |
|
99 virtual ~GlxSettingInterface() ; |
|
100 }; |
|
101 |
|
102 #endif |
|
103 |