SaX::SaXManipulatePath Class Reference

SaX2 - Path class. More...

#include <path.h>

Inheritance diagram for SaX::SaXManipulatePath:

Inheritance graph
[legend]
List of all members.

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)

Detailed Description

SaX2 - Path class.

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.


Constructor & Destructor Documentation

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:


Member Function Documentation

void SaX::SaXManipulatePath::setFontPath ( const QString &   )  [virtual]

Implements SaX::SaXManipulatePathIF.

Definition at line 52 of file path.cpp.

void SaX::SaXManipulatePath::addFontPath ( const QString &   )  [virtual]

Implements SaX::SaXManipulatePathIF.

Definition at line 66 of file path.cpp.

void SaX::SaXManipulatePath::removeFontPath ( const QString &   )  [virtual]

Implements SaX::SaXManipulatePathIF.

Definition at line 86 of file path.cpp.

void SaX::SaXManipulatePath::setLoadableModule ( const QString &   )  [virtual]

Implements SaX::SaXManipulatePathIF.

Definition at line 105 of file path.cpp.

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]

Implements SaX::SaXManipulatePathIF.

Definition at line 158 of file path.cpp.

void SaX::SaXManipulatePath::addServerFlag ( const QString &   )  [virtual]

Implements SaX::SaXManipulatePathIF.

Definition at line 172 of file path.cpp.

void SaX::SaXManipulatePath::removeServerFlag ( const QString &   )  [virtual]

Implements SaX::SaXManipulatePathIF.

Definition at line 192 of file path.cpp.

QList< QString > SaX::SaXManipulatePath::getFontPaths ( void   )  [virtual]

Implements SaX::SaXManipulatePathIF.

Definition at line 211 of file path.cpp.

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]

Implements SaX::SaXManipulatePathIF.

Definition at line 241 of file path.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 19:09:39 2006 for libsax by  doxygen 1.5.0