00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef SAX_INIT_H
00022 #define SAX_INIT_H 1
00023
00024
00025
00026
00027 #include <qfileinfo.h>
00028
00029 #include "processcall.h"
00030 #include "exception.h"
00031
00032 namespace SaX {
00033
00034
00035
00036 #define SAX_INIT "/usr/share/sax/init.pl"
00037 #define CACHE_CONFIG "/var/cache/sax/files/config"
00038
00039
00040
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
00062
00082 class SaXInit : public SaXInitIF {
00083 private:
00084 QList<char> mOptions;
00085
00086 private:
00087 bool needUpdate ( void );
00088 bool scanHDstatus ( bool = false );
00089 bool saveHDstatus ( int,char*,char* );
00090
00091 public:
00092 bool needInit (void);
00093 void ignoreProfile (void);
00094
00095 public:
00096 void doInit (void);
00097
00098 public:
00099 SaXInit ( QList<char> );
00100 SaXInit ( void );
00101 };
00102 }
00103 #endif