#include <path.h>
Inheritance diagram for SaX::SaXManipulatePath:

Public Member Functions | |
| void | setFontPath (const QString &) |
| void | addFontPath (const QString &) |
| void | removeFontPath (const QString &) |
| void | setLoadableModule (const QString &) |
| void | addLoadableModule (const QString &) |
| void | removeLoadableModule (const QString &) |
| void | setServerFlag (const QString &) |
| void | addServerFlag (const QString &) |
| void | removeServerFlag (const QString &) |
| QList< QString > | getFontPaths (void) |
| QList< QString > | getModules (void) |
| QList< QString > | getServerFlags (void) |
| SaXManipulatePath (SaXImport *, int=0) | |
The path manipulator requires one import object (Path) to become created. Once created the manipulator object is able to get/set information related to server-flags server-modules and search paths. The following example demonstrates how to add a server flag to the configuration. The DontVTSwitch server flag disallows the use of the Ctrl+Alt+Fn sequence (where Fn refers to one of the numbered function keys). That sequence is normally used to switch to another "virtual terminal" on operating systems that have this feature. When this option is enabled, that key sequence has no special meaning and is passed to clients.
#include <sax/sax.h> int main (void) { SaXException().setDebug (true); QDict<SaXImport> section; printf ("Importing data...\n"); SaXConfig* config = new SaXConfig; SaXImport* import = new SaXImport ( SAX_PATH ); import->setSource ( SAX_SYSTEM_CONFIG ); import->doImport(); config->addImport (import); section.insert ( import->getSectionName(),import ); printf ("Disable VT switching...\n"); SaXManipulatePath mPath ( section["Path"] ); mPath.addServerFlag ("DontVTSwitch"); 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 112 of file path.h.
| SaX::SaXManipulatePath::SaXManipulatePath | ( | SaXImport * | , | |
| int | = 0 | |||
| ) |
Definition at line 27 of file path.cpp.
References SaX::SaXException::errorString(), SaX::SaXException::excNullPointerArgument(), SaX::SaXException::excPathImportBindFailed(), and SaX::SaXImport::getSectionID().
Here is the call graph for this function:

| void SaX::SaXManipulatePath::setFontPath | ( | const QString & | ) | [virtual] |
| void SaX::SaXManipulatePath::addFontPath | ( | const QString & | ) | [virtual] |
| void SaX::SaXManipulatePath::removeFontPath | ( | const QString & | ) | [virtual] |
| void SaX::SaXManipulatePath::setLoadableModule | ( | const QString & | ) | [virtual] |
| void SaX::SaXManipulatePath::addLoadableModule | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulatePathIF.
Definition at line 119 of file path.cpp.
Referenced by SaX::SaXManipulateDesktop::enable3D(), and SaX::SaXManipulateVNC::enableVNC().
| void SaX::SaXManipulatePath::removeLoadableModule | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulatePathIF.
Definition at line 139 of file path.cpp.
Referenced by SaX::SaXManipulateDesktop::disable3D(), SaX::SaXManipulateVNC::disableVNC(), SaX::SaXManipulateDesktop::enable3D(), and SaX::SaXManipulateVNC::enableVNC().
| void SaX::SaXManipulatePath::setServerFlag | ( | const QString & | ) | [virtual] |
| void SaX::SaXManipulatePath::addServerFlag | ( | const QString & | ) | [virtual] |
| void SaX::SaXManipulatePath::removeServerFlag | ( | const QString & | ) | [virtual] |
| QList< QString > SaX::SaXManipulatePath::getFontPaths | ( | void | ) | [virtual] |
| QList< QString > SaX::SaXManipulatePath::getModules | ( | void | ) | [virtual] |
Implements SaX::SaXManipulatePathIF.
Definition at line 226 of file path.cpp.
Referenced by SaX::SaXManipulateDesktop::is3DEnabled().
| QList< QString > SaX::SaXManipulatePath::getServerFlags | ( | void | ) | [virtual] |
1.5.0