diff options
author | Dan Vrátil <dvratil@redhat.com> | 2015-05-18 15:20:35 +0200 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2015-05-18 15:20:35 +0200 |
commit | 5e580299e342bd77fc7479bbfd235f4446d7f05b (patch) | |
tree | 648aacd4de1f239d72be89ab9f2d4a97867d7920 /async/autotests/testkjob.cpp | |
parent | b43c0cf97615957e097daef29ff8febc1ec884c8 (diff) | |
download | sink-5e580299e342bd77fc7479bbfd235f4446d7f05b.tar.gz sink-5e580299e342bd77fc7479bbfd235f4446d7f05b.zip |
KAsync has moved to it's own kasync.git repository
Diffstat (limited to 'async/autotests/testkjob.cpp')
-rw-r--r-- | async/autotests/testkjob.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/async/autotests/testkjob.cpp b/async/autotests/testkjob.cpp deleted file mode 100644 index b86f913..0000000 --- a/async/autotests/testkjob.cpp +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | #include "testkjob.h" | ||
2 | |||
3 | TestKJob::TestKJob(int result) | ||
4 | : mResult(result) | ||
5 | { | ||
6 | connect(&mTimer, &QTimer::timeout, | ||
7 | this, &TestKJob::onTimeout); | ||
8 | mTimer.setSingleShot(true); | ||
9 | mTimer.setInterval(200); | ||
10 | } | ||
11 | |||
12 | TestKJob::~TestKJob() | ||
13 | {} | ||
14 | |||
15 | void TestKJob::start() | ||
16 | { | ||
17 | mTimer.start(); | ||
18 | } | ||
19 | |||
20 | int TestKJob::result() | ||
21 | { | ||
22 | return mResult; | ||
23 | } | ||
24 | |||
25 | void TestKJob::onTimeout() | ||
26 | { | ||
27 | emitResult(); | ||
28 | } \ No newline at end of file | ||