00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings 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 * settings 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 00031 #include <liberipc/eripc.h> 00032 #include <liberipc/eripcpagebar.h> 00033 00034 #include "setupLog.h" 00035 00036 00037 static erClientChannel_t erPagebarChannel; 00038 00039 // Init the IPC client 00040 void pagebar_init() 00041 { 00042 ST_IPCPRINTF("entry"); 00043 erIpcStartClient(ER_PAGEBAR_CHANNEL, &erPagebarChannel); 00044 } 00045 00046 // Reset the pageBar for use with setup 00047 void pagebar_reset() 00048 { 00049 ST_IPCPRINTF("entry"); 00050 pbReset(erPagebarChannel, ER_SETUP_UA_ID); 00051 } 00052 00053 // Goto new page 00054 void pagebar_goto_page(int page) 00055 { 00056 ST_IPCPRINTF("entry %d", page); 00057 pbSetCurrentPage(erPagebarChannel, ER_SETUP_UA_ID, page); 00058 } 00059 00060 // Set page count 00061 void pagebar_set_pagecount(int count) 00062 { 00063 ST_IPCPRINTF("entry %d", count); 00064 pbSetPageCount(erPagebarChannel, ER_SETUP_UA_ID, count); 00065 00066 } 00067 00068 // Redraw pagebar 00069 void pagebar_redraw() 00070 { 00071 ST_IPCPRINTF("redraw"); 00072 pbRedraw(erPagebarChannel, ER_SETUP_UA_ID); 00073 } 00074 00075 // That's all for now...
1.5.6