comparison src/connection.h @ 6460:ff4551719cc7

[gaim-migrate @ 6969] I almost hate to do this in a way, but I added another connection UI op specifically for reporting disconnects, so that it's no longer in the core. This will let UIs display a disconnect in ways other than an error dialog, or allow plugins to turn off disconnect notifications. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 13 Aug 2003 22:40:41 +0000
parents 74ca311ceb2a
children 70d5122bc3ff
comparison
equal deleted inserted replaced
6459:b52870734c21 6460:ff4551719cc7
3 * @ingroup core 3 * @ingroup core
4 * 4 *
5 * gaim 5 * gaim
6 * 6 *
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version. 12 * (at your option) any later version.
13 * 13 *
46 typedef struct 46 typedef struct
47 { 47 {
48 void (*connect_progress)(GaimConnection *gc, const char *text, 48 void (*connect_progress)(GaimConnection *gc, const char *text,
49 size_t step, size_t step_count); 49 size_t step, size_t step_count);
50 void (*connected)(GaimConnection *gc); 50 void (*connected)(GaimConnection *gc);
51 void (*disconnected)(GaimConnection *gc, const char *reason); 51 void (*disconnected)(GaimConnection *gc);
52 void (*notice)(GaimConnection *gc, const char *text); 52 void (*notice)(GaimConnection *gc, const char *text);
53 void (*report_disconnect)(GaimConnection *gc, const char *text);
53 54
54 } GaimConnectionUiOps; 55 } GaimConnectionUiOps;
55 56
56 struct _GaimConnection 57 struct _GaimConnection
57 { 58 {