summaryrefslogtreecommitdiffstats
path: root/noatun/modules/net/net.h
blob: 7d0fcb11a5e3e4c39888213654e1cde901a7d63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef DCOPIFACE_H
#define DCOPIFACE_H

#include <noatun/player.h>
#include <noatun/plugin.h>
#include <qserversocket.h>
#include <qsocket.h>
#include <unistd.h>

class Net : public QServerSocket, public Plugin
{
Q_OBJECT

public:
	Net();
	~Net();

public slots:
	void newSong();

private slots:
	void closed();
protected:
	virtual void newConnection(int socket);

private:
	QPtrList<QSocket> mFDs;
};

#endif