mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
59 lines
1.8 KiB
C++
59 lines
1.8 KiB
C++
/*
|
|
* saverconfig.h
|
|
* Copyright 1997 Matthias Hoelzer
|
|
* Copyright 1996,1999,2002 Martin R. Jones
|
|
* Copyright 2004 Chris Howells
|
|
* Copyright 2007-2008 Benjamin Meyer <ben@meyerhome.net>
|
|
* Copyright 2007-2008 Hamish Rodda <rodda@kde.org>
|
|
* Copyright 2009 Dario Andres Rodriguez <andresbajotierra@gmail.com>
|
|
*
|
|
* 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) version 3 or any later version
|
|
* accepted by the membership of KDE e.V. (or its successor approved
|
|
* by the membership of KDE e.V.), which shall act as a proxy
|
|
* defined in Section 14 of version 3 of the license.
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef SAVERCONFIG_H
|
|
#define SAVERCONFIG_H
|
|
|
|
#include <QString>
|
|
|
|
class SaverConfig
|
|
{
|
|
public:
|
|
SaverConfig();
|
|
|
|
bool read(const QString &file);
|
|
|
|
QString exec() const { return mExec; }
|
|
QString setup() const { return mSetup; }
|
|
QString saver() const { return mSaver; }
|
|
QString name() const { return mName; }
|
|
QString file() const { return mFile; }
|
|
QString category() const { return mCategory; }
|
|
|
|
bool operator<(const SaverConfig & other) const {
|
|
return (name().localeAwareCompare(other.name()) < 0);
|
|
}
|
|
|
|
protected:
|
|
QString mExec;
|
|
QString mSetup;
|
|
QString mSaver;
|
|
QString mName;
|
|
QString mFile;
|
|
QString mCategory;
|
|
};
|
|
|
|
#endif
|