radioapp/radiouiengine/inc/radiohistoryitem_p.h
changeset 19 afea38384506
parent 16 f54ebcfc1b80
child 37 451b2e1545b2
--- a/radioapp/radiouiengine/inc/radiohistoryitem_p.h	Mon May 03 12:31:41 2010 +0300
+++ b/radioapp/radiouiengine/inc/radiohistoryitem_p.h	Fri May 14 15:52:32 2010 +0300
@@ -24,6 +24,25 @@
 
 // User includes
 
+// Forward declarations
+class QSqlRecord;
+
+// Constants
+namespace RadioHistoryValue
+{
+    enum Name
+    {
+        Id,
+        Artist,
+        Title,
+        Station,
+        Frequency,
+        Tagged,
+        FromRds,
+        Time
+    };
+}
+
 class RadioHistoryItemPrivate
 {
 public:
@@ -33,6 +52,8 @@
 
     void init( const QString& artist, const QString& title );
 
+    void initFromRecord( const QSqlRecord& record );
+
 public: // data
 
     /**
@@ -42,6 +63,8 @@
      */
     QAtomicInt      ref;
 
+    int             mId;
+
     QString         mArtist;
 
     QString         mTitle;
@@ -52,9 +75,9 @@
 
     uint            mFrequency;
 
-    int             mPlayCount;
+    bool            mTagged;
 
-    bool            mFavorite;
+    bool            mFromRds;
 
 };