File indexing completed on 2024-04-28 04:32:00

0001 /*
0002  * Copyright (C) 2010-2015 by Stephen Allewell
0003  * steve.allewell@gmail.com
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 2 of the License, or
0008  * (at your option) any later version.
0009  */
0010 
0011 #include "Floss.h"
0012 
0013 Floss::Floss(const QString &name, const QString &description, const QColor &color)
0014     : m_name(name)
0015     , m_description(description)
0016     , m_color(color)
0017 {
0018 }
0019 
0020 const QString &Floss::name() const
0021 {
0022     return m_name;
0023 }
0024 
0025 const QString &Floss::description() const
0026 {
0027     return m_description;
0028 }
0029 
0030 const QColor &Floss::color() const
0031 {
0032     return m_color;
0033 }
0034 
0035 void Floss::setName(const QString &name)
0036 {
0037     m_name = name;
0038 }
0039 
0040 void Floss::setDescription(const QString &description)
0041 {
0042     m_description = description;
0043 }
0044 
0045 void Floss::setColor(const QColor &color)
0046 {
0047     m_color = color;
0048 }