ParaView
Public Member Functions | Protected Slots | Protected Member Functions
pqServerLauncher Class Reference

pqServerLauncher manages launching of server process using the details specified in the server configuration. More...

#include <pqServerLauncher.h>

List of all members.

Public Member Functions

 pqServerLauncher (const pqServerConfiguration &configuration, QObject *parent=0)
virtual ~pqServerLauncher ()
bool connectToServer ()
 This method will launch the server process based on the configuration and connect to the server.
pqServerconnectedServer () const
 on successful call to connectToServer() this method can be used to obtain pqServer connection.

Protected Slots

void processFailed (QProcess::ProcessError)
void readStandardOutput ()
void readStandardError ()
void launchServerForReverseConnection ()

Protected Member Functions

bool promptOptions ()
 Request the user for user-configurable options, if any.
bool launchServer (bool show_status_dialog)
bool connectToPrelaunchedServer ()
bool isReverseConnection () const

Detailed Description

pqServerLauncher manages launching of server process using the details specified in the server configuration.

pqServerConfiguration can be simple, i.e the user is expected to launch the pvserver, or complex, i.e. the user is prompted for several options a pvserver process is launched automatically. All this is handled by this class.

When launching processes or during reverse-connect, this class also shows message box that can be used by the user to abort the waiting for connection.

Definition at line 52 of file pqServerLauncher.h.


Constructor & Destructor Documentation

pqServerLauncher::pqServerLauncher ( const pqServerConfiguration configuration,
QObject *  parent = 0 
)
virtual pqServerLauncher::~pqServerLauncher ( ) [virtual]

Member Function Documentation

bool pqServerLauncher::connectToServer ( )

This method will launch the server process based on the configuration and connect to the server.

Returns true if the connection was successful, otherwise returns false.

pqServer* pqServerLauncher::connectedServer ( ) const

on successful call to connectToServer() this method can be used to obtain pqServer connection.

void pqServerLauncher::processFailed ( QProcess::ProcessError  ) [protected, slot]
void pqServerLauncher::readStandardOutput ( ) [protected, slot]
void pqServerLauncher::readStandardError ( ) [protected, slot]
void pqServerLauncher::launchServerForReverseConnection ( ) [protected, slot]
bool pqServerLauncher::promptOptions ( ) [protected]

Request the user for user-configurable options, if any.

Returns false if the user cancelled the dialog asking the options. Returns true if there are not user-configurable options or the user has accepted the values.

bool pqServerLauncher::launchServer ( bool  show_status_dialog) [protected]
bool pqServerLauncher::connectToPrelaunchedServer ( ) [protected]
bool pqServerLauncher::isReverseConnection ( ) const [protected]

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