glibmm r606 - in trunk: . gio/src



Author: murrayc
Date: Wed Feb 20 13:43:43 2008
New Revision: 606
URL: http://svn.gnome.org/viewvc/glibmm?rev=606&view=rev

Log:
2008-02-20  Murray Cumming  <murrayc murrayc com>

* gio/src/appinfo.hg:
* gio/src/bufferedinputstream.hg:
* gio/src/drive.hg:
* gio/src/file.hg:
* gio/src/filemonitor.hg:
* gio/src/icon.hg:
* gio/src/seekable.hg:
* gio/src/volume.hg:
* gio/src/volumemonitor.hg: Comment out _WRAP_VFUNC() lines because 
we decided that they are not useful (people will not create new 
implementations with giomm) and are a potential source of errors.

Modified:
   trunk/ChangeLog
   trunk/gio/src/appinfo.hg
   trunk/gio/src/bufferedinputstream.hg
   trunk/gio/src/drive.hg
   trunk/gio/src/file.hg
   trunk/gio/src/filemonitor.hg
   trunk/gio/src/icon.hg
   trunk/gio/src/seekable.hg
   trunk/gio/src/volume.hg
   trunk/gio/src/volumemonitor.hg

Modified: trunk/gio/src/appinfo.hg
==============================================================================
--- trunk/gio/src/appinfo.hg	(original)
+++ trunk/gio/src/appinfo.hg	Wed Feb 20 13:43:43 2008
@@ -140,25 +140,25 @@
   static Glib::RefPtr<AppInfo> get_default_for_uri_scheme(const std::string& uri_scheme);
 
 protected:
-  _WRAP_VFUNC(Glib::RefPtr<AppInfo> dup(), "dup")
-  _WRAP_VFUNC(bool equal(const Glib::RefPtr<AppInfo>& appinfo2), "equal")
-  _WRAP_VFUNC(std::string get_id() const, "get_id")
-  _WRAP_VFUNC(std::string get_name() const, "get_name")
-  _WRAP_VFUNC(std::string get_description() const, "get_description")
-  _WRAP_VFUNC(std::string get_executable() const, "get_executable")
-  _WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, "get_icon")
+  //_WRAP_VFUNC(Glib::RefPtr<AppInfo> dup(), "dup")
+  //_WRAP_VFUNC(bool equal(const Glib::RefPtr<AppInfo>& appinfo2), "equal")
+  //_WRAP_VFUNC(std::string get_id() const, "get_id")
+  //_WRAP_VFUNC(std::string get_name() const, "get_name")
+  //_WRAP_VFUNC(std::string get_description() const, "get_description")
+  //_WRAP_VFUNC(std::string get_executable() const, "get_executable")
+  //_WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, "get_icon")
 #m4 _CONVERSION(`const Glib::ListHandle<std::string>&',`GList*',`$3.data()')
 #m4 _CONVERSION(`GList*',`const Glib::ListHandle<std::string>&',`Glib::ListHandle<std::string>($3, Glib::OWNERSHIP_NONE)')
-  _WRAP_VFUNC(bool launch(const Glib::ListHandle<std::string>& filenames, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch")
-  _WRAP_VFUNC(bool supports_uris() const, "supports_uris")
-  _WRAP_VFUNC(bool supports_files() const, "supports_files")
-  _WRAP_VFUNC(bool launch_uris(const Glib::ListHandle<std::string>& uris, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch_uris")
-  _WRAP_VFUNC(bool should_show() const, "should_show")
-  _WRAP_VFUNC(bool set_as_default_for_type(const std::string& content_type, GError** error), "set_as_default_for_type")
-  _WRAP_VFUNC(bool set_as_default_for_extension(const std::string& extension, GError** error), "set_as_default_for_extension")
-  _WRAP_VFUNC(bool add_supports_type(const std::string& content_type, GError** error), "add_supports_type")
-  _WRAP_VFUNC(bool can_remove_supports_type() const, "can_remove_supports_type")
-  _WRAP_VFUNC(bool remove_supports_type(const std::string& content_type, GError** error), "remove_supports_type")
+  //_WRAP_VFUNC(bool launch(const Glib::ListHandle<std::string>& filenames, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch")
+  //_WRAP_VFUNC(bool supports_uris() const, "supports_uris")
+  //_WRAP_VFUNC(bool supports_files() const, "supports_files")
+  //_WRAP_VFUNC(bool launch_uris(const Glib::ListHandle<std::string>& uris, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch_uris")
+  //_WRAP_VFUNC(bool should_show() const, "should_show")
+  //_WRAP_VFUNC(bool set_as_default_for_type(const std::string& content_type, GError** error), "set_as_default_for_type")
+  //_WRAP_VFUNC(bool set_as_default_for_extension(const std::string& extension, GError** error), "set_as_default_for_extension")
+  //_WRAP_VFUNC(bool add_supports_type(const std::string& content_type, GError** error), "add_supports_type")
+  //_WRAP_VFUNC(bool can_remove_supports_type() const, "can_remove_supports_type")
+  //_WRAP_VFUNC(bool remove_supports_type(const std::string& content_type, GError** error), "remove_supports_type")
 };
 
 } // namespace Gio

Modified: trunk/gio/src/bufferedinputstream.hg
==============================================================================
--- trunk/gio/src/bufferedinputstream.hg	(original)
+++ trunk/gio/src/bufferedinputstream.hg	Wed Feb 20 13:43:43 2008
@@ -93,7 +93,7 @@
 
 protected:
 #m4 _CONVERSION(`GCancellable*', `const Glib::RefPtr<Cancellable>&', `Glib::wrap($3, true)')
-  _WRAP_VFUNC(gssize fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable, GError** error), "fill")
+  //_WRAP_VFUNC(gssize fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable, GError** error), "fill")
   // TODO: wrap async vfuncs
 };
 

Modified: trunk/gio/src/drive.hg
==============================================================================
--- trunk/gio/src/drive.hg	(original)
+++ trunk/gio/src/drive.hg	Wed Feb 20 13:43:43 2008
@@ -112,9 +112,9 @@
   _WRAP_METHOD(std::string get_identifier(const std::string& kind) const, g_drive_get_identifier)
   _WRAP_METHOD(Glib::StringArrayHandle enumerate_identifiers() const, g_drive_enumerate_identifiers)
 
-  _WRAP_VFUNC(Glib::ustring get_name() const, get_name)
-  //TODO: Careful of ref-counting: _WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, get_icon)
-  _WRAP_VFUNC(bool has_volumes() const, has_volumes)
+  //_WRAP_VFUNC(Glib::ustring get_name() const, get_name)
+  //TODO: Careful of ref-counting: //_WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, get_icon)
+  //_WRAP_VFUNC(bool has_volumes() const, has_volumes)
   //TODO: finish
 };
 

Modified: trunk/gio/src/file.hg
==============================================================================
--- trunk/gio/src/file.hg	(original)
+++ trunk/gio/src/file.hg	Wed Feb 20 13:43:43 2008
@@ -1907,35 +1907,35 @@
 
   // *** vfuncs ***
 
-  _WRAP_VFUNC(Glib::RefPtr<File> dup() const, "dup")
-  _WRAP_VFUNC(guint hash() const, "hash")
+  //_WRAP_VFUNC(Glib::RefPtr<File> dup() const, "dup")
+  //_WRAP_VFUNC(guint hash() const, "hash")
   //TODO: equal() vfunc
 
-  _WRAP_VFUNC(std::string get_basename() const, "get_basename")
-  _WRAP_VFUNC(std::string get_path() const, "get_path")
-  _WRAP_VFUNC(std::string get_uri() const, "get_uri")
-  _WRAP_VFUNC(std::string get_parse_name() const, "get_parse_name")
+  //_WRAP_VFUNC(std::string get_basename() const, "get_basename")
+  //_WRAP_VFUNC(std::string get_path() const, "get_path")
+  //_WRAP_VFUNC(std::string get_uri() const, "get_uri")
+  //_WRAP_VFUNC(std::string get_parse_name() const, "get_parse_name")
 
-  //TODO: Careful of refcounting: _WRAP_VFUNC(Glib::RefPtr<File> get_parent() const, "get_parent")
+  //TODO: Careful of refcounting: //_WRAP_VFUNC(Glib::RefPtr<File> get_parent() const, "get_parent")
 
   // TODO: GFileIface does not define get_child(). Perhaps it's not intentional.
-  //  _WRAP_VFUNC(Glib::RefPtr<File> get_child(const std::string& name) const, "get_child")
+  //  //_WRAP_VFUNC(Glib::RefPtr<File> get_child(const std::string& name) const, "get_child")
 
   // TODO: howto wrap a vfunc that takes a GError**
-//   _WRAP_VFUNC(Glib::RefPtr<File> get_child_for_display_name(const Glib::ustring& display_name) const,
+//   //_WRAP_VFUNC(Glib::RefPtr<File> get_child_for_display_name(const Glib::ustring& display_name) const,
 //               "get_child_for_display_name",
 //               errthrow)
 
 #m4 _CONVERSION(`GFile*',`const Glib::RefPtr<const File>&',`Glib::wrap($3, true)')
 
-  _WRAP_VFUNC(bool contains_file(const Glib::RefPtr<const File>& descendant) const, "contains_file")
+  //_WRAP_VFUNC(bool contains_file(const Glib::RefPtr<const File>& descendant) const, "contains_file")
 
-  _WRAP_VFUNC(std::string get_relative_path(const Glib::RefPtr<const File>& descendant) const, "get_relative_path")
+  //_WRAP_VFUNC(std::string get_relative_path(const Glib::RefPtr<const File>& descendant) const, "get_relative_path")
 
-  //TODO: Careful of refcounting:   _WRAP_VFUNC(Glib::RefPtr<const File> resolve_relative_path(const std::string& relative_path) const, "resolve_relative_path")
+  //TODO: Careful of refcounting:   //_WRAP_VFUNC(Glib::RefPtr<const File> resolve_relative_path(const std::string& relative_path) const, "resolve_relative_path")
 
-  _WRAP_VFUNC(bool is_native() const, "is_native")
-  _WRAP_VFUNC(bool has_uri_scheme(const std::string& uri_scheme) const, "has_uri_scheme")
+  //_WRAP_VFUNC(bool is_native() const, "is_native")
+  //_WRAP_VFUNC(bool has_uri_scheme(const std::string& uri_scheme) const, "has_uri_scheme")
 };
 
 

Modified: trunk/gio/src/filemonitor.hg
==============================================================================
--- trunk/gio/src/filemonitor.hg	(original)
+++ trunk/gio/src/filemonitor.hg	Wed Feb 20 13:43:43 2008
@@ -58,7 +58,7 @@
   _WRAP_SIGNAL(void changed(const Glib::RefPtr<File>& file, const Glib::RefPtr<File>& other_file, FileMonitorEvent event_type), "changed")
   
   //TODO: Write .defs for the vfunc:
-  _WRAP_VFUNC(bool cancel(), cancel);
+  //_WRAP_VFUNC(bool cancel(), cancel);
 
   _WRAP_PROPERTY("rate-limit", int)
   _WRAP_PROPERTY("cancelled", bool)

Modified: trunk/gio/src/icon.hg
==============================================================================
--- trunk/gio/src/icon.hg	(original)
+++ trunk/gio/src/icon.hg	Wed Feb 20 13:43:43 2008
@@ -51,7 +51,7 @@
   // be available to derived classes?
   bool equal(const Glib::RefPtr<Icon>& other) const;
 
-  _WRAP_VFUNC(guint hash() const, "hash")
+  //_WRAP_VFUNC(guint hash() const, "hash")
 
   // TODO: also kind of related to equal() being virtual or not,
   // do we need to have equal_vfunc()? Or rather, why would we want

Modified: trunk/gio/src/seekable.hg
==============================================================================
--- trunk/gio/src/seekable.hg	(original)
+++ trunk/gio/src/seekable.hg	Wed Feb 20 13:43:43 2008
@@ -83,13 +83,13 @@
 #endif //GLIBMM_EXCEPTIONS_ENABLED
 
 //TODO: Write the .defs for these:
-  _WRAP_VFUNC(goffset tell() const, tell)
-  _WRAP_VFUNC(goffset can_seek() const, can_seek)
-  _WRAP_VFUNC(goffset seek(goffset offset, Glib::SeekType type, const Glib::RefPtr<Cancellable>& cancellable, GError** error), seek)
-  _WRAP_VFUNC(goffset can_truncate() const, can_truncate)
+  //_WRAP_VFUNC(goffset tell() const, tell)
+  //_WRAP_VFUNC(goffset can_seek() const, can_seek)
+  //_WRAP_VFUNC(goffset seek(goffset offset, Glib::SeekType type, const Glib::RefPtr<Cancellable>& cancellable, GError** error), seek)
+  //_WRAP_VFUNC(goffset can_truncate() const, can_truncate)
 
   //Renamed to truncate() - we don't know why it's called truncate_fn in C.
-  _WRAP_VFUNC(goffset truncate(goffset offset, const Glib::RefPtr<Cancellable>& cancellable, GError** error), truncate_fn)
+  //_WRAP_VFUNC(goffset truncate(goffset offset, const Glib::RefPtr<Cancellable>& cancellable, GError** error), truncate_fn)
 
   //There are no properties or signals.
 };

Modified: trunk/gio/src/volume.hg
==============================================================================
--- trunk/gio/src/volume.hg	(original)
+++ trunk/gio/src/volume.hg	Wed Feb 20 13:43:43 2008
@@ -156,29 +156,29 @@
   _WRAP_SIGNAL(void changed(), changed)
   _WRAP_SIGNAL(void removed(), removed)
 
-  _WRAP_VFUNC(std::string get_name(), get_name)
-  _WRAP_VFUNC(Glib::RefPtr<Icon> get_icon(), get_icon)
-  _WRAP_VFUNC(std::string get_uuid(), get_uuid)
+  //_WRAP_VFUNC(std::string get_name(), get_name)
+  //_WRAP_VFUNC(Glib::RefPtr<Icon> get_icon(), get_icon)
+  //_WRAP_VFUNC(std::string get_uuid(), get_uuid)
 
 #m4 _CONVERSION(`Glib::RefPtr<Drive>',`GDrive*',__CONVERT_CONST_REFPTR_TO_P)
-  _WRAP_VFUNC(Glib::RefPtr<Drive> get_drive(), get_drive)
+  //_WRAP_VFUNC(Glib::RefPtr<Drive> get_drive(), get_drive)
 
 #m4 _CONVERSION(`Glib::RefPtr<Mount>',`GMount*',__CONVERT_CONST_REFPTR_TO_P)
-  _WRAP_VFUNC(Glib::RefPtr<Mount> get_mount(), get_mount)
+  //_WRAP_VFUNC(Glib::RefPtr<Mount> get_mount(), get_mount)
 
-  _WRAP_VFUNC(bool can_mount(), can_mount)
-  _WRAP_VFUNC(bool can_eject(), can_eject)
-  _WRAP_VFUNC(void mount_fn(GMountMountFlags flags, GMountOperation* mount_operation, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data), mount_fn) //TODO: Rename to mount()?       
-  _WRAP_VFUNC(bool mount_finish(GAsyncResult* result, GError** error), mount_finish)
-  _WRAP_VFUNC(void eject(GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data), eject)
-  _WRAP_VFUNC(bool eject_finish(GAsyncResult* result, GError** error), eject_finish)
+  //_WRAP_VFUNC(bool can_mount(), can_mount)
+  //_WRAP_VFUNC(bool can_eject(), can_eject)
+  //_WRAP_VFUNC(void mount_fn(GMountMountFlags flags, GMountOperation* mount_operation, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data), mount_fn) //TODO: Rename to mount()?       
+  //_WRAP_VFUNC(bool mount_finish(GAsyncResult* result, GError** error), mount_finish)
+  //_WRAP_VFUNC(void eject(GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data), eject)
+  //_WRAP_VFUNC(bool eject_finish(GAsyncResult* result, GError** error), eject_finish)
   
-  _WRAP_VFUNC(std::string get_identifier(const std::string& kind), get_identifier)
+  //_WRAP_VFUNC(std::string get_identifier(const std::string& kind), get_identifier)
 
   //TODO: Use an ArrayHandle.
-  _WRAP_VFUNC(char** enumerate_identifiers(), enumerate_identifiers)
+  //_WRAP_VFUNC(char** enumerate_identifiers(), enumerate_identifiers)
 
-  _WRAP_VFUNC(bool should_automount(), should_automount)
+  //_WRAP_VFUNC(bool should_automount(), should_automount)
 };
 
 } // namespace Gio

Modified: trunk/gio/src/volumemonitor.hg
==============================================================================
--- trunk/gio/src/volumemonitor.hg	(original)
+++ trunk/gio/src/volumemonitor.hg	Wed Feb 20 13:43:43 2008
@@ -76,14 +76,14 @@
   gboolean (*is_supported)          (void);
 
   //TODO: Use ListHandle?
-  _WRAP_VFUNC(GList* get_volumes(), get_volumes)
-  _WRAP_VFUNC(GList* get_mounts(), get_mounts)
+  //_WRAP_VFUNC(GList* get_volumes(), get_volumes)
+  //_WRAP_VFUNC(GList* get_mounts(), get_mounts)
 
 #m4 _CONVERSION(`Glib::RefPtr<Volume>',`GVolume*',__CONVERT_CONST_REFPTR_TO_P)
-  _WRAP_VFUNC(Glib::RefPtr<Volume> get_volume_for_uuid(const std::string& uuid), get_volume_for_uuid)
+  //_WRAP_VFUNC(Glib::RefPtr<Volume> get_volume_for_uuid(const std::string& uuid), get_volume_for_uuid)
 
 #m4 _CONVERSION(`Glib::RefPtr<Mount>',`GMount*',__CONVERT_CONST_REFPTR_TO_P)
-  _WRAP_VFUNC(Glib::RefPtr<Mount> get_mount_for_uuid(const std::string& uuid), get_mount_for_uuid)
+  //_WRAP_VFUNC(Glib::RefPtr<Mount> get_mount_for_uuid(const std::string& uuid), get_mount_for_uuid)
 
 
   //There are no properties.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]