Yattm - unified GTK instant-messaging client | |
[Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003] |
00001 /* 00002 * Yattm 00003 * 00004 * Copyright (C) 1999, Torrey Searle <tsearle@uci.edu> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 00022 /* 00023 * account.h 00024 * file for account bits 00025 */ 00026 00027 #ifndef __ACCOUNT_H__ 00028 #define __ACCOUNT_H__ 00029 00030 #include <gtk/gtk.h> 00031 00032 /* forward declarations */ 00033 struct contact; 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif 00038 00039 typedef struct _grouplist 00040 { 00041 gchar name[255]; 00042 GList * members; 00043 GtkWidget * list_item; 00044 GtkWidget * tree; 00045 GtkWidget * label; 00046 gint contacts_online; 00047 gint contacts_shown; 00048 } grouplist; 00049 00050 typedef struct account { 00051 gint service_id; 00052 gchar handle[255]; 00053 struct contact * account_contact; 00054 void *protocol_account_data; 00055 GtkWidget * list_item; 00056 GtkWidget * status; 00057 GtkWidget * pix; 00058 gint icon_handler; 00059 gboolean online; 00060 gint status_handler; 00061 struct _info_window * infowindow; 00062 } eb_account; 00063 00064 00065 typedef struct local_account { 00066 gint service_id; 00067 gchar *handle; 00068 gchar alias[255]; 00069 gboolean connected; 00070 GtkWidget * status_button; 00071 GSList * status_menu; 00072 void *protocol_local_account_data; 00073 } eb_local_account; 00074 00075 int load_accounts(); 00076 int load_contacts(); 00077 void write_contact_list(); 00078 void write_account_list(); 00079 #ifdef __cplusplus 00080 } 00081 #endif 00082 00083 00084 #endif /* __ACCOUNT_H__*/