applet-manager.h File Reference

#include <X11/Xlib.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "home-applet-handler.h"

Go to the source code of this file.

Classes

struct  applet_manager

Defines

#define APPLET_MANAGER_CONFIGURE_FILE   "applet_manager.conf"
#define APPLET_MANAGER_FACTORY_PATH   "/etc/hildon-home"
#define APPLET_MANAGER_USER_PATH   ".osso/hildon-home"
#define APPLET_MANAGER_ENV_HOME   "HOME"

Typedefs

typedef applet_manager applet_manager_t

Functions

applet_manager_t * applet_manager_singleton_get_instance (void)
void applet_manager_initialize (applet_manager_t *man, gchar *librarypath, gchar *desktoppath, gint applet_x, gint applet_y)
void applet_manager_initialize_new (applet_manager_t *man, gchar *desktoppath)
void applet_manager_deinitialize_handler (applet_manager_t *man, HomeAppletHandler *handler)
void applet_manager_deinitialize (applet_manager_t *man, gchar *identifier)
void applet_manager_deinitialize_all (applet_manager_t *man)
void applet_manager_configure_save_all (applet_manager_t *man)
void applet_manager_configure_load_all (applet_manager_t *man)
void applet_manager_foreground_handler (applet_manager_t *man, HomeAppletHandler *handler)
void applet_manager_foreground (applet_manager_t *man, gchar *identifier)
void applet_manager_foreground_all (applet_manager_t *man)
void applet_manager_foreground_configure_all (applet_manager_t *man)
void applet_manager_state_save_handler (applet_manager_t *man, HomeAppletHandler *handler, void *state_data, int *state_size)
void applet_manager_state_save (applet_manager_t *man, gchar *identifier, void *state_data, int *state_size)
void applet_manager_state_save_all (applet_manager_t *man)
void applet_manager_background_handler (applet_manager_t *man, HomeAppletHandler *handler)
void applet_manager_background (applet_manager_t *man, gchar *identifier)
void applet_manager_background_all (applet_manager_t *man)
void applet_manager_background_state_save_all (applet_manager_t *man)
HomeAppletHandler * applet_manager_get_handler (applet_manager_t *man, gchar *identifier)
GList * applet_manager_get_handler_all (applet_manager_t *man)
GtkEventBox * applet_manager_get_eventbox_handler (applet_manager_t *man, HomeAppletHandler *handler)
GtkEventBox * applet_manager_get_eventbox (applet_manager_t *man, gchar *identifier)
GtkWidget * applet_manager_get_settings_handler (applet_manager_t *man, HomeAppletHandler *handler, GtkWindow *parent)
GtkWidget * applet_manager_get_settings (applet_manager_t *man, gchar *identifier, GtkWindow *parent)
gchar * applet_manager_get_identifier_handler (applet_manager_t *man, HomeAppletHandler *handler)
GList * applet_manager_get_identifier_all (applet_manager_t *man)
void applet_manager_set_coordinates_handler (applet_manager_t *man, HomeAppletHandler *handler, gint x, gint y)
void applet_manager_set_coordinates (applet_manager_t *man, gchar *identifier, gint x, gint y)
void applet_manager_get_coordinates_handler (applet_manager_t *man, HomeAppletHandler *handler, gint *x, gint *y)
void applet_manager_get_coordinates (applet_manager_t *man, gchar *identifier, gint *x, gint *y)
gboolean applet_manager_identifier_exists (applet_manager_t *man, gchar *identifier)


Detailed Description


Function Documentation

void applet_manager_background applet_manager_t *  man,
gchar *  identifier
 

applet_manager_background

Backgrounds given applet

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance

void applet_manager_background_all applet_manager_t *  man  ) 
 

applet_manager_background_all

Backgrounds all applets

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_background_handler applet_manager_t *  man,
HomeAppletHandler *  handler
 

applet_manager_background_handler

Backgrounds given applet

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet

void applet_manager_background_state_save_all applet_manager_t *  man  ) 
 

applet_manager_background_state_save_all

State saves and backgrounds all applets

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_configure_load_all applet_manager_t *  man  ) 
 

applet_manager_configure_load_all

Read all applets' configured location information and relocate them accordingly

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_configure_save_all applet_manager_t *  man  ) 
 

applet_manager_configure_save_all

Saves all applets' location information to configure file

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_deinitialize applet_manager_t *  man,
gchar *  identifier
 

applet_manager_deinitialize

Deinitializes given applet from manager

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance

void applet_manager_deinitialize_all applet_manager_t *  man  ) 
 

applet_manager_deinitialize_all

Deinitializes all applets from manager

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_deinitialize_handler applet_manager_t *  man,
HomeAppletHandler *  handler
 

applet_manager_deinitialize_handler

Deinitializes given applet from manager

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet

void applet_manager_foreground applet_manager_t *  man,
gchar *  identifier
 

applet_manager_foreground

Foregrounds given applet

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance

void applet_manager_foreground_all applet_manager_t *  man  ) 
 

applet_manager_foreground_all

Foregrounds all applets

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_foreground_configure_all applet_manager_t *  man  ) 
 

applet_manager_foreground_configure_all

Loads configured location information and foregrounds all applets

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_foreground_handler applet_manager_t *  man,
HomeAppletHandler *  handler
 

applet_manager_foreground_handler

Foregrounds given applet

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet

void applet_manager_get_coordinates applet_manager_t *  man,
gchar *  identifier,
gint *  x,
gint *  y
 

applet_manager_get_coordinates

Gets given applet's coordinates

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance
x storage place where x coordinate is saved
y storage place where x coordinate is saved

void applet_manager_get_coordinates_handler applet_manager_t *  man,
HomeAppletHandler *  handler,
gint *  x,
gint *  y
 

applet_manager_get_coordinates_handler

Gets given applet's coordinates

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet
x storage place where x coordinate is saved
y storage place where x coordinate is saved

GtkEventBox* applet_manager_get_eventbox applet_manager_t *  man,
gchar *  identifier
 

applet_manager_get_eventbox

Retrieves given applet's eventbox

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance
Returns:
eventbox of applet

GtkEventBox* applet_manager_get_eventbox_handler applet_manager_t *  man,
HomeAppletHandler *  handler
 

applet_manager_get_eventbox_handler

Retrieves given applet's eventbox

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet
Returns:
eventbox of applet

HomeAppletHandler* applet_manager_get_handler applet_manager_t *  man,
gchar *  identifier
 

applet_manager_get_handler

Returns applet handler

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance
Returns:
applet handler

GList* applet_manager_get_handler_all applet_manager_t *  man  ) 
 

applet_manager_get_handler_all

Returns list of applet handles

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
Returns:
applet list

GList* applet_manager_get_identifier_all applet_manager_t *  man  ) 
 

applet_manager_get_identifier_all

Retrieves list of used applet desktop file filepaths

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
@ return list of unique identiers of applet instances

gchar* applet_manager_get_identifier_handler applet_manager_t *  man,
HomeAppletHandler *  handler
 

applet_manager_get_identifier_handler

Retrieves given applet identifier which is same as desktop file filepath

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet
@ return Unique identier of applet instance

GtkWidget* applet_manager_get_settings applet_manager_t *  man,
gchar *  identifier,
GtkWindow *  parent
 

applet_manager_get_settings

Retrieves given applet's menu item widget

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance
parent a parent window.
Returns:
menu item widget connected to settings of applet

GtkWidget* applet_manager_get_settings_handler applet_manager_t *  man,
HomeAppletHandler *  handler,
GtkWindow *  parent
 

applet_manager_get_settings_handler

Retrieves given applet's menu item widget

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet
parent a parent window.
Returns:
menu item widget connected to settings of applet

gboolean applet_manager_identifier_exists applet_manager_t *  man,
gchar *  identifier
 

applet_manager_identifier_exists

Checks existence of identifier

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance
Returns:
TRUE if identifier exists

void applet_manager_initialize applet_manager_t *  man,
gchar *  librarypath,
gchar *  desktoppath,
gint  applet_x,
gint  applet_y
 

applet_manager_initialize

Initializes applet and adds it to manager

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
librarypath File path for .so implementing applet instance
desktoppath File path for .desktop defining applet instance
applet_x new x coordinate
applet_y new y coordinate

void applet_manager_initialize_new applet_manager_t *  man,
gchar *  desktoppath
 

applet_manager_initialize_new

Initializes applet from desktopfile

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
desktoppath File path for .desktop defining applet instance

void applet_manager_set_coordinates applet_manager_t *  man,
gchar *  identifier,
gint  x,
gint  y
 

applet_manager_set_coordinates

Sets given applet's coordinates

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance
x new x coordinate
y new y coordinate

void applet_manager_set_coordinates_handler applet_manager_t *  man,
HomeAppletHandler *  handler,
gint  x,
gint  y
 

applet_manager_set_coordinates_handler

Sets given applet's coordinates

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet
x new x coordinate
y new y coordinate

applet_manager_t* applet_manager_singleton_get_instance void   ) 
 

applet_manager_singleton_get_instance

If no instance exists, creates instance.

Returns:
a global instance of the applet manager. Should never be freed.

void applet_manager_state_save applet_manager_t *  man,
gchar *  identifier,
void *  state_data,
int *  state_size
 

applet_manager_statesave

State saves given applet

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
identifier Unique identier of applet instance

void applet_manager_state_save_all applet_manager_t *  man  ) 
 

applet_manager_state_save_all

State saves all applets

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance

void applet_manager_state_save_handler applet_manager_t *  man,
HomeAppletHandler *  handler,
void *  state_data,
int *  state_size
 

applet_manager_statesave_handler

State saves given applet

Parameters:
man Applet manager as returned by applet_manager_singleton_get_instance
handler Applet handler containing all information about applet


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