first commit
This commit is contained in:
28
project/fm_viewer/rm_application.h
Normal file
28
project/fm_viewer/rm_application.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user