QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RSingleApplication Class Reference

#include <RSingleApplication.h>

List of all members.

Public Slots

void activateWindow ()
bool sendMessage (const QString &message, int timeout=5000)

Signals

void fileOpenRequestReceived (const QString &fileName)
void messageReceived (const QString &message)

Public Member Functions

QWidget * activationWindow () const
QString id () const
bool isRunning ()
 RSingleApplication (int &argc, char **argv, bool GUIenabled=true)
 RSingleApplication (const QString &id, int &argc, char **argv, bool GUIenabled=true)
void setActivationWindow (QWidget *aw, bool activateOnMessage=true)

Static Public Member Functions

static RSingleApplicationgetInstance ()

Protected Member Functions

virtual bool event (QEvent *e)

Private Member Functions

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

Private Attributes

QWidget * actWin
QMutex mutexEvents
QThread * mutexEventsLocker
RLocalPeerpeer

Static Private Attributes

static RSingleApplicationinstance = NULL
 Copyright (c) 2011-2013 by Andrew Mustun.

Constructor & Destructor Documentation

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

Member Function Documentation

void RSingleApplication::activateWindow ( )
slot
QWidget * RSingleApplication::activationWindow ( ) const
bool RSingleApplication::event ( QEvent *  e)
protectedvirtual
void RSingleApplication::fileOpenRequestReceived ( const QString &  fileName)
signal
RSingleApplication * RSingleApplication::getInstance ( )
static
QString RSingleApplication::id ( ) const
bool RSingleApplication::isRunning ( )
void RSingleApplication::messageReceived ( const QString &  message)
signal
bool RSingleApplication::sendMessage ( const QString &  message,
int  timeout = 5000 
)
slot
void RSingleApplication::setActivationWindow ( QWidget *  aw,
bool  activateOnMessage = true 
)
void RSingleApplication::sysInit ( const QString &  appId = QString())
private

Member Data Documentation

QWidget* RSingleApplication::actWin
private
RSingleApplication * RSingleApplication::instance = NULL
staticprivate

Copyright (c) 2011-2013 by Andrew Mustun.

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.

QMutex RSingleApplication::mutexEvents
private
QThread* RSingleApplication::mutexEventsLocker
private
RLocalPeer* RSingleApplication::peer
private

The documentation for this class was generated from the following files: