~ari-tczew/ubuntu/natty/clementine/lp-747113

« back to all changes in this revision

Viewing changes to 3rdparty/gloox/connectionhandler.h

  • Committer: Artur Rona
  • Date: 2011-04-04 20:05:33 UTC
  • Revision ID: ari-tczew@ubuntu.com-20110404200533-6aclzasj5pp8t1hq
* New upstream release. (LP: #747113)
* Drop all patches, have been applied upstream.
* Update debian/copyright.
* Refresh description in debian/control in order to avoid lintian error.
* Bump debhelper to 8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 2007-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
 
 
14
 
 
15
#ifndef CONNECTIONHANDLER_H__
 
16
#define CONNECTIONHANDLER_H__
 
17
 
 
18
#include "connectionbase.h"
 
19
 
 
20
namespace gloox
 
21
{
 
22
 
 
23
  /**
 
24
   * @brief This is an abstract base class to receive incoming connection attempts. Do not
 
25
   * confuse this with ConnectionListener, which is used with XMPP streams and has a
 
26
   * completely different meaning.
 
27
   *
 
28
   * You should not need to use this class directly.
 
29
   *
 
30
   * @author Jakob Schroeter <js@camaya.net>
 
31
   * @since 0.9
 
32
   */
 
33
  class GLOOX_API ConnectionHandler
 
34
  {
 
35
    public:
 
36
      /**
 
37
       * Virtual Destructor.
 
38
       */
 
39
      virtual ~ConnectionHandler() {}
 
40
 
 
41
      /**
 
42
       * This function is called to receive an incoming connection.
 
43
       * @param server The server that the connection was made to.
 
44
       * @param connection The incoming connection.
 
45
       */
 
46
      virtual void handleIncomingConnection( ConnectionBase* server, ConnectionBase* connection ) = 0;
 
47
 
 
48
  };
 
49
 
 
50
}
 
51
 
 
52
#endif // CONNECTIONHANDLER_H__