author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:17:30 +0300 | |
changeset 53 | bb6ed1806599 |
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 RADIOHISTORYITEM_P_H |
|
19 |
#define RADIOHISTORYITEM_H |
|
20 |
||
21 |
// System includes |
|
32
189d20c34778
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
22 |
#include <QSharedData> |
24 | 23 |
#include <QString> |
24 |
#include <QDateTime> |
|
25 |
||
26 |
// User includes |
|
27 |
||
28 |
// Forward declarations |
|
29 |
class QSqlRecord; |
|
30 |
||
31 |
// Constants |
|
32 |
namespace RadioHistoryValue |
|
33 |
{ |
|
34 |
enum Name |
|
35 |
{ |
|
36 |
Id, |
|
37 |
Artist, |
|
38 |
Title, |
|
39 |
Station, |
|
40 |
Frequency, |
|
41 |
Tagged, |
|
42 |
FromRds, |
|
43 |
Time |
|
44 |
}; |
|
45 |
} |
|
46 |
||
32
189d20c34778
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
47 |
class RadioHistoryItemPrivate : public QSharedData |
24 | 48 |
{ |
49 |
public: |
|
50 |
||
51 |
RadioHistoryItemPrivate(); |
|
32
189d20c34778
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
52 |
RadioHistoryItemPrivate( const RadioHistoryItemPrivate& other ); |
24 | 53 |
RadioHistoryItemPrivate( const QString& artist, const QString& title ); |
54 |
||
55 |
void init( const QString& artist, const QString& title ); |
|
56 |
||
57 |
void initFromRecord( const QSqlRecord& record ); |
|
58 |
||
59 |
public: // data |
|
60 |
||
61 |
int mId; |
|
62 |
||
63 |
QString mArtist; |
|
64 |
||
65 |
QString mTitle; |
|
66 |
||
67 |
QString mStation; |
|
68 |
||
69 |
QDateTime mTime; |
|
70 |
||
71 |
uint mFrequency; |
|
72 |
||
73 |
bool mTagged; |
|
74 |
||
75 |
bool mFromRds; |
|
76 |
||
77 |
}; |
|
78 |
||
79 |
#endif // RADIOHISTORYITEM_H |