#include <extensions.h>
Inheritance diagram for SaX::SaXManipulateVNC:

Public Member Functions | |
| void | addVNCKeyboard (void) |
| void | addVNCMouse (void) |
| void | removeVNCMouse (void) |
| void | removeVNCKeyboard (void) |
| void | enableVNC (void) |
| void | disableVNC (void) |
| void | setPassword (const QString &) |
| void | enablePasswordProtection (const QString &) |
| void | disablePasswordProtection (void) |
| void | enableHTTPAccess (int=5800) |
| void | disableHTTPAccess (void) |
| void | allowMultipleConnections (bool=true) |
| int | getHTTPPort (void) |
| bool | isVNCEnabled (void) |
| bool | isHTTPAccessEnabled (void) |
| bool | isMultiConnectEnabled (void) |
| bool | isPwdProtectionEnabled (void) |
| SaXManipulateVNC (SaXImport *, SaXImport *, SaXImport *, SaXImport *, SaXImport *, int=0) | |
The VNC manipulator requires five import objects (Card,Pointers,Keyboard, Layout and Path) to become created. Once created the manipulator object can enable/disable the exporting of the display via VNC protocol. The following example demonstrate how to enable/disable VNC for the current configuration:
#include <sax/sax.h> int main (void) { SaXException().setDebug (true); QDict<SaXImport> section; int importID[] = { SAX_CARD, SAX_POINTERS, SAX_KEYBOARD, SAX_LAYOUT, SAX_PATH }; printf ("Importing data...\n"); SaXConfig* config = new SaXConfig; for (int id=0; id<5; id++) { SaXImport* import = new SaXImport ( importID[id] ); import->setSource ( SAX_SYSTEM_CONFIG ); import->doImport(); config->addImport (import); section.insert ( import->getSectionName(),import ); } printf ("Exporting display for VNC access...\n"); SaXManipulateVNC mVNC ( section["Card"],section["Pointers"],section["Keyboard"], section["Layout"],section["Path"] ); if (! mVNC.VNCEnabled()) { mVNC.enableVNC(); mVNC.addVNCKeyboard(); mVNC.addVNCMouse(); } printf ("writing configuration\n"); config->setMode (SAX_MERGE); if ( ! config->createConfiguration() ) { printf ("%s\n",config->errorString().ascii()); printf ("%s\n",config->getParseErrorValue().ascii()); return 1; } return (0); }
Definition at line 168 of file extensions.h.
| SaX::SaXManipulateVNC::SaXManipulateVNC | ( | SaXImport * | , | |
| SaXImport * | , | |||
| SaXImport * | , | |||
| SaXImport * | , | |||
| SaXImport * | , | |||
| int | = 0 | |||
| ) |
Definition at line 55 of file extensions.cpp.
References SaX::SaXException::errorString(), SaX::SaXException::excLayoutImportBindFailed(), and SaX::SaXImport::getSectionID().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::addVNCKeyboard | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 207 of file extensions.cpp.
References SaX::SaXManipulateDevices::addInputDevice().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::addVNCMouse | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 226 of file extensions.cpp.
References SaX::SaXManipulateDevices::addInputDevice().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::removeVNCMouse | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 244 of file extensions.cpp.
References SaX::SaXManipulateDevices::removeInputDevice().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::removeVNCKeyboard | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 262 of file extensions.cpp.
References SaX::SaXManipulateDevices::removeInputDevice().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::enableVNC | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 81 of file extensions.cpp.
References SaX::SaXManipulateCard::addCardOption(), SaX::SaXManipulatePath::addLoadableModule(), SaX::SaXManipulateCard::removeCardOption(), and SaX::SaXManipulatePath::removeLoadableModule().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::disableVNC | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 96 of file extensions.cpp.
References SaX::SaXManipulateCard::addCardOption(), SaX::SaXManipulateCard::removeCardOption(), and SaX::SaXManipulatePath::removeLoadableModule().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::setPassword | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 111 of file extensions.cpp.
References SaX::SaXException::errorString(), SaX::SaXException::excProcessFailed(), SaX::SaXException::setLock(), and SaX::SaXException::unsetLock().
Referenced by enablePasswordProtection().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::enablePasswordProtection | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 136 of file extensions.cpp.
References SaX::SaXManipulateCard::addCardOption(), disablePasswordProtection(), and setPassword().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::disablePasswordProtection | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 151 of file extensions.cpp.
References SaX::SaXManipulateCard::removeCardOption().
Referenced by enablePasswordProtection().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::enableHTTPAccess | ( | int | = 5800 |
) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 163 of file extensions.cpp.
References SaX::SaXManipulateCard::addCardOption(), and disableHTTPAccess().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::disableHTTPAccess | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 179 of file extensions.cpp.
References SaX::SaXManipulateCard::removeCardOption().
Referenced by enableHTTPAccess().
Here is the call graph for this function:

| void SaX::SaXManipulateVNC::allowMultipleConnections | ( | bool | = true |
) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 191 of file extensions.cpp.
References SaX::SaXManipulateCard::addCardOption(), and SaX::SaXManipulateCard::removeCardOption().
Here is the call graph for this function:

| int SaX::SaXManipulateVNC::getHTTPPort | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 373 of file extensions.cpp.
References SaX::SaXManipulateCard::getOptions().
Here is the call graph for this function:

| bool SaX::SaXManipulateVNC::isVNCEnabled | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 316 of file extensions.cpp.
References SaX::SaXManipulateCard::getOptions().
Here is the call graph for this function:

| bool SaX::SaXManipulateVNC::isHTTPAccessEnabled | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 330 of file extensions.cpp.
References SaX::SaXManipulateCard::getOptions().
Here is the call graph for this function:

| bool SaX::SaXManipulateVNC::isMultiConnectEnabled | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 344 of file extensions.cpp.
References SaX::SaXManipulateCard::getOptions().
Here is the call graph for this function:

| bool SaX::SaXManipulateVNC::isPwdProtectionEnabled | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateVNCIF.
Definition at line 359 of file extensions.cpp.
References SaX::SaXManipulateCard::getOptions().
Here is the call graph for this function:

1.5.0