Moved conection logic from Qcma/ListenerWorker to CmaServer/CmaClient.
Added tray icon. Quit now really quits the application.
This commit is contained in:
14
utils.h
14
utils.h
@@ -21,6 +21,20 @@
|
||||
#define UTILS_H
|
||||
|
||||
#include <QString>
|
||||
#include <QThread>
|
||||
|
||||
// Qt4 doesn't have public methods for Thread::*sleep
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
typedef QThread Sleeper;
|
||||
#else
|
||||
class Sleeper : QThread
|
||||
{
|
||||
public:
|
||||
static void sleep(unsigned long secs) { QThread::sleep(secs); }
|
||||
static void msleep(unsigned long msecs) { QThread::msleep(msecs); }
|
||||
static void usleep(unsigned long usecs) { QThread::usleep(usecs); }
|
||||
};
|
||||
#endif
|
||||
|
||||
bool removeRecursively(const QString &dirName);
|
||||
bool getDiskSpace(const QString &dir, quint64 *free, quint64 *total);
|
||||
|
Reference in New Issue
Block a user