diff options
Diffstat (limited to 'src/libpcp_qed/src/qed_colorlist.h')
-rw-r--r-- | src/libpcp_qed/src/qed_colorlist.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libpcp_qed/src/qed_colorlist.h b/src/libpcp_qed/src/qed_colorlist.h new file mode 100644 index 0000000..b918773 --- /dev/null +++ b/src/libpcp_qed/src/qed_colorlist.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2013-2014, Red Hat. + * + * 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. + */ +#ifndef QED_COLORLIST_H +#define QED_COLORLIST_H + +#include <QtGui> + +class QedColorList : public QString +{ +public: + QedColorList(const char *id); + void addColor(const char *name); + const char *identity() const; + unsigned int length(); + +private: + struct { + QStringList names; // color names + } my; +}; + +#endif // QED_COLORLIST_H |