1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/session_private.h Fri Aug 21 13:25:11 2009 -0700
1.3 @@ -0,0 +1,89 @@
1.4 +/**
1.5 + * Copyright (C) 2008 Felipe Contreras.
1.6 + *
1.7 + * Purple is the legal property of its developers, whose names are too numerous
1.8 + * to list here. Please refer to the COPYRIGHT file distributed with this
1.9 + * source distribution.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + *
1.21 + * You should have received a copy of the GNU General Public License
1.22 + * along with this program; if not, write to the Free Software
1.23 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.24 + */
1.25 +
1.26 +#ifndef MSN_SESSION_PRIVATE_H
1.27 +#define MSN_SESSION_PRIVATE_H
1.28 +
1.29 +#include "session.h"
1.30 +#include "io/pecan_node.h"
1.31 +
1.32 +#include "ab/pecan_contact.h"
1.33 +#include "ab/pecan_contactlist.h"
1.34 +
1.35 +#include "io/pecan_node.h"
1.36 +
1.37 +struct MsnNotification;
1.38 +struct MsnNexus;
1.39 +struct MsnSync;
1.40 +
1.41 +struct _PurpleAccount;
1.42 +struct _PurpleConversation;
1.43 +
1.44 +struct MsnSession
1.45 +{
1.46 + gchar *username;
1.47 + gchar *password;
1.48 +
1.49 + struct _PurpleAccount *account;
1.50 + PecanContact *user;
1.51 +
1.52 + guint protocol_ver;
1.53 +
1.54 + MsnLoginStep login_step; /**< The current step in the login process. */
1.55 +
1.56 + gboolean connected;
1.57 + gboolean logged_in; /**< A temporal flag to ignore local buddy list adds. */
1.58 + gboolean destroying; /**< A flag that states if the session is being destroyed. */
1.59 + gboolean http_method;
1.60 + gboolean server_alias;
1.61 + PecanNode *http_conn;
1.62 +
1.63 + struct MsnNotification *notification;
1.64 + struct MsnNexus *nexus;
1.65 + struct MsnSync *sync;
1.66 +
1.67 + PecanContactList *contactlist;
1.68 +
1.69 + int servconns_count; /**< The count of server connections. */
1.70 + GList *switches; /**< The list of all the switchboards. */
1.71 + GList *directconns; /**< The list of all the directconnections. */
1.72 + GList *slplinks; /**< The list of all the slplinks. */
1.73 +
1.74 + int conv_seq; /**< The current conversation sequence number. */
1.75 +
1.76 + struct
1.77 + {
1.78 + char *kv;
1.79 + char *sid;
1.80 + char *mspauth;
1.81 + unsigned long sl;
1.82 + int email_enabled;
1.83 + char *client_ip;
1.84 + int client_port;
1.85 + gchar *mail_url;
1.86 + gulong mail_url_timestamp;
1.87 + } passport_info;
1.88 +
1.89 + guint inbox_unread_count; /* The number of unread e-mails on the inbox. */
1.90 +};
1.91 +
1.92 +#endif /* MSN_SESSION_PRIVATE_H */