2 Copyright (c) 2013, 2014 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #include "grantleetheme.h"
19 using namespace GrantleeTheme
;
29 bool Theme::isValid() const
31 return !mFileName
.isEmpty() && !mName
.isEmpty();
34 QString
Theme::description() const
39 void Theme::setDescription(const QString
&description
)
41 mDescription
= description
;
44 QString
Theme::filename() const
49 void Theme::setFilename(const QString
&file
)
54 QString
Theme::name() const
59 void Theme::setName(const QString
&n
)
64 QStringList
Theme::displayExtraVariables() const
66 return mDisplayExtraVariables
;
69 void Theme::setDisplayExtraVariables(const QStringList
&variables
)
71 mDisplayExtraVariables
= variables
;
74 void Theme::setDirName(const QString
&name
)
79 QString
Theme::dirName() const
84 void Theme::setAbsolutePath(const QString
&absPath
)
86 mAbsolutePath
= absPath
;
89 QString
Theme::absolutePath() const
94 void Theme::setAuthor(const QString
&author
)
99 QString
Theme::author() const
104 void Theme::setAuthorEmail(const QString
&email
)
109 QString
Theme::authorEmail() const