summaryrefslogtreecommitdiffstats
path: root/src/gui/historyform.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/historyform.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/historyform.h')
-rw-r--r--src/gui/historyform.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/gui/historyform.h b/src/gui/historyform.h
new file mode 100644
index 0000000..6de4fc5
--- /dev/null
+++ b/src/gui/historyform.h
@@ -0,0 +1,45 @@
+#ifndef HISTORYFORM_H
+#define HISTORYFORM_H
+#include "phone.h"
+#include <Qt3Support/Q3PopupMenu>
+#include "user.h"
+#include "ui_historyform.h"
+
+class HistoryForm : public QDialog, public Ui::HistoryForm
+{
+ Q_OBJECT
+
+public:
+ HistoryForm(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0);
+ ~HistoryForm();
+
+public slots:
+ virtual void loadHistory();
+ virtual void update();
+ virtual void show();
+ virtual void closeEvent( QCloseEvent * e );
+ virtual void showCallDetails( Q3ListViewItem * item );
+ virtual void popupMenu( Q3ListViewItem * item, const QPoint & pos );
+ virtual void call( Q3ListViewItem * item );
+ virtual void call( void );
+ virtual void deleteEntry( void );
+ virtual void clearHistory();
+
+signals:
+ void call(t_user *, const QString &, const QString &, bool);
+
+protected slots:
+ virtual void languageChange();
+
+private:
+ time_t timeLastViewed;
+ Q3PopupMenu *histPopupMenu;
+ int itemCall;
+
+ void init();
+ void destroy();
+
+};
+
+
+#endif