Line | |
---|
1 | #ifndef CMBCASTER_H
|
---|
2 | #define CMBCASTER_H
|
---|
3 |
|
---|
4 | #include <QtNetwork>
|
---|
5 |
|
---|
6 | class cmbCaster : public QObject {
|
---|
7 | Q_OBJECT
|
---|
8 | public:
|
---|
9 | cmbCaster();
|
---|
10 | ~cmbCaster();
|
---|
11 | void open();
|
---|
12 | void write(char* buffer, unsigned len);
|
---|
13 | bool usedSocket() const {return _outSocket;}
|
---|
14 |
|
---|
15 | signals:
|
---|
16 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
17 |
|
---|
18 | private:
|
---|
19 | QString _mountpoint;
|
---|
20 | QTcpSocket* _outSocket;
|
---|
21 | int _sOpenTrial;
|
---|
22 | QDateTime _outSocketOpenTime;
|
---|
23 | };
|
---|
24 |
|
---|
25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.