summaryrefslogtreecommitdiff
path: root/gio/src/appinfo.hg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2008-01-11 15:23:14 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-01-11 15:23:14 +0000
commit9174c538a18faa1d780206aeffca593a0ecc15dc (patch)
treee49f5fa6ca4c0abc49d2da96968b630ed45e5b55 /gio/src/appinfo.hg
parent0d0794a9b18a8e2915c2f6e134247b9abf8a723e (diff)
downloadglibmm-9174c538a18faa1d780206aeffca593a0ecc15dc.tar.gz
Added class documentation.
2008-01-11 Murray Cumming <murrayc@murrayc.com> * gio/src/appinfo.hg: Added class documentation. * gio/src/asyncresult.hg: * gio/src/cancellable.hg: * gio/src/drive.hg: * gio/src/file.hg: * gio/src/fileattribute.hg: * gio/src/fileenumerator.hg: * gio/src/fileicon.hg: * gio/src/fileinfo.hg: * gio/src/fileinputstream.hg: * gio/src/fileoutputstream.hg: * gio/src/icon.hg: * gio/src/inputstream.hg: * gio/src/loadableicon.hg: * gio/src/mountoperation.hg: * gio/src/outputstream.hg: * gio/src/seekable.hg: * gio/src/simpleasyncresult.hg: * gio/src/volume.hg: Added @newin2p16 to the documentation. * glib/src/Makefile_list_of_hg.am_fragment: * glib/src/uriutils.ccg: * glib/src/uriutils.hg: Added wrappers of (some) of these new g_uri_* functions. Not yet documented. svn path=/trunk/; revision=506
Diffstat (limited to 'gio/src/appinfo.hg')
-rw-r--r--gio/src/appinfo.hg25
1 files changed, 19 insertions, 6 deletions
diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg
index 62275125..a7dccea9 100644
--- a/gio/src/appinfo.hg
+++ b/gio/src/appinfo.hg
@@ -39,6 +39,11 @@ _WRAP_ENUM(AppInfoCreateFlags, GAppInfoCreateFlags, NO_GTYPE)
class AppInfo;
+/** This is used to handle, for instance, startup notification and launching of the new application on the same screen as the launching window.
+ * See also AppInfo.
+ *
+ * @newin2p16
+ */
class AppLaunchContext : public Glib::Object
{
_CLASS_GOBJECT(AppLaunchContext, GAppLaunchContext, G_APP_LAUNCH_CONTEXT, Glib::Object, GObject)
@@ -49,16 +54,20 @@ protected:
public:
_WRAP_CREATE()
- _WRAP_METHOD(std::string get_display(const Glib::RefPtr<AppInfo>& info,
- const Glib::ListHandle<std::string>& files),
+ _WRAP_METHOD(std::string get_display(const Glib::RefPtr<AppInfo>& info, const Glib::ListHandle<std::string>& files),
g_app_launch_context_get_display)
- _WRAP_METHOD(std::string get_startup_notify_id(const Glib::RefPtr<AppInfo>& info,
- const Glib::ListHandle<std::string>& files),
+ _WRAP_METHOD(std::string get_startup_notify_id(const Glib::RefPtr<AppInfo>& info, const Glib::ListHandle<std::string>& files),
g_app_launch_context_get_startup_notify_id)
_WRAP_METHOD(void launch_failed(const std::string& startup_notify_id),
g_app_launch_context_launch_failed)
};
+/** Application information, to describe applications installed on the system,
+ * and launch them.
+ * See also AppLaunchContext.
+ *
+ * @newin2p16
+ */
class AppInfo : public Glib::Interface
{
_CLASS_INTERFACE(AppInfo, GAppInfo, G_APP_INFO, GAppInfoIface)
@@ -78,6 +87,8 @@ public:
_IGNORE(g_app_info_dup)
_IGNORE(g_app_info_equal)
+ // TODO: Decide whether this is a good idea. murrayc
+ // TODO: Documentation.
// I declare this as virtual so that it is possible to override
// the method in possible derived classes. markoa
virtual bool equal(const Glib::RefPtr<AppInfo>& other) const;
@@ -122,14 +133,15 @@ public:
static Glib::ListHandle< Glib::RefPtr<AppInfo> > get_all_for_type(const std::string& content_type);
- static Glib::RefPtr<AppInfo> get_default_for_type(const std::string& content_type,
- bool must_support_uris = true);
+ static Glib::RefPtr<AppInfo> get_default_for_type(const std::string& content_type, bool must_support_uris = true);
static Glib::RefPtr<AppInfo> get_default_for_uri_scheme(const std::string& uri_scheme);
//TODO: vfuncs?
};
+//TODO: Probably remove these (and others elsewhere) because they will lead to confusion with the regular RefPtr operator==. murrayc.
+
/** @relates Gio::AppInfo */
inline bool operator==(const Glib::RefPtr<AppInfo>& lhs, const Glib::RefPtr<AppInfo>& rhs)
{ return lhs->equal(rhs); }
@@ -139,3 +151,4 @@ inline bool operator!=(const Glib::RefPtr<AppInfo>& lhs, const Glib::RefPtr<AppI
{ return ! lhs->equal(rhs); }
} // namespace Gio
+