Rabbit Remote Control 0.0.30
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 virtual int Initial() override;
27 virtual int Clean() override;
28
29 // CConnecter interface
30public slots:
31 virtual int Connect() override;
32 virtual int DisConnect() override;
33
34 // CConnecterConnect interface
35public:
36 virtual CConnect *InstanceConnect() override;
37
38Q_SIGNALS:
39 void sigGetMac(CParameterWakeOnLan* p);
40 void sigWakeOnLan(CParameterWakeOnLan* p);
41
42private:
43 virtual QDialog *OnOpenDialogSettings(QWidget *parent) override;
44 virtual int SetParameterClient(CParameterClient* pPara) override;
45
46 CFrmWakeOnLan* m_pView;
47 CWakeOnLanModel* m_pModel;
48 CArp m_Arp;
49 CParameterClient* m_pParameterClient;
50
51private Q_SLOTS:
52 void slotAdd();
53
54 // CConnecter interface
55protected:
56 virtual int Load(QSettings &set) override;
57 virtual int Save(QSettings &set) override;
58};
59
60#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.