60
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2008 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: This file defines the API for ShwSlideshowEngine.dll
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef __SHWSLIDESHOWENGINE_H__
|
|
22 |
#define __SHWSLIDESHOWENGINE_H__
|
|
23 |
|
|
24 |
// Include Files
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <e32std.h>
|
|
27 |
#include <alf/alfdisplay.h>
|
|
28 |
#include <alf/alfenv.h>
|
|
29 |
#include <mglxhdmidecoderobserver.h>
|
|
30 |
|
|
31 |
// Forward declarations
|
|
32 |
class CAlfEnv;
|
|
33 |
class CAlfDisplay;
|
|
34 |
class MGlxMediaList;
|
|
35 |
class MShwEngineObserver;
|
|
36 |
class CShwSlideshowEngineImpl;
|
|
37 |
class TShwEffectInfo;
|
|
38 |
class MShwMusicObserver;
|
|
39 |
|
|
40 |
// Class Definition
|
|
41 |
/**
|
|
42 |
* CShwSlideshowEngine
|
|
43 |
*
|
|
44 |
* This is the main API for the slideshow engine
|
|
45 |
*
|
|
46 |
* @author Kimmo Hoikka
|
|
47 |
* @lib shwslideshowengine.lib
|
|
48 |
* @internal reviewed 07/06/2007 by Loughlin
|
|
49 |
*/
|
|
50 |
NONSHARABLE_CLASS( CShwSlideshowEngine ) : public CBase
|
|
51 |
{
|
|
52 |
public:
|
|
53 |
|
|
54 |
/**
|
|
55 |
* The state of the engine.
|
|
56 |
*/
|
|
57 |
enum TShwState
|
|
58 |
{
|
|
59 |
EShwStateInitialized = 1,
|
|
60 |
EShwStateRunning,
|
|
61 |
EShwStatePaused
|
|
62 |
};
|
|
63 |
|
|
64 |
public: // Construction
|
|
65 |
|
|
66 |
/**
|
|
67 |
* Constructor
|
|
68 |
* @param aObserver, observer of the engine.
|
|
69 |
*/
|
|
70 |
IMPORT_C static CShwSlideshowEngine* NewL(
|
|
71 |
MShwEngineObserver& aObserver );
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Destructor
|
|
75 |
*/
|
|
76 |
IMPORT_C ~CShwSlideshowEngine();
|
|
77 |
|
|
78 |
public: // the API
|
|
79 |
|
|
80 |
/**
|
|
81 |
* This method starts the slideshow.
|
|
82 |
* @param CHuiEnv& the HUI environment to use
|
|
83 |
* @param CHuiDisplay& the HUI display to draw the list to
|
|
84 |
* @param MGlxMediaList& the items to show.
|
|
85 |
* @param MShwMusicObserver& the music control observer.
|
|
86 |
* @param aScreenSize the size for the slideshow screen
|
|
87 |
*/
|
|
88 |
IMPORT_C void StartL( CAlfEnv& aEnv, CAlfDisplay& aDisplay,
|
|
89 |
MGlxMediaList& aItemsToShow,
|
|
90 |
MShwMusicObserver& aMusicObserver,
|
|
91 |
TSize aScreenSize );
|
|
92 |
|
|
93 |
/**
|
|
94 |
* This method commands engine to proceed to next item.
|
|
95 |
*/
|
|
96 |
IMPORT_C void NextItemL();
|
|
97 |
|
|
98 |
/**
|
|
99 |
* This method commands engine to proceed to previous item.
|
|
100 |
*/
|
|
101 |
IMPORT_C void PreviousItemL();
|
|
102 |
|
|
103 |
/**
|
|
104 |
* This method pauses the slideshow
|
|
105 |
*/
|
|
106 |
IMPORT_C void PauseL();
|
|
107 |
|
|
108 |
/**
|
|
109 |
* This method resumes the paused slideshow
|
|
110 |
*/
|
|
111 |
IMPORT_C void ResumeL();
|
|
112 |
|
|
113 |
/**
|
|
114 |
* This method returns the state of the slideshow
|
|
115 |
* @return the state of the engine
|
|
116 |
*/
|
|
117 |
IMPORT_C TShwState State() const;
|
|
118 |
|
|
119 |
/**
|
|
120 |
* This method retrieves the available effects
|
|
121 |
* @param an array where the effect infos are added
|
|
122 |
*/
|
|
123 |
IMPORT_C static void AvailableEffectsL(RArray<TShwEffectInfo>& aEffects);
|
|
124 |
|
|
125 |
/**
|
|
126 |
* This method increases the volume
|
|
127 |
*/
|
|
128 |
IMPORT_C void VolumeUpL();
|
|
129 |
|
|
130 |
/**
|
|
131 |
* This method decreases the volume
|
|
132 |
*/
|
|
133 |
IMPORT_C void VolumeDownL();
|
|
134 |
|
|
135 |
/**
|
|
136 |
* Get the latest music volume value.
|
|
137 |
*/
|
|
138 |
IMPORT_C void GetMusicVolumeL();
|
|
139 |
|
|
140 |
/**
|
|
141 |
* This method change the ui staus in slideshow when MSK Preesed
|
|
142 |
*/
|
|
143 |
IMPORT_C void ToggleUiControlsVisibiltyL();
|
|
144 |
|
|
145 |
/**
|
|
146 |
* This method react when LSK Preesed
|
|
147 |
*/
|
|
148 |
IMPORT_C void LSKPressedL();
|
|
149 |
|
|
150 |
/**
|
|
151 |
* This method gets called when there is an HDMI event
|
|
152 |
*/
|
|
153 |
IMPORT_C void HandleHDMIDecodingEventL(THdmiDecodingStatus aStatus);
|
|
154 |
|
|
155 |
private: // Implementation
|
|
156 |
|
|
157 |
/// C++ constructor, no derivation or use outside the DLL
|
|
158 |
CShwSlideshowEngine();
|
|
159 |
/// Own: the real implementation
|
|
160 |
CShwSlideshowEngineImpl* iImpl;
|
|
161 |
|
|
162 |
};
|
|
163 |
|
|
164 |
#endif // __SHWSLIDESHOWENGINE_H__
|