forked from fchat-pidgin/fchat-pidgin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
f-list_channels.h
100 lines (87 loc) · 5.49 KB
/
f-list_channels.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
* F-List Pidgin - a libpurple protocol plugin for F-Chat
*
* Copyright 2011 F-List Pidgin developers.
*
* This file is part of F-List Pidgin.
*
* F-List Pidgin 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.
*
* F-List Pidgin 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 F-List Pidgin. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FLIST_CHANNELS_H
#define FLIST_CHANNELS_H
#include "f-list.h"
typedef struct FListChannel_ FListChannel;
struct FListChannel_ {
gchar *name;
gchar *title;
GHashTable *users;
gchar *owner;
GList *operators;
FListChannelMode mode;
gchar *topic;
};
FListFlags flist_get_flags(FListAccount *, const gchar *channel, const gchar *identity);
void flist_channel_print_error(PurpleConversation *convo, const gchar *message);
void flist_channel_print_op_warning(PurpleConversation *convo, const gchar *character, const gchar *message);
void flist_update_user_chats_offline(FListAccount *, const gchar *);
void flist_update_user_chats_rank(FListAccount *, const gchar *);
void flist_update_users_chats_rank(FListAccount *, GList *);
void flist_got_channel_topic(FListAccount *, const gchar *channel, const gchar *topic);
void flist_got_channel_mode(FListAccount *, const gchar *channel, const gchar *mode);
void flist_got_channel_joined(FListAccount *, const gchar *);
void flist_got_channel_left(FListAccount *, const gchar *);
void flist_got_channel_oplist(FListAccount *, const gchar *channel, GList *oplist);
void flist_got_channel_userlist(FListAccount *, const gchar *channel, GList *users);
void flist_got_channel_user_joined(FListAccount *, const gchar *, const gchar *);
void flist_got_channel_user_left(FListAccount *, const gchar *, const gchar *, const gchar *);
FListChannel *flist_channel_find(FListAccount *, const gchar *channel);
FListChannel *flist_channel_new(FListAccount *, const gchar *channel);
const gchar *flist_channel_get_title(FListChannel *);
GList *flist_channel_list_names(FListAccount *);
GList *flist_channel_list_all(FListAccount *);
void flist_channel_display_topic_ui(PurpleConversation *convo, const gchar *current_topic);
void flist_show_channel_mode(FListAccount *fla, const gchar *channel);
void flist_channel_subsystem_load(FListAccount*);
void flist_channel_subsystem_unload(FListAccount*);
char *flist_get_channel_name(GHashTable *components);
PurpleCmdRet flist_channel_code_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_oplist_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_op_deop_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_join_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_banlist_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_who_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_open_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_close_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_get_mode_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_set_mode_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_show_topic_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_show_raw_topic_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_set_topic_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_set_owner_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_get_owner_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_kick_ban_unban_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_invite_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_make_cmd(PurpleConversation *, const gchar *, gchar **args, gchar **error, void *);
PurpleCmdRet flist_channel_timeout_cmd(PurpleConversation *convo, const gchar *cmd, gchar **args, gchar **error, void *data);
gboolean flist_process_COL(FListAccount *, JsonObject *);
gboolean flist_process_JCH(FListAccount *, JsonObject *);
gboolean flist_process_LCH(FListAccount *, JsonObject *);
gboolean flist_process_ICH(FListAccount *, JsonObject *);
gboolean flist_process_CKU(FListAccount *, JsonObject *);
gboolean flist_process_CBU(FListAccount *, JsonObject *);
gboolean flist_process_CTU(FListAccount *, JsonObject *);
gboolean flist_process_CDS(FListAccount *, JsonObject *);
gboolean flist_process_RMO(FListAccount *, JsonObject *);
gboolean flist_process_CIU(FListAccount *, JsonObject *);
#endif /* F_LIST_CHANNELS_H */