Tizen 2.1 base
[platform/upstream/glib2.0.git] / gio / gdesktopappinfo.h
index 48c9693..fcc41ed 100644 (file)
@@ -50,12 +50,21 @@ GDesktopAppInfo *g_desktop_app_info_new_from_keyfile  (GKeyFile        *key_file
 
 const char *     g_desktop_app_info_get_filename      (GDesktopAppInfo *info);
 
+const char *     g_desktop_app_info_get_generic_name  (GDesktopAppInfo *info);
+const char *     g_desktop_app_info_get_categories    (GDesktopAppInfo *info);
+const char * const *g_desktop_app_info_get_keywords   (GDesktopAppInfo *info);
+gboolean         g_desktop_app_info_get_nodisplay     (GDesktopAppInfo *info);
+gboolean         g_desktop_app_info_get_show_in       (GDesktopAppInfo *info,
+                                                       const gchar     *desktop_env);
+
 GDesktopAppInfo *g_desktop_app_info_new               (const char      *desktop_id);
 gboolean         g_desktop_app_info_get_is_hidden     (GDesktopAppInfo *info);
 
 void             g_desktop_app_info_set_desktop_env   (const char      *desktop_env);
 
 
+#ifndef G_DISABLE_DEPRECATED
+
 #define G_TYPE_DESKTOP_APP_INFO_LOOKUP           (g_desktop_app_info_lookup_get_type ())
 #define G_DESKTOP_APP_INFO_LOOKUP(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_DESKTOP_APP_INFO_LOOKUP, GDesktopAppInfoLookup))
 #define G_IS_DESKTOP_APP_INFO_LOOKUP(obj)       (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_DESKTOP_APP_INFO_LOOKUP))
@@ -69,6 +78,8 @@ void             g_desktop_app_info_set_desktop_env   (const char      *desktop_
  */
 #define G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME "gio-desktop-app-info-lookup"
 
+#endif /* G_DISABLE_DEPRECATED */
+
 /**
  * GDesktopAppInfoLookup:
  *
@@ -86,11 +97,38 @@ struct _GDesktopAppInfoLookupIface
                                              const char            *uri_scheme);
 };
 
+GLIB_DEPRECATED
 GType     g_desktop_app_info_lookup_get_type                   (void) G_GNUC_CONST;
 
+GLIB_DEPRECATED
 GAppInfo *g_desktop_app_info_lookup_get_default_for_uri_scheme (GDesktopAppInfoLookup *lookup,
                                                                 const char            *uri_scheme);
 
+/**
+ * GDesktopAppLaunchCallback:
+ * @appinfo: a #GDesktopAppInfo
+ * @pid: Process identifier
+ * @user_data: User data
+ *
+ * During invocation, g_desktop_app_info_launch_uris_as_manager() may
+ * create one or more child processes.  This callback is invoked once
+ * for each, providing the process ID.
+ */
+typedef void (*GDesktopAppLaunchCallback) (GDesktopAppInfo  *appinfo,
+                                          GPid              pid,
+                                          gpointer          user_data);
+
+gboolean    g_desktop_app_info_launch_uris_as_manager (GDesktopAppInfo            *appinfo,
+                                                      GList                      *uris,
+                                                      GAppLaunchContext          *launch_context,
+                                                      GSpawnFlags                 spawn_flags,
+                                                      GSpawnChildSetupFunc        user_setup,
+                                                      gpointer                    user_setup_data,
+                                                      GDesktopAppLaunchCallback   pid_callback,
+                                                      gpointer                    pid_callback_data,
+                                                      GError                    **error);
+
+
 G_END_DECLS
 
 #endif /* __G_DESKTOP_APP_INFO_H__ */