gloox  1.0
connectiontlsserver.h
1 /*
2  * Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
3  * This file is part of the gloox library. http://camaya.net/gloox
4  *
5  * This software is distributed under a license. The full license
6  * agreement can be found in the file LICENSE in this distribution.
7  * This software may not be copied, modified, sold or distributed
8  * other than expressed in the named license agreement.
9  *
10  * This software is distributed without any warranty.
11  */
12 
13 #ifndef CONNECTIONTLSSERVER_H__
14 #define CONNECTIONTLSSERVER_H__
15 
16 #include "macros.h"
17 #include "logsink.h"
18 #include "connectionbase.h"
19 #include "connectiontls.h"
20 #include "tlsdefault.h"
21 #include "tlshandler.h"
22 
23 #include <string>
24 
25 namespace gloox
26 {
27 
28  class ConnectionDataHandler;
29 
38  class GLOOX_API ConnectionTLSServer : public ConnectionTLS
39  {
40  public:
50 
58  ConnectionTLSServer( ConnectionBase* conn, const LogSink& log );
59 
63  virtual ~ConnectionTLSServer();
64 
69  virtual TLSBase* getTLSBase( TLSHandler* th, const std::string server );
70 
71  // reimplemented from ConnectionTLS
72  virtual ConnectionBase* newInstance() const;
73 
74  private:
75  ConnectionTLSServer& operator=( const ConnectionTLSServer& );
76 
77  };
78 
79 }
80 
81 #endif // CONNECTIONTLSSERVER_H__