gloox 1.0

connectiontlsserver.h

00001 /*
00002  * Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
00003  * This file is part of the gloox library. http://camaya.net/gloox
00004  *
00005  * This software is distributed under a license. The full license
00006  * agreement can be found in the file LICENSE in this distribution.
00007  * This software may not be copied, modified, sold or distributed
00008  * other than expressed in the named license agreement.
00009  *
00010  * This software is distributed without any warranty.
00011  */
00012 
00013 #ifndef CONNECTIONTLSSERVER_H__
00014 #define CONNECTIONTLSSERVER_H__
00015 
00016 #include "macros.h"
00017 #include "logsink.h"
00018 #include "connectionbase.h"
00019 #include "connectiontls.h"
00020 #include "tlsdefault.h"
00021 #include "tlshandler.h"
00022 
00023 #include <string>
00024 
00025 namespace gloox
00026 {
00027 
00028   class ConnectionDataHandler;
00029 
00038   class GLOOX_API ConnectionTLSServer : public ConnectionTLS
00039   {
00040     public:
00049       ConnectionTLSServer( ConnectionDataHandler* cdh, ConnectionBase* conn, const LogSink& log );
00050 
00058       ConnectionTLSServer( ConnectionBase* conn, const LogSink& log );
00059 
00063       virtual ~ConnectionTLSServer();
00064 
00069       virtual TLSBase* getTLSBase( TLSHandler* th, const std::string server );
00070 
00071       // reimplemented from ConnectionTLS
00072       virtual ConnectionBase* newInstance() const;
00073 
00074     private:
00075       ConnectionTLSServer& operator=( const ConnectionTLSServer& );
00076 
00077   };
00078 
00079 }
00080 
00081 #endif // CONNECTIONTLSSERVER_H__