summaryrefslogtreecommitdiffstats
path: root/src/gui/transferform.h
blob: a1349754ccd15d3bc52d8f3d87f74f54c1e57a4f (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
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef TRANSFERFORM_H
#define TRANSFERFORM_H
class t_phone;
extern t_phone *phone;

#include "getaddressform.h"
#include "phone.h"
#include "protocol.h"
#include <QtCore/QStringRef>
#include "sockets/url.h"
#include "user.h"
#include "ui_transferform.h"

class TransferForm : public QDialog, public Ui::TransferForm
{
	Q_OBJECT

public:
    TransferForm(QWidget* parent = 0);
	~TransferForm();

public slots:
	virtual void initTransferOptions();
	virtual void show( t_user * user );
	virtual void show( t_user * user, const string & dest, t_transfer_type transfer_type );
	virtual void hide();
	virtual void reject();
	virtual void validate();
	virtual void closeEvent( QCloseEvent * );
	virtual void showAddressBook();
	virtual void selectedAddress( const QString & address );
	virtual void setOtherLineAddress( bool on );

signals:
	void destination(const t_display_url&, t_transfer_type);

protected slots:
	virtual void languageChange();

private:
	int consult_line;
	t_user *user_config;
	GetAddressForm *getAddressForm;
	QString previousAddress;

	void init();
	void destroy();

};


#endif