17 #include "clientbase.h"
18 #include "iqhandler.h"
110 Client(
const std::string& server );
122 Client(
const JID& jid,
const std::string& password,
int port = -1 );
136 Client(
const std::string& username,
const std::string& password,
137 const std::string& server,
const std::string& resource,
int port = -1 );
155 const std::string&
resource()
const {
return m_jid.resource(); }
167 void setUsername(
const std::string &username );
173 void setResource(
const std::string &resource ) { m_jid.setResource( resource ); }
186 void setPresence(
Presence presence,
int priority = 0,
const std::string& msg =
"" );
198 const std::string&
status()
const {
return m_status; }
216 void removePresenceExtensions();
223 GLOOX_DEPRECATED
void setForceNonSasl(
bool force =
true ) { m_forceNonSasl = force; }
230 void disableRoster();
259 virtual void handleStartNode() {}
260 virtual bool handleNormalNode( Stanza *stanza );
262 int getStreamFeatures( Stanza *stanza );
263 int getSaslMechs( Tag *tag );
264 int getCompressionMethods( Tag *tag );
265 void processResourceBind( Stanza *stanza );
266 void processCreateSession( Stanza *stanza );
268 void createSession();
271 virtual void rosterFilled();
272 virtual void cleanup();
276 RosterManager *m_rosterManager;
282 std::string m_status;
284 bool m_resourceBound;
289 int m_streamFeatures;