aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-10-16 17:42:06 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-10-16 17:42:06 +0000
commit6d121794491610ca09441715bd1fa15d88c31890 (patch)
treef2b5c8d2778621ad3b7fd5dd11601a248fda7154 /src/qmmpui/playlistmodel.h
parent8abc1d73303c4841ff8bbf22d4d6f7994d4ac190 (diff)
downloadqmmp-6d121794491610ca09441715bd1fa15d88c31890.tar.gz
qmmp-6d121794491610ca09441715bd1fa15d88c31890.tar.bz2
qmmp-6d121794491610ca09441715bd1fa15d88c31890.zip
some main menu reorganization
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1941 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.h')
-rw-r--r--src/qmmpui/playlistmodel.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h
index d6eb3c4f4..ac5668ffa 100644
--- a/src/qmmpui/playlistmodel.h
+++ b/src/qmmpui/playlistmodel.h
@@ -184,11 +184,11 @@ public:
*/
QStringList getTimes(int first,int last);
/*!
- * Moves the item at index position \b from to index position \b to
+ * Moves the item at index position \b from to index position \b to.
*/
void moveItems(int from, int to);
/*!
- * Returns \b true if \b f file is in play queue, else returns \b false
+ * Returns \b true if \b f file is in play queue, otherwise returns \b false.
*/
bool isQueued(PlayListItem* item) const;
/*!
@@ -202,17 +202,15 @@ public:
/*!
* Returns index of \b f file in queue.e
*/
- int queuedIndex(PlayListItem* item) const
- {
- return m_queued_songs.indexOf(item);
- }
+ int queuedIndex(PlayListItem* item) const;
/*!
* Returns the number of items in the queue
*/
- int queueSize() const
- {
- return m_queued_songs.size();
- }
+ int queueSize() const;
+ /*!
+ * Returns \b true if playback stops after \b item, otherwise returns \b false.
+ */
+ bool isStopAfter(PlayListItem* item) const;
/*!
* Returns current selection(playlist can contain a lot of selections,
* this method returns selection which \b row belongs to)
@@ -413,6 +411,14 @@ public slots:
* Removes duplicate items by URL.
*/
void removeDuplicates();
+ /*!
+ * Removes all items from queue.
+ */
+ void clearQueue();
+ /*!
+ * Toggles 'stop after selected' feature.
+ */
+ void stopAfterSelected();
private:
/*!
@@ -448,6 +454,7 @@ private:
QList <PlayListItem*> m_items;
QList <PlayListItem*> m_editing_items;
PlayListItem* m_currentItem;
+ PlayListItem* m_stop_item;
int m_current;
/*!
* This flyweight object represents current selection.