24
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef RADIOCONTROLEVENTLISTENER_H_
|
|
19 |
#define RADIOCONTROLEVENTLISTENER_H_
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <QtGlobal>
|
|
23 |
#include <QScopedPointer>
|
|
24 |
|
|
25 |
// User includes
|
|
26 |
#include "mradiocontroleventobserver.h"
|
|
27 |
|
|
28 |
// Forward declarations
|
|
29 |
class RadioEngineWrapperPrivate;
|
|
30 |
class CRadioRemConTarget;
|
|
31 |
|
|
32 |
class RadioControlEventListener : public MRadioControlEventObserver
|
|
33 |
{
|
|
34 |
Q_DISABLE_COPY( RadioControlEventListener )
|
|
35 |
|
|
36 |
public:
|
|
37 |
|
|
38 |
explicit RadioControlEventListener( RadioEngineWrapperPrivate& engine );
|
|
39 |
|
|
40 |
~RadioControlEventListener();
|
|
41 |
|
|
42 |
void init();
|
|
43 |
|
|
44 |
private:
|
|
45 |
|
|
46 |
// from base class MRadioControlEventObserver
|
|
47 |
|
|
48 |
void StepToChannelL( RadioEngine::TRadioTuneDirection aDirection );
|
|
49 |
void SetChannelL( TInt aChannelId );
|
|
50 |
void SeekL( RadioEngine::TRadioTuneDirection aDirection );
|
|
51 |
void StepToFrequencyL( RadioEngine::TRadioTuneDirection aDirection );
|
|
52 |
void SetFrequencyL( TUint32 aFreq );
|
|
53 |
void AdjustVolumeL( RadioEngine::TRadioVolumeSetDirection aDirection );
|
|
54 |
void MuteL( TBool aMute );
|
|
55 |
void PlayL( TBool aDownPressed );
|
|
56 |
void PauseL( TBool aDownPressed );
|
|
57 |
void PausePlayL( TBool aDownPressed );
|
|
58 |
void StopL( TBool aDownPressed );
|
|
59 |
void ForwardL( TBool aDownPressed );
|
|
60 |
void FastForwardL( TBool aDownPressed );
|
|
61 |
void BackwardL( TBool aDownPressed );
|
|
62 |
void RewindL( TBool aDownPressed );
|
|
63 |
void ChannelUpL( TBool aDownPressed );
|
|
64 |
void ChannelDownL( TBool aDownPressed );
|
|
65 |
void VolumeUpL( TBool aDownPressed );
|
|
66 |
void VolumeDownL( TBool aDownPressed );
|
|
67 |
void ChangeViewL( TUid aViewId, TBool aForceChange );
|
|
68 |
void SetAudioRouteL( RadioEngine::TRadioAudioRoute aRoute );
|
|
69 |
void AnswerEndCallL();
|
|
70 |
|
|
71 |
private: // data
|
|
72 |
|
|
73 |
RadioEngineWrapperPrivate& mEngine;
|
|
74 |
|
|
75 |
QScopedPointer<CRadioRemConTarget> mRemCon;
|
|
76 |
|
|
77 |
};
|
|
78 |
|
|
79 |
#endif // RADIOCONTROLEVENTLISTENER_H_
|