Skip to content

RSingleApplication

Class in Core Module
Header: #include <src/core/RSingleApplication.h>
Inherits: QApplication

RSingleApplication(const QString &id, int &argc, char **argv, bool GUIenabled=true)
RSingleApplication(int &argc, char **argv, bool GUIenabled=true)
~RSingleApplication()
QWidget * activationWindow() const
QString id() const
bool isRunning()
bool notify(QObject *receiver, QEvent *e)
void setActivationWindow(QWidget *aw, bool activateOnMessage=true)
static RSingleApplication * getInstance()
void activateWindow()
void registerGlobalShortcut(int key, int modifiers)
bool sendMessage(const QString &message, int timeout=5000)
virtual bool event(QEvent *e)
void sysInit(const QString &appId=QString())
QWidget * actWin
QList< QPair< int, int > > globalShortcuts
QMutex mutexEvents
QThread * mutexEventsLocker
RLocalPeer * peer
static RSingleApplication * singleInstance
void fileOpenRequestReceived(const QString &fileName)
void globalShortcutPressed(int key, int modifiers)
void messageReceived(const QString &message)

RSingleApplication::RSingleApplication(const QString &id, int &argc, char **argv, bool GUIenabled=true)

RSingleApplication::RSingleApplication(int &argc, char **argv, bool GUIenabled=true)

RSingleApplication::~RSingleApplication()

QWidget * RSingleApplication::activationWindow() const

const

QString RSingleApplication::id() const

const

bool RSingleApplication::isRunning()

bool RSingleApplication::notify(QObject *receiver, QEvent *e)

void RSingleApplication::setActivationWindow(QWidget *aw, bool activateOnMessage=true)

static RSingleApplication * RSingleApplication::getInstance()

static

void RSingleApplication::activateWindow()

void RSingleApplication::registerGlobalShortcut(int key, int modifiers)

inline

bool RSingleApplication::sendMessage(const QString &message, int timeout=5000)

virtual bool RSingleApplication::event(QEvent *e)

virtual protected

void RSingleApplication::sysInit(const QString &appId=QString())

private

QWidget* RSingleApplication::actWin

private

QList<QPair<int, int> > RSingleApplication::globalShortcuts

private

QMutex RSingleApplication::mutexEvents

private

QThread* RSingleApplication::mutexEventsLocker

private

RLocalPeer* RSingleApplication::peer

private

static RSingleApplication * RSingleApplication::singleInstance = NULL

static private

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

void RSingleApplication::fileOpenRequestReceived(const QString &fileName)

void RSingleApplication::globalShortcutPressed(int key, int modifiers)

void RSingleApplication::messageReceived(const QString &message)