summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-09-11 14:03:03 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-09-11 14:03:04 +0200
commitdd5bd597b2ce03baeee2a04f40a16f682a955a64 (patch)
tree132ccab8d92c7338da2317c5ec613c7388cbd96f
parente28d7064070322f6ebde585ed4b7e0068367ec97 (diff)
downloadglibmm-dd5bd597b2ce03baeee2a04f40a16f682a955a64.tar.gz
Gio::AppInfo: Add launch_default_for_uri_async().
Using the fairly new, and nifty, slot/slot_callback arguments for _WRAP_METHOD().
-rw-r--r--gio/src/appinfo.ccg1
-rw-r--r--gio/src/appinfo.hg7
2 files changed, 8 insertions, 0 deletions
diff --git a/gio/src/appinfo.ccg b/gio/src/appinfo.ccg
index 57cb8665..8e740ce5 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 848f7fc5..255dce69 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")