libsax 7.2
Public Member Functions

SaX::SaXInit Class Reference

SaX2 - Init class. More...

#include <init.h>

Inheritance diagram for SaX::SaXInit:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool needInit (void)
void ignoreProfile (void)
void setPrimaryChip (void)
void setValidBusID (void)
void doInit (void)
 SaXInit (QList< const char * >)
 SaXInit (void)

Detailed Description

SaX2 - Init class.

SaXInit is used to create the SaX cache files. SaX will provide a configuration suggestion which is the basis for all actions. To be sure not to make use of an outdated cache every program using libsax should create this cache first. The following example illustrates that more detailed:

 #include <sax/sax.h>

 SaXInit init;
 if (init.needInit()) {
     printf ("initialize cache...\n");
     //init.ignoreProfile();
     init.doInit();
 }

Definition at line 88 of file init.h.


Constructor & Destructor Documentation

usr src packages BUILD sax libsax init cpp SaX::SaXInit::SaXInit ( QList< const char * >  opt)

An object of this type is used to initialize the SaX2 cache. The cache provide the current configuration suggestion which can be used to create an automatic X11 config file. If additional options are used this constructor will apply it

Definition at line 28 of file init.cpp.

SaX::SaXInit::SaXInit ( void  )

An object of this type is used to initialize the SaX2 cache. The cache provide the current configuration suggestion which can be used to create an automatic X11 config file.

Definition at line 46 of file init.cpp.


Member Function Documentation

void SaX::SaXInit::doInit ( void  ) [virtual]

start the init.pl SaX2 startup sequence to create the cache which is the base for all further actions

Implements SaX::SaXInitIF.

Definition at line 146 of file init.cpp.

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

Here is the call graph for this function:

void SaX::SaXInit::ignoreProfile ( void  ) [virtual]

ignore any automatically applied profiles during initializing this will prevent any multihead cards to become configured as multihead card

Implements SaX::SaXInitIF.

Definition at line 80 of file init.cpp.

bool SaX::SaXInit::needInit ( void  ) [virtual]

check if the cache is up to date. This member function will check if the cache file exists and it will check if there is hardware which has been changed

Implements SaX::SaXInitIF.

Definition at line 59 of file init.cpp.

void SaX::SaXInit::setPrimaryChip ( void  ) [virtual]

pass the option -c to init.pl and use only the primary graphics chip for the configuration. In that case also apply the nobus profile and prevent a busID to be written on single card configuration

Implements SaX::SaXInitIF.

Definition at line 120 of file init.cpp.

void SaX::SaXInit::setValidBusID ( void  ) [virtual]

apply the nobus profile if only one card has been detected. For single card configurations the busID should not be set

Implements SaX::SaXInitIF.

Definition at line 92 of file init.cpp.


The documentation for this class was generated from the following files: