Migrate certificates, icons, logs to XDG dirs
[pidgin-git.git] / libpurple / protocols / jabber / usermood.h
blobeced59f116bcbb0fae0ba2d1dbd996786e2ca8a9
1 /*
2 * purple - Jabber Protocol Plugin
4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 #ifndef PURPLE_JABBER_USERMOOD_H_
25 #define PURPLE_JABBER_USERMOOD_H_
27 #include "jabber.h"
29 /* Implementation of XEP-0107 */
31 void jabber_mood_init(void);
33 /**
34 * Sets / unsets the mood for the specified account. The mood passed in
35 * must either be NULL, "", or one of the moods returned by
36 * jabber_get_moods().
38 * @param js The JabberStream object.
39 * @param mood The mood to set, NULL, or ""
40 * @param text Optional text that goes along with a mood. Only used when
41 * setting a mood (not when unsetting a mood).
43 * @return FALSE if an invalid mood was specified, or TRUE otherwise.
45 gboolean
46 jabber_mood_set(JabberStream *js, const char *mood, const char *text);
48 PurpleMood *jabber_get_moods(PurpleAccount *account);
50 #endif /* PURPLE_JABBER_USERMOOD_H_ */