Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

appmgr_pdk.h File Reference


Detailed Description

Header file for MAX Application Manager PDK APIs. Contains the PDK API for the application server and its associated client library.

#include <hiker/appmgr.h>

Go to the source code of this file.

Defines

#define ALP_APP_SERVER_TRACE   ALP_TRACE_DEFINE(ALP_CLASS_APPSERVER, 1)
#define ALP_APP_CLIENT_TRACE   ALP_TRACE_DEFINE(ALP_CLASS_APPSERVER, 2)
#define ALP_APP_TEST_TRACE   ALP_TRACE_DEFINE(ALP_CLASS_APPSERVER, 3)
#define ALP_APP_LAUNCHPAD_SCHEME_SIZE   16
#define ALP_APP_LAUNCH_FLAGS_STICKY   (ALP_APP_LAUNCH_FLAG_TRANSIENT | ALP_APP_LAUNCH_FLAG_DEBUG | ALP_APP_LAUNCH_FLAG_LAUNCHPAD)
 These launch flags should always remain set for an.
#define ALP_APP_LAUNCH_FLAGS_DEFAULT   (ALP_APP_LAUNCH_FLAG_NONE)
 This represents the default launchflags for an app. Background run, no debugging, diagnostics, etc.
#define ALP_APP_DIAG_UNEXPECTED_EXIT   "Application quit unexpectedly."
#define ALP_APP_DIAG_CLEAN_EXIT   "Application quit cleanly."
#define ALP_APP_DIAG_MISSING_LAUNCPAD   "Can't find launchpad for scheme, not launching."
#define ALP_APP_NO_DEFAULT_APP   "--no-default-app"
#define ALP_APP_NO_DEFAULTS   "--no-defaults"
#define ALP_APP_NO_DAEMON   "--no-daemon"
#define ALP_APP_DEFAULT_PRIMARY   "--default-primary"

Typedefs

typedef void(* AlpDiagnosticHandler )(const char *appID, const char *diagStr, void *cbData)
typedef void(* AlpThemeUpdateProc )(void)
typedef _AlpAppContext AlpAppContext

Enumerations

enum  AlpAppLaunchFlags {
  ALP_APP_LAUNCH_FLAG_NONE = 0, ALP_APP_LAUNCH_FLAG_DEBUG = (1 << 0), ALP_APP_LAUNCH_FLAG_PRIMARY = (1 << 1), ALP_APP_LAUNCH_FLAG_LAUNCHPAD = (1 << 2),
  ALP_APP_LAUNCH_FLAG_DIAGNOSTIC = (1 << 3), ALP_APP_LAUNCH_FLAG_TRANSIENT = (1 << 4), ALP_APP_LAUNCH_FLAG_ERROR = (1 << 5)
}

Functions

alp_status_t alp_app_launch_full (AlpAppContext *context, const char *appID, int argc, char *const argv[], pid_t *outPID)
 More flexible PDK version of alp_app_launch.
AlpAppContextalp_app_setup (const char *appID, guint32 flags, const char *scheme)
 Sets up a default connection to the application server, & registers the app.
void alp_app_destroy (AlpAppContext *context, int result)
 Unregisters app & closes the connection opened by alp_app_setup().
void alp_app_abandon (AlpAppContext *context)
 Close IPC connection & deallocate context without unregistering with appserver.
void alp_app_set_default_context (AlpAppContext *context)
 Sets the default application context.
void alp_app_register (AlpAppContext *context, const char *appID, guint32 flags, const char *scheme)
 Re-register a relaunched application with the appserver.
alp_status_t alp_app_flush (AlpAppContext *context)
 Ensure appserver has handled any pending messages for the given context.
guint32 alp_app_parse_launch_flags (guint32 launchFlags, int argc, char *const argv[])
 Parse default ALP launch arguments and return a bit flag representation.
void alp_app_set_diagnostic_handler (AlpAppContext *context, AlpDiagnosticHandler procP, void *cbData)
 Set a handler to receive diagnostic messages from appserver.
alp_status_t alp_app_get_jump_list (int *count, char ***appIDs, gboolean **isRunnings)
 Get the current list of applications in the "jump list".
void alp_app_free_argv (int argc, char *argv[])
 Deallocate a dynamically allocated argc/argv style argument list.
void alp_app_debug_break (void)
 Halt execution, fork a new gnome-terminal, and attach gdb to the app.
void alp_app_set_theme_update_proc (AlpAppContext *context, AlpThemeUpdateProc proc)
 Set the procedure used to update the app's theme when a theme update message is received.


Generated on Sat Dec 16 20:29:48 2006 for hiker-0.9 by  doxygen 1.4.4