Frameworks/libpurple.framework/Versions/0.6.2/Headers/session_private.h
author Zachary West <zacw@adium.im>
Fri Aug 21 13:25:11 2009 -0700 (2009-08-21)
changeset 2592 e8d15275025e
parent 1739 Frameworks/libpurple.framework/Versions/0.6.0/Headers/session_private.h@8b0daad9656c
permissions -rw-r--r--
im.pidgin.adium.1-4 at 267c6165e02e34318a1823960bd04c0639952f73
     1 /**
     2  * Copyright (C) 2008 Felipe Contreras.
     3  *
     4  * Purple is the legal property of its developers, whose names are too numerous
     5  * to list here.  Please refer to the COPYRIGHT file distributed with this
     6  * source distribution.
     7  *
     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.
    12  *
    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.
    17  *
    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
    21  */
    22 
    23 #ifndef MSN_SESSION_PRIVATE_H
    24 #define MSN_SESSION_PRIVATE_H
    25 
    26 #include "session.h"
    27 #include "io/pecan_node.h"
    28 
    29 #include "ab/pecan_contact.h"
    30 #include "ab/pecan_contactlist.h"
    31 
    32 #include "io/pecan_node.h"
    33 
    34 struct MsnNotification;
    35 struct MsnNexus;
    36 struct MsnSync;
    37 
    38 struct _PurpleAccount;
    39 struct _PurpleConversation;
    40 
    41 struct MsnSession
    42 {
    43     gchar *username;
    44     gchar *password;
    45 
    46     struct _PurpleAccount *account;
    47     PecanContact *user;
    48 
    49     guint protocol_ver;
    50 
    51     MsnLoginStep login_step; /**< The current step in the login process. */
    52 
    53     gboolean connected;
    54     gboolean logged_in; /**< A temporal flag to ignore local buddy list adds. */
    55     gboolean destroying; /**< A flag that states if the session is being destroyed. */
    56     gboolean http_method;
    57     gboolean server_alias;
    58     PecanNode *http_conn;
    59 
    60     struct MsnNotification *notification;
    61     struct MsnNexus *nexus;
    62     struct MsnSync *sync;
    63 
    64     PecanContactList *contactlist;
    65 
    66     int servconns_count; /**< The count of server connections. */
    67     GList *switches; /**< The list of all the switchboards. */
    68     GList *directconns; /**< The list of all the directconnections. */
    69     GList *slplinks; /**< The list of all the slplinks. */
    70 
    71     int conv_seq; /**< The current conversation sequence number. */
    72 
    73     struct
    74     {
    75         char *kv;
    76         char *sid;
    77         char *mspauth;
    78         unsigned long sl;
    79         int email_enabled;
    80         char *client_ip;
    81         int client_port;
    82         gchar *mail_url;
    83         gulong mail_url_timestamp;
    84     } passport_info;
    85 
    86     guint inbox_unread_count; /* The number of unread e-mails on the inbox. */
    87 };
    88 
    89 #endif /* MSN_SESSION_PRIVATE_H */