init.h

00001 /**************
00002 FILE          : init.h
00003 ***************
00004 PROJECT       : SaX2 - library interface [header]
00005               :
00006 AUTHOR        : Marcus Schäfer <ms@suse.de>
00007               :
00008 BELONGS TO    : SaX2 - SuSE advanced X11 configuration 
00009               : 
00010               :
00011 DESCRIPTION   : native C++ class library to access SaX2
00012               : functionality. Easy to use interface for
00013               : //.../
00014               : - importing/exporting X11 configurations
00015               : - modifying/creating X11 configurations 
00016               : ---
00017               :
00018               :
00019 STATUS        : Status: Development
00020 **************/
00021 #ifndef SAX_INIT_H
00022 #define SAX_INIT_H 1
00023 
00024 //====================================
00025 // Includes...
00026 //------------------------------------
00027 #include <qfileinfo.h>
00028 
00029 #include "processcall.h"
00030 #include "exception.h"
00031 
00032 namespace SaX {
00033 //====================================
00034 // Defines...
00035 //------------------------------------
00036 #define SAX_INIT        "/usr/share/sax/init.pl"
00037 #define CACHE_CONFIG    "/var/cache/sax/files/config"
00038 
00039 //====================================
00040 // Interface class for dlopen ability
00041 //------------------------------------
00049 class SaXInitIF : public SaXException {
00050         public:
00051         virtual bool needInit (void) = 0;
00052         virtual void ignoreProfile (void) = 0;
00053 
00054         public:
00055         virtual void doInit (void) = 0;
00056 
00057         public:
00058         virtual ~SaXInitIF ( void ) { }
00059 };
00060 //====================================
00061 // Class SaXInit...
00062 //------------------------------------
00082 class SaXInit : public SaXInitIF {
00083         private:
00084         QList<char> mOptions;
00085 
00086         public:
00087         bool needInit (void);
00088         void ignoreProfile (void);
00089 
00090         public:
00091         void doInit (void);
00092 
00093         public:
00094         SaXInit ( QList<char> );
00095         SaXInit ( void );
00096 };
00097 } // end namespace
00098 #endif

Generated on Mon Jan 7 17:25:36 2008 for libsax by  doxygen 1.4.6