[glibmm] Gio::AppInfo: Add launch_default_for_uri_async().



commit dd5bd597b2ce03baeee2a04f40a16f682a955a64
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Sep 11 14:03:03 2016 +0200

    Gio::AppInfo: Add launch_default_for_uri_async().
    
    Using the fairly new, and nifty, slot/slot_callback arguments for
    _WRAP_METHOD().

 gio/src/appinfo.ccg |    1 +
 gio/src/appinfo.hg  |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gio/src/appinfo.ccg b/gio/src/appinfo.ccg
index 57cb866..8e740ce 100644
--- a/gio/src/appinfo.ccg
+++ b/gio/src/appinfo.ccg
@@ -20,6 +20,7 @@
 #include <giomm/file.h>
 #include <glibmm/listhandle.h>
 #include <glibmm/vectorutils.h>
+#include "slot_async.h"
 #include <gio/gio.h>
 
 namespace Gio
diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg
index 848f7fc..255dce6 100644
--- a/gio/src/appinfo.hg
+++ b/gio/src/appinfo.hg
@@ -18,6 +18,8 @@
 _CONFIGINCLUDE(giommconfig.h)
 
 #include <giomm/applaunchcontext.h>
+#include <giomm/asyncresult.h>
+#include <giomm/cancellable.h>
 
 #include <exception>
 
@@ -221,6 +223,11 @@ public:
   _WRAP_METHOD(static void reset_type_associations(const std::string& content_type), 
g_app_info_reset_type_associations)
   _WRAP_METHOD(static bool launch_default_for_uri(const std::string& uri, const 
Glib::RefPtr<AppLaunchContext>& launch_context{?}), g_app_info_launch_default_for_uri, errthrow)
 
+  _WRAP_METHOD(static void launch_default_for_uri_async(const std::string& uri, const 
Glib::RefPtr<AppLaunchContext>& launch_context{.?},
+    const SlotAsyncReady& slot{callback?}, const Glib::RefPtr<Cancellable>& cancellable{.?}), 
g_app_info_launch_default_for_uri_async, slot_name slot, slot_callback SignalProxy_async_callback)
+  _IGNORE(g_app_info_launch_default_for_uri_async)
+  _WRAP_METHOD(static bool launch_default_for_uri_finish(const Glib::RefPtr<AsyncResult>& result), 
g_app_info_launch_default_for_uri_finish, errthrow)
+
 protected:
   //_WRAP_VFUNC(Glib::RefPtr<AppInfo> dup(), "dup")
   //_WRAP_VFUNC(bool equal(const Glib::RefPtr<AppInfo>& appinfo2), "equal")


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