connectionMgr/src/toolbar.c File Reference

connectionMgr - toolbar More...

#include <glib.h>
#include <liberipc/eripc.h>
#include <liberipc/eripctoolbar.h>
#include <liberipc/eripcconnect.h>
#include "connectionMgrLog.h"
#include "toolbar.h"

Go to the source code of this file.

Functions

static void toolbar_init_icons (void)
void toolbar_init ()
void toolbar_disableUpdate ()
void toolbar_enableUpdate ()
void toolbar_setIconState (int iconID, int iconState)
void toolbar_synchronise (void)

Variables

static erClientChannel_t toolbarChannel


Detailed Description

connectionMgr - toolbar

Copyright (C) 2007 iRex Technologies BV.

Definition in file toolbar.c.


Function Documentation

void toolbar_disableUpdate (  ) 

Definition at line 87 of file toolbar.c.

00088 {
00089     CN_LOGPRINTF("entry");
00090 
00091     tbDisableUpdate(toolbarChannel, ER_CONTENT_LISTER_UA_ID);
00092 }

Here is the call graph for this function:

void toolbar_enableUpdate (  ) 

Definition at line 95 of file toolbar.c.

00096 {
00097     CN_LOGPRINTF("entry");
00098 
00099     tbEnableUpdate(toolbarChannel, ER_CONTENT_LISTER_UA_ID);
00100 }

Here is the call graph for this function:

void toolbar_init ( void   ) 

Definition at line 39 of file toolbar.c.

00040 {
00041     int returnValue;
00042 
00043     CN_LOGPRINTF("entry");
00044     
00045     // create/init the channel to communicate with the toolbar service
00046     returnValue = erIpcStartClient(ER_TOOLBAR_CHANNEL, &toolbarChannel);
00047 
00048     if (returnValue != 0)
00049     {
00050         CN_WARNPRINTF("erIpcStartClient returned %d", returnValue);
00051         return;
00052     }
00053 
00054     toolbar_init_icons();
00055 }

Here is the call graph for this function:

static void toolbar_init_icons ( void   )  [static]

Definition at line 57 of file toolbar.c.

00058 {
00059     // freeze toolbar layout
00060     tbDisableUpdate(toolbarChannel, ER_CONNECT_UA_ID);
00061 
00062     // tell toolbar which iconset to display
00063     tbSelectIconSet(toolbarChannel, ER_CONNECT_UA_ID);
00064 
00065     // clear the toolbar 
00066     tbClearIconSet(toolbarChannel, ER_CONNECT_UA_ID);
00067 
00068     tbAppendPlatformIcon(toolbarChannel, ER_CONNECT_UA_ID, 
00069                          iconID_back, ccCnToolbar);
00070     tbSetStatePlatformIcon(toolbarChannel, ER_CONNECT_UA_ID, 
00071                            iconID_back, iconState_grey);
00072 
00073     // set the system icons
00074     tbAppendPlatformIcon(toolbarChannel, ER_CONNECT_UA_ID, 
00075                          iconID_trashcan, ccCnToolbar);
00076     toolbar_setIconState(iconID_trashcan, iconState_grey);
00077 
00078     tbAppendPlatformIcon(toolbarChannel, ER_CONNECT_UA_ID, 
00079                          iconID_keyboard, ccCnToolbar);
00080     toolbar_setIconState(iconID_keyboard, iconState_grey);
00081 
00082     // redraw toolbar now
00083     tbEnableUpdate(toolbarChannel, ER_CONNECT_UA_ID);
00084 }

Here is the call graph for this function:

void toolbar_setIconState ( int  iconID,
int  iconState 
)

Definition at line 103 of file toolbar.c.

00104 {
00105     CN_LOGPRINTF("entry: iconID [%d] iconState [%d]", iconID, iconState);
00106     
00107     tbSetStatePlatformIcon(toolbarChannel, ER_CONNECT_UA_ID, 
00108                            iconID, iconState);
00109 }

Here is the call graph for this function:

void toolbar_synchronise ( void   ) 

Definition at line 111 of file toolbar.c.

00112 {
00113     CN_LOGPRINTF("entry");
00114 
00115     tbSynchronise(toolbarChannel, ER_CONNECT_UA_ID, ccCnToolbarSync);
00116 }

Here is the call graph for this function:


Variable Documentation

Definition at line 35 of file toolbar.c.


Generated on Sun Dec 14 17:16:44 2008 by  doxygen 1.5.6