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