You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
305 B
C
22 lines
305 B
C
7 years ago
|
#ifndef APPLICATION_H
|
||
|
#define APPLICATION_H
|
||
|
|
||
|
#include <QApplication>
|
||
|
#include <QSharedMemory>
|
||
|
|
||
|
class Application : public QApplication
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
Application(int &argc, char **argv);
|
||
|
~Application();
|
||
|
|
||
|
bool lock();
|
||
|
|
||
|
private:
|
||
|
QSharedMemory *m_single;
|
||
|
};
|
||
|
|
||
|
#endif // APPLICATION_H
|