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();
|
|
108 |
|
|
109 |
void LevelIndicatorDismissed();
|
|
110 |
TBool ToolbarZoomSelected();
|
|
111 |
|
|
112 |
TBool ToolbarBrightnessSelected();
|
|
113 |
|
|
114 |
/**
|
|
115 |
*
|
|
116 |
*/
|
|
117 |
void RefreshCameraOrientationL();
|
|
118 |
|
|
119 |
/**
|
|
120 |
* Determines whether Session established or not
|
|
121 |
*/
|
|
122 |
TBool IsSessionEstablished();
|
|
123 |
|
|
124 |
|
|
125 |
private: // new functions:
|
|
126 |
|
|
127 |
void ZoomInL();
|
|
128 |
|
|
129 |
void ZoomOutL();
|
|
130 |
|
|
131 |
void IncreaseBrightnessL();
|
|
132 |
|
|
133 |
void DecreaseBrightnessL();
|
|
134 |
|
|
135 |
void ZoomL();
|
|
136 |
|
|
137 |
void BrightnessL();
|
|
138 |
|
|
139 |
void HandleMiddleSoftkeyOkL();
|
|
140 |
public: // From MMusEngLiveSessionObserver
|
|
141 |
|
|
142 |
void DiskFull();
|
|
143 |
|
|
144 |
void OrientationRefreshEnded();
|
|
145 |
|
|
146 |
public: // from MMusEngSessionObserver
|
|
147 |
|
|
148 |
void SessionEstablished();
|
|
149 |
|
|
150 |
void SessionTerminated();
|
|
151 |
|
|
152 |
void SessionConnectionLost();
|
|
153 |
|
|
154 |
void SessionFailed();
|
|
155 |
|
|
156 |
void StreamIdle();
|
|
157 |
|
|
158 |
void StreamStreaming();
|
|
159 |
|
|
160 |
void SessionTimeChanged( const TTimeIntervalSeconds& aSeconds );
|
|
161 |
|
|
162 |
void InactivityTimeout();
|
|
163 |
|
|
164 |
void HandlePauseResumeInToolbar();
|
|
165 |
|
|
166 |
void UserInitiatedCameraStateChangeL(TBool aEnable);
|
|
167 |
|
|
168 |
private:
|
|
169 |
|
|
170 |
MMusUiLiveSharingObserver& iLiveObserver;
|
|
171 |
|
|
172 |
CMusEngLiveSession* iSession;
|
|
173 |
|
|
174 |
TBool iToolbarZoomSelected;
|
|
175 |
|
|
176 |
TBool iToolbarBrightnessSelected;
|
|
177 |
|
|
178 |
TBool iZoomSelected;
|
|
179 |
|
|
180 |
TBool iBrightnessSelected;
|
|
181 |
|
|
182 |
TBool iDiskFull;
|
|
183 |
|
|
184 |
TBool iSessionEstablished;
|
|
185 |
|
|
186 |
CMusUiActiveTimer* iPauseResumeGuardTimer;
|
|
187 |
|
|
188 |
};
|
|
189 |
|
|
190 |
#endif // MUSUILIVESHARINGCONTROLLER_H
|
|
191 |
|
|
192 |
// end of file
|