author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 09:49:03 +0300 | |
changeset 41 | 3a6b55c6390c |
parent 32 | 189d20c34778 |
child 37 | 451b2e1545b2 |
permissions | -rw-r--r-- |
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 RADIOPRESETSTORAGE_H_ |
|
19 |
#define RADIOPRESETSTORAGE_H_ |
|
20 |
||
21 |
// System includes |
|
22 |
#include <QtGlobal> |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
23 |
#include <QList> |
32
189d20c34778
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
28
diff
changeset
|
24 |
#include <QScopedPointer> |
24 | 25 |
|
26 |
#include "radiopresetstorageexport.h" |
|
27 |
||
28 |
// Forward declarations |
|
29 |
class RadioStationIf; |
|
30 |
class RadioPresetStoragePrivate; |
|
31 |
||
32 |
class STORAGE_DLL_EXPORT RadioPresetStorage |
|
33 |
{ |
|
32
189d20c34778
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
28
diff
changeset
|
34 |
Q_DECLARE_PRIVATE_D( d_ptr.data(), RadioPresetStorage ) |
24 | 35 |
Q_DISABLE_COPY( RadioPresetStorage ) |
36 |
||
37 |
public: |
|
38 |
||
39 |
RadioPresetStorage(); |
|
40 |
~RadioPresetStorage(); |
|
41 |
||
42 |
int maxNumberOfPresets() const; |
|
43 |
int presetCount() const; |
|
44 |
int firstPreset() const; |
|
45 |
int nextPreset( int fromIndex ) const; |
|
46 |
bool deletePreset( int presetIndex ); |
|
47 |
bool savePreset( const RadioStationIf& station ); |
|
48 |
bool readPreset( int index, RadioStationIf& station ); |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
49 |
void readFrequencies( QList<uint>& frequencyList ); |
24 | 50 |
|
51 |
private: // data |
|
52 |
||
53 |
/** |
|
54 |
* Unmodifiable pointer to the private implementation |
|
55 |
*/ |
|
32
189d20c34778
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
28
diff
changeset
|
56 |
const QScopedPointer<RadioPresetStoragePrivate> d_ptr; |
24 | 57 |
|
58 |
}; |
|
59 |
||
60 |
#endif // RADIOPRESETSTORAGE_H_ |