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 | QString mountpoint() const {return _mountpoint;}
|
---|
15 |
|
---|
16 | signals:
|
---|
17 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
18 |
|
---|
19 | private:
|
---|
20 | QString _mountpoint;
|
---|
21 | QString _cmbOutHost;
|
---|
22 | int _cmbOutPort;
|
---|
23 | QString _password;
|
---|
24 | QTcpSocket* _outSocket;
|
---|
25 | int _sOpenTrial;
|
---|
26 | QDateTime _outSocketOpenTime;
|
---|
27 | };
|
---|
28 |
|
---|
29 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.