diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-03-01 20:17:23 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-03-01 20:17:23 (GMT) | 
| commit | ca3f25d09a703ff7c27267a5591ce5379886e1c9 (patch) | |
| tree | b14c38655ea3c61beb79f8a895fc7e6ce2989a9e /Swiften/Client/CoreClient.h | |
| parent | 5ad284705760c451012a5d896251af538e7bcede (diff) | |
| download | swift-ca3f25d09a703ff7c27267a5591ce5379886e1c9.zip swift-ca3f25d09a703ff7c27267a5591ce5379886e1c9.tar.bz2  | |
Some more Sluift enhancements.
Diffstat (limited to 'Swiften/Client/CoreClient.h')
| -rw-r--r-- | Swiften/Client/CoreClient.h | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/Swiften/Client/CoreClient.h b/Swiften/Client/CoreClient.h index ee73396..eb9c42c 100644 --- a/Swiften/Client/CoreClient.h +++ b/Swiften/Client/CoreClient.h @@ -48,6 +48,11 @@ namespace Swift {  	 */  	class CoreClient : public Entity {  		public:  +			enum UseTLS { +				NeverUseTLS, +				UseTLSWhenAvailable +			}; +  			/**  			 * Constructs a client for the given JID with the given password.  			 * The given eventLoop will be used to post events to. @@ -83,6 +88,11 @@ namespace Swift {  			void sendPresence(Presence::ref);  			/** +			 * Sends raw, unchecked data. +			 */ +			void sendData(const std::string& data); + +			/**  			 * Returns the IQ router for this client.  			 */  			IQRouter* getIQRouter() const { @@ -148,6 +158,11 @@ namespace Swift {  			 */  			void setUseStreamCompression(bool b); +			/** +			 * Sets whether TLS encryption should be used. +			 */ +			void setUseTLS(UseTLS useTLS); +  		public:  			/**  			 * Emitted when the client was disconnected from the network. @@ -213,6 +228,7 @@ namespace Swift {  			std::string password_;  			NetworkFactories* networkFactories;  			bool useStreamCompression; +			UseTLS useTLS;  			ClientSessionStanzaChannel* stanzaChannel_;  			IQRouter* iqRouter_;  			Connector::ref connector_;  | 
 Swift