diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-01-09 12:01:22 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-01-09 12:01:22 +0000 |
| commit | ebd7f9bc697973366de8a6bf7265051e825e0680 (patch) | |
| tree | 1feb9df1c5fe3493e9aa1dd8f5d6233a38ae9d3c /src/qmmpui/playlisttrack.h | |
| parent | bc7ad688c646afd2a89e5c5ff58696f2df2c8605 (diff) | |
| download | qmmp-ebd7f9bc697973366de8a6bf7265051e825e0680.tar.gz qmmp-ebd7f9bc697973366de8a6bf7265051e825e0680.tar.bz2 qmmp-ebd7f9bc697973366de8a6bf7265051e825e0680.zip | |
renaming experimental branch
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4675 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlisttrack.h')
| -rw-r--r-- | src/qmmpui/playlisttrack.h | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/src/qmmpui/playlisttrack.h b/src/qmmpui/playlisttrack.h index e21b8f286..810be411a 100644 --- a/src/qmmpui/playlisttrack.h +++ b/src/qmmpui/playlisttrack.h @@ -34,19 +34,6 @@ class PlayListTrack : public QMap <Qmmp::MetaData, QString>, public PlayListItem { public: /*! - * Current state of playlist item. - * FREE - instance is free and may be deleted - * EDITING - instance is currently busy in some kind of operation(tags editing etc.) - * and can't be deleted at the moment. Set flag SCHEDULED_FOR_DELETION for it - * instead of delete operator call. - */ - enum FLAGS - { - FREE = 0, /*!< instance is free and may be deleted */ - EDITING, /*!< instance is currently busy */ - SCHEDULED_FOR_DELETION /*!< instance is sheduled for deletion */ - }; - /*! * Constructs an empty plalist item. */ PlayListTrack(); @@ -100,14 +87,19 @@ public: * Returns \b false. */ bool isGroup() const; + + + void beginUsage(); + void endUsage(); + void deleteLater(); + + + bool isSheduledForDeletion() const; /*! - * Returns current state of the playlist item. - */ - FLAGS flag() const; - /*! - * Sets state of the playlist item. + * Indicates that instance is currently busy in some kind of operation (tags editing etc.) + * and can't be deleted at the moment. Call \b deleteLater() instead of delete operator call. */ - void setFlag(FLAGS); + bool isUsed() const; private: void formatTitle(); @@ -119,7 +111,8 @@ private: QString m_groupFormat; QmmpUiSettings *m_settings; qint64 m_length; - FLAGS m_flag; + int m_refCount; + bool m_sheduledForDeletion; }; #endif |
