comparison libpurple/protocols/msn/notification.h @ 31292:47b6eda87723

propagate from branch 'im.pidgin.pidgin' (head 07d0765c444a097af45c2650f54323afb900a07b) to branch 'im.pidgin.soc.2010.msn-tlc' (head f3998422a4724ab424e4e2328f58fc0504856557)
author masca@cpw.pidgin.im
date Mon, 19 Jul 2010 21:11:32 +0000
parents c7fa7c7aca7d
children 23be655cc688
comparison
equal deleted inserted replaced
30698:e874875a74a7 31292:47b6eda87723
47 #include "msg.h" 47 #include "msg.h"
48 #include "session.h" 48 #include "session.h"
49 #include "servconn.h" 49 #include "servconn.h"
50 #include "state.h" 50 #include "state.h"
51 #include "user.h" 51 #include "user.h"
52 #include "userlist.h"
52 53
53 struct _MsnNotification 54 struct _MsnNotification
54 { 55 {
55 MsnSession *session; 56 MsnSession *session;
56 57
63 64
64 gboolean in_use; 65 gboolean in_use;
65 }; 66 };
66 67
67 typedef void (*MsnFqyCb)(MsnSession *session, const char *passport, MsnNetwork network, gpointer data); 68 typedef void (*MsnFqyCb)(MsnSession *session, const char *passport, MsnNetwork network, gpointer data);
69
70 /* Type used for msn_notification_send_uun */
71 typedef enum {
72 MSN_UNIFIED_NOTIFICATION_SHARED_FOLDERS = 1,
73 MSN_UNIFIED_NOTIFICATION_UNKNOWN1 = 2,
74 MSN_UNIFIED_NOTIFICATION_P2P = 3,
75 MSN_UNIFIED_NOTIFICATION_MPOP = 4
76
77 } MsnUnifiedNotificationType;
68 78
69 void uum_send_msg(MsnSession *session, MsnMessage *msg); 79 void uum_send_msg(MsnSession *session, MsnMessage *msg);
70 80
71 void msn_notification_end(void); 81 void msn_notification_end(void);
72 void msn_notification_init(void); 82 void msn_notification_init(void);
85 gboolean msn_notification_connect(MsnNotification *notification, 95 gboolean msn_notification_connect(MsnNotification *notification,
86 const char *host, int port); 96 const char *host, int port);
87 void msn_notification_disconnect(MsnNotification *notification); 97 void msn_notification_disconnect(MsnNotification *notification);
88 void msn_notification_dump_contact(MsnSession *session); 98 void msn_notification_dump_contact(MsnSession *session);
89 99
100 void msn_notification_send_uux(MsnSession *session, const char *payload);
101
102 void msn_notification_send_uux_endpointdata(MsnSession *session);
103
104 void msn_notification_send_uux_private_endpointdata(MsnSession *session);
105
106 void msn_notification_send_uun(MsnSession *session,
107 const char *user,
108 MsnUnifiedNotificationType type,
109 const char *payload);
110
90 /** 111 /**
91 * Closes a notification. 112 * Closes a notification.
92 * 113 *
93 * It's first closed, and then disconnected. 114 * It's first closed, and then disconnected.
94 * 115 *