Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
VncServer Class Reference

#include "vncserver.h"

+ Inheritance diagram for VncServer:
+ Collaboration diagram for VncServer:

Signals

void started (int port, const QString &ropass, const QString &rwpass)
 

Public Member Functions

bool isVncServerRunning () const
 
void start ()
 VncServer::start. More...
 
void stop ()
 VncServer::stop. More...
 

Static Public Member Functions

static VncServerinstance ()
 VncServer::instance. More...
 

Protected Member Functions

void timerEvent (QTimerEvent *event) override
 Timer event, currently only used to assume VNC server setup failed after 3 seconds... More...
 

Private Slots

void onStdOut ()
 VncServer::onStdOut. More...
 
void onStdErr ()
 VncServer::onStdErr. More...
 
void onFinished (int exitCode, QProcess::ExitStatus exitStatus)
 VncServer::onFinished. More...
 
void onError (QProcess::ProcessError error)
 VncServer::onError. More...
 

Private Member Functions

 VncServer ()
 VncServer::VncServer. More...
 
 ~VncServer () override
 VncServer::~VncServer. More...
 

Static Private Member Functions

static QSharedPointer< QFile > createPwFile (const QDir &dir)
 

Private Attributes

QProcess * _process
 
QString _ropass
 
QString _rwpass
 
int _port
 
int _timerId
 

Static Private Attributes

static VncServerme = nullptr
 

Detailed Description

Definition at line 16 of file vncserver.h.

Constructor & Destructor Documentation

VncServer::VncServer ( )
private

VncServer::VncServer.

Definition at line 55 of file vncserver.cpp.

+ Here is the caller graph for this function:

VncServer::~VncServer ( )
overrideprivatedefault

Member Function Documentation

QSharedPointer< QFile > VncServer::createPwFile ( const QDir &  dir)
staticprivate

Definition at line 62 of file vncserver.cpp.

+ Here is the caller graph for this function:

VncServer * VncServer::instance ( )
static

VncServer::instance.

Returns

Definition at line 25 of file vncserver.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool VncServer::isVncServerRunning ( ) const
inline

Definition at line 36 of file vncserver.h.

+ Here is the caller graph for this function:

void VncServer::onError ( QProcess::ProcessError  error)
privateslot

VncServer::onError.

Parameters
error

Definition at line 229 of file vncserver.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void VncServer::onFinished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
privateslot

VncServer::onFinished.

Parameters
exitCode

Definition at line 239 of file vncserver.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void VncServer::onStdErr ( )
privateslot

VncServer::onStdErr.

Definition at line 216 of file vncserver.cpp.

+ Here is the caller graph for this function:

void VncServer::onStdOut ( )
privateslot

VncServer::onStdOut.

Definition at line 190 of file vncserver.cpp.

+ Here is the caller graph for this function:

void VncServer::start ( )

VncServer::start.

Definition at line 77 of file vncserver.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void VncServer::started ( int  port,
const QString &  ropass,
const QString &  rwpass 
)
signal

+ Here is the caller graph for this function:

void VncServer::stop ( )

VncServer::stop.

Definition at line 139 of file vncserver.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void VncServer::timerEvent ( QTimerEvent *  event)
overrideprotected

Timer event, currently only used to assume VNC server setup failed after 3 seconds...

Parameters
event

Definition at line 174 of file vncserver.cpp.

+ Here is the call graph for this function:

Member Data Documentation

int VncServer::_port
private

Definition at line 24 of file vncserver.h.

QProcess* VncServer::_process
private

Definition at line 21 of file vncserver.h.

QString VncServer::_ropass
private

Definition at line 22 of file vncserver.h.

QString VncServer::_rwpass
private

Definition at line 23 of file vncserver.h.

int VncServer::_timerId
private

Definition at line 25 of file vncserver.h.

VncServer * VncServer::me = nullptr
staticprivate

Definition at line 31 of file vncserver.h.


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