~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to include/discovery/CBroadcastServer.h

  • Committer: Nathan Osman
  • Date: 2012-06-28 17:51:28 UTC
  • Revision ID: admin@quickmediasolutions.com-20120628175128-r3r7rbswom1nds5u
Created an intermediate class, CBasicBroadcastServer, which will receive most of the functionality that CBroadcastServer currently has.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <QMap>
22
22
#include <QTimer>
23
23
#include <QSystemTrayIcon>
24
 
#include <QUdpSocket>
25
24
 
 
25
#include <discovery/CBasicBroadcastServer.h>
26
26
#include <discovery/CMachine.h>
27
27
 
28
 
class CBroadcastServer : public QUdpSocket
 
28
class CBroadcastServer : public CBasicBroadcastServer
29
29
{
30
30
    Q_OBJECT
31
31
 
40
40
        bool MachineExists(QString id) { return m_machines.contains(id); }
41
41
        CMachine GetMachine(QString id) { return m_machines[id]; }
42
42
 
43
 
    signals:
44
 
 
45
 
        void Message(QString, QSystemTrayIcon::MessageIcon);
46
 
 
47
43
    private slots:
48
44
 
49
45
        void OnMessage();