mark PurpleImageClass as private
[pidgin-git.git] / libpurple / protocols / gg / gg.h
blobc99a7c62653dc6043df476fd66f325e447517711
1 /**
2 * @file gg.h
4 * purple
6 * Copyright (C) 2005 Bartosz Oler <bartosz@bzimage.us>
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
23 #ifndef PURPLE_GG_GG_H
24 #define PURPLE_GG_GG_H
26 #define GGP_UIN_LEN_MAX 10
28 #include <gmodule.h>
29 #include <libgadu.h>
31 #include "internal.h"
32 #include "search.h"
33 #include "connection.h"
35 #include "image-prpl.h"
36 #include "avatar.h"
37 #include "roster.h"
38 #include "multilogon.h"
39 #include "status.h"
40 #include "chat.h"
41 #include "message-prpl.h"
42 #include "edisc.h"
44 #define GGP_TYPE_PROTOCOL (ggp_protocol_get_type())
45 #define GGP_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GGP_TYPE_PROTOCOL, GGPProtocol))
46 #define GGP_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GGP_TYPE_PROTOCOL, GGPProtocolClass))
47 #define GGP_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GGP_TYPE_PROTOCOL))
48 #define GGP_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GGP_TYPE_PROTOCOL))
49 #define GGP_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GGP_TYPE_PROTOCOL, GGPProtocolClass))
51 typedef struct
53 PurpleProtocol parent;
54 } GGPProtocol;
56 typedef struct
58 PurpleProtocolClass parent_class;
59 } GGPProtocolClass;
61 typedef struct {
62 struct gg_session *session;
63 guint inpa;
65 gchar *imtoken;
66 gboolean imtoken_warned;
68 ggp_image_session_data *image_data;
69 ggp_avatar_session_data avatar_data;
70 ggp_roster_session_data roster_data;
71 ggp_multilogon_session_data *multilogon_data;
72 ggp_status_session_data *status_data;
73 ggp_chat_session_data *chat_data;
74 ggp_message_session_data *message_data;
75 ggp_edisc_session_data *edisc_data;
76 } GGPInfo;
78 typedef struct
80 gboolean blocked;
81 gboolean not_a_friend;
82 } ggp_buddy_data;
84 G_MODULE_EXPORT GType ggp_protocol_get_type(void);
86 ggp_buddy_data * ggp_buddy_get_data(PurpleBuddy *buddy);
88 const gchar * ggp_get_imtoken(PurpleConnection *gc);
90 uin_t ggp_own_uin(PurpleConnection *gc);
92 void ggp_async_login_handler(gpointer _gc, gint fd, PurpleInputCondition cond);
94 #endif /* PURPLE_GG_GG_H */