17 #ifndef IRQMEDIAPLAYER_H_ |
17 #ifndef IRQMEDIAPLAYER_H_ |
18 #define IRQMEDIAPLAYER_H_ |
18 #define IRQMEDIAPLAYER_H_ |
19 |
19 |
20 #include <QObject> |
20 #include <QObject> |
21 #include "irqenums.h" |
21 #include "irqenums.h" |
|
22 #include "irqmediaplayerexporter.h" |
22 |
23 |
23 class IRQPlayerAdapterInterface; |
24 class IRQPlayerAdapterInterface; |
24 class IRQMetaData; |
25 class IRQMetaData; |
25 class CStereoWidening; |
|
26 |
26 |
27 /** |
27 /** |
28 * This class provides the interface to IR Media Player component |
28 * This class provides the interface to IR Media Player component |
29 */ |
29 */ |
30 |
30 |
31 class IRQMediaPlayer : public QObject |
31 class IRQMEDIAPLAYER_DLL_EXPORT IRQMediaPlayer : public QObject |
32 { |
32 { |
33 Q_OBJECT |
33 Q_OBJECT |
34 |
34 |
35 public: |
35 public: |
36 |
36 |
37 /** |
37 /** |
38 * Constructor |
38 * Constructor |
39 */ |
39 */ |
40 IMPORT_C IRQMediaPlayer(); |
40 IRQMediaPlayer(); |
41 |
41 |
42 /** |
42 /** |
43 * Destructor |
43 * Destructor |
44 */ |
44 */ |
45 ~IRQMediaPlayer(); |
45 ~IRQMediaPlayer(); |
46 |
46 |
47 /** |
47 /** |
48 * Returns the current volume of playback, it's a percentage |
48 * Returns the current volume of playback, it's a percentage |
49 * @return int |
49 * @return int |
50 */ |
50 */ |
51 IMPORT_C int getVolume(); |
51 int getVolume(); |
52 |
52 |
53 public slots: |
53 public slots: |
54 |
54 |
55 /** |
55 /** |
56 * Plays a radio station |
56 * Plays a radio station |
57 */ |
57 */ |
58 IMPORT_C void playStation(const QString &aUrl, int aApId); |
58 void playStation(const QString &aUrl, int aApId); |
59 |
59 |
60 /** |
60 /** |
61 * Stops playback |
61 * Stops playback |
62 */ |
62 */ |
63 IMPORT_C void stop(); |
63 void stop(); |
64 |
64 |
65 /** |
65 /** |
66 * Sets the volume to player, it's a percentage |
66 * Sets the volume to player, it's a percentage |
67 */ |
67 */ |
68 IMPORT_C void setVolume(int aVolume); |
68 void setVolume(int aVolume); |
69 |
69 |
70 /** |
70 /** |
71 * Turns on the stereo effect |
71 * Turns on the stereo effect |
72 */ |
72 */ |
73 IMPORT_C void enableStereoEffect(); |
73 void enableStereoEffect(); |
74 |
74 |
75 /** |
75 /** |
76 * Turns off the stereo effect |
76 * Turns off the stereo effect |
77 */ |
77 */ |
78 IMPORT_C void disableStereoEffect(); |
78 void disableStereoEffect(); |
79 |
79 |
80 signals: |
80 signals: |
81 |
81 |
82 /** |
82 /** |
83 * Notifies the successful connection with a radio station |
83 * Notifies the successful connection with a radio station |
103 * Gets the preset volume, it's a percentage |
103 * Gets the preset volume, it's a percentage |
104 */ |
104 */ |
105 void volumeExpected(int& aVolume); |
105 void volumeExpected(int& aVolume); |
106 |
106 |
107 private: |
107 private: |
108 /** |
|
109 * Turns on the stereo effect |
|
110 */ |
|
111 void enableStereoEffectL(); |
|
112 |
|
113 private: |
|
114 |
108 |
115 /** |
109 /** |
116 * Player adpater interface |
110 * Player adpater interface |
117 */ |
111 */ |
118 IRQPlayerAdapterInterface* iPlayer; |
112 IRQPlayerAdapterInterface* iPlayer; |
119 |
|
120 /** |
|
121 * Used for handling Stereo Mode |
|
122 */ |
|
123 CStereoWidening* iStereoEffect; |
|
124 }; |
113 }; |
125 |
114 |
126 #endif /* IRQMEDIAPLAYER_H_ */ |
115 #endif /* IRQMEDIAPLAYER_H_ */ |