diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-05-30 13:41:50 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-05-30 13:41:50 +0000 |
| commit | 195d573dfd2a1b20b0e61aa5612aafeee852c352 (patch) | |
| tree | a3e9e1cb7b576a5d602146560f5f41e77f4caf03 /src/qmmpui/metadatahelper_p.h | |
| parent | 08545e3aedf6c46db79e7e513a9d1aaa35254884 (diff) | |
| download | qmmp-195d573dfd2a1b20b0e61aa5612aafeee852c352.tar.gz qmmp-195d573dfd2a1b20b0e61aa5612aafeee852c352.tar.bz2 qmmp-195d573dfd2a1b20b0e61aa5612aafeee852c352.zip | |
prepare for api changes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5043 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/metadatahelper_p.h')
| -rw-r--r-- | src/qmmpui/metadatahelper_p.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/qmmpui/metadatahelper_p.h b/src/qmmpui/metadatahelper_p.h new file mode 100644 index 000000000..98a36c7ca --- /dev/null +++ b/src/qmmpui/metadatahelper_p.h @@ -0,0 +1,55 @@ +/*************************************************************************** + * Copyright (C) 2015 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 METADATAHELPER_P_H +#define METADATAHELPER_P_H + +#include <QList> +#include <QStringList> +#include "metadataformatter.h" + +/*! @internal + * @author Ilya Kotov <forkotov02@hotmail.ru> + */ +class MetaDataHelper +{ +public: + MetaDataHelper(); + ~MetaDataHelper(); + + void setTitleFormats(const QStringList &titleFormats); + void setGroupFormat(const QString &groupFormat); + + int columnCount() const; + const MetaDataFormatter *titleFormatter(int index) const; + const MetaDataFormatter *groupFormatter() const; + + static MetaDataHelper *instance(); + +private: + static MetaDataHelper *m_instance; + + MetaDataFormatter *m_group_formatter; + QList <MetaDataFormatter*> m_title_formatters; + + +}; + +#endif // METADATAHELPER_P_H |
