00001 /* 00002 * $Id$ 00003 * Kockpit - an Qt application for user/group management on unix based systems. 00004 * 00005 * Copyright (C) 2010 Julian Thome 00006 * 00007 * This program is free software; you can redistribute it and/or modify it under the terms of 00008 * the GNU General Public License as published by the Free Software Foundation; 00009 * either version 3 of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00012 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 * See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along with this program; 00016 * if not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef KOCKPITBACKENDENTRY_H 00020 #define KOCKPITBACKENDENTRY_H 00021 00022 #include <QString> 00023 #include <QStringList> 00024 00026 00029 class KockpitBackendEntry { 00030 00031 // XMLMapReader should habe direct access to the attribute values. 00032 friend class XMLMapReader; 00033 00034 public: 00036 KockpitBackendEntry(){ } 00037 00039 00043 KockpitBackendEntry(const QString &distName, const QStringList &objectClasses); 00044 00046 virtual ~KockpitBackendEntry(){ } 00047 00049 00053 QString toQString() const; 00054 00056 00061 friend std::ostream& operator <<(std::ostream& output, const KockpitBackendEntry& kbe); 00062 00064 virtual QString getDistName() const; 00065 00067 virtual QStringList getObjectClasses() const; 00068 00070 virtual void setDistName(const QString &distname); 00071 00073 virtual void setObjectClasses(const QStringList &objectClasses); 00074 00075 protected: 00077 QString distName; 00078 00080 QStringList objectClasses; 00081 }; 00082 00083 #endif // KOCKPITBACKENDENTRY_H