summaryrefslogtreecommitdiffstats
path: root/src/gui/inviteform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inviteform.h')
-rw-r--r--src/gui/inviteform.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gui/inviteform.h b/src/gui/inviteform.h
new file mode 100644
index 0000000..337667b
--- /dev/null
+++ b/src/gui/inviteform.h
@@ -0,0 +1,39 @@
+#ifndef INVITEFORM_UI_H
+#define INVITEFORM_UI_H
+#include "ui_inviteform.h"
+#include "sockets/url.h"
+#include "getaddressform.h"
+#include "user.h"
+#include "phone.h"
+#include <QDialog>
+
+class t_phone;
+extern t_phone *phone;
+
+class InviteForm : public QDialog, public Ui::InviteForm
+{
+ Q_OBJECT
+public:
+ InviteForm(QWidget *parent, const char *name, bool modal);
+ ~InviteForm();
+public slots:
+ void clear();
+ void show( t_user * user_config, const QString & dest, const QString & subject, bool anonymous );
+ void validate();
+ void addToInviteComboBox( const QString & destination );
+ void reject();
+ void closeEvent( QCloseEvent * );
+ void showAddressBook();
+ void selectedAddress( const QString & address );
+ void warnHideUser( void );
+signals:
+ void destination(t_user *, const QString &, const t_url &, const QString &, bool);
+ void raw_destination(const QString &);
+private:
+ void init();
+ void destroy();
+
+ GetAddressForm *getAddressForm;
+};
+
+#endif