summaryrefslogtreecommitdiff
path: root/Presence/XMPPTypes.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-07-08 21:15:37 -0400
committerjoe <joe@jerkface.net>2013-07-08 21:15:37 -0400
commit88274ed5e6d6ffa37683c7e213095d23fd31decd (patch)
treec0d82589db94c5134d745a939670bcd9e4bde1c9 /Presence/XMPPTypes.hs
parentd163ee7393bcfcc2503698ea58db646546cfb55f (diff)
Send roster push events to client in case of subscription requests.
Diffstat (limited to 'Presence/XMPPTypes.hs')
-rw-r--r--Presence/XMPPTypes.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Presence/XMPPTypes.hs b/Presence/XMPPTypes.hs
index 301f19fd..2bba8614 100644
--- a/Presence/XMPPTypes.hs
+++ b/Presence/XMPPTypes.hs
@@ -38,6 +38,7 @@ class JabberClientSession session where
38 getJID :: session -> IO JID 38 getJID :: session -> IO JID
39 closeSession :: session -> IO () 39 closeSession :: session -> IO ()
40 subscribe :: session -> Maybe JID -> IO (TChan Presence) 40 subscribe :: session -> Maybe JID -> IO (TChan Presence)
41 subscribeToRoster :: session -> IO (TChan RosterEvent)
41 forCachedPresence :: session -> (Presence -> IO ()) -> IO () 42 forCachedPresence :: session -> (Presence -> IO ()) -> IO ()
42 getMyBuddies :: session -> IO [ByteString] 43 getMyBuddies :: session -> IO [ByteString]
43 getMySubscribers :: session -> IO [ByteString] 44 getMySubscribers :: session -> IO [ByteString]
@@ -72,6 +73,11 @@ data JabberShow = Offline
72data Presence = Presence JID JabberShow 73data Presence = Presence JID JabberShow
73 deriving Prelude.Show 74 deriving Prelude.Show
74 75
76data RosterEvent = RequestedSubscription
77 {- user: -} ByteString
78 {- contact: -} ByteString
79 deriving Prelude.Show
80
75data Peer = LocalHost | RemotePeer SockAddr 81data Peer = LocalHost | RemotePeer SockAddr
76 deriving (Eq,Prelude.Show) 82 deriving (Eq,Prelude.Show)
77 83