benoitrigolleau@56: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ benoitrigolleau@56: benoitrigolleau@56: /* benoitrigolleau@56: Sound Access benoitrigolleau@56: EASAIER client application. benoitrigolleau@56: Silogic 2007. Benoit Rigolleau. benoitrigolleau@56: benoitrigolleau@56: This program is free software; you can redistribute it and/or benoitrigolleau@56: modify it under the terms of the GNU General Public License as benoitrigolleau@56: published by the Free Software Foundation; either version 2 of the benoitrigolleau@56: License, or (at your option) any later version. See the file benoitrigolleau@56: COPYING included with this distribution for more information. benoitrigolleau@56: */ benoitrigolleau@56: benoitrigolleau@56: #ifndef _LAYER_ITEM_MODEL_H benoitrigolleau@56: #define _LAYER_ITEM_MODEL_H benoitrigolleau@56: benoitrigolleau@56: #include benoitrigolleau@56: #include benoitrigolleau@56: benoitrigolleau@56: benoitrigolleau@56: class LayerItemModel{ benoitrigolleau@56: public : benoitrigolleau@56: LayerItemModel(); benoitrigolleau@56: LayerItemModel(QString &title, QString &icon, QColor &color, bool visible, bool audible); benoitrigolleau@56: LayerItemModel(const LayerItemModel &lim); benoitrigolleau@56: ~LayerItemModel(); benoitrigolleau@56: benoitrigolleau@56: QString getTitle() const; benoitrigolleau@56: QString getIcon() const; benoitrigolleau@56: QColor getColor() const; benoitrigolleau@56: bool getVisible() const; benoitrigolleau@56: bool getAudible() const; benoitrigolleau@56: benoitrigolleau@56: void setTitle(QString &title); benoitrigolleau@56: void setIcon(QString &icon); benoitrigolleau@56: void setColor(QColor &color); benoitrigolleau@56: void setVisible(bool visible); benoitrigolleau@56: void setAudible(bool audible); benoitrigolleau@56: benoitrigolleau@56: private : benoitrigolleau@56: QString m_title; benoitrigolleau@56: QString m_icon; benoitrigolleau@56: QColor m_color; benoitrigolleau@56: bool m_visible; benoitrigolleau@56: bool m_audible; benoitrigolleau@56: }; benoitrigolleau@56: benoitrigolleau@56: benoitrigolleau@56: #include benoitrigolleau@56: Q_DECLARE_METATYPE(LayerItemModel); benoitrigolleau@56: benoitrigolleau@56: benoitrigolleau@56: #endif benoitrigolleau@56: