summaryrefslogtreecommitdiffstats
path: root/src/gui/messageform.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/messageform.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/messageform.h')
-rw-r--r--src/gui/messageform.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/gui/messageform.h b/src/gui/messageform.h
new file mode 100644
index 0000000..8cf9037
--- /dev/null
+++ b/src/gui/messageform.h
@@ -0,0 +1,75 @@
+#ifndef MESSAGEFORM_H
+#define MESSAGEFORM_H
+#include <textbrowsernoautolink.h>
+#include "getaddressform.h"
+#include "im/msg_session.h"
+#include "phone.h"
+#include <Qt3Support/Q3PopupMenu>
+#include <QtGui/QLabel>
+#include <QtCore/QStringRef>
+#include "textbrowsernoautolink.h"
+#include "user.h"
+#include "ui_messageform.h"
+#include <Q3MainWindow>
+
+class t_phone;
+extern t_phone *phone;
+
+class MessageForm : public Q3MainWindow, public Ui::MessageForm
+{
+ Q_OBJECT
+
+public:
+ MessageForm(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = Qt::WType_TopLevel);
+ ~MessageForm();
+
+ virtual bool updateMessageSession();
+ virtual bool prepareSendMessage();
+
+public slots:
+ virtual void closeEvent( QCloseEvent * e );
+ virtual void show();
+ virtual void selectUserConfig( t_user * user_config );
+ virtual void showAddressBook();
+ virtual void selectedAddress( const QString & address );
+ virtual void sendMessage();
+ virtual void sendFile( const QString & filename, const QString & subject );
+ virtual void addMessage( const im::t_msg & msg, const QString & name );
+ virtual void displayError( const QString & errorMsg );
+ virtual void displayDeliveryNotification( const QString & notification );
+ virtual void setRemotePartyCaption( void );
+ virtual void showAttachmentPopupMenu( const QString & attachment );
+ virtual void attachmentPopupActivated( int id );
+ virtual void saveAttachment();
+ virtual void chooseFileToSend();
+ virtual void setComposingIndication( const QString & name );
+ virtual void clearComposingIndication();
+ virtual void setLocalComposingIndicationActive();
+ virtual void keyPressEvent( QKeyEvent * e );
+ virtual void toAddressChanged( const QString & address );
+ virtual void showMessageSize();
+
+protected:
+ im::t_msg_session *_msgSession;
+
+protected slots:
+ virtual void languageChange();
+
+private:
+ QDialog *_saveAsDialog;
+ map<string, string> _filenameMap;
+ bool _remotePartyComplete;
+ GetAddressForm *_getAddressForm;
+ Q3PopupMenu *attachmentPopupMenu;
+ QString clickedAttachment;
+ void *_serviceMap;
+ QLabel *_isComposingLabel;
+ QLabel *_msgSizeLabel;
+
+ void init();
+ void destroy();
+
+};
+
+
+#endif