summaryrefslogtreecommitdiffstats
path: root/src/gui/transferform.h
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-02 19:32:25 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-02 19:32:25 +0200
commitab83223e1b5c7d34855d091e0c868462bd9452d1 (patch)
tree0890102c34727fcceea3d4e4c89ca560988b7f6d /src/gui/transferform.h
parentaa9b140a7bb49eb9666678bcbbb544cc536bd6de (diff)
downloadtwinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar
twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.gz
twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.lz
twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.xz
twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.zip
Twinkle now compiles with Qt4 uic, but crashes at runtime (due to GUI calls from outside the main thread)
Diffstat (limited to 'src/gui/transferform.h')
-rw-r--r--src/gui/transferform.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/gui/transferform.h b/src/gui/transferform.h
new file mode 100644
index 0000000..65477d8
--- /dev/null
+++ b/src/gui/transferform.h
@@ -0,0 +1,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, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 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