| 8 * the Free Software Foundation; either version 2 of the License, or |
8 * the Free Software Foundation; either version 2 of the License, or |
| 9 * (at your option) any later version. |
9 * (at your option) any later version. |
| 10 * |
10 * |
| 11 * This program is distributed in the hope that it will be useful, |
11 * This program is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 * GNU General Public License for more details. |
14 * GNU General Public License for more details. |
| 15 * |
15 * |
| 16 * You should have received a copy of the GNU General Public License |
16 * You should have received a copy of the GNU General Public License |
| 17 * along with this program; if not, write to the Free Software |
17 * along with this program; if not, write to the Free Software |
| 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 * |
19 * |
| 20 */ |
20 */ |
| 21 |
21 |
| 22 #ifndef _PURPLE_JABBER_USERMOOD_H_ |
22 #ifndef _PURPLE_JABBER_USERMOOD_H_ |
| 23 #define _PURPLE_JABBER_USERMOOD_H_ |
23 #define _PURPLE_JABBER_USERMOOD_H_ |
| 25 #include "jabber.h" |
25 #include "jabber.h" |
| 26 |
26 |
| 27 /* Implementation of XEP-0107 */ |
27 /* Implementation of XEP-0107 */ |
| 28 |
28 |
| 29 typedef enum _JabberMood { /* wtf */ |
29 typedef enum _JabberMood { /* wtf */ |
| 30 UNKNOWN = 0, |
30 UNKNOWN = 0, |
| 31 AFRAID, |
31 AFRAID, |
| 32 AMAZED, |
32 AMAZED, |
| 33 ANGRY, |
33 ANGRY, |
| 34 ANNOYED, |
34 ANNOYED, |
| 35 ANXIOUS, |
35 ANXIOUS, |
| 36 AROUSED, |
36 AROUSED, |
| 37 ASHAMED, |
37 ASHAMED, |
| 38 BORED, |
38 BORED, |
| 39 BRAVE, |
39 BRAVE, |
| 40 CALM, |
40 CALM, |
| 41 COLD, |
41 COLD, |
| 42 CONFUSED, |
42 CONFUSED, |
| 43 CONTENTED, |
43 CONTENTED, |
| 44 CRANKY, |
44 CRANKY, |
| 45 CURIOUS, |
45 CURIOUS, |
| 46 DEPRESSED, |
46 DEPRESSED, |
| 47 DISAPPOINTED, |
47 DISAPPOINTED, |
| 48 DISGUSTED, |
48 DISGUSTED, |
| 49 DISTRACTED, |
49 DISTRACTED, |
| 50 EMBARRASSED, |
50 EMBARRASSED, |
| 51 EXCITED, |
51 EXCITED, |
| 52 FLIRTATIOUS, |
52 FLIRTATIOUS, |
| 53 FRUSTRATED, |
53 FRUSTRATED, |
| 54 GRUMPY, |
54 GRUMPY, |
| 55 GUILTY, |
55 GUILTY, |
| 56 HAPPY, |
56 HAPPY, |
| 57 HOT, |
57 HOT, |
| 58 HUMBLED, |
58 HUMBLED, |
| 59 HUMILIATED, |
59 HUMILIATED, |
| 60 HUNGRY, |
60 HUNGRY, |
| 61 HURT, |
61 HURT, |
| 62 IMPRESSED, |
62 IMPRESSED, |
| 63 IN_AWE, |
63 IN_AWE, |
| 64 IN_LOVE, |
64 IN_LOVE, |
| 65 INDIGNANT, |
65 INDIGNANT, |
| 66 INTERESTED, |
66 INTERESTED, |
| 67 INTOXICATED, |
67 INTOXICATED, |
| 68 INVINCIBLE, |
68 INVINCIBLE, |
| 69 JEALOUS, |
69 JEALOUS, |
| 70 LONELY, |
70 LONELY, |
| 71 MEAN, |
71 MEAN, |
| 72 MOODY, |
72 MOODY, |
| 73 NERVOUS, |
73 NERVOUS, |
| 74 NEUTRAL, |
74 NEUTRAL, |
| 75 OFFENDED, |
75 OFFENDED, |
| 76 PLAYFUL, |
76 PLAYFUL, |
| 77 PROUD, |
77 PROUD, |
| 78 RELIEVED, |
78 RELIEVED, |
| 79 REMORSEFUL, |
79 REMORSEFUL, |
| 80 RESTLESS, |
80 RESTLESS, |
| 81 SAD, |
81 SAD, |
| 82 SARCASTIC, |
82 SARCASTIC, |
| 83 SERIOUS, |
83 SERIOUS, |
| 84 SHOCKED, |
84 SHOCKED, |
| 85 SHY, |
85 SHY, |
| 86 SICK, |
86 SICK, |
| 87 SLEEPY, |
87 SLEEPY, |
| 88 STRESSED, |
88 STRESSED, |
| 89 SURPRISED, |
89 SURPRISED, |
| 90 THIRSTY, |
90 THIRSTY, |
| 91 WORRIED |
91 WORRIED |
| 92 } JabberMood; |
92 } JabberMood; |
| 93 |
93 |
| 94 void jabber_mood_init(void); |
94 void jabber_mood_init(void); |
| 95 |
95 |
| 96 void jabber_set_mood(JabberStream *js, JabberMood mood, const char *text /* might be NULL */); |
96 void jabber_set_mood(JabberStream *js, JabberMood mood, const char *text /* might be NULL */); |