first release
[groupsms] / sms / selectcontactwidget.h
diff --git a/sms/selectcontactwidget.h b/sms/selectcontactwidget.h
new file mode 100644 (file)
index 0000000..49b9a15
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef SELECTCONTACTWIDGET_H
+#define SELECTCONTACTWIDGET_H
+
+#include <QtGui>
+#include "contactwidget.h"
+#include "groupwidgetitem.h"
+#include "itemobserver.h"
+
+class SelectContactWidget : public ContactWidget, public ItemSelectObserver
+{
+    Q_OBJECT
+public:
+    SelectContactWidget( QWidget *parent = 0 );
+    ~SelectContactWidget();
+    void initContactWidget();
+
+    void getGroupContacts( ItemListPtr items );
+
+    QVector<ContactWidgetItem*>* getSelectedContacts();
+
+    void addContactsToGroup(const QString &groupname);
+
+protected:
+    void destroyContactWidget();
+
+};
+
+#endif // SELECTCONTACTWIDGET_H