summaryrefslogtreecommitdiffstats
path: root/tutorial/t15/main.h
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-12-19 14:03:14 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-12-19 14:03:14 -0600
commitf8224f3a623495e4e1dbf852554d7601a6b7c4c4 (patch)
treed5583114ba48669960c9f7d68927687ea652a0b8 /tutorial/t15/main.h
parent25240579092616b09d28705ac84e13e49b744707 (diff)
parente8cbbedf46da493d2c206444a7e18e5777402905 (diff)
downloadtqt3-f8224f3a623495e4e1dbf852554d7601a6b7c4c4.tar.gz
tqt3-f8224f3a623495e4e1dbf852554d7601a6b7c4c4.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
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 00000000..6cb8ee8e
--- /dev/null
+++ b/tutorial/t15/main.h
@@ -0,0 +1,45 @@
+/****************************************************************
+**
+** TQt 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 <ntqapplication.h>
+#include <ntqobject.h>
+#include <ntqpushbutton.h>
+#include <ntqthread.h>
+
+class MainObject;
+
+class WorkerObject : public TQObject
+{
+ TQ_OBJECT
+
+ public slots:
+ void run();
+ void timerHandler();
+
+ signals:
+ void displayMessage(TQString, TQString);
+
+ public:
+ TQString threadFriendlyName;
+};
+
+class MainObject : public TQObject
+{
+ TQ_OBJECT
+
+ public slots:
+ void emitMessage(TQString, TQString);
+ void buttonClicked();
+};
+
+#endif // _MAIN_H_