summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-04 16:08:10 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-04 16:08:10 (GMT)
commit8ca471e7304e813fa55ebf512a8f30f146fe6b41 (patch)
treee962968f1f7afc0bc6c73a776e3ee75e8c7deaba /Swift/QtUI/QtSetGroupsDialog.h
parent026e8a67d871d99f4f0c0bddb6d16d12521f1e1c (diff)
downloadswift-8ca471e7304e813fa55ebf512a8f30f146fe6b41.zip
swift-8ca471e7304e813fa55ebf512a8f30f146fe6b41.tar.bz2
Assign contacts to groups.
Another patch will follow shortly to stop them appearing offline after a roster change like this. Resolves: #272 Release-Notes: It's now possible to assign your contacts to groups.
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_;
+};
+
+}
+