29 lines
525 B
C++
29 lines
525 B
C++
#ifndef RM_APPLICATION_H
|
|
#define RM_APPLICATION_H
|
|
#if !(PLAYER_ONLY_LIBRARY_MODE)
|
|
#include <QObject>
|
|
#include <QSharedMemory>
|
|
#include <QApplication>
|
|
class RMApplication : public QApplication
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
RMApplication(int &argc, char **argv);
|
|
~RMApplication();
|
|
|
|
bool lock();
|
|
void foregroundApplication();
|
|
|
|
static RMApplication* instance();
|
|
|
|
private:
|
|
|
|
|
|
QSharedMemory *_singular; // shared memory !! SINGLE ACCESS
|
|
};
|
|
|
|
#endif // #if !(PLAYER_ONLY_LIBRARY_MODE)
|
|
|
|
#endif // RM_APPLICATION_H
|