SaX::SaXImportCDB Class Reference
SaX2 - Import CDB class.
More...
#include <import.h>
Inheritance diagram for SaX::SaXImportCDB:
[legend]List of all members.
Detailed Description
SaX2 - Import CDB class.
The SaXImportCDB class provides an abstraction for the CDB interface layer. The class inherits from SaXProcess which itself inherits from SaXStorage. the data is obtained from files which are created as export from a database and stored as part of the SaX2 engine. The CDB (Component Data-Base) provides high level information about hardware. the SaX2 CDB interface is a read only interface and according to this the class SaXImportCDB can only be used to obtain high level information about a various field of X11 related hardware. A SaXImportCDB object will be constructed with one parameter which defines the file ID to become imported. there are six CDB file ID's available:
- CDB_CARDS
Provides information about supported graphics cards refering to the file cdb/Cards. Each data record contains information about the driver module, profiles and extensions for the use in 2D and 3D environments. The information is usefull in combination with an ISAX imported SaXImport(SAX_CARD) object
- CDB_MONITORS
Provides information about supported monitors refering to the file cdb/Monitors. Each data record contains information about the sync range, profile, DDC ID, Modelines and options. The information is usefull in combination with an ISAX imported SaXImport(SAX_DESKTOP) object
- CDB_TABLETS
Provides information about supported tablets refering to the file cdb/Tablets. Each data record contains information about the various options to configure the core tablet without peripherals. The information is usefull in combination with an ISAX imported SaXImport(SAX_POINTERS) object
- CDB_PENS
Provides information about supported tablet pens refering to the file cdb/Pens. Each data record contains the various options to configure the pen. The information is usefull in combination with an ISAX imported SaXImport(SAX_POINTERS) object
- CDB_POINTERS
Provides information about the supported mice refering to the file cdb/Pointers. Each data record contains at least information about the protocol and device but there are several special devices which need lots of additional options which are part of the data record too. The information is usefull in combination with an ISAX imported SaXImport(SAX_POINTERS) object
- CDB_TOUCHERS
Provides information about the supported touch screens refering to the file cdb/Touchscreens. Each data record contains information about the various options to configure a touch screen. The information is usefull in combination with an ISAX imported SaXImport(SAX_POINTERS) object
Example:
#include <sax/sax.h>
SaXImportCDB* cards = new SaXImportCDB (CDB_CARDS);
cards->doImport();
QDict< QDict<QString> > data = cards->getTablePointerCDB ();
QDictIterator< QDict<QString> > n (data);
for (; n.current(); ++n) {
printf ("%s\n",n.currentKey().ascii());
}
Definition at line 323 of file import.h.
Constructor & Destructor Documentation
SaX::SaXImportCDB::SaXImportCDB |
( |
int |
fileID |
) |
|
|
|
An object of this type is used to create a CDB based SaX import. Refering to the given file ID the correct CDB file is selected.
Definition at line 192 of file import.cpp. |
Member Function Documentation
void SaX::SaXImportCDB::doImport |
( |
void |
|
) |
[virtual] |
|
The documentation for this class was generated from the following files:
Generated on Mon Jan 7 17:35:14 2008 for libsax by
1.4.6