00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00026
00027
00028
00029
00030
00031
00032 #ifndef _ERIPCTOOLBAR_H_
00033 #define _ERIPCTOOLBAR_H_
00034
00035 #include "eripcclient.h"
00036
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040
00041
00042
00043 typedef enum {
00044 ccTbAppendPlatformIcon = 0,
00045 ccTbRemovePlatformIcon,
00046 ccTbSetStatePlatformIcon,
00047 ccTbDisableUpdate,
00048 ccTbEnableUpdate,
00049 ccTbSelectIconSet,
00050 ccTbClearIconSet,
00051 ccTbSynchronise,
00052 ccUndefined
00053 } eCcTb;
00054
00055
00056 #define ICON_ID_NOTUSED (-1)
00057 typedef enum
00058 {
00059 iconID_battery = 0,
00060 iconID_bookmark,
00061 iconID_collapse,
00062 iconID_connectivity,
00063 iconID_copy,
00064 iconID_cut,
00065 iconID_empty,
00066 iconID_erase,
00067 iconID_error,
00068 iconID_expand,
00069 iconID_filemanager,
00070 iconID_fontlarger,
00071 iconID_fontsmaller,
00072 iconID_keyboard,
00073 iconID_orientation,
00074 iconID_paste,
00075 iconID_pen,
00076 iconID_pen1pixel,
00077 iconID_pen3pixel,
00078 iconID_pen5pixel,
00079 iconID_pen7pixel,
00080 iconID_penheavier,
00081 iconID_penlighter,
00082 iconID_penpressure,
00083 iconID_selecttext,
00084 iconID_share,
00085 iconID_summarize,
00086 iconID_trashcan,
00087 iconID_zoomin,
00088 iconID_zoomout,
00089 iconID_eraseline,
00090 iconID_npage,
00091 iconID_penblack,
00092 iconID_pendarkgrey,
00093 iconID_penlightgrey,
00094 iconID_penwhite,
00095 iconID_pan,
00096 iconID_index,
00097 iconID_pen1pixelLow,
00098 iconID_pen3pixelLow,
00099 iconID_pen5pixelLow,
00100 iconID_pen7pixelLow,
00101 iconID_penblackLow,
00102 iconID_pendarkgreyLow,
00103 iconID_penlightgreyLow,
00104 iconID_penwhiteLow,
00105 iconID_locked,
00106 iconID_tagging,
00107 iconID_search,
00108 iconID_zoomfit,
00109 iconID_landscape_portrait,
00110 iconID_portrait_landscape,
00111 iconID_zoomwidth,
00112 iconID_zoomback,
00113 iconID_find,
00114 iconID_lock_screen,
00115 iconID_not_used01,
00116 iconID_not_user02,
00117 iconID_continuous_mode,
00118 iconID_page_mode,
00119 iconID_sort,
00120 iconID_connect,
00121 iconID_start_reading,
00122 iconID_back,
00123 iconID_lookup,
00124 iconID_dictionary_search,
00125 iconID_forward,
00126 } e_iconID_t;
00127
00128
00129
00130 typedef enum
00131 {
00132 iconState_normal = 0,
00133 iconState_grey,
00134 iconState_selected,
00135 iconState_undefined
00136 } e_iconState_t;
00137
00138
00139 typedef enum
00140 {
00141 iconState_IDconnect_time = iconState_undefined,
00142 iconState_IDconnect_newcontent,
00143 iconState_IDconnect_newcontent_selected
00144 } e_iconState_connect_t;
00145
00146
00147 int tbGetIconNumber(void);
00148
00149
00150 const char* tbGetIconName(int iconID);
00151
00152
00153 int tbParseCommand(char *szCommand, erIpcCmd_t *pCmd);
00154
00155
00156 int tbReportIconClicked(erClientChannel_t channel, int signal, int iconID, int iconState);
00157
00158
00159 int tbReportSynchronised(erClientChannel_t channel, int signal);
00160
00161
00162
00163
00174 int tbAppendPlatformIcon(erClientChannel_t channel, int uaID, int iconID, int signal);
00175
00185 int tbRemovePlatformIcon(erClientChannel_t channel, int uaID, int iconID);
00186
00197 int tbSetStatePlatformIcon(erClientChannel_t channel, int uaID, int iconID, int iconState);
00198
00207 int tbDisableUpdate(erClientChannel_t channel, int uaID);
00208
00217 int tbEnableUpdate(erClientChannel_t channel, int uaID);
00218
00227 int tbSelectIconSet(erClientChannel_t channel, int uaID);
00228
00237 int tbClearIconSet(erClientChannel_t channel, int uaID);
00238
00248 int tbSynchronise(erClientChannel_t channel, int uaID, int signal);
00249
00250 #ifdef __cplusplus
00251 }
00252 #endif
00253
00254 #endif