|
|
|
@ -70,6 +70,8 @@ type Plugin = (XmppElement -> IO (Either XmppFailure ())) -- ^ pass stanza to |
|
|
|
-- next plugin |
|
|
|
-- next plugin |
|
|
|
-> ErrorT XmppFailure IO Plugin' |
|
|
|
-> ErrorT XmppFailure IO Plugin' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type RosterPushCallback = (QueryItem -> IO ()) |
|
|
|
|
|
|
|
|
|
|
|
-- | Configuration for the @Session@ object. |
|
|
|
-- | Configuration for the @Session@ object. |
|
|
|
data SessionConfiguration = SessionConfiguration |
|
|
|
data SessionConfiguration = SessionConfiguration |
|
|
|
{ -- | Configuration for the @Stream@ object. |
|
|
|
{ -- | Configuration for the @Stream@ object. |
|
|
|
@ -90,7 +92,7 @@ data SessionConfiguration = SessionConfiguration |
|
|
|
, initialRoster :: IO (Maybe Roster) |
|
|
|
, initialRoster :: IO (Maybe Roster) |
|
|
|
-- | Callback called on a roster Push. The callback is called after the |
|
|
|
-- | Callback called on a roster Push. The callback is called after the |
|
|
|
-- roster is updated |
|
|
|
-- roster is updated |
|
|
|
, onRosterPush :: Maybe (QueryItem -> IO ()) |
|
|
|
, onRosterPush :: Maybe RosterPushCallback |
|
|
|
-- | Track incomming presence stancas. |
|
|
|
-- | Track incomming presence stancas. |
|
|
|
, enablePresenceTracking :: Bool |
|
|
|
, enablePresenceTracking :: Bool |
|
|
|
-- | Callback that is invoked when the presence status of a peer changes, |
|
|
|
-- | Callback that is invoked when the presence status of a peer changes, |
|
|
|
|