equal
deleted
inserted
replaced
18 #ifndef RADIOPRESETSTORAGE_H_ |
18 #ifndef RADIOPRESETSTORAGE_H_ |
19 #define RADIOPRESETSTORAGE_H_ |
19 #define RADIOPRESETSTORAGE_H_ |
20 |
20 |
21 // System includes |
21 // System includes |
22 #include <QtGlobal> |
22 #include <QtGlobal> |
|
23 #include <QList> |
|
24 #include <QScopedPointer> |
23 |
25 |
24 #include "radiopresetstorageexport.h" |
26 #include "radiopresetstorageexport.h" |
25 |
27 |
26 // Forward declarations |
28 // Forward declarations |
27 class RadioStationIf; |
29 class RadioStationIf; |
28 class RadioPresetStoragePrivate; |
30 class RadioPresetStoragePrivate; |
29 |
31 |
30 class STORAGE_DLL_EXPORT RadioPresetStorage |
32 class STORAGE_DLL_EXPORT RadioPresetStorage |
31 { |
33 { |
32 Q_DECLARE_PRIVATE_D( d_ptr, RadioPresetStorage ) |
34 Q_DECLARE_PRIVATE_D( d_ptr.data(), RadioPresetStorage ) |
33 Q_DISABLE_COPY( RadioPresetStorage ) |
35 Q_DISABLE_COPY( RadioPresetStorage ) |
34 |
36 |
35 public: |
37 public: |
36 |
38 |
37 RadioPresetStorage(); |
39 RadioPresetStorage(); |
42 int firstPreset() const; |
44 int firstPreset() const; |
43 int nextPreset( int fromIndex ) const; |
45 int nextPreset( int fromIndex ) const; |
44 bool deletePreset( int presetIndex ); |
46 bool deletePreset( int presetIndex ); |
45 bool savePreset( const RadioStationIf& station ); |
47 bool savePreset( const RadioStationIf& station ); |
46 bool readPreset( int index, RadioStationIf& station ); |
48 bool readPreset( int index, RadioStationIf& station ); |
|
49 void readFrequencies( QList<uint>& frequencyList ); |
47 |
50 |
48 private: // data |
51 private: // data |
49 |
52 |
50 /** |
53 /** |
51 * Unmodifiable pointer to the private implementation |
54 * Unmodifiable pointer to the private implementation |
52 */ |
55 */ |
53 RadioPresetStoragePrivate* const d_ptr; |
56 const QScopedPointer<RadioPresetStoragePrivate> d_ptr; |
54 |
57 |
55 }; |
58 }; |
56 |
59 |
57 #endif // RADIOPRESETSTORAGE_H_ |
60 #endif // RADIOPRESETSTORAGE_H_ |