summaryrefslogtreecommitdiff
path: root/noncore/settings/usermanager/groupdialog.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/usermanager/groupdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/usermanager/groupdialog.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/noncore/settings/usermanager/groupdialog.h b/noncore/settings/usermanager/groupdialog.h
new file mode 100644
index 0000000..8b37039
--- a/dev/null
+++ b/noncore/settings/usermanager/groupdialog.h
@@ -0,0 +1,36 @@
+/***************************************************************************
+ * *
+ * 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) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef GROUPDIALOG_H
+#define GROUPDIALOG_H
+
+#include <qdialog.h>
+#include <qlineedit.h>
+
+class GroupDialog : public QDialog
+{
+ Q_OBJECT
+private:
+ QString gid;
+ QString groupname;
+ QLineEdit *gidLineEdit;
+ QLineEdit *groupnameLineEdit;
+ int execStatus;
+
+ void accept(void);
+
+public:
+ GroupDialog( QWidget* parent = 0, const char* name = 0, bool modal=true, WFlags fl = 0 );
+ ~GroupDialog();
+ static bool addGroup(int gid);
+ static bool delGroup(const char *groupname);
+ static bool editGroup(int gid);
+};
+
+#endif