summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtSetGroupsDialog.h')
-rw-r--r--Swift/QtUI/QtSetGroupsDialog.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSetGroupsDialog.h b/Swift/QtUI/QtSetGroupsDialog.h
new file mode 100644
index 0000000..e8300f5
--- /dev/null
+++ b/Swift/QtUI/QtSetGroupsDialog.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2010 Kevin Smith
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include <map>
+
+#include <boost/shared_ptr.hpp>
+
+#include <QDialog>
+#include <QCheckBox>
+#include <QLineEdit>
+#include <QList>
+
+#include "Swiften/Roster/ContactRosterItem.h"
+#include "Swift/Controllers/UIEvents/RegroupRosterItemUIEvent.h"
+
+namespace Swift {
+
+class QtSetGroupsDialog : public QDialog {
+ Q_OBJECT
+ public:
+ QtSetGroupsDialog(ContactRosterItem* contact, const QList<QString>& allGroups);
+ virtual ~QtSetGroupsDialog();
+ boost::shared_ptr<RegroupRosterItemUIEvent> getRegroupEvent();
+ private:
+ ContactRosterItem* contact_;
+ std::map<String, QCheckBox*> checkBoxes_;
+ QCheckBox* newGroup_;
+ QLineEdit* newGroupName_;
+};
+
+}
+