~ubuntu-branches/ubuntu/vivid/gloox/vivid-proposed

« back to all changes in this revision

Viewing changes to src/linklocalhandler.h

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-03-16 17:34:43 UTC
  • mfrom: (12.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20140316173443-4s177dovzaz5dm8o
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 2012-2013 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 LINKLOCALHANDLER_H__
 
14
#define LINKLOCALHANDLER_H__
 
15
 
 
16
#ifdef HAVE_MDNS
 
17
 
 
18
#include "linklocal.h"
 
19
#include "macros.h"
 
20
#include "gloox.h"
 
21
 
 
22
#include <string>
 
23
 
 
24
namespace gloox
 
25
{
 
26
 
 
27
  namespace LinkLocal
 
28
  {
 
29
 
 
30
//     class Client;
 
31
 
 
32
    /**
 
33
     * @brief A base class that gets informed about advertised or removed XMPP services on the local network.
 
34
     *
 
35
     * See @ref gloox::LinkLocal::Manager for more information on how to implement
 
36
     * link-local messaging.
 
37
     * 
 
38
     * @author Jakob Schroeter <js@camaya.net>
 
39
     * @since 1.0.x
 
40
     */
 
41
    class GLOOX_API Handler
 
42
    {
 
43
      public:
 
44
        /**
 
45
         * Reimplement this function to be notified about services available on (or removed from)
 
46
         * the local network.
 
47
         * @param services A list of services.
 
48
         * @note Make a copy of the service list as the list will not be valid after the function
 
49
         * returned.
 
50
         */
 
51
        virtual void handleBrowseReply( const ServiceList& services ) = 0;
 
52
 
 
53
//         /**
 
54
//          *
 
55
//          */
 
56
//         virtual void handleClient( Client* client ) = 0;
 
57
 
 
58
    };
 
59
 
 
60
  }
 
61
 
 
62
}
 
63
 
 
64
#endif // HAVE_MDNS
 
65
 
 
66
#endif // LINKLOCALHANDLER_H__