-
Notifications
You must be signed in to change notification settings - Fork 0
/
miscdevices.h
executable file
·48 lines (38 loc) · 1.05 KB
/
miscdevices.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef MISCDEVICES_H
#define MISCDEVICES_H
#include "sioworker.h"
class Printer: public SioDevice
{
Q_OBJECT
private:
int m_lastOperation;
public:
Printer(SioWorker *worker): SioDevice(worker) {}
void handleCommand(quint8 command, quint16 aux);
signals:
void print(const QString &text);
};
// ApeTime device
class ApeTime: public SioDevice
{
Q_OBJECT
public:
ApeTime(SioWorker *worker): SioDevice(worker) {}
void handleCommand(quint8 command, quint16 aux);
};
// AspeQt Time Server //
class AspeCl: public SioDevice
{
Q_OBJECT
public:
AspeCl(SioWorker *worker): SioDevice(worker) {}
void handleCommand(quint8 command, quint16 aux);
public slots:
void gotNewSlot (int slot); //
void fileMounted (bool mounted); //
signals:
void findNewSlot (int startFrom, bool createOne);
void mountFile (int no, const QString fileName);
void toggleAutoCommit (int no); //
};
#endif // MISCDEVICES_H