add more spacing
[personal-kdebase.git] / runtime / kuiserver / tests / kuiservertest.h
blobb52adcb71f6d2188a2efee7ff9d8b9a9ce566534
1 /**
2 * This file is part of the KDE libraries
3 * Copyright (C) 2007 Rafael Fernández López <ereslibre@kde.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License version 2 as published by the Free Software Foundation.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef __KJOBTEST_H__
21 #define __KJOBTEST_H__
23 #include <kjob.h>
24 #include <kjobuidelegate.h>
25 #include <kio/jobclasses.h>
27 class QTimer;
29 class KJobTest
30 : public KIO::Job
32 Q_OBJECT
34 public:
35 KJobTest(int numberOfSeconds = 5);
36 ~KJobTest();
38 void start();
40 private Q_SLOTS:
41 void timerTimeout();
42 void updateMessage();
44 protected:
45 bool doSuspend();
47 private:
48 QTimer *timer, *clockTimer;
49 int seconds, total;
52 #endif // __KJOBTEST_H__