summaryrefslogtreecommitdiffstats
path: root/tutorial/t15/main.h
blob: 6cb8ee8ea40dc6ecf4d9fc922543f7eb928f9c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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_