summaryrefslogtreecommitdiff
path: root/gio/src/fileinfo.hg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2008-01-08 15:17:44 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-01-08 15:17:44 +0000
commit062ff4276a31e86075702bee00751b701a1f1f41 (patch)
tree077707f264d8a1ef9ef7694dd133cd04bf066596 /gio/src/fileinfo.hg
parentf3442dff0e8bdbb9a16a1cbffa6a67edc8630298 (diff)
downloadglibmm-062ff4276a31e86075702bee00751b701a1f1f41.tar.gz
Made some whitespace more consistent with the rest of glibmm. In
2008-01-08 Murray Cumming <murrayc@murrayc.com> * gio/src/asyncresult.hg: * gio/src/cancellable.hg: * gio/src/fileattribute.hg: * gio/src/fileenumerator.hg: * gio/src/fileinputstream.hg: * gio/src/fileoutputstream.hg: * gio/src/icon.hg: * gio/src/inputstream.hg: * gio/src/mountoperation.hg: * gio/src/outputstream.hg: * gio/src/simpleasyncresult.hg: Made some whitespace more consistent with the rest of glibmm. In particular, white space alignment in .hg files will often be even worse when seen in the generated .h files. * gio/src/drive.hg: get_icon(), * gio/src/file.hg: read(), * gio/src/fileicon.hg: get_file(), * gio/src/fileinfo.hg: get_icon(), * gio/src/volume.hg: get_drive(), get_icon(): For the const versions, actually return a const RefPtr. svn path=/trunk/; revision=491
Diffstat (limited to 'gio/src/fileinfo.hg')
-rw-r--r--gio/src/fileinfo.hg51
1 files changed, 4 insertions, 47 deletions
diff --git a/gio/src/fileinfo.hg b/gio/src/fileinfo.hg
index 4c8d97d5..fc1ac13f 100644
--- a/gio/src/fileinfo.hg
+++ b/gio/src/fileinfo.hg
@@ -28,7 +28,8 @@
_DEFS(giomm,gio)
_PINCLUDE(glibmm/private/object_p.h)
-namespace Gio {
+namespace Gio
+{
_WRAP_ENUM(FileType, GFileType, NO_GTYPE)
@@ -57,125 +58,82 @@ public:
_WRAP_METHOD(Glib::RefPtr<FileInfo> dup() const,
g_file_info_dup)
-
_WRAP_METHOD(void copy_into(Glib::RefPtr<FileInfo>& dest) const,
g_file_info_copy_into)
-
_WRAP_METHOD(bool has_attribute(const std::string& attribute) const,
g_file_info_has_attribute)
-
_WRAP_METHOD(Glib::StringArrayHandle list_attributes(const std::string& name_space) const,
g_file_info_list_attributes)
-
_WRAP_METHOD(FileAttributeType get_attribute_type(const std::string& attribute) const,
g_file_info_get_attribute_type)
-
_WRAP_METHOD(void remove_attribute(const std::string& attribute),
g_file_info_remove_attribute)
-
_WRAP_METHOD(std::string get_attribute_string(const std::string& attribute) const,
g_file_info_get_attribute_string)
-
_WRAP_METHOD(std::string get_attribute_byte_string(const std::string& attribute) const,
g_file_info_get_attribute_byte_string)
-
_WRAP_METHOD(bool get_attribute_boolean(const std::string& attribute) const,
g_file_info_get_attribute_boolean)
-
_WRAP_METHOD(guint32 get_attribute_uint32(const std::string& attribute) const,
g_file_info_get_attribute_uint32)
-
_WRAP_METHOD(gint32 get_attribute_int32(const std::string& attribute) const,
g_file_info_get_attribute_int32)
-
_WRAP_METHOD(guint64 get_attribute_uint64(const std::string& attribute) const,
g_file_info_get_attribute_uint64)
-
_WRAP_METHOD(gint64 get_attribute_int64(const std::string& attribute) const,
g_file_info_get_attribute_int64)
-
_WRAP_METHOD(Glib::RefPtr<Glib::Object> get_attribute_object(const std::string& attribute) const,
g_file_info_get_attribute_object)
-
_WRAP_METHOD(void set_attribute_string(const std::string& attribute, const std::string& value),
g_file_info_set_attribute_string)
-
_WRAP_METHOD(void set_attribute_byte_string(const std::string& attribute, const std::string& value),
g_file_info_set_attribute_byte_string)
-
_WRAP_METHOD(void set_attribute_boolean(const std::string& attribute, bool value),
g_file_info_set_attribute_boolean)
-
_WRAP_METHOD(void set_attribute_uint32(const std::string& attribute, guint32 value),
g_file_info_set_attribute_uint32)
-
_WRAP_METHOD(void set_attribute_int32(const std::string& attribute, gint32 value),
g_file_info_set_attribute_int32)
-
_WRAP_METHOD(void set_attribute_uint64(const std::string& attribute, guint64 value),
g_file_info_set_attribute_uint64)
-
_WRAP_METHOD(void set_attribute_int64(const std::string& attribute, gint64 value),
g_file_info_set_attribute_int64)
-
_WRAP_METHOD(void set_attribute_object(const std::string& attribute, const Glib::RefPtr<Glib::Object>& object),
g_file_info_set_attribute_object)
-
_WRAP_METHOD(void clear_status(), g_file_info_clear_status)
// helper getters
_WRAP_METHOD(FileType get_file_type() const, g_file_info_get_file_type)
-
_WRAP_METHOD(bool is_hidden() const, g_file_info_get_is_hidden)
-
_WRAP_METHOD(bool is_backup() const, g_file_info_get_is_backup)
-
_WRAP_METHOD(bool is_symlink() const, g_file_info_get_is_symlink)
-
_WRAP_METHOD(std::string get_name() const, g_file_info_get_name)
-
_WRAP_METHOD(std::string get_display_name() const, g_file_info_get_display_name)
-
_WRAP_METHOD(std::string get_edit_name() const, g_file_info_get_edit_name)
_WRAP_METHOD(Glib::RefPtr<Icon> get_icon(), g_file_info_get_icon, refreturn)
-
- _WRAP_METHOD(Glib::RefPtr<Icon> get_icon() const, g_file_info_get_icon, refreturn, constversion)
+ _WRAP_METHOD(Glib::RefPtr<const Icon> get_icon() const, g_file_info_get_icon, refreturn, constversion)
_WRAP_METHOD(std::string get_content_type() const, g_file_info_get_content_type)
-
_WRAP_METHOD(goffset get_size() const, g_file_info_get_size)
-
_WRAP_METHOD(void get_modification_time(Glib::TimeVal& mtime) const, g_file_info_get_modification_time)
-
_WRAP_METHOD(std::string get_symlink_target() const, g_file_info_get_symlink_target)
-
_WRAP_METHOD(std::string get_etag() const, g_file_info_get_etag)
-
_WRAP_METHOD(gint32 get_sort_order() const, g_file_info_get_sort_order)
-
_WRAP_METHOD(void set_attribute_mask(const Glib::RefPtr<FileAttributeMatcher>& mask),
g_file_info_set_attribute_mask)
-
_WRAP_METHOD(void unset_attribute_mask(), g_file_info_unset_attribute_mask)
// helper setters
_WRAP_METHOD(void set_file_type(FileType type), g_file_info_set_file_type)
-
_WRAP_METHOD(void set_is_hidden(bool is_hidden = true), g_file_info_set_is_hidden)
-
_WRAP_METHOD(void set_is_symlink(bool is_symlink = true), g_file_info_set_is_symlink)
-
_WRAP_METHOD(void set_name(const std::string& name), g_file_info_set_name)
-
_WRAP_METHOD(void set_display_name(const std::string& display_name), g_file_info_set_display_name)
-
_WRAP_METHOD(void set_edit_name(const std::string& edit_name), g_file_info_set_edit_name)
-
_WRAP_METHOD(void set_icon(const Glib::RefPtr<Icon>& icon), g_file_info_set_icon)
-
_WRAP_METHOD(void set_content_type(const std::string& content_type), g_file_info_set_content_type)
// TODO: how can you set size of a file?!
@@ -183,10 +141,9 @@ public:
_WRAP_METHOD(void set_size(goffset size), g_file_info_set_size)
_WRAP_METHOD(void set_modification_time(Glib::TimeVal& mtime), g_file_info_set_modification_time)
-
_WRAP_METHOD(void set_symlink_target(const std::string& symlink_target), g_file_info_set_symlink_target)
-
_WRAP_METHOD(void set_sort_order(gint32 sort_order), g_file_info_set_sort_order)
};
} // namespace Gio
+