Mercurial > pidgin.yaz
view src/protocols/jabber/jabber.h @ 8481:6d0869404696
[gaim-migrate @ 9214]
" this fixes and should close 9, 10, and 12 on simguys
list... those are...
9 Buttons that are pushed in when text is sent, stay
pushed in. They should reset to the default for the
line based on the B/I/U preferences.
10 Buttons are not properly pushed in if B/I/U are set
in the prefs when the conversation window appears.
12 Buttons don't push in and out when the cursor
enters regions that are differently formatted. For
example, if you move the cursor to a place where the
text is bold, the B button should probably be pushed in.
While working on these i uncovered another bug which
i'll start working on shortly, but thats no reason to
hold this back when someone may find something I missed..." --Gary Kramlich
as per his note, this does not fix moving the cursor with the mouse, but
that doesn't work without this patch either.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 21 Mar 2004 18:38:30 +0000 |
parents | c13a4913a071 |
children | 4e7249591251 |
line wrap: on
line source
/** * @file jabber.h * * gaim * * Copyright (C) 2003 Nathan Walp <faceprint@faceprint.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _GAIM_JABBER_H_ #define _GAIM_JABBER_H_ #include <glib.h> #include "connection.h" #include "roomlist.h" #include "sslconn.h" #include "jutil.h" #include "xmlnode.h" typedef enum { JABBER_CAP_NONE = 0, JABBER_CAP_XHTML = 1 << 0, JABBER_CAP_COMPOSING = 1 << 1, JABBER_CAP_SI = 1 << 2, JABBER_CAP_SI_FILE_XFER = 1 << 3, JABBER_CAP_BYTESTREAMS = 1 << 4, JABBER_CAP_IBB = 1 << 5, JABBER_CAP_RETRIEVED = 1 << 31 } JabberCapabilities; typedef enum { JABBER_STREAM_OFFLINE, JABBER_STREAM_CONNECTING, JABBER_STREAM_INITIALIZING, JABBER_STREAM_AUTHENTICATING, JABBER_STREAM_REINITIALIZING, JABBER_STREAM_CONNECTED } JabberStreamState; typedef struct _JabberStream { int fd; GMarkupParseContext *context; xmlnode *current; enum { JABBER_PROTO_0_9, JABBER_PROTO_1_0 } protocol_version; enum { JABBER_AUTH_UNKNOWN, JABBER_AUTH_DIGEST_MD5, JABBER_AUTH_PLAIN, JABBER_AUTH_IQ_AUTH } auth_type; char *stream_id; JabberStreamState state; /* SASL authentication */ char *expected_rspauth; GHashTable *buddies; gboolean roster_parsed; GHashTable *chats; GList *chat_servers; GaimRoomlist *roomlist; GHashTable *iq_callbacks; GHashTable *disco_callbacks; int next_id; GList *oob_file_transfers; GList *file_transfers; time_t idle; JabberID *user; GaimConnection *gc; GaimSslConnection *gsc; gboolean registration; } JabberStream; void jabber_process_packet(JabberStream *js, xmlnode *packet); void jabber_send(JabberStream *js, xmlnode *data); void jabber_send_raw(JabberStream *js, const char *data, int len); void jabber_stream_set_state(JabberStream *js, JabberStreamState state); void jabber_register_parse(JabberStream *js, xmlnode *packet); void jabber_register_start(JabberStream *js); char *jabber_get_next_id(JabberStream *js); char *jabber_parse_error(JabberStream *js, xmlnode *packet); #endif /* _GAIM_JABBER_H_ */