summaryrefslogtreecommitdiffstats
path: root/tutorial/t15/main.h
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-12-19 14:03:09 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-12-19 14:03:09 -0600
commit35202ed0d899a9ff3c77dad72b501fb30e4dcf93 (patch)
tree683787f69d937483b860973ce17f0c5d430a142d /tutorial/t15/main.h
parent8d5add0e87ad913bdf0362a83f431995115f3bfa (diff)
parentf19aa203c934d0f85862fdf810a87fe7c5777d17 (diff)
downloadqt3-35202ed0d899a9ff3c77dad72b501fb30e4dcf93.tar.gz
qt3-35202ed0d899a9ff3c77dad72b501fb30e4dcf93.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/qt3
Diffstat (limited to 'tutorial/t15/main.h')
-rw-r--r--tutorial/t15/main.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/tutorial/t15/main.h b/tutorial/t15/main.h
new file mode 100644
index 0000000..13ac5df
--- /dev/null
+++ b/tutorial/t15/main.h
@@ -0,0 +1,45 @@
+/****************************************************************
+**
+** Qt threading tutorial
+** (c) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
+**
+** This tutorial is released into the Public Domain and
+** can therefore be modified and/or used for any purpose
+**
+****************************************************************/
+
+#ifndef _MAIN_H_
+#define _MAIN_H_
+
+#include <qapplication.h>
+#include <qobject.h>
+#include <qpushbutton.h>
+#include <qthread.h>
+
+class MainObject;
+
+class WorkerObject : public QObject
+{
+ Q_OBJECT
+
+ public slots:
+ void run();
+ void timerHandler();
+
+ signals:
+ void displayMessage(QString, QString);
+
+ public:
+ QString threadFriendlyName;
+};
+
+class MainObject : public QObject
+{
+ Q_OBJECT
+
+ public slots:
+ void emitMessage(QString, QString);
+ void buttonClicked();
+};
+
+#endif // _MAIN_H_