hn-wm.h File Reference

#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gdk/gdkevents.h>
#include <gtk/gtk.h>
#include <hildon-navigator.h>
#include <hildon-widgets/hildon-defines.h>
#include <hildon-widgets/hildon-banner.h>
#include <hildon-widgets/hildon-note.h>
#include <libosso.h>
#include <log-functions.h>
#include <libmb/mbdotdesktop.h>
#include <libmb/mbutil.h>
#include <dbus/dbus.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <pwd.h>
#include "hn-wm-types.h"
#include "application-switcher.h"
#include "osso-manager.h"
#include "others-menu.h"
#include "hildon-navigator-interface.h"
#include "hn-wm-util.h"
#include "hn-wm-memory.h"
#include "hn-wm-watchable-app.h"
#include "hn-wm-watched-window.h"
#include "hn-wm-watched-window-view.h"

Go to the source code of this file.

Classes

struct  HNWMLaunchBannerInfo
struct  HNWM
struct  view_clean_t
struct  menuitem_comp_t

Defines

#define DBUS_API_SUBJECT_TO_CHANGE
#define HN_WANT_DEBUG   1
#define HN_DBG(x, a...)   fprintf(stderr, __FILE__ ":%d,%s() " x "\n", __LINE__, __func__, ##a)
#define HN_MARK()   HN_DBG("--mark--");
#define DESKTOP_EXEC_FIELD   "Exec"
#define DESKTOP_LAUNCH_FIELD   "X-Osso-Service"
#define DESKTOP_VISIBLE_FIELD   "Name"
#define DESKTOP_ICON_FIELD   "Icon"
#define DESKTOP_SUP_WMCLASS   "StartupWMClass"
#define DESKTOP_STARTUPNOTIFY   "StartupNotify"
#define DESKTOP_SUFFIX   ".desktop"
#define UNKNOWN_TITLE   "Unknown"
#define APP_LAUNCH_BANNER_METHOD_INTERFACE   "com.nokia.tasknav.app_launch_banner"
#define APP_LAUNCH_BANNER_METHOD_PATH   "/com/nokia/tasknav/app_launch_banner"
#define APP_LAUNCH_BANNER_METHOD   "app_launch_banner"
#define APP_LAUNCH_BANNER_MSG_LOADING   "ckct_ib_application_loading"
#define APP_LAUNCH_BANNER_MSG_LOADING_FAILED   "ckct_ib_application_loading_failed"
#define APP_LAUNCH_BANNER_TIMEOUT   20
#define APP_LAUNCH_BANNER_TIMEOUT_LOWMEM   40
#define APP_LAUNCH_BANNER_CHECK_INTERVAL   0.5
#define MAEMO_LAUNCHER_SIGNAL_IFACE   "org.maemo.launcher"
#define MAEMO_LAUNCHER_SIGNAL_PATH   "/org/maemo/launcher"
#define APP_DIED_SIGNAL_NAME   "ApplicationDied"
#define APPKILLER_SIGNAL_INTERFACE   "com.nokia.osso_app_killer"
#define APPKILLER_SIGNAL_PATH   "/com/nokia/osso_app_killer"
#define APPKILLER_SIGNAL_NAME   "exit"
#define LAUNCH_SUCCESS_TIMEOUT   20
#define LOWMEM_PROC_ALLOWED   "/proc/sys/vm/lowmem_allowed_pages"
#define LOWMEM_PROC_USED   "/proc/sys/vm/lowmem_used_pages"
#define LOWMEM_LAUNCH_BANNER_TIMEOUT   0
#define LOWMEM_LAUNCH_BANNER_TIMEOUT_MAX   60000
#define LOWMEM_LAUNCH_BANNER_TIMEOUT_ENV   "NAVIGATOR_LOWMEM_LAUNCH_BANNER_TIMEOUT"
#define LOWMEM_TIMEOUT_MULTIPLIER_ENV   "NAVIGATOR_LOWMEM_TIMEOUT_MULTIPLIER"
#define LOWMEM_TIMEOUT_MULTIPLIER   2
#define LOWMEM_LAUNCH_THRESHOLD_DISTANCE   2500
#define LOWMEM_LAUNCH_THRESHOLD_DISTANCE_ENV   "NAVIGATOR_LOWMEM_LAUNCH_THRESHOLD_DISTANCE"
#define KILL_DELAY   2000
#define KILL_DELAY_LOWMEM   4000

Functions

HNWM * hn_wm_get_singleton (void)
void hn_wm_top_view (GtkMenuItem *menuitem)
gboolean hn_wm_top_service (const gchar *service_name)
void hn_wm_top_desktop (void)
HNWMWatchedWindow * hn_wm_lookup_watched_window_via_service (const gchar *service_name)
HNWMWatchedWindow * hn_wm_lookup_watched_window_via_menu_widget (GtkWidget *menu_widget)
HNWMWatchableApp * hn_wm_lookup_watchable_app_via_service (const gchar *service_name)
HNWMWatchableApp * hn_wm_lookup_watchable_app_via_exec (const gchar *exec_name)
HNWMWatchableApp * hn_wm_lookup_watchable_app_via_menu (GtkWidget *menu)
HNWMWatchedWindow * hn_wm_lookup_watched_window_view (GtkWidget *menu_widget)
gchar * hn_wm_compute_watched_window_hibernation_key (Window xwin, HNWMWatchableApp *app)
gboolean hn_wm_init (ApplicationSwitcher_t *as)


Detailed Description


Function Documentation

void hn_wm_top_desktop void   ) 
 

Requests the real window manager to top the desktop

gboolean hn_wm_top_service const gchar *  service_name  ) 
 

Send 'top' request for a certain service

Parameters:
service_name The name of the service that is to be topped

void hn_wm_top_view GtkMenuItem *  menuitem  ) 
 

Send 'top' request for a certain existing window/view

Parameters:
menuitem The menuitem for the view/window that is to be topped.


Generated on Fri Jun 9 16:23:22 2006 for maemo-af-desktop-documentation by  doxygen 1.4.6