00001 /* 00002 * This file is part of connectionMgr. 00003 * 00004 * connectionMgr is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * connectionMgr is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00028 #include <liberipc/eripc.h> 00029 #include <liberipc/eripcpagebar.h> 00030 00031 #include "connectionMgrLog.h" 00032 00033 00034 static erClientChannel_t erPagebarChannel; 00035 00036 // Init the IPC client 00037 void pagebar_init() 00038 { 00039 CN_IPCPRINTF("entry"); 00040 erIpcStartClient(ER_PAGEBAR_CHANNEL, &erPagebarChannel); 00041 } 00042 00043 // Reset the pageBar for use with setup 00044 void pagebar_reset() 00045 { 00046 CN_IPCPRINTF("entry"); 00047 pbReset(erPagebarChannel, ER_CONNECT_UA_ID); 00048 } 00049 00050 // Goto new page 00051 void pagebar_goto_page(int page) 00052 { 00053 CN_IPCPRINTF("entry: page = %d", page); 00054 pbSetCurrentPage(erPagebarChannel, ER_CONNECT_UA_ID, page); 00055 } 00056 00057 // Set page count 00058 void pagebar_set_pagecount(int count) 00059 { 00060 CN_IPCPRINTF("entry: count = %d", count); 00061 pbSetPageCount(erPagebarChannel, ER_CONNECT_UA_ID, count); 00062 00063 } 00064 00065 // Redraw pagebar 00066 void pagebar_redraw() 00067 { 00068 CN_IPCPRINTF("redraw"); 00069 pbRedraw(erPagebarChannel, ER_CONNECT_UA_ID); 00070 } 00071