3 * Purple is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
29 #include "oscarcommon.h"
32 icq_get_account_text_table(PurpleAccount
*account
)
35 table
= g_hash_table_new(g_str_hash
, g_str_equal
);
36 g_hash_table_insert(table
, "login_label", (gpointer
)_("ICQ UIN..."));
41 icq_get_max_message_size(PurpleConversation
*conv
)
43 /* XXX: got from pidgin-otr - verify and document it */
48 icq_protocol_init(PurpleProtocol
*protocol
)
50 protocol
->id
= "prpl-icq";
51 protocol
->name
= "ICQ";
53 oscar_init_account_options(protocol
, TRUE
);
57 icq_protocol_class_init(PurpleProtocolClass
*klass
)
59 klass
->list_icon
= oscar_list_icon_icq
;
63 icq_protocol_client_iface_init(PurpleProtocolClientInterface
*client_iface
)
65 client_iface
->get_account_text_table
= icq_get_account_text_table
;
66 client_iface
->get_moods
= oscar_get_purple_moods
;
67 client_iface
->get_max_message_size
= icq_get_max_message_size
;
70 PURPLE_DEFINE_TYPE_EXTENDED(
71 ICQProtocol
, icq_protocol
, OSCAR_TYPE_PROTOCOL
, 0,
73 PURPLE_IMPLEMENT_INTERFACE_STATIC(PURPLE_TYPE_PROTOCOL_CLIENT
,
74 icq_protocol_client_iface_init
)