author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:28:06 +0300 | |
branch | RCL_3 |
changeset 41 | 755f0370535b |
parent 33 | bc78a40cd63c |
permissions | -rw-r--r-- |
33 | 1 |
/* |
2 |
* Copyright (c) 2005 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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef MUSUILIVESHARINGCONTROLLER_H |
|
20 |
#define MUSUILIVESHARINGCONTROLLER_H |
|
21 |
||
22 |
#include "musuisendcontroller.h" |
|
23 |
#include "musenglivesessionobserver.h" |
|
24 |
#include "musunittesting.h" |
|
25 |
||
26 |
#include <e32base.h> |
|
27 |
#include <badesca.h> |
|
28 |
||
29 |
class MMusUiLiveSharingObserver; |
|
30 |
class CMusEngLiveSession; |
|
31 |
class CMusUiActiveTimer; |
|
32 |
||
33 |
/** |
|
34 |
* |
|
35 |
* |
|
36 |
* @lib musui.exe |
|
37 |
*/ |
|
38 |
class CMusUiLiveSharingController : public CMusUiSendController, |
|
39 |
public MMusEngLiveSessionObserver |
|
40 |
{ |
|
41 |
||
42 |
MUS_UNITTEST( UT_CMusUiLiveSharingController; ) |
|
43 |
MUS_UNITTEST( UT_CMusUiEventController; ) |
|
44 |
||
45 |
public: |
|
46 |
||
47 |
static CMusUiLiveSharingController* NewL( |
|
48 |
MMusUiEventObserver& aEventObserver, |
|
49 |
MMusUiSharingObserver& aSharingObserver, |
|
50 |
MMusUiSendObserver& aSendObserver, |
|
51 |
MMusUiLiveSharingObserver& aLiveObserver, |
|
52 |
const TRect& aRect ); |
|
53 |
||
54 |
virtual ~CMusUiLiveSharingController(); |
|
55 |
||
56 |
||
57 |
private: |
|
58 |
||
59 |
CMusUiLiveSharingController( |
|
60 |
MMusUiEventObserver& aEventObserver, |
|
61 |
MMusUiSharingObserver& aSharingObserver, |
|
62 |
MMusUiSendObserver& aSendObserver, |
|
63 |
MMusUiLiveSharingObserver& aLiveObserver ); |
|
64 |
||
65 |
void ConstructL( const TRect& aRect ); |
|
66 |
||
67 |
||
68 |
public: // From CMusUiEventController: |
|
69 |
||
70 |
virtual void PlayL(); |
|
71 |
||
72 |
virtual void PauseL(); |
|
73 |
||
74 |
virtual void OfferToolbarEventL( TInt aCommand ); |
|
75 |
||
76 |
virtual void HandleCommandL( TInt aCommand ); |
|
77 |
||
78 |
virtual void DeleteEngineSession(); |
|
79 |
||
80 |
||
81 |
public: // from CMusUiSendController |
|
82 |
||
83 |
virtual CMusEngMceOutSession* EngineOutSession(); |
|
84 |
||
85 |
virtual void InviteL( const TDesC& aRecipient ); |
|
86 |
||
87 |
virtual void HandleSliderValueChangeL( TInt aNewLevel ); |
|
88 |
||
89 |
public: // new functions |
|
90 |
||
91 |
TMusUiNaviMediaDecorator RecordIcon(); |
|
92 |
||
93 |
TBool IsBrightnessSupported(); |
|
94 |
||
95 |
TBool IsDiskFull(); |
|
96 |
||
97 |
/** |
|
98 |
* Determines whether zoom adjustment is selected either from toolbar |
|
99 |
* or menu |
|
100 |
*/ |
|
101 |
TBool ZoomSelected(); |
|
102 |
||
103 |
/** |
|
104 |
* Determines whether brightness adjustment is selected either from toolbar |
|
105 |
* or menu |
|
106 |
*/ |
|
107 |
TBool BrightnessSelected(); |
|
41
755f0370535b
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
33
diff
changeset
|
108 |
|
755f0370535b
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
33
diff
changeset
|
109 |
/** |
755f0370535b
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
33
diff
changeset
|
110 |
* Reset brightness and zoom selected value |
755f0370535b
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
33
diff
changeset
|
111 |
*/ |
755f0370535b
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
33
diff
changeset
|
112 |
void ResetSelectedFlags(); |
33 | 113 |
|
114 |
void LevelIndicatorDismissed(); |
|
115 |
TBool ToolbarZoomSelected(); |
|
116 |
||
117 |
TBool ToolbarBrightnessSelected(); |
|
118 |
||
119 |
/** |
|
120 |
* |
|
121 |
*/ |
|
122 |
void RefreshCameraOrientationL(); |
|
123 |
||
124 |
/** |
|
125 |
* Determines whether Session established or not |
|
126 |
*/ |
|
127 |
TBool IsSessionEstablished(); |
|
128 |
||
129 |
||
130 |
private: // new functions: |
|
131 |
||
132 |
void ZoomInL(); |
|
133 |
||
134 |
void ZoomOutL(); |
|
135 |
||
136 |
void IncreaseBrightnessL(); |
|
137 |
||
138 |
void DecreaseBrightnessL(); |
|
139 |
||
140 |
void ZoomL(); |
|
141 |
||
142 |
void BrightnessL(); |
|
143 |
||
144 |
void HandleMiddleSoftkeyOkL(); |
|
145 |
public: // From MMusEngLiveSessionObserver |
|
146 |
||
147 |
void DiskFull(); |
|
148 |
||
149 |
void OrientationRefreshEnded(); |
|
150 |
||
151 |
public: // from MMusEngSessionObserver |
|
152 |
||
153 |
void SessionEstablished(); |
|
154 |
||
155 |
void SessionTerminated(); |
|
156 |
||
157 |
void SessionConnectionLost(); |
|
158 |
||
159 |
void SessionFailed(); |
|
160 |
||
161 |
void StreamIdle(); |
|
162 |
||
163 |
void StreamStreaming(); |
|
164 |
||
165 |
void SessionTimeChanged( const TTimeIntervalSeconds& aSeconds ); |
|
166 |
||
167 |
void InactivityTimeout(); |
|
168 |
||
169 |
void HandlePauseResumeInToolbar(); |
|
170 |
||
171 |
void UserInitiatedCameraStateChangeL(TBool aEnable); |
|
172 |
||
173 |
private: |
|
174 |
||
175 |
MMusUiLiveSharingObserver& iLiveObserver; |
|
176 |
||
177 |
CMusEngLiveSession* iSession; |
|
178 |
||
179 |
TBool iToolbarZoomSelected; |
|
180 |
||
181 |
TBool iToolbarBrightnessSelected; |
|
182 |
||
183 |
TBool iZoomSelected; |
|
184 |
||
185 |
TBool iBrightnessSelected; |
|
186 |
||
187 |
TBool iDiskFull; |
|
188 |
||
189 |
TBool iSessionEstablished; |
|
190 |
||
191 |
CMusUiActiveTimer* iPauseResumeGuardTimer; |
|
192 |
||
193 |
}; |
|
194 |
||
195 |
#endif // MUSUILIVESHARINGCONTROLLER_H |
|
196 |
||
197 |
// end of file |