Reference Manual

Inti Logo
Main Page | Namespace List | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

schema.h

Go to the documentation of this file.
00001 /*  Inti-GConf: Integrated Foundation Classes
00002  *  Copyright (C) 2002 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00021 
00022 #ifndef INTI_GCONF_SCHEMA_H
00023 #define INTI_GCONF_SCHEMA_H
00024 
00025 #ifndef GCONF_GCONF_SCHEMA_H
00026 extern "C"
00027 {
00028 #include <gconf/gconf-schema.h>
00029 }
00030 #endif
00031 
00032 #ifndef INTI_GCONF_VALUE_H
00033 #include <inti/gconf/value.h>
00034 #endif
00035 
00036 namespace Inti {
00037 
00038 namespace GConf {
00039 
00055 
00056 class Schema
00057 {
00058         GConfSchema *schema_;
00059         
00060 public:
00063 
00064         Schema();
00066 
00067         Schema(ValueType type);
00069 
00070         Schema(const GConfSchema* src);
00072 
00073         Schema(const Schema& src);
00075 
00076         Schema& operator=(const Schema& src);
00078 
00082 
00083         GConfSchema* gconf_schema() const { return schema_; }
00085 
00086         ValueType get_type() const;
00088 
00089         ValueType get_list_type() const;
00091 
00092         ValueType get_car_type() const;
00094 
00095         ValueType get_cdr_type() const;
00097 
00098         String get_locale() const;
00100 
00101         String get_short_desc() const;
00103 
00104         String get_long_desc() const;
00106 
00107         String get_owner() const;
00109 
00110         Value get_default_value() const;
00112 
00116 
00117         void set_type(ValueType type);
00120 
00121         void set_list_type(ValueType type);
00124 
00125         void set_car_type(ValueType type);
00128 
00129         void set_cdr_type(ValueType type);
00132 
00133         void set_locale(const String& locale);
00136 
00137         void set_short_desc(const String& desc);
00140 
00141         void set_long_desc(const String& desc);
00144 
00145         void set_owner(const String& owner);
00147 
00148         void set_default_value(const Value& value);
00150 
00152 };
00153 
00154 } // namespace GConf
00155 
00156 } // namespace Inti
00157 
00158 #endif // INTI_GCONF_SCHEMA_H
00159 
Main Page - Footer


Generated on Sun Sep 14 23:52:40 2003 for Inti-GConf by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002