00001 //----------------------------------------------------------------------------------------
00011 // RCS-ID: $Id: import_controller.h,v 1.1 2002/08/27 05:06:04 robertoconnor Exp $
00012 //----------------------------------------------------------------------------------------
00013
00014 //----------------------------------------------------------------------------------------
00015 // Begin single inclusion of this .h file condition
00016 //----------------------------------------------------------------------------------------
00017
00018 #ifndef _IMPORT_CONTROLLER_H_
00019 #define _IMPORT_CONTROLLER_H_
00020
00021 //----------------------------------------------------------------------------------------
00022 // GCC interface
00023 //----------------------------------------------------------------------------------------
00024
00025 #if defined(__GNUG__) && ! defined(__APPLE__)
00026 #pragma interface "import_controller.h"
00027 #endif
00028
00029 //----------------------------------------------------------------------------------------
00030 // Shared defines
00031 //----------------------------------------------------------------------------------------
00032
00033 #include "plucker_defines.h"
00034
00035 //----------------------------------------------------------------------------------------
00036 // Begin feature removal condition
00037 //----------------------------------------------------------------------------------------
00038
00039 #if ( setupUSE_IMPORT_CONTROLLER )
00040
00041 //----------------------------------------------------------------------------------------
00042 // Headers
00043 //----------------------------------------------------------------------------------------
00044
00045 #include "wx/html/helpctrl.h"
00046 #include "wx/confbase.h"
00047 #include "wx/fileconf.h"
00048
00049 //----------------------------------------------------------------------------------------
00050 // Class option flags
00051 //----------------------------------------------------------------------------------------
00052
00053 enum {
00054 optionIMPORT_CONTROLLER_DELETE_IMPORT_SOURCE_FILE_AFTER_IMPORTED = 1,
00055 optionIMPORT_CONTROLLER_ONLY_IMPORT_AFTER_INSTALL_OR_PATCH = 2
00056 };
00057
00058 //----------------------------------------------------------------------------------------
00059 // Class definition: import_controller
00060 //----------------------------------------------------------------------------------------
00061
00063 class import_controller
00064 {
00065
00066 // I guess one doesn't use DECLARE_DYNAMIC_CLASS on these.
00067
00068 public:
00069
00071 import_controller();
00072
00074 ~import_controller();
00075
00077 static import_controller* get();
00078
00080
00083 static import_controller* set( import_controller* desired_import_controller );
00084
00086
00092 void import_installation_plkrdata_files( long options );
00093
00095
00100 void import_plkrdata_files_from_directory( const wxString& import_path,
00101 long options
00102 );
00103
00105
00109 void import_sections_from_plkrdata_file( const wxString& plkrdata_fullname,
00110 long options
00111 );
00112
00113 private:
00114
00115 // Singleton instance:
00116 static import_controller* ms_instance;
00117
00118 };
00119
00120 //----------------------------------------------------------------------------------------
00121 // End feature removal condition
00122 //----------------------------------------------------------------------------------------
00123
00124 #endif // setupUSE_IMPORT_CONTROLLER
00125
00126 //----------------------------------------------------------------------------------------
00127 // End single inclusion of this .h file condition
00128 //----------------------------------------------------------------------------------------
00129
00130 #endif //_IMPORT_CONTROLLER_H_