gconfmm  2.28.0
schema.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GCONFMM_SCHEMA_H
4 #define _GCONFMM_SCHEMA_H
5 
6 
7 #include <glibmm.h>
8 
9 // -*- Mode: C++; c-basic-offset: 4 -*-
10 /* $Id: schema.hg,v 1.5 2002/12/10 23:26:01 murrayc Exp $ */
11 
12 /* schema.hg
13  *
14  * Copyright (C) 2000-2002 GConfmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gconfmm/value.h>
32 
33 
34 extern "C" {
35  // TODO: do not include this.
36 #include <gconf/gconf-schema.h>
37 }
38 
39 namespace Gnome
40 {
41 
42 namespace Conf
43 {
44 
45 class Value;
46 
47 class Schema
48 {
49  public:
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51  typedef Schema CppObjectType;
52  typedef GConfSchema BaseObjectType;
53 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
54 
55  Schema();
56 
57  // Use make_a_copy=true when getting it directly from a struct.
58  explicit Schema(GConfSchema* castitem, bool make_a_copy = false);
59 
60  Schema(const Schema& src);
61  Schema& operator=(const Schema& src);
62 
63  ~Schema();
64 
65  GConfSchema* gobj() { return gobject_; }
66  const GConfSchema* gobj() const { return gobject_; }
67 
69  GConfSchema* gobj_copy() const;
70 
71 protected:
72  GConfSchema* gobject_;
73 
74 private:
75 
76 
77 public:
78 
79  void set_type(ValueType type);
80 
81  void set_list_type(ValueType type);
82 
83  void set_car_type(ValueType type);
84 
85  void set_cdr_type(ValueType type);
86 
87  void set_locale(const std::string& locale);
88 
89  void set_short_desc(const Glib::ustring& desc);
90 
91  void set_long_desc(const Glib::ustring& desc);
92 
93  void set_owner(const Glib::ustring& owner);
94 
95  void set_default_value(const Value& value);
96 
97 
98  ValueType get_type() const;
99 
100  ValueType get_list_type() const;
101 
102  ValueType get_car_type() const;
103 
104  ValueType get_cdr_type() const;
105 
106  std::string get_locale() const;
107 
108  Glib::ustring get_short_desc() const;
109 
110  Glib::ustring get_long_desc() const;
111 
112  Glib::ustring get_owner() const;
113 
114  Value get_default_value() const;
115 
116 
117 };
118 
119 
120 } /* namespace Conf */
121 } /* namespace Gnome */
122 
123 
124 namespace Glib
125 {
126 
135 Gnome::Conf::Schema wrap(GConfSchema* object, bool take_copy = false);
136 
137 } // namespace Glib
138 
139 
140 #endif /* _GCONFMM_SCHEMA_H */
141 
ValueType get_car_type() const
void set_short_desc(const Glib::ustring &desc)
Value get_default_value() const
ValueType get_type() const
Definition: client.h:910
void set_owner(const Glib::ustring &owner)
Definition: schema.h:47
Definition: callback.h:33
void set_locale(const std::string &locale)
void set_type(ValueType type)
ValueType get_cdr_type() const
Glib::ustring get_short_desc() const
Glib::ustring get_owner() const
GConfSchema * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it...
ValueType
Definition: value.h:46
std::string get_locale() const
void set_long_desc(const Glib::ustring &desc)
Schema & operator=(const Schema &src)
ValueType get_list_type() const
void set_car_type(ValueType type)
void set_list_type(ValueType type)
void set_cdr_type(ValueType type)
const GConfSchema * gobj() const
Definition: schema.h:66
GConfSchema * gobject_
Definition: schema.h:72
Wrapper for primitive types.
Definition: value.h:141
void set_default_value(const Value &value)
Glib::ustring get_long_desc() const
GConfSchema * gobj()
Definition: schema.h:65