radioapp/radiouiengine/inc/radiohistoryitem_p.h
branchRCL_3
changeset 20 93c594350b9a
parent 19 cce62ebc198e
equal deleted inserted replaced
19:cce62ebc198e 20:93c594350b9a
     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
       
    22 #include <QSharedData>
       
    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 
       
    47 class RadioHistoryItemPrivate : public QSharedData
       
    48 {
       
    49 public:
       
    50 
       
    51     RadioHistoryItemPrivate();
       
    52     RadioHistoryItemPrivate( const RadioHistoryItemPrivate& other );
       
    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