summaryrefslogtreecommitdiffstats
path: root/src/gui/inviteform.h
blob: 3d461989008aa32331a5bbb56d224cd40a7773f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);
	~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