SaX::SaXImport Class Reference

SaX2 - Import class. More...

#include <import.h>

Inheritance diagram for SaX::SaXImport:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void doImport (void)
void setSource (int)
int getSectionID (void)
QString getSectionName (void)
 SaXImport (int)

Detailed Description

SaX2 - Import class.

The SaXImport class provides an abstraction for the ISaX interface layer. The class inherits from SaXProcess which itself inherits from SaXStorage. the data is obtained from an isax process call and is stored into the protected area of a storage object. ISaX is the interface between the engine which is responsible to create or modify X11 configurations and the client side which normaly builds a GUI for user interactions concerning X11 issues. The ISaX interface is used for input and output data and is therefore the major structure to read, create and modify X11 configurations. The SaXImport class will cover only the first part which is to read from the interface. A SaXImport object will be constructed with one parameter which defines the section to import. there are seven ISAX sections available:

Example:

 #include <sax/sax.h>

 SaXImport* card = new SaXImport (SAX_CARD);
 card->doImport();

 if (card->getItem("Vendor")) {
     printf ("%s\n",card->getItem("Vendor").ascii());
 }

Definition at line 126 of file import.h.


Constructor & Destructor Documentation

SaX::SaXImport::SaXImport int  section  ) 
 

An object of this type is used to create an ISAX based SaX import. Refering to the given section ID the correct isax options are set.

Definition at line 27 of file import.cpp.

References SaX::SaXException::errorString(), and SaX::SaXException::excImportSectionFailed().

Here is the call graph for this function:


Member Function Documentation

void SaX::SaXImport::doImport void   )  [virtual]
 

call SaXProcess::start() to obtain the isax provided information

Implements SaX::SaXImportIF.

Definition at line 75 of file import.cpp.

References SaX::SaXProcess::start().

Here is the call graph for this function:

int SaX::SaXImport::getSectionID void   )  [virtual]
 

return the section identifier this import belongs to

Implements SaX::SaXImportIF.

Definition at line 101 of file import.cpp.

Referenced by SaX::SaXConfig::addImport(), SaX::SaXExport::SaXExport(), SaX::SaXManipulateCard::SaXManipulateCard(), SaX::SaXManipulateDesktop::SaXManipulateDesktop(), SaX::SaXManipulateDevices::SaXManipulateDevices(), SaX::SaXManipulateExtensions::SaXManipulateExtensions(), SaX::SaXManipulateKeyboard::SaXManipulateKeyboard(), SaX::SaXManipulateLayout::SaXManipulateLayout(), SaX::SaXManipulatePath::SaXManipulatePath(), SaX::SaXManipulatePointers::SaXManipulatePointers(), and SaX::SaXManipulateVNC::SaXManipulateVNC().

QString SaX::SaXImport::getSectionName void   )  [virtual]
 

return the section name corresponding to the section ID

Implements SaX::SaXImportIF.

Definition at line 111 of file import.cpp.

void SaX::SaXImport::setSource int  s  )  [virtual]
 

set the ISAX data source which can be the current used configuration (SAX_SYSTEM_CONFIG) or the data stored inside SaX2 after the hardware detection has been called (SAX_AUTO_PROBE)

Implements SaX::SaXImportIF.

Definition at line 86 of file import.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 17:34:17 2008 for libsax by  doxygen 1.4.6