nxcl  @VERSION@
Public Member Functions | Public Attributes | List of all members
nxcl::Nxcl Class Reference
Inheritance diagram for nxcl::Nxcl:
nxcl::NxclBase

Public Member Functions

 Nxcl (int n)
 
void setupDbus (void)
 Sets up a connection to the dbus daemon, based on the member attribute. More...
 
void setupDbus (int id)
 Sets dbusNum to be. More...
 
int receiveSettings (void)
 Wait for a dbus message containing session settings. More...
 
void setSessionDefaults (void)
 Set default values for. More...
 
void startTheNXConnection (void)
 Configure the. More...
 
NXClientLibgetNXClientLib (void)
 
void haveResumableSessions (list< NXResumeData > resumable)
 
void noResumableSessions (void)
 
void requestConfirmation (string msg)
 
void serverCapacityReached (void)
 
void sendDbusInfoMsg (string &info)
 
void sendDbusInfoMsg (int num, string &info)
 
void sendDbusErrorMsg (string &errorMsg)
 

Public Attributes

NxclCallbacks callbacks
 

Detailed Description

Definition at line 148 of file nxcl.h.

Member Function Documentation

void nxcl::Nxcl::haveResumableSessions ( list< NXResumeData resumable)
virtual

Called by

See also
NxclCallbacks::resumeSessionsSignal

Reimplemented from nxcl::NxclBase.

void nxcl::Nxcl::noResumableSessions ( void  )
virtual

Called by

See also
NxclCallbacks::noSessionsSignal

Reimplemented from nxcl::NxclBase.

int nxcl::Nxcl::receiveSettings ( void  )

Wait for a dbus message containing session settings.

This waits for a dbus signal message called 'sessionConfig' to come in on the listen interface, then sets

See also
sessionData based on its contents.
Returns
0 if settings received ok, -1 if we didn't receive at least the nxserver host and the nxuser name.
void nxcl::Nxcl::requestConfirmation ( string  msg)

This should send a dbus message to the client of nxcl, saying "You've never connected to this (NX)SSH server before, do you wish to continue?"

For now, it just sets this->nxclientlib.getSession()->setContinue (true);

void nxcl::Nxcl::sendDbusErrorMsg ( string &  errorMsg)
virtual

Send an error message via dbus.

Reimplemented from nxcl::NxclBase.

void nxcl::Nxcl::sendDbusInfoMsg ( string &  info)
virtual

Send an informational status message - these are so that the frontend client can show the user some progress information in the UI.

Reimplemented from nxcl::NxclBase.

void nxcl::Nxcl::sendDbusInfoMsg ( int  num,
string &  info 
)
virtual

Send an informational status message - these are so that the frontend client can show the user some progress information in the UI. This one includes the NX message number.

Reimplemented from nxcl::NxclBase.

void nxcl::Nxcl::serverCapacityReached ( void  )
virtual

Called by

See also
NxclCallbacks::serverCapacitySignal

Reimplemented from nxcl::NxclBase.

void nxcl::Nxcl::setSessionDefaults ( void  )

Set default values for.

See also
sessionData
void nxcl::Nxcl::setupDbus ( void  )

Sets up a connection to the dbus daemon, based on the member attribute.

See also
dbusNum.

Sets the connection up to listen for messages on the interface org.freenx.nxcl.clientX where X starts at 0 and the first available number is taken (if another nxcl is running with org.freenx.nxcl.client0, then 1 is chosen). Messages are sent out on the interface org.freenx.nxcl.nxclX

void nxcl::Nxcl::setupDbus ( int  id)

Sets dbusNum to be.

  • id, then calls
    See also
    setupDbus().
    Parameters
    idThe number to use to set up the dbus connection (used as a suffix for interface names).
void nxcl::Nxcl::startTheNXConnection ( void  )

Configure the.

See also
nxclientlib object and then call its
invokeSSH method.

This also calls nxclientlib.setResolution to detect the size of your screen (that's why nxcl links to X libraries).

Member Data Documentation

NxclCallbacks nxcl::Nxcl::callbacks

Public pointer to the callback functions

Definition at line 254 of file nxcl.h.


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