00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 ***************************************************************************/ 00009 00010 #ifndef GROUPDIALOG_H 00011 #define GROUPDIALOG_H 00012 00013 #include <qdialog.h> 00014 #include <qlineedit.h> 00015 00016 class GroupDialog : public QDialog 00017 { 00018 Q_OBJECT 00019 private: 00020 QString gid; 00021 QString groupname; 00022 QLineEdit *gidLineEdit; 00023 QLineEdit *groupnameLineEdit; 00024 int execStatus; 00025 00026 void accept(void); 00027 00028 public: 00029 GroupDialog( QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 ); 00030 ~GroupDialog(); 00031 static bool addGroup(int gid); 00032 static bool delGroup(const char *groupname); 00033 static bool editGroup(int gid); 00034 }; 00035 00036 #endif
1.4.2