RSingleApplication
Class in Core Module
Header: #include <src/core/RSingleApplication.h>
Inherits: QApplication
Public Functions
Section titled “Public Functions”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 Public Functions
Section titled “Static Public Functions”| static RSingleApplication * | getInstance() |
Public Slots
Section titled “Public Slots”| void | activateWindow() |
| void | registerGlobalShortcut(int key, int modifiers) |
| bool | sendMessage(const QString &message, int timeout=5000) |
Protected Functions
Section titled “Protected Functions”| virtual bool | event(QEvent *e) |
Private Functions
Section titled “Private Functions”| void | sysInit(const QString &appId=QString()) |
Private Attributes
Section titled “Private Attributes”| QWidget * | actWin |
| QList< QPair< int, int > > | globalShortcuts |
| QMutex | mutexEvents |
| QThread * | mutexEventsLocker |
| RLocalPeer * | peer |
Static Private Attributes
Section titled “Static Private Attributes”| static RSingleApplication * | singleInstance |
Signals
Section titled “Signals”| void | fileOpenRequestReceived(const QString &fileName) |
| void | globalShortcutPressed(int key, int modifiers) |
| void | messageReceived(const QString &message) |
Member Documentation
Section titled “Member Documentation”RSingleApplication
Section titled “RSingleApplication”RSingleApplication::RSingleApplication(const QString &id, int &argc, char **argv, bool GUIenabled=true)RSingleApplication
Section titled “RSingleApplication”RSingleApplication::RSingleApplication(int &argc, char **argv, bool GUIenabled=true)~RSingleApplication
Section titled “~RSingleApplication”RSingleApplication::~RSingleApplication()activationWindow
Section titled “activationWindow”QWidget * RSingleApplication::activationWindow() constconst
QString RSingleApplication::id() constconst
isRunning
Section titled “isRunning”bool RSingleApplication::isRunning()notify
Section titled “notify”bool RSingleApplication::notify(QObject *receiver, QEvent *e)setActivationWindow
Section titled “setActivationWindow”void RSingleApplication::setActivationWindow(QWidget *aw, bool activateOnMessage=true)getInstance
Section titled “getInstance”static RSingleApplication * RSingleApplication::getInstance()static
activateWindow
Section titled “activateWindow”void RSingleApplication::activateWindow()registerGlobalShortcut
Section titled “registerGlobalShortcut”void RSingleApplication::registerGlobalShortcut(int key, int modifiers)inline
sendMessage
Section titled “sendMessage”bool RSingleApplication::sendMessage(const QString &message, int timeout=5000)virtual bool RSingleApplication::event(QEvent *e)virtual protected
sysInit
Section titled “sysInit”void RSingleApplication::sysInit(const QString &appId=QString())private
actWin
Section titled “actWin”QWidget* RSingleApplication::actWinprivate
globalShortcuts
Section titled “globalShortcuts”QList<QPair<int, int> > RSingleApplication::globalShortcutsprivate
mutexEvents
Section titled “mutexEvents”QMutex RSingleApplication::mutexEventsprivate
mutexEventsLocker
Section titled “mutexEventsLocker”QThread* RSingleApplication::mutexEventsLockerprivate
RLocalPeer* RSingleApplication::peerprivate
singleInstance
Section titled “singleInstance”static RSingleApplication * RSingleApplication::singleInstance = NULLstatic 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.
fileOpenRequestReceived
Section titled “fileOpenRequestReceived”void RSingleApplication::fileOpenRequestReceived(const QString &fileName)globalShortcutPressed
Section titled “globalShortcutPressed”void RSingleApplication::globalShortcutPressed(int key, int modifiers)messageReceived
Section titled “messageReceived”void RSingleApplication::messageReceived(const QString &message)