Rabbit Remote Control 0.0.32
Loading...
Searching...
No Matches
ConnecterWakeOnLan.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CONNECTERWAKEONLAN_H
4#define CONNECTERWAKEONLAN_H
5
6#pragma once
7
8#include "ConnecterConnect.h"
9#include "FrmWakeOnLan.h"
10#include "Arp.h"
11
13{
14 Q_OBJECT
15
16public:
17 explicit CConnecterWakeOnLan(CPluginClient *plugin);
18 virtual ~CConnecterWakeOnLan();
19
20 // CConnecter interface
21public:
22 virtual const QString Id() override;
23 virtual const QString Name() override;
24 virtual qint16 Version() override;
25 virtual QWidget *GetViewer() override;
26
27protected:
28 virtual int Initial() override;
29 virtual int Clean() override;
30
31 // CConnecter interface
32public slots:
33 virtual int Connect() override;
34 virtual int DisConnect() override;
35
36 // CConnecterConnect interface
37public:
38 virtual CConnect *InstanceConnect() override;
39
40Q_SIGNALS:
41 void sigGetMac(CParameterWakeOnLan* p);
42 void sigWakeOnLan(CParameterWakeOnLan* p);
43
44private:
45 virtual QDialog *OnOpenDialogSettings(QWidget *parent) override;
46 virtual int SetParameterClient(CParameterClient* pPara) override;
47
48 CFrmWakeOnLan* m_pView;
49 CWakeOnLanModel* m_pModel;
50 CArp m_Arp;
51 CParameterClient* m_pParameterClient;
52
53private Q_SLOTS:
54 void slotAdd();
55
56 // CConnecter interface
57protected:
58 virtual int Load(QSettings &set) override;
59 virtual int Save(QSettings &set) override;
60};
61
62#endif // CONNECTERWAKEONLAN_H
Definition Arp.h:21
Connect interface.
Definition Connect.h:45
The connector interface of the plug-in, which is only used by the plug-in.
virtual CConnect * InstanceConnect() override
New connect.
virtual QDialog * OnOpenDialogSettings(QWidget *parent) override
Open settgins dialog.
virtual int Clean() override
Clean parameters and resource.
virtual const QString Name() override
Display order:
virtual int Save(QSettings &set) override
Save parameters.
virtual int Load(QSettings &set) override
Load parameters.
virtual QWidget * GetViewer() override
Get Viewer.
virtual int Initial() override
Initial parameters and resource.
virtual const QString Id() override
Identity.
virtual int SetParameterClient(CParameterClient *pPara) override
Set CParameterClient.
virtual qint16 Version() override
Version.
The parameters of client.
The wake on lan parameters.
The plugin interface.