comparison mcabber/mcabber/screen.h @ 1780:e4378fbab5d7

Major API cleanup - bump API to 4 Get rid of old CamelCase names in screen.h
author Mikael Berthe <mikael@lilotux.net>
date Sun, 14 Mar 2010 12:09:08 +0100
parents 61f0482d3993
children af3de54ef986
comparison
equal deleted inserted replaced
1779:2911c950dcd1 1780:e4378fbab5d7
53 }; 53 };
54 54
55 int COLOR_ATTRIB[COLOR_max]; 55 int COLOR_ATTRIB[COLOR_max];
56 56
57 extern int update_roster; 57 extern int update_roster;
58 extern gboolean chatstates_disabled;
59 extern gboolean Autoaway;
58 60
59 typedef struct { 61 typedef struct {
60 int value; 62 int value;
61 int utf8; 63 int utf8;
62 enum { 64 enum {
83 MC_PRESET, 85 MC_PRESET,
84 MC_OFF, 86 MC_OFF,
85 MC_REMOVE 87 MC_REMOVE
86 } muccoltype; 88 } muccoltype;
87 89
88 void scr_init_bindings(void);
89 90
90 void scr_Getch(keycode *kcode);
91 void process_key(keycode kcode);
92
93 void scr_InitLocaleCharSet(void);
94 void scr_InitCurses(void);
95 void scr_TerminateCurses(void);
96 gboolean scr_CursesStatus(void);
97 void scr_DrawMainWindow(unsigned int fullinit);
98 void scr_DrawRoster(void);
99 void scr_UpdateMainStatus(int forceupdate);
100 void scr_UpdateChatStatus(int forceupdate);
101 void scr_RosterVisibility(int status);
102 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, 91 void scr_WriteIncomingMessage(const char *jidfrom, const char *text,
103 time_t timestamp, guint prefix, 92 time_t timestamp, guint prefix,
104 unsigned mucnicklen); 93 unsigned mucnicklen);
105 void scr_WriteOutgoingMessage(const char *jidto, const char *text, 94 void scr_WriteOutgoingMessage(const char *jidto, const char *text,
106 guint prefix, gpointer xep184); 95 guint prefix, gpointer xep184);
107 void scr_RemoveReceiptFlag(const char *jidto, gpointer xep184); 96
108 void scr_ShowBuddyWindow(void); 97 void scr_getch(keycode *kcode);
109 int scr_BuddyBufferExists(const char *jid); 98 void scr_process_key(keycode kcode);
110 void scr_UpdateBuddyWindow(void); 99
100 void scr_init_bindings(void);
101 void scr_init_locale_charset(void);
102 void scr_init_curses(void);
103 void scr_terminate_curses(void);
104 gboolean scr_curses_status(void);
105 void scr_draw_main_window(unsigned int fullinit);
106 void scr_draw_roster(void);
107 void scr_update_main_status(int forceupdate);
108 void scr_update_chat_status(int forceupdate);
109 void scr_roster_visibility(int status);
110 void scr_remove_receipt_flag(const char *jidto, gpointer xep184);
111 void scr_show_buddy_window(void);
112 int scr_buddy_buffer_exists(const char *jid);
113 void scr_update_buddy_window(void);
111 void scr_set_chatmode(int enable); 114 void scr_set_chatmode(int enable);
112 int scr_get_chatmode(void); 115 int scr_get_chatmode(void);
113 void scr_set_multimode(int enable, char *subject); 116 void scr_set_multimode(int enable, char *subject);
114 int scr_get_multimode(void); 117 int scr_get_multimode(void);
115 void scr_setmsgflag_if_needed(const char *jid, int special); 118 void scr_setmsgflag_if_needed(const char *jid, int special);
119 122
120 guint scr_getprefixwidth(void); 123 guint scr_getprefixwidth(void);
121 guint scr_gettextwidth(void); 124 guint scr_gettextwidth(void);
122 void scr_line_prefix(hbb_line *line, char *prefix, guint preflen); 125 void scr_line_prefix(hbb_line *line, char *prefix, guint preflen);
123 126
124 void scr_Beep(void); 127 void scr_beep(void);
128 void scr_check_auto_away(int activity);
125 129
126 bool Autoaway;
127
128 void scr_CheckAutoAway(int activity);
129
130 #if defined XEP0022 || defined XEP0085
131 gboolean scr_ChatStatesTimeout();
132 #endif
133 int chatstates_disabled;
134 130
135 // For commands... 131 // For commands...
136 void scr_RosterTop(void); 132 void scr_roster_top(void);
137 void scr_RosterBottom(void); 133 void scr_roster_bottom(void);
138 void scr_RosterUpDown(int updown, unsigned int n); 134 void scr_roster_up_down(int updown, unsigned int n);
139 void scr_RosterPrevGroup(void); 135 void scr_roster_prev_group(void);
140 void scr_RosterNextGroup(void); 136 void scr_roster_next_group(void);
141 void scr_RosterSearch(char *); 137 void scr_roster_search(char *);
142 void scr_RosterJumpJid(char *); 138 void scr_roster_jump_jid(char *);
143 void scr_RosterDisplay(const char *); 139 void scr_roster_jump_alternate(void);
144 void scr_BufferTopBottom(int topbottom); 140 void scr_roster_unread_message(int);
145 void scr_BufferClear(void); 141 void scr_roster_display(const char *);
146 void scr_BufferScrollLock(int lock); 142
147 void scr_BufferPurge(int, const char*); 143 void scr_buffer_top_bottom(int topbottom);
148 void scr_BufferPurgeAll(int); 144 void scr_buffer_clear(void);
149 void scr_BufferSearch(int direction, const char *text); 145 void scr_buffer_scroll_lock(int lock);
150 void scr_BufferPercent(int pc); 146 void scr_buffer_purge(int, const char*);
151 void scr_BufferDate(time_t t); 147 void scr_buffer_purge_all(int);
152 void scr_BufferDump(const char *file); 148 void scr_buffer_search(int direction, const char *text);
153 void scr_RosterUnreadMessage(int); 149 void scr_buffer_percent(int pc);
154 void scr_RosterJumpAlternate(void); 150 void scr_buffer_date(time_t t);
155 void scr_BufferScrollUpDown(int updown, unsigned int nblines); 151 void scr_buffer_dump(const char *file);
156 bool scr_RosterColor(const char *status, const char *wildcard, 152 void scr_buffer_list(void);
157 const char *color); 153 void scr_buffer_scroll_up_down(int updown, unsigned int nblines);
158 void scr_RosterClearColor(void); 154
159 void scr_MucColor(const char *muc, muccoltype type); 155 bool scr_roster_color(const char *status, const char *wildcard,
160 void scr_MucNickColor(const char *nick, const char *color); 156 const char *color);
161 void scr_BufferList(void); 157 void scr_roster_clear_color(void);
158 void scr_muc_color(const char *muc, muccoltype type);
159 void scr_muc_nick_color(const char *nick, const char *color);
162 160
163 void readline_transpose_chars(void); 161 void readline_transpose_chars(void);
164 void readline_forward_kill_word(void); 162 void readline_forward_kill_word(void);
165 void readline_backward_kill_word(void); 163 void readline_backward_kill_word(void);
166 void readline_backward_word(void); 164 void readline_backward_word(void);