Logo Search packages:      
Sourcecode: gabber version File versions  Download package

void Session::onDocumentEnd (  )  [protected, virtual]

Event point for XML document end event. Override this method to get notified when the XML document is ending

Implements judo::ElementStreamEventListener.

Definition at line 358 of file jabberoo-session.cc.

References jabberoo::PresenceDB::clear(), csNotConnected, evtDisconnected, and jabberoo::Roster::reset().

{
     // Reset roster
     _Roster.reset();
     // Reset the presenceDB
     _PDB.clear();

     // Clear connection state
     _ConnState = csNotConnected;
     _StreamStart = false;

      // Transmit a closing stream tag...
     *this << "</stream:stream>";

     // Fire session Disconnect handler
     evtDisconnected();
}


Generated by  Doxygen 1.6.0   Back to index