SVN_SILENT made messages (.desktop file)
[kdepim.git] / grantleetheme / grantleetheme.cpp
blob5607d630ae43acceec3adf0a8b78695d716f4e01
1 /*
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;
21 Theme::Theme()
25 Theme::~Theme()
29 bool Theme::isValid() const
31 return !mFileName.isEmpty() && !mName.isEmpty();
34 QString Theme::description() const
36 return mDescription;
39 void Theme::setDescription(const QString &description)
41 mDescription = description;
44 QString Theme::filename() const
46 return mFileName;
49 void Theme::setFilename(const QString &file)
51 mFileName = file;
54 QString Theme::name() const
56 return mName;
59 void Theme::setName(const QString &n)
61 mName = 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)
76 mDirName = name;
79 QString Theme::dirName() const
81 return mDirName;
84 void Theme::setAbsolutePath(const QString &absPath)
86 mAbsolutePath = absPath;
89 QString Theme::absolutePath() const
91 return mAbsolutePath;
94 void Theme::setAuthor(const QString &author)
96 mAuthor = author;
99 QString Theme::author() const
101 return mAuthor;
104 void Theme::setAuthorEmail(const QString &email)
106 mEmail = email;
109 QString Theme::authorEmail() const
111 return mEmail;