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 * trigger.h 00024 */ 00025 00026 #ifndef __TRIGGER_H__ 00027 #define __TRIGGER_H__ 00028 00029 /* forward declarations */ 00030 struct contact; 00031 00032 00033 typedef enum {NO_TYPE, USER_ONLINE, USER_OFFLINE, USER_ON_OFF_LINE} trigger_type; 00034 typedef enum {NO_ACTION, PLAY_SOUND, EXECUTE, DIALOG, POUNCE} trigger_action; 00035 00036 typedef struct _trigger 00037 { 00038 trigger_type type; 00039 trigger_action action; 00040 char param[1024]; 00041 } trigger_struct; 00042 00043 00044 void destroy_window(); 00045 00046 trigger_type get_trigger_type_num(char *text); 00047 trigger_action get_trigger_action_num(char *text); 00048 00049 char * get_trigger_type_text(trigger_type type); 00050 char * get_trigger_action_text(trigger_action action); 00051 00052 void show_trigger_window(); 00053 void do_trigger_online(struct contact *con); 00054 void do_trigger_offline(struct contact *con); 00055 void do_trigger_action(struct contact *con, int trigger_type); 00056 00057 #endif