xmpp: Common structure for imports

This commit is contained in:
xmppftw 2024-12-18 19:14:02 +01:00
parent 0ec9103b28
commit b8f74e6bce
4 changed files with 14 additions and 15 deletions

View file

@ -8,15 +8,15 @@ use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use tokio::sync::RwLock;
pub use tokio_xmpp::parsers;
use tokio_xmpp::parsers::disco::DiscoInfoResult;
pub use tokio_xmpp::{
jid::{BareJid, FullJid, Jid, ResourcePart},
minidom::Element,
Client as TokioXmppClient,
};
use crate::{event_loop, message, muc, upload, Error, Event};
use crate::{
event_loop,
jid::{BareJid, Jid, ResourcePart},
message, muc,
parsers::disco::DiscoInfoResult,
upload, Error, Event,
};
use tokio_xmpp::Client as TokioXmppClient;
pub struct Agent {
pub(crate) client: TokioXmppClient,

View file

@ -5,9 +5,9 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
use crate::{
jid::{BareJid, Jid},
minidom::Element,
parsers::message::{Body, Message, MessagePayload, MessageType},
tokio_xmpp::jid::{BareJid, Jid},
};
use crate::Agent;

View file

@ -5,9 +5,9 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
use crate::{
jid::{BareJid, Jid},
message::send::RawMessageSettings,
parsers::{message::MessageType, muc::user::MucUser},
tokio_xmpp::jid::{BareJid, Jid},
Agent, RoomNick,
};

View file

@ -4,18 +4,17 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
use crate::parsers::message::MessageType;
use tokio_xmpp::{
use crate::{
jid::{BareJid, ResourcePart, ResourceRef},
message::send::RawMessageSettings,
parsers::{
message::MessageType,
muc::Muc,
presence::{Presence, Type as PresenceType},
},
Agent,
};
use crate::message::send::RawMessageSettings;
use crate::Agent;
#[derive(Clone, Debug)]
pub struct JoinRoomSettings<'a> {
pub room: BareJid,