diff options
| author | Manolo Gouy <Manolo> | 2016-04-10 08:15:51 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-10 08:15:51 +0000 |
| commit | faaa2b6d1e73e7d32e5373b4acf15a2497ec0e74 (patch) | |
| tree | a11bb5c5773ffba652d94d8c09c133f87b4b9c6a /FL | |
| parent | 927774af85b115b2affa35252a46cc6f3235fe97 (diff) | |
Rewrite Fl_Preferences.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_System_Driver.H | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 11d7067eb..c5975bfed 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -27,6 +27,7 @@ #include <FL/Fl_Export.H> #include <FL/platform_types.h> #include <FL/filename.H> +#include <FL/Fl_Preferences.H> #include <stdio.h> #include <stdarg.h> @@ -135,6 +136,15 @@ public: virtual int file_browser_load_filesystem(Fl_File_Browser *browser, char *filename, Fl_File_Icon *icon) {return 0;} // the default implementation of file_browser_load_directory() should be enough virtual int file_browser_load_directory(const char *directory, char *filename, dirent ***pfiles, Fl_File_Sort_F *sort); + // implement to support Fl_Preferences + virtual void newUUID(char *uuidBuffer) { uuidBuffer[0] = 0; } + // implement to support Fl_Preferences + virtual char *preference_rootnode(Fl_Preferences *prefs, Fl_Preferences::Root root, const char *vendor, + const char *application) {return NULL;} + // the default implementation of preferences_need_protection_check() may be enough + virtual int preferences_need_protection_check() {return 0;} + // implement to support Fl_Plugin_Manager::load() + virtual void *dlopen(const char *filename) {return NULL;} }; #endif // FL_SYSTEM_DRIVER_H |
