1// Copyright (c) 2017 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7/// The `http://jabber.org/protocol/pubsub#event` protocol.
8pub mod event;
9
10/// The `http://jabber.org/protocol/pubsub` protocol.
11pub mod pubsub;
12
13pub use self::event::PubSubEvent;
14pub use self::pubsub::PubSub;
15
16generate_id!(NodeName);
17generate_id!(ItemId);
18generate_id!(SubscriptionId);
19
20generate_attribute!(Subscription, "subscription", {
21 None => "none",
22 Pending => "pending",
23 Subscribed => "subscribed",
24 Unconfigured => "unconfigured",
25}, Default = None);