KVIrc 5.2.6
Developer APIs
SsdpConnection.h
Go to the documentation of this file.
1//=============================================================================
2//
3// File : SsdpConnection.h
4// Creation date : Fri Aug 08 18:00:00 2008 GMT by Fabio Bas
5//
6// This file is part of the KVIrc IRC client distribution
7// Copyright (C) 2008 Fabio Bas (ctrlaltca at gmail dot com)
8//
9// This program is FREE software. You can redistribute it and/or
10// modify it under the terms of the GNU General Public License
11// as published by the Free Software Foundation; either version 2
12// of the License, or (at your option) any later version.
13//
14// This program is distributed in the HOPE that it will be USEFUL,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17// See the GNU General Public License for more details.
18//
19// You should have received a copy of the GNU General Public License
20// along with this program. If not, write to the Free Software Foundation,
21// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22//
23// Original Copyright follows:
24//=============================================================================
25
26/***************************************************************************
27 SsdpConnection.h - description
28 -------------------
29 begin : Fri Jul 29 2005
30 copyright : (C) 2005 by Diederik van der Boor
31 email : vdboor --at-- codingdomain.com
32 ***************************************************************************/
33
34#ifndef UPNP_SSDPCONNECTION_H
35#define UPNP_SSDPCONNECTION_H
36
37#include <QObject>
38
39class QUdpSocket;
40
41namespace UPnP
42{
43
55 class SsdpConnection : public QObject
56 {
57 Q_OBJECT
58
59 public:
62
63 void queryDevices(int bindPort = 1500);
64
65 private slots:
66 // Data was received by the socket
67 void slotDataReceived();
68
69 private:
70 QUdpSocket * m_pSocket;
71 signals:
72 // Called when a query completed
73 void deviceFound(const QString & hostname, int port, const QString & rootUrl);
74 };
75}
76
77#endif
void queryDevices(int bindPort=1500)
Definition SsdpConnection.cpp:115
void deviceFound(const QString &hostname, int port, const QString &rootUrl)
QUdpSocket * m_pSocket
Definition SsdpConnection.h:70
void slotDataReceived()
Definition SsdpConnection.cpp:63
~SsdpConnection()
Definition SsdpConnection.cpp:53
SsdpConnection()
Definition SsdpConnection.cpp:46
Definition igdcontrolpoint.cpp:42