LauncherAppman

LauncherAppman — Singleton object designed to cache and hold LauncherApplication objects

Synopsis

#include <launcher-appman.h>

                    LauncherAppman;
LauncherAppman *    launcher_appman_get_default         (void);
LauncherApplication * launcher_appman_get_application_for_desktop_file
                                                        (LauncherAppman *appman,
                                                         const gchar *desktop);
LauncherApplication * launcher_appman_get_application_for_wnck_window
                                                        (LauncherAppman *appman,
                                                         WnckWindow *wnck_window);
GSequence *         launcher_appman_get_applications    (LauncherAppman *appman);
gint                launcher_appman_add_file_watch      (LauncherAppman *appman,
                                                         const gchar *path);
void                launcher_appman_rm_file_watch       (LauncherAppman *appman,
                                                         gint wd);
void                launcher_appman_set_enable_window_checking
                                                        (LauncherAppman *appman,
                                                         gboolean enable_window_matching);
gboolean            launcher_appman_get_enable_window_checking
                                                        (LauncherAppman *appman);

Description

LauncherAppman is a singleton that will serve as a single point of entry for creating LauncherApplication objects, all LauncherApplication objects should be requested from this cache by providing a desktop file to the application you wish to create.

Details

LauncherAppman

typedef struct {
  GObject parent_instance;

  /* private */
  LauncherAppmanPrivate   *priv;
} LauncherAppman;


launcher_appman_get_default ()

LauncherAppman *    launcher_appman_get_default         (void);

Returns the default LauncherAppman singleton

Returns :

A LauncherApppman Object

launcher_appman_get_application_for_desktop_file ()

LauncherApplication * launcher_appman_get_application_for_desktop_file
                                                        (LauncherAppman *appman,
                                                         const gchar *desktop);

Provides a method for accessing LauncherApplication objects by providing a desktop file

appman :

A LauncherAppman object

desktop :

A String path to the desktop file

Returns :

A LauncherApplication object or NULL

launcher_appman_get_application_for_wnck_window ()

LauncherApplication * launcher_appman_get_application_for_wnck_window
                                                        (LauncherAppman *appman,
                                                         WnckWindow *wnck_window);

appman :

wnck_window :

Returns :


launcher_appman_get_applications ()

GSequence *         launcher_appman_get_applications    (LauncherAppman *appman);

returns a GSequence object that contains all the applications in the current cache

appman :

a LauncherAppman object

Returns :

An unowned GSequence of LauncherApplication objects. transfer none.

launcher_appman_add_file_watch ()

gint                launcher_appman_add_file_watch      (LauncherAppman *appman,
                                                         const gchar *path);

Adds a watch on the specified file at file path, will watch for modifications to the file.

appman :

a LauncherAPpman object

path :

Returns :

an integer watch descriptor or 0 if failed

launcher_appman_rm_file_watch ()

void                launcher_appman_rm_file_watch       (LauncherAppman *appman,
                                                         gint wd);

removes the given wd the watch

appman :

a LauncherAPpman object

wd :

the integer watch descriptor

launcher_appman_set_enable_window_checking ()

void                launcher_appman_set_enable_window_checking
                                                        (LauncherAppman *appman,
                                                         gboolean enable_window_matching);

appman :

enable_window_matching :


launcher_appman_get_enable_window_checking ()

gboolean            launcher_appman_get_enable_window_checking
                                                        (LauncherAppman *appman);

appman :

Returns :