Frameworks/libpurple.framework/Versions/0.6.2/Headers/notification.h
changeset 2592 e8d15275025e
parent 2489 56d91bf40dd8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/notification.h	Fri Aug 21 13:25:11 2009 -0700
     1.3 @@ -0,0 +1,96 @@
     1.4 +/**
     1.5 + * @file notification.h Notification server functions
     1.6 + *
     1.7 + * purple
     1.8 + *
     1.9 + * Purple is the legal property of its developers, whose names are too numerous
    1.10 + * to list here.  Please refer to the COPYRIGHT file distributed with this
    1.11 + * source distribution.
    1.12 + *
    1.13 + * This program is free software; you can redistribute it and/or modify
    1.14 + * it under the terms of the GNU General Public License as published by
    1.15 + * the Free Software Foundation; either version 2 of the License, or
    1.16 + * (at your option) any later version.
    1.17 + *
    1.18 + * This program is distributed in the hope that it will be useful,
    1.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.21 + * GNU General Public License for more details.
    1.22 + *
    1.23 + * You should have received a copy of the GNU General Public License
    1.24 + * along with this program; if not, write to the Free Software
    1.25 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    1.26 + */
    1.27 +#ifndef _MSN_NOTIFICATION_H_
    1.28 +#define _MSN_NOTIFICATION_H_
    1.29 +
    1.30 +/*MSN protocol challenge info*/
    1.31 +
    1.32 +/*MSNP15 challenge: WLM 8.5.1288.816*/
    1.33 +#define MSNP15_WLM_PRODUCT_KEY "ILTXC!4IXB5FB*PX"
    1.34 +#define MSNP15_WLM_PRODUCT_ID "PROD0119GSJUC$18"
    1.35 +
    1.36 +/*MSNP13 challenge*/
    1.37 +#define MSNP13_WLM_PRODUCT_KEY	"O4BG@C7BWLYQX?5G"
    1.38 +#define MSNP13_WLM_PRODUCT_ID	"PROD01065C%ZFN6F"
    1.39 +
    1.40 +#define MSNP10_PRODUCT_KEY		"VT6PX?UQTM4WM%YR"
    1.41 +#define MSNP10_PRODUCT_ID		"PROD0038W!61ZTF9"
    1.42 +
    1.43 +typedef struct _MsnNotification MsnNotification;
    1.44 +
    1.45 +#include "session.h"
    1.46 +#include "servconn.h"
    1.47 +#include "cmdproc.h"
    1.48 +#include "user.h"
    1.49 +
    1.50 +struct _MsnNotification
    1.51 +{
    1.52 +	MsnSession *session;
    1.53 +
    1.54 +	/**
    1.55 +	 * This is a convenience pointer that always points to
    1.56 +	 * servconn->cmdproc
    1.57 +	 */
    1.58 +	MsnCmdProc *cmdproc;
    1.59 +	MsnServConn *servconn;
    1.60 +
    1.61 +	gboolean in_use;
    1.62 +};
    1.63 +
    1.64 +typedef void (*MsnFqyCb)(MsnSession *session, const char *passport, MsnNetwork network, gpointer data);
    1.65 +
    1.66 +#include "state.h"
    1.67 +void uum_send_msg(MsnSession *session,MsnMessage *msg);
    1.68 +
    1.69 +void msn_notification_end(void);
    1.70 +void msn_notification_init(void);
    1.71 +
    1.72 +void msn_notification_add_buddy_to_list(MsnNotification *notification,
    1.73 +					MsnListId list_id, MsnUser *user);
    1.74 +void msn_notification_rem_buddy_from_list(MsnNotification *notification,
    1.75 +					  MsnListId list_id, MsnUser *user);
    1.76 +
    1.77 +void msn_notification_send_fqy(MsnSession *session,
    1.78 +                               const char *payload, int payload_len,
    1.79 +                               MsnFqyCb cb, gpointer cb_data);
    1.80 +
    1.81 +MsnNotification *msn_notification_new(MsnSession *session);
    1.82 +void msn_notification_destroy(MsnNotification *notification);
    1.83 +gboolean msn_notification_connect(MsnNotification *notification,
    1.84 +				  const char *host, int port);
    1.85 +void msn_notification_disconnect(MsnNotification *notification);
    1.86 +void msn_notification_dump_contact(MsnSession *session);
    1.87 +
    1.88 +/**
    1.89 + * Closes a notification.
    1.90 + *
    1.91 + * It's first closed, and then disconnected.
    1.92 + *
    1.93 + * @param notification The notification object to close.
    1.94 + */
    1.95 +void msn_notification_close(MsnNotification *notification);
    1.96 +
    1.97 +void msn_got_login_params(MsnSession *session, const char *ticket, const char *response);
    1.98 +
    1.99 +#endif /* _MSN_NOTIFICATION_H_ */