SaX::SaXImportProfile Class Reference

SaX2 - Import Profile class. More...

#include <import.h>

Inheritance diagram for SaX::SaXImportProfile:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void setDevice (int)
void doImport (void)
SaXImportgetImport (int=SAX_CARD)
 SaXImportProfile (const QString &)

Detailed Description

SaX2 - Import Profile class.

The SaXImportProfile class provides an abstraction for the ISaX interface layer concerning the profiles to become applied. The class inherits from SaXProcess which itself inherits from SaXStorage. the data is obtained from a /var/lib/sax/createPRO.pl script call which is able to read the given profile file and import the data into the automatic configuration suggestion. After this it will export the changes made by the profile and this data is stored into the protected area of a storage object. Because of the fact a profile can change data in any section the SaXImportProfile class will split the data into the appropriate sections and made it accessable using the getImport() method. A SaXImportProfile object will be constructed with one parameter which defines the profile filename to import.

Definition at line 370 of file import.h.


Constructor & Destructor Documentation

SaX::SaXImportProfile::SaXImportProfile const QString &  p  ) 
 

An object of this type is used to create a PROFILE based SaX import. Refering to the given name the constructor will check if the file exists and add the correct createPRO.pl options

Definition at line 215 of file import.cpp.

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

Here is the call graph for this function:


Member Function Documentation

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

call SaXProcess::start() to obtain the createPRO.pl information. Because of the fact that a profile may handle multiple sections the data will be splitted into single sections which can be retrieved using getImport()

Implements SaX::SaXImportProfileIF.

Definition at line 240 of file import.cpp.

References SaX::SaXProcess::start().

Here is the call graph for this function:

SaXImport * SaX::SaXImportProfile::getImport int  section = SAX_CARD  )  [virtual]
 

Return a pointer to the SaXImport object created during the splitImport() call. Refering to the given section ID either the pointer or NULL is returned

Implements SaX::SaXImportProfileIF.

Definition at line 327 of file import.cpp.

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

Here is the call graph for this function:

void SaX::SaXImportProfile::setDevice int  dev  )  [virtual]
 

Set the device number the profile should be applied to. This may be needed if the profile itself only set a wild card for the device number

Implements SaX::SaXImportProfileIF.

Definition at line 312 of file import.cpp.


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