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 #ifndef KOCKPITMODULE_H 00019 #define KOCKPITMODULE_H 00020 00021 #include <QVariant> 00022 #include <QString> 00023 #include <StringList.h> 00024 #include "kockpitmodule.h" 00025 #include "kockpitunitmap.h" 00026 00028 00031 class KockpitModule { 00032 00033 public: 00035 virtual ~KockpitModule(){ } 00036 00038 00045 virtual void build(QList<KockpitUnitMap*>* kuml, const KockpitBaseObj &baseobj) = 0; 00046 00048 00052 virtual void createEntry(KockpitUnitMap* kunit) = 0; 00053 00055 00059 virtual void deleteEntry(KockpitUnitMap* kunit) = 0; 00060 00062 00066 virtual void modifyEntry(KockpitUnitMap* kunit) = 0; 00067 00069 00074 virtual void connect(const KockpitAuthObj &authobj) = 0; 00075 00077 virtual void disconnect() = 0; 00078 }; 00079 00080 Q_DECLARE_INTERFACE(KockpitModule,"KockpitModule") 00081 00082 #endif // KOCKPITMODULE_H