nxcl::NxclCallbacks Class Reference

Inheritance diagram for nxcl::NxclCallbacks:

nxcl::NXClientLibExternalCallbacks List of all members.

Public Member Functions

void write (string msg)
void write (int num, string msg)
void error (string msg)
void debug (string msg)
void stdoutSignal (string msg)
void stderrSignal (string msg)
void stdinSignal (string msg)
void resumeSessionsSignal (list< NXResumeData > resumeData)
void noSessionsSignal (void)
void serverCapacitySignal (void)
void setParent (NxclBase *p)

Detailed Description

Definition at line 59 of file nxcl.h.


Member Function Documentation

void nxcl::NxclCallbacks::debug ( string  msg  )  [virtual]

Send a debugging message out. Here that's implemented as a message on stdout.

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::error ( string  msg  )  [virtual]

Write an error message to stderr.

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::noSessionsSignal ( void   )  [virtual]

Tells nxcl that there are no suspended sessions and that connection is proceeding with a new connection. This fact is sent to the client of nxcl as a dbus message.

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::resumeSessionsSignal ( list< NXResumeData resumeData  )  [virtual]

Sends the list of resumable sessions (resumeData) to the client of the nxcl program via a dbus message.

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::serverCapacitySignal ( void   )  [virtual]

This callback sends a message via dbus to the client of the nxcl program saying "the server has no more capacity". This basically means that there are not enough licences to allow the connection, but it may also occur if there is any sort of RAM limit checking in nxserver (I don't know if this is true).

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::setParent ( NxclBase p  )  [inline]

Accessor function to set a pointer to the parent Nxcl object.

Definition at line 142 of file nxcl.h.

void nxcl::NxclCallbacks::stderrSignal ( string  msg  )  [virtual]

Outputs a copy of stderr output from the nxssh process.

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::stdinSignal ( string  msg  )  [virtual]

Outputs a copy of the stdin input sent to the nxssh process to the stdout of nxcl for debugging purposes.

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::stdoutSignal ( string  msg  )  [virtual]

This is called when some data comes from the stdout of the nxssh process. This implementation sends a copy of that data to stdout of nxcl, for debugging purposes (and only when DEBUG==1, i.e. --enable-debug-output was given as an option to the configure script.

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::write ( int  num,
string  msg 
) [virtual]

Send a message to the user with a message number. Here, this is implemented as a message sent on the dbus interface

Parameters:
num A message number.This is for transferring the NoMachine NX message number accompanying the message. This number can be used by the frontend client to determine the progress of the session connection.
msg The message string to be sent

Reimplemented from nxcl::NXClientLibExternalCallbacks.

void nxcl::NxclCallbacks::write ( string  msg  )  [virtual]

Send a message to the user. Here, this is implemented as a message sent on the dbus interface

Parameters:
msg The message string to be sent

Reimplemented from nxcl::NXClientLibExternalCallbacks.


The documentation for this class was generated from the following file:
Generated on Tue Jul 15 14:18:42 2008 for nxcl by  doxygen 1.4.7