00001 /* 00002 * This file is part of contentLister. 00003 * 00004 * contentLister 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 * contentLister 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 00026 /* browser - A mozilla based browser application on the eReader platform 00027 * Copyright (C) 2005-2008 iRex Technologies B.V. 00028 * 00029 */ 00030 00031 #ifndef __EREADER_TOOLBAR_H__ 00032 #define __EREADER_TOOLBAR_H__ 00033 00034 // 00035 // Init toolbar (open communication channel and enable/set the correct icons) 00036 void toolbar_init(void); 00037 00038 // Restore toolbar (restore CTL icons after application switch) 00039 void toolbar_restore(); 00040 00041 // Clear all toolbar icons 00042 void toolbar_clear(void); 00043 00044 // Freeze toolbar layout 00045 void toolbar_disableUpdate(void); 00046 00047 // Redraw toolbar now 00048 void toolbar_enableUpdate(void); 00049 00050 // Change state of a toolbar icon 00051 void toolbar_setIconState(int iconID, int iconState); 00052 00053 // Synchronise with toolbar application 00054 void toolbar_synchronise(void); 00055 00056 // Request state of a toolbar icon 00057 gboolean toolbar_is_trashcan_selected(void); 00058 gboolean toolbar_is_locked_selected(void); 00059 gboolean toolbar_is_tagging_selected(void); 00060 gboolean toolbar_is_search_selected(void); 00061 00062 #endif //__EREADER_TOOLBAR_H__ 00063 00064 00065 00066