1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/presence.h Fri Aug 21 13:25:11 2009 -0700
1.3 @@ -0,0 +1,48 @@
1.4 +/**
1.5 + * @file presence.h Presence
1.6 + *
1.7 + * purple
1.8 + *
1.9 + * Copyright (C) 2003 Nathan Walp <faceprint@faceprint.com>
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + *
1.21 + * You should have received a copy of the GNU General Public License
1.22 + * along with this program; if not, write to the Free Software
1.23 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.24 + */
1.25 +#ifndef PURPLE_JABBER_PRESENCE_H_
1.26 +#define PURPLE_JABBER_PRESENCE_H_
1.27 +
1.28 +#include "buddy.h"
1.29 +#include "jabber.h"
1.30 +#include "xmlnode.h"
1.31 +
1.32 +void jabber_set_status(PurpleAccount *account, PurpleStatus *status);
1.33 +
1.34 +/**
1.35 + * Send a full presence stanza.
1.36 + *
1.37 + * @param js A JabberStream object.
1.38 + * @param force Force sending the presence stanza, irrespective of whether
1.39 + * the contents seem to have changed.
1.40 + */
1.41 +void jabber_presence_send(JabberStream *js, gboolean force);
1.42 +
1.43 +xmlnode *jabber_presence_create(JabberBuddyState state, const char *msg, int priority); /* DEPRECATED */
1.44 +xmlnode *jabber_presence_create_js(JabberStream *js, JabberBuddyState state, const char *msg, int priority);
1.45 +void jabber_presence_parse(JabberStream *js, xmlnode *packet);
1.46 +void jabber_presence_subscription_set(JabberStream *js, const char *who,
1.47 + const char *type);
1.48 +void jabber_presence_fake_to_self(JabberStream *js, PurpleStatus *status);
1.49 +void purple_status_to_jabber(const PurpleStatus *status, JabberBuddyState *state, char **msg, int *priority);
1.50 +
1.51 +#endif /* PURPLE_JABBER_PRESENCE_H_ */