notepad_ipc.cpp File Reference

#include <cstdio>
#include <cstring>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <gconf/gconf-client.h>
#include <liberipc/eripc.h>
#include <liberipc/eripc_support.h>
#include <liberutils/er_error.h>
#include <liberscribble/scb.h>
#include "config.h"
#include "i18n.h"
#include "log.h"
#include "notepad_window.h"
#include "notepad_utils.h"
#include "notepad_ipc.h"
Include dependency graph for notepad_ipc.cpp:

Go to the source code of this file.

Namespaces

namespace  notepad

Functions

static void notepad::ipc_gconf_initialize (void)
static void notepad::ipc_gconf_read (void)
static void notepad::ipc_gconf_write (void)
static void notepad::ipc_gconf_finalize (void)
static void notepad::ipc_menu_update_toolbar (void)
static void notepad::menu_show (void)
static void notepad::menu_set_text (void)
static gboolean notepad::ipc_status_set_stylus (const char *state)
static void notepad::on_page_change (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_window_activated (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_window_deactivated (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_menu_item (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_changed_locale (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_changed_pen (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_prepare_unmount (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_volume_unmounted (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_prepare_standby (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
static void notepad::on_changed_orientation (eripc_context_t *context, const eripc_event_info_t *info, void *user_data)
gboolean notepad::ipc_set_services (void)
 Setup IPC connection and register API functions.
void notepad::ipc_unset_services (void)
 Unregister API functions.
gboolean notepad::ipc_sys_busy (gboolean busy)
 Send message sysSetBusy to system daemon.
gboolean notepad::ipc_sys_bg_busy (gboolean busy)
 Send message sysSetBgBusy to system daemon to set the busy LED indication.
const char * notepad::ipc_get_mountpoint ()
void notepad::ipc_sys_startup_complete (int xid)
 Report "settings started" to sysd.
void notepad::ipc_change_filename (const gchar *filename, const gchar *label)
PenSize notepad::ipc_get_pensize (void)
void notepad::ipc_set_pensize (const PenSize new_pensize)
np_rotation notepad::ipc_get_rotation (void)
void notepad::ipc_menu_set_pagecounter (int cur_page, int num_pages)
void notepad::menu_init (int pid, gpointer appwindow)
void notepad::menu_destroy ()
 Remove the popup menus.
void notepad::menu_block (gboolean block)
gboolean notepad::ipc_sys_is_pageturn_inverted (void)
 Query sysd if pageturning is inverted.
gboolean notepad::ipc_sys_is_in_portrait_mode (void)
 Query sysd if device in portrait mode.

Variables

static eripc_client_context_tnotepad::eripcClient = 0
static int notepad::g_xid = 0
static notepad::CNotepadWindownotepad::gInstance = 0
static GConfClient * notepad::gClient = 0
static PenSize notepad::gPensize = GCONF_DEFAULT_PEN_SIZE
static gchar notepad::gMountpoint [88]
static const char * notepad::MENU = "notepad_menu"
static const char * notepad::ipc_menu = NULL
static const char * notepad::GROUP_PEN_TYPE = "notepad_pen_types"
static const char * notepad::ITEM_PEN = "pen"
static const char * notepad::ITEM_ERASER = "eraser"
static const char * notepad::GROUP_PEN = "notepad_pen"
static const char * notepad::GROUP_PEN2 = "notepad_pen2"
static const char * notepad::GROUP_PEN_SIZE = "notepad_pen_size"
static const char * notepad::ITEM_PEN_FINE = "pen_fine"
static const char * notepad::ITEM_PEN_SMALL = "pen_small"
static const char * notepad::ITEM_PEN_MEDIUM = "pen_medium"
static const char * notepad::ITEM_PEN_LARGE = "pen_large"
static const char * notepad::ITEM_PEN_XLARGE = "pen_xlarge"
static const char * notepad::GROUP_ACTIONS = "notepad_actions"
static const char * notepad::ITEM_ACTION_GOTOPAGE = "goto_page"
static const char * notepad::ITEM_ACTION_INSERTPAGE = "insert_page"
static const char * notepad::ITEM_ACTION_DELETEPAGE = "delete_page"
static const char * notepad::ITEM_ACTION_CLEARPAGE = "clear_page"
static const char * notepad::ITEM_ACTION_RENAME = "rename"
static const char * notepad::MENU_STATE_NORMAL = "normal"
static const char * notepad::MENU_STATE_SELECTED = "selected"
static const char * notepad::MENU_STATE_DISABLED = "disabled"
static const char * notepad::STYLUS_PEN = "pen"
static const char * notepad::STYLUS_ERASER = "eraser"
static eripc_callback_function_t notepad::service_functions []
Generated by  doxygen 1.6.2-20100208