Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- round 1 of sundry cleanup before bigger change to move it out of the main thread
- Loading branch information
1 parent
90822cb
commit 50cb7c0
Showing
3 changed files
with
73 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,27 @@ | ||
#ifndef MYTHUDPLISTENER_H | ||
#define MYTHUDPLISTENER_H | ||
|
||
// Qt | ||
#include <QObject> | ||
|
||
// MythTV | ||
#include "serverpool.h" | ||
|
||
class QByteArray; | ||
class QUdpSocket; | ||
class QDomElement; | ||
|
||
class MythUDPListener : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
MythUDPListener(); | ||
|
||
void Enable(void); | ||
void Disable(void); | ||
|
||
public slots: | ||
virtual void deleteLater(void); | ||
~MythUDPListener() override; | ||
void Enable(); | ||
void Disable(); | ||
|
||
private slots: | ||
static void Process(const QByteArray &buf, const QHostAddress& sender, | ||
quint16 senderPort); | ||
|
||
private: | ||
~MythUDPListener(void) override { Disable(); } | ||
|
||
void TeardownAll(void) { Disable(); } | ||
static void Process(const QByteArray &Buffer, const QHostAddress& /*Sender*/, quint16 /*SenderPort*/); | ||
|
||
private: | ||
ServerPool *m_socketPool {nullptr}; | ||
ServerPool* m_socketPool { nullptr }; | ||
}; | ||
|
||
#endif // MYTHUDPLISTENER_H | ||
#endif |