| Yattm - unified GTK instant-messaging client | ![]() |
| [Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003] |
#include "intl.h"#include <gtk/gtk.h>#include <assert.h>#include <stdlib.h>#include <string.h>#include <time.h>#include "service.h"#include "chat_window.h"#include "away_window.h"#include "util.h"#include "status.h"#include "gtk_globals.h"#include "dialog.h"#include "message_parse.h"#include "chat_room.h"#include "value_pair.h"#include "info_window.h"#include "gtk_eb_html.h"#include "input_list.h"#include "pixmaps/nomodule_away.xpm"Include dependency graph for nomodule.c:

Go to the source code of this file.
|
|
Definition at line 59 of file nomodule.c. |
|
|
Definition at line 76 of file nomodule.c.
00077 {
00078 NOMODULE_OFFLINE=0
00079 };
|
|
|
Definition at line 243 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00244 {
00245 return;
00246 }
|
|
||||||||||||
|
Definition at line 228 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00229 {
00230 return NULL;
00231 }
|
|
|
Definition at line 248 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00249 {
00250 return;
00251 }
|
|
|
Definition at line 233 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00234 {
00235 return 0;
00236 }
|
|
||||||||||||
|
Definition at line 291 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00292 {
00293 return;
00294 }
|
|
|
Definition at line 296 of file nomodule.c.
00297 {
00298 return NULL;
00299 }
|
|
|
Definition at line 217 of file nomodule.c. References _. Referenced by eb_nomodule_query_callbacks().
00218 {
00219 GList * states = NULL;
00220 states = g_list_append(states, _("No Module or broken account"));
00221
00222 return states;
00223 }
|
|
||||||||||||||||
|
Definition at line 267 of file nomodule.c. References eb_nomodule_bitmap, eb_nomodule_init_pixmaps(), eb_nomodule_pixmap, pixmaps, account::protocol_account_data, and eb_nomodule_account_data::status. Referenced by eb_nomodule_query_callbacks().
00268 {
00269 struct eb_nomodule_account_data * aad;
00270
00271 if (!pixmaps)
00272 eb_nomodule_init_pixmaps();
00273
00274 aad = account->protocol_account_data;
00275
00276 *pm = eb_nomodule_pixmap[aad->status];
00277 *bm = eb_nomodule_bitmap[aad->status];
00278 }
|
|
|
Definition at line 258 of file nomodule.c. References _. Referenced by eb_nomodule_query_callbacks().
00259 {
00260 static gchar string[255];
00261
00262 g_snprintf(string, 255, _("(Offline)"));
00263
00264 return string;
00265 }
|
|
|
Definition at line 105 of file nomodule.c. References eb_nomodule_bitmap, eb_nomodule_pixmap, NOMODULE_OFFLINE, and pixmaps. Referenced by eb_nomodule_get_status_pixmap().
00106 {
00107 gint i = NOMODULE_OFFLINE;
00108 gchar ** xpm;
00109
00110 xpm = nomodule_away_xpm;
00111 eb_nomodule_pixmap[i] = gdk_pixmap_create_from_xpm_d(statuswindow->window,
00112 &eb_nomodule_bitmap[i], NULL, xpm);
00113 pixmaps = 1;
00114 }
|
|
|
Definition at line 123 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00124 {
00125 return;
00126 }
|
|
|
Definition at line 128 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00129 {
00130 return;
00131 }
|
|
|
Definition at line 253 of file nomodule.c.
00254 {
00255 return NULL;
00256 }
|
|
|
|
Definition at line 118 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00119 {
00120 return FALSE;
00121 }
|
|
||||||||||||
|
Definition at line 194 of file nomodule.c. References account::account_contact, account::handle, account::icon_handler, account::list_item, account::online, account::pix, account::protocol_account_data, service::protocol_id, account::service_id, account::status, eb_nomodule_account_data::status, and account::status_handler.
00195 {
00196 eb_account * ea = g_new0(eb_account, 1 );
00197 struct eb_nomodule_account_data * aad = g_new0(struct eb_nomodule_account_data,1);
00198
00199 aad->status = 0;
00200
00201 /*you know, eventually error handling should be put in here*/
00202 strncpy(ea->handle, value_pair_get_value( config, "NAME"), 255);
00203
00204 ea->service_id = SERVICE_INFO.protocol_id;
00205 ea->protocol_account_data = aad;
00206 ea->account_contact = contact;
00207 ea->list_item = NULL;
00208 ea->online = 0;
00209 ea->status = NULL;
00210 ea->pix = NULL;
00211 ea->icon_handler = -1;
00212 ea->status_handler = -1;
00213
00214 return ea;
00215 }
|
|
|
Definition at line 140 of file nomodule.c. References local_account::alias, DBG_CORE, eb_debug, local_account::handle, eb_nomodule_local_account_data::password, service::protocol_id, local_account::protocol_local_account_data, local_account::service_id, eb_nomodule_local_account_data::status, and value_pair_get_value().
00141 {
00142
00143 eb_local_account * ela = g_new0(eb_local_account, 1);
00144 struct eb_nomodule_local_account_data * ala = g_new0(struct eb_nomodule_local_account_data, 1);
00145 char *ptr=NULL;
00146
00147 eb_debug(DBG_CORE, "eb_nomodule_read_local_config: entering\n");
00148 /*you know, eventually error handling should be put in here*/
00149 ptr = value_pair_get_value(pairs, "SCREEN_NAME");
00150 if(!ptr) {
00151 fprintf(stderr, "Error! Invalid account config no SCREEN_NAME defined!\n");
00152 exit(1);
00153 }
00154 ela->handle=strdup(ptr);
00155 strncpy(ela->alias, ela->handle, 255);
00156 ptr = value_pair_get_value(pairs, "PASSWORD");
00157 if(!ptr) {
00158 fprintf(stderr, "Warning! No password specified for handle %s\n", ela->handle);
00159 }
00160 else {
00161 strncpy(ala->password, value_pair_get_value(pairs, "PASSWORD"), 255);
00162 }
00163 ela->service_id = SERVICE_INFO.protocol_id;
00164 ela->protocol_local_account_data = ala;
00165 ala->status = 0;
00166 eb_debug(DBG_CORE, "eb_nomodule_read_local_config: leaving\n");
00167
00168 return ela;
00169 }
|
|
|
Definition at line 301 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00302 {
00303 return;
00304 }
|
|
||||||||||||||||
|
Definition at line 133 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00136 {
00137 return;
00138 }
|
|
||||||||||||
|
Definition at line 285 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00286 {
00287 return;
00288 }
|
|
||||||||||||
|
Definition at line 238 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00239 {
00240 return;
00241 }
|
|
||||||||||||
|
Definition at line 280 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00281 {
00282 return;
00283 }
|
|
|
Definition at line 171 of file nomodule.c. References local_account::handle, _value_pair::key, eb_nomodule_local_account_data::password, local_account::protocol_local_account_data, and _value_pair::value. Referenced by eb_nomodule_query_callbacks().
00172 {
00173 GList * list = NULL;
00174 value_pair * vp;
00175 struct eb_nomodule_local_account_data * alad = account->protocol_local_account_data;
00176
00177 vp = g_new0(value_pair, 1);
00178
00179 strcpy(vp->key, "SCREEN_NAME");
00180 strcpy(vp->value, escape_string(account->handle) );
00181
00182 list = g_list_append( list, vp );
00183
00184 vp = g_new0(value_pair, 1);
00185
00186 strcpy(vp->key, "PASSWORD");
00187 strcpy(vp->value, escape_string(alad->password) );
00188
00189 list = g_list_append(list, vp);
00190
00191 return list;
00192 }
|
|
|
Definition at line 306 of file nomodule.c. Referenced by eb_nomodule_query_callbacks().
00307 {
00308 return NULL;
00309 }
|
|
|
Definition at line 103 of file nomodule.c. Referenced by eb_nomodule_get_status_pixmap(), and eb_nomodule_init_pixmaps(). |
|
|
Definition at line 102 of file nomodule.c. Referenced by eb_nomodule_get_status_pixmap(), and eb_nomodule_init_pixmaps(). |
|
|
Definition at line 101 of file nomodule.c. Referenced by eb_nomodule_get_status_pixmap(), and eb_nomodule_init_pixmaps(). |
|
|
Definition at line 61 of file nomodule.c. |