scribble/src/pagebar.c File Reference

scribble - pagebar interface with scribble More...

#include <liberipc/eripc.h>
#include <liberipc/eripcpagebar.h>
#include "ScribbleIPC.h"
#include "ScribbleLog.h"

Go to the source code of this file.

Functions

void pagebar_init ()
void pagebar_goto_page (int page)
void pagebar_set_pagecount (int count)
void pagebar_redraw ()

Variables

static erClientChannel_t erPagebarChannel


Detailed Description

scribble - pagebar interface with scribble

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Author:
Jian Shen
<File description>="">

Definition in file pagebar.c.


Function Documentation

void pagebar_goto_page ( int  page  ) 

Request from scribble to goto page

Parameters:
page - page to go to
Returns:
-

Definition at line 55 of file pagebar.c.

00056 {
00057     SB_PAGEBARPRINTF("entry %d\n", page);
00058     pbSetCurrentPage(erPagebarChannel, ER_SCRIBBLE_UA_ID, page);
00059 }

void pagebar_init (  ) 

Open communication channel with pageBar deamon counts on the fact that pageBar is running

Returns:
void

Definition at line 41 of file pagebar.c.

00042 {
00043     int iRet=-1;
00044     SB_PAGEBARPRINTF("entry\n");
00045     iRet=erIpcStartClient(ER_PAGEBAR_CHANNEL, &erPagebarChannel);
00046     if (iRet != 0)
00047     {
00048         SB_ERRORPRINTF("erIpcStartClient returned %d\n", iRet);
00049         return;
00050     }
00051     pbReset(erPagebarChannel, ER_SCRIBBLE_UA_ID);
00052 }

void pagebar_redraw (  ) 

Request from contentLister to redraw pagebar

Parameters:
- 
Returns:
-

Definition at line 69 of file pagebar.c.

00070 {
00071     SB_PAGEBARPRINTF("redraw\n");
00072     pbRedraw(erPagebarChannel, ER_SCRIBBLE_UA_ID);
00073 }

void pagebar_set_pagecount ( int  count  ) 

Request from browser to set number of pages

Parameters:
count - number of pages in current view
Returns:
-

Definition at line 62 of file pagebar.c.

00063 {
00064     SB_PAGEBARPRINTF("entry %d\n", count);
00065     pbSetPageCount(erPagebarChannel, ER_SCRIBBLE_UA_ID, count);
00066 }


Variable Documentation

erClientChannel_t erPagebarChannel [static]

Definition at line 38 of file pagebar.c.


Generated on Sun Dec 14 17:14:38 2008 by  doxygen 1.5.6