netctlgui  1.2.0
Qt library which interacts with netctl
 All Classes Files Functions
sleepthread.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This file is part of netctl-gui *
3  * *
4  * netctl-gui is free software: you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation, either version 3 of the *
7  * License, or (at your option) any later version. *
8  * *
9  * netctl-gui 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 *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with netctl-gui. If not, see http://www.gnu.org/licenses/ *
16  ***************************************************************************/
26 #ifndef SLEEPTHREAD_H
27 #define SLEEPTHREAD_H
28 
29 #include <QThread>
30 
31 
35 class SleepThread : public QThread
36 {
37  Q_OBJECT
38 
39 public:
44  static void usleep(long iSleepTime)
45  {
46  QThread::usleep(iSleepTime);
47  }
52  static void sleep(long iSleepTime)
53  {
54  QThread::sleep(iSleepTime);
55  }
60  static void msleep(long iSleepTime)
61  {
62  QThread::msleep(iSleepTime);
63  }
64 };
65 
66 
67 #endif /* SLEEPTHREAD_H */
The SleepThread class is used for sleep current thread in WpaSup class.
Definition: sleepthread.h:35
static void msleep(long iSleepTime)
method which forces the current thread to sleep for usecs milliseconds
Definition: sleepthread.h:60
static void sleep(long iSleepTime)
method which forces the current thread to sleep for usecs seconds
Definition: sleepthread.h:52
static void usleep(long iSleepTime)
method which forces the current thread to sleep for usecs microseconds
Definition: sleepthread.h:44