~vish/ubuntu/maverick/pidgin/bug25979

« back to all changes in this revision

Viewing changes to libpurple/protocols/yahoo/yahoo_friend.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-10-09 19:40:26 UTC
  • mfrom: (1.4.1 upstream) (46.1.10 karmic)
  • Revision ID: james.westby@ubuntu.com-20091009194026-wbqqh0bsbz19nx5q
Tags: 1:2.6.2-1ubuntu7
* Don't stick the buddy list window to all desktops as some
  window managers have trouble to properly unstick it (LP: #346840)
  - debian/patches/11_buddy_list_really_show.patch
* Always use default tray icon size on KDE (LP: #209440)
  - debian/patches/62_tray_icon_size_kde.patch
* Use scrollbars in the preferences dialog if the screen height is
  below 700 px instead of 600 px
  - debian/patches/60_1024x600_gtkprefs.c.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#ifndef _YAHOO_FRIEND_H_
26
26
#define _YAHOO_FRIEND_H_
27
27
 
28
 
#include "yahoo.h"
 
28
#include "libymsg.h"
29
29
#include "yahoo_packet.h"
30
30
 
31
31
typedef enum {
34
34
        YAHOO_PRESENCE_PERM_OFFLINE
35
35
} YahooPresenceVisibility;
36
36
 
 
37
typedef enum {
 
38
        YAHOO_P2PSTATUS_NOT_CONNECTED = 0,
 
39
        YAHOO_P2PSTATUS_DO_NOT_CONNECT,
 
40
        YAHOO_P2PSTATUS_WE_ARE_SERVER,
 
41
        YAHOO_P2PSTATUS_WE_ARE_CLIENT
 
42
} YahooP2PStatus;
 
43
 
37
44
/* these are called friends instead of buddies mainly so I can use variables
38
45
 * named f and not confuse them with variables named b
39
46
 */
49
56
        YahooPresenceVisibility presence;
50
57
        int protocol; /* 1=LCS, 2=MSN*/
51
58
        long int version_id;
52
 
        gchar *alias_id;
 
59
        YahooPersonalDetails ypd;
 
60
        YahooP2PStatus p2p_status;
 
61
        gboolean p2p_packet_sent;       /* 0:not sent, 1=sent */
 
62
        gint session_id;        /* session id of friend */
53
63
} YahooFriend;
54
64
 
55
65
YahooFriend *yahoo_friend_find(PurpleConnection *gc, const char *name);
76
86
void yahoo_friend_update_presence(PurpleConnection *gc, const char *name,
77
87
                YahooPresenceVisibility presence);
78
88
 
 
89
void yahoo_friend_set_p2p_status(YahooFriend *f, YahooP2PStatus p2p_status);
 
90
YahooP2PStatus yahoo_friend_get_p2p_status(YahooFriend *f);
 
91
 
79
92
#endif /* _YAHOO_FRIEND_H_ */