]> git.sur5r.net Git - minitube/blobdiff - src/ListModel.h
Imported Upstream version 1.7
[minitube] / src / ListModel.h
index c84b6053a7ffd40de127b9b042c4809f8372a4ae..2752aab196229dd4b1c4e20d8d2e4adc84322d67 100644 (file)
@@ -12,7 +12,9 @@ enum DataRoles {
     DownloadItemRole,
     HoveredItemRole,
     DownloadButtonHoveredRole,
-    DownloadButtonPressedRole
+    DownloadButtonPressedRole,
+    AuthorHoveredRole,
+    AuthorPressedRole
 };
 
 enum ItemTypes {
@@ -49,6 +51,7 @@ public:
     bool rowExists( int row ) const { return (( row >= 0 ) && ( row < videos.size() ) ); }
     int activeRow() const { return m_activeRow; } // returns -1 if there is no active row
     int nextRow() const;
+    int previousRow() const;
     void removeIndexes(QModelIndexList &indexes);
     int rowForVideo(Video* video);
     QModelIndex indexForVideo(Video* video);
@@ -70,6 +73,14 @@ public slots:
     void searchError(QString message);
     void updateThumbnail();
 
+    void setHoveredRow(int row);
+    void clearHover();
+    void enterAuthorHover();
+    void exitAuthorHover();
+    void enterAuthorPressed();
+    void exitAuthorPressed();
+    void updateAuthor();
+
 signals:
     void activeRowChanged(int);
     void needSelectionFor(QList<Video*>);
@@ -90,6 +101,10 @@ private:
     Video *m_activeVideo;
 
     QString errorMessage;
+
+    int hoveredRow;
+    bool authorHovered;
+    bool authorPressed;
 };
 
 #endif