diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /noatun/library/noatuntags/tagsgetter.h | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/library/noatuntags/tagsgetter.h')
-rw-r--r-- | noatun/library/noatuntags/tagsgetter.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/noatun/library/noatuntags/tagsgetter.h b/noatun/library/noatuntags/tagsgetter.h new file mode 100644 index 00000000..269b7b90 --- /dev/null +++ b/noatun/library/noatuntags/tagsgetter.h @@ -0,0 +1,56 @@ +#ifndef TAGSGET_H +#define TAGSGET_H + +#include <qobject.h> +#include <cmodule.h> +#include <qvaluelist.h> +#include <qptrlist.h> +#include "tags.h" + +class TagsGetter : public QObject, public PlaylistNotifier +{ +Q_OBJECT +public: + TagsGetter(); + void associate(Tags *t); + // if returns true, I'm deleted + bool unassociate(Tags *t); + + int interval() const; + bool loadAuto() const; + +public: //playlistnotifier + virtual void added(PlaylistItem &); + virtual void removed(PlaylistItem &); + +protected: + void timerEvent(QTimerEvent *); + +private slots: + // select the songs that need updating + void getSongs(); + + void newSong(); + +public slots: + void setInterval(int ms); + void setLoadAuto(bool); + +private: + void sortPriority(); + +private: + QPtrList<Tags> tags; + QValueList<PlaylistItem> items; +}; + +class Control : public CModule +{ +Q_OBJECT +public: + Control(TagsGetter* parent); +}; + + +#endif + |