15 #include "uniquemucroom.h"
16 #include "clientbase.h"
24 UniqueMUCRoom::Unique::Unique(
const Tag* tag )
30 m_name = tag->cdata();
33 const std::string& UniqueMUCRoom::Unique::filterString()
const
35 static const std::string filter =
"/iq/unique[@xmlns='" +
XMLNS_MUC_UNIQUE +
"']";
39 Tag* UniqueMUCRoom::Unique::tag()
const
41 Tag* t =
new Tag(
"unique" );
44 t->setCData( m_name );
68 void UniqueMUCRoom::join()
70 if( !m_parent || m_joined )
78 void UniqueMUCRoom::handleIqID(
const IQ& iq,
int context )
80 switch( iq.subtype() )
85 const Unique* u = iq.findExtension<Unique>(
ExtMUCUnique );
88 if( !u->name().empty() )
97 s.feed( m_parent->
jid().
full() );
98 s.feed( m_parent->
getID() );