glooxwrapper::IQ::IQ(gloox::IQ::IqType type, const JID& to, const string& id) { m_Wrapped = new gloox::IQ(type, to.getWrapped(), id.to_string()); m_Owned = true; }
glooxwrapper::MUCRoom::MUCRoom(Client* parent, const JID& nick, MUCRoomHandler* mrh, MUCRoomConfigHandler* UNUSED(mrch)) { m_HandlerWrapper = new MUCRoomHandlerWrapper(mrh); m_Wrapped = new gloox::MUCRoom(parent ? parent->getWrapped() : NULL, nick.getWrapped(), m_HandlerWrapper); }
glooxwrapper::Client::Client(const JID& jid, const string& password, int port) { m_Wrapped = new gloox::Client(jid.getWrapped(), password.to_string(), port); m_DiscoWrapper = new glooxwrapper::Disco(m_Wrapped->disco()); m_Impl = new ClientImpl; }