diff options
author | Bastian Wissler | 2009-04-01 18:55:03 +0200 |
---|---|---|
committer | Bastian Wissler | 2009-04-01 18:55:03 +0200 |
commit | 8c7b37828c921c361b92f5d0003a488e8b2fb3d1 (patch) | |
tree | aac293d51c47c4b8a42ae14cbb95afb104b0c183 /fltk-2/include/fltk/Preferences.h | |
parent | new version of vmchooser binary imported to 5.0-branch (diff) | |
download | vmchooser-8c7b37828c921c361b92f5d0003a488e8b2fb3d1.tar.gz vmchooser-8c7b37828c921c361b92f5d0003a488e8b2fb3d1.tar.xz vmchooser-8c7b37828c921c361b92f5d0003a488e8b2fb3d1.zip |
vmchooser source:
* Various fixes found by Valgrind
* libxml2 lib included
* fltk from weekly snapshot updated
git-svn-id: http://svn.openslx.org/svn/openslx/openslx-src-tools/vmchooser/trunk@2777 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'fltk-2/include/fltk/Preferences.h')
-rw-r--r-- | fltk-2/include/fltk/Preferences.h | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/fltk-2/include/fltk/Preferences.h b/fltk-2/include/fltk/Preferences.h deleted file mode 100644 index 57103b6..0000000 --- a/fltk-2/include/fltk/Preferences.h +++ /dev/null @@ -1,109 +0,0 @@ -// "$Id: Preferences.H 4458 2005-07-26 07:59:01Z matt $" -// -// Copyright 2002-2005 by Matthias Melcher. -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Library General Public -// License as published by the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Library General Public License for more details. -// -// You should have received a copy of the GNU Library General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -// USA. -// -// Please report all bugs and problems on the following page: -// -// http://www.fltk.org/str.php - -#ifndef fltk_Preferences_h -#define fltk_Preferences_h - -#include "FL_API.h" - -namespace fltk { - -/** - * Preferences are a data tree containing a root, branches and leafs - */ -class FL_API Preferences -{ - -public: - - enum Root { SYSTEM=0, USER }; - - Preferences( Root root, const char *vendor, const char *application ); - Preferences( const char *path, const char *vendor, const char *application ); - Preferences( Preferences&, const char *group ); - Preferences( Preferences*, const char *group ); - ~Preferences(); - - int groups(); - const char *group( int ); - bool groupExists( const char *group ); - bool deleteGroup( const char *group ); - - int entries(); - const char *entry( int ); - bool entryExists( const char *entry ); - bool deleteEntry( const char *entry ); - - bool set( const char *entry, int value ); - bool set( const char *entry, float value ); - bool set( const char *entry, double value ); - bool set( const char *entry, const char *value ); - bool set( const char *entry, const void *value, int size ); - - bool get( const char *entry, int &value, int defaultValue ); - bool get( const char *entry, float &value, float defaultValue ); - bool get( const char *entry, double &value, double defaultValue ); - bool get( const char *entry, char *&value, const char *defaultValue ); - bool get( const char *entry, char *value, const char *defaultValue, int maxSize ); - bool get( const char *entry, void *&value, const void *defaultValue, int defaultSize ); - bool get( const char *entry, void *value, const void *defaultValue, int defaultSize, int maxSize ); - int size( const char *entry ); - - bool getUserdataPath( char *path, int pathlen ); - - void flush(); - - // bool export( const char *filename, Type fileFormat ); - // bool import( const char *filename ); - - class FL_API Name { - char *data_; - public: - Name( int n ); - Name( const char *format, ... ); - operator const char *() { return data_; } - ~Name() { delete[] data_; } - }; - -private: - - // make the following functions unavailable - Preferences(); - Preferences(const Preferences&); - Preferences &operator=(const Preferences&); - - class Node; - friend class Node; - Node *node; - - class RootNode; - friend class RootNode; - RootNode *rootNode; - -}; - -} - -#endif - -// End of "$Id: Preferences.H 4458 2005-07-26 07:59:01Z matt $". |