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 00020 #ifndef SAMBA_H 00021 #define SAMBA_H 00022 00023 #include <QWidget> 00024 #include "kockpitifaces.h" 00025 #include "ui_samba.h" 00026 00028 00031 class Samba: public QWidget, public KockpitIface, Ui::Samba { 00032 Q_OBJECT 00033 Q_INTERFACES(KockpitIface) 00034 00035 public: 00036 00037 Samba(QWidget *parent = 0); 00038 QString getName(); 00039 QWidget* getUserWidget(); 00040 QWidget* getGroupWidget(); 00041 00042 void showAttributes(KockpitUser *kuser); 00043 void assignAttributes(KockpitUser *kuser); 00044 void showAttributes(KockpitGroup *kgrp); 00045 void assignAttributes(KockpitGroup *kgrp); 00046 void init(const QList<KockpitUnitMap*> *kumap, const QList<KockpitUnitMap*> *kgmap, KockpitValidator *val); 00047 void update(const QList<KockpitUnitMap *> */*kumap*/, const QList<KockpitUnitMap *> */*kgmap*/){ } 00048 00049 void deleteEntry(KockpitUser */*kuser*/){ } 00050 void deleteEntry(KockpitGroup */*kgrp*/){ } 00051 00052 void writeAdditional(QList<KockpitGroup*> &/*kgrpl*/, wraddmod /*mod*/){ } 00053 void writeAdditional(QList<KockpitUser*> &/*kusr*/, wraddmod /*mod*/){ } 00054 00055 }; 00056 00057 #endif // SAMBA_H