Main Page | Directories | File List | File Members

osso-manager.h File Reference

#include <libosso.h>
#include <X11/Xlib.h>
#include "hildon-navigator.h"

Go to the source code of this file.

Defines

#define APP_NAME_LEN   64
#define OSSO_BUS_ROOT   "com.nokia"
#define OSSO_BUS_ROOT_PATH   "/com/nokia"
#define OSSO_BUS_TOP   "top_application"
#define TASKNAV   "tasknav"
#define TASKNAV_VERSION   "0.1"
#define METHOD_NAME_LEN   64
#define SERVICE_PREFIX   "com.nokia."
#define SERVICE_NAME_LEN   255
#define PATH_NAME_LEN   255
#define INTERFACE_NAME_LEN   255
#define TMP_NAME_LEN   255
#define DBUS_BUF_SIZE   128

Typedefs

typedef osso_manager osso_manager_t
typedef int( tasknav_cb_f )(GArray *arguments, gpointer data)
typedef osso_method osso_method

Functions

osso_manager_t * osso_manager_singleton_get_instance (void)
void add_method_cb (osso_manager_t *manager, const gchar *methodname, tasknav_cb_f *method, gpointer data)
void osso_manager_launch (osso_manager_t *man, const gchar *app, const gchar *launch_data)
void osso_manager_infoprint (osso_manager_t *man, const gchar *message)
void osso_manager_set_window (osso_manager_t *man, Window win)
int is_service_running (const char *service)
osso_context_t * get_context (osso_manager_t *man)


Detailed Description


Typedef Documentation

typedef int( tasknav_cb_f)(GArray *arguments, gpointer data)
 

Call back function pointer type used by plugins to listen to the messages from DBUS.

Parameters:
arguments The argument table from DBUS as specified un libosso.h
data The data pointer passed to the add_method_cb
Returns:
0 on success, -1 on error


Function Documentation

void add_method_cb osso_manager_t *  manager,
const gchar *  methodname,
tasknav_cb_f method,
gpointer  data
 

Used by plugins to add a listener method for DBUS messags.

Parameters:
manager Osso manager as returned by osso_manager_singleton_get_instance
methodname The name of the method visible to the DBUS
method A pointer to the callback method to call.
data A data pointer to be passed to the method called

osso_context_t* get_context osso_manager_t *  man  ) 
 

Getter for the osso context

int is_service_running const char *  service  ) 
 

Check if a service given is connected to D-BUS

void osso_manager_infoprint osso_manager_t *  man,
const gchar *  message
 

Routine to print an infoprint trough osso

void osso_manager_launch osso_manager_t *  man,
const gchar *  app,
const gchar *  launch_data
 

Routine to launch applications

void osso_manager_set_window osso_manager_t *  man,
Window  win
 

Method to set the x window to be used by the osso manager

osso_manager_t* osso_manager_singleton_get_instance void   ) 
 

Returns a global instance of the osso manager.


Generated on Thu Dec 21 11:26:53 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2