summaryrefslogtreecommitdiff
path: root/Presence/XMPPTypes.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-07-11 15:57:30 -0400
committerjoe <joe@jerkface.net>2013-07-11 15:57:30 -0400
commit563125c8dc8c73b6382708637a12c72110cd0662 (patch)
treeac36cfe81370d9d1eadb7b276c89150bed980862 /Presence/XMPPTypes.hs
parente532b9d2ae3263513d7de4aec4913e234b3f3b46 (diff)
roster updates and presence notification in case of a new subscription.
Diffstat (limited to 'Presence/XMPPTypes.hs')
-rw-r--r--Presence/XMPPTypes.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Presence/XMPPTypes.hs b/Presence/XMPPTypes.hs
index 6d00d509..0e98a77b 100644
--- a/Presence/XMPPTypes.hs
+++ b/Presence/XMPPTypes.hs
@@ -57,6 +57,7 @@ class JabberClientSession session where
57 getMySolicited :: session -> IO [ByteString] 57 getMySolicited :: session -> IO [ByteString]
58 addSolicited :: session -> ByteString -> JID -> IO () 58 addSolicited :: session -> ByteString -> JID -> IO ()
59 isSubscribed :: session -> ByteString -> IO Bool 59 isSubscribed :: session -> ByteString -> IO Bool
60 isBuddy :: session -> ByteString -> IO Bool
60 approveSubscriber :: session -> ByteString -> IO () 61 approveSubscriber :: session -> ByteString -> IO ()
61 62
62class JabberPeerSession session where 63class JabberPeerSession session where
@@ -94,7 +95,10 @@ data RosterEvent = RequestedSubscription
94 | NewBuddy 95 | NewBuddy
95 {- user: -} ByteString 96 {- user: -} ByteString
96 {- contact: -} ByteString 97 {- contact: -} ByteString
97 | PendingBuddy 98 | PendingSubscriber
99 {- user: -} ByteString
100 {- contact: -} ByteString
101 | NewSubscriber
98 {- user: -} ByteString 102 {- user: -} ByteString
99 {- contact: -} ByteString 103 {- contact: -} ByteString
100 deriving Prelude.Show 104 deriving Prelude.Show