diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-14 09:59:14 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-14 09:59:14 +0000 |
| commit | 2e689e667c8f4a53b9147ee3f54189a955acbc29 (patch) | |
| tree | 3bd98ca7307d62050409d61e376010ea146cdfeb /src/qmmpui/normalcontainer_p.h | |
| parent | 3860a6037874458f9c3baf4f53ba32b1fcb462ab (diff) | |
| download | qmmp-2e689e667c8f4a53b9147ee3f54189a955acbc29.tar.gz qmmp-2e689e667c8f4a53b9147ee3f54189a955acbc29.tar.bz2 qmmp-2e689e667c8f4a53b9147ee3f54189a955acbc29.zip | |
added normal (w/o groups) playlist container
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3597 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/normalcontainer_p.h')
| -rw-r--r-- | src/qmmpui/normalcontainer_p.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/qmmpui/normalcontainer_p.h b/src/qmmpui/normalcontainer_p.h new file mode 100644 index 000000000..23286d9eb --- /dev/null +++ b/src/qmmpui/normalcontainer_p.h @@ -0,0 +1,57 @@ +/*************************************************************************** + * Copyright (C) 2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef NORMALCONTAINER_P_H +#define NORMALCONTAINER_P_H + +#include "playlistcontainer_p.h" + +class NormalContainer : public PlayListContainer +{ +public: + NormalContainer(); + virtual ~NormalContainer(); + + void addTrack(PlayListTrack *item); + QList<PlayListGroup *> groups(); + QList<PlayListItem *> items() const; + int count() const; + int trackCount() const; + QList<PlayListItem *> mid(int pos, int count) const; + bool isEmpty() const; + bool isSelected(int index) const; + void setSelected(int index, bool selected); + void clearSelection(); + int indexOf(PlayListItem *item) const; + PlayListItem *item(int index) const; + PlayListTrack *track(int index) const; + bool contains(PlayListItem *item) const; + int numberOfTrack(int index) const; + void removeTrack(int index); + void removeTrack(PlayListTrack *track); + void removeTracks(QList<PlayListTrack *> tracks); + bool move(QList<int> indexes, int from, int to); + void clear(); + +private: + QList<PlayListItem *> m_items; +}; + +#endif // NORMALCONTAINER_P_H |
