#include <import.h>
Inheritance diagram for SaX::SaXImportProfile:
Public Member Functions | |
void | setDevice (int) |
void | doImport (void) |
SaXImport * | getImport (int=SAX_CARD) |
SaXImportProfile (const QString &) |
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.
|
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: ![]() |
|
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: ![]() |
|
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: ![]() |
|
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. |