38 lines
776 B
C++
38 lines
776 B
C++
#ifndef FORM_USB_H
|
|
#define FORM_USB_H
|
|
|
|
#include <windows.h>
|
|
#include <QObject>
|
|
#include <QWidget>
|
|
#include "usb_interface.h"
|
|
#include "form_seting.h"
|
|
namespace Ui {
|
|
class Form_usb;
|
|
}
|
|
|
|
class Form_usb : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Form_usb(QWidget *parent = nullptr);
|
|
~Form_usb();
|
|
|
|
private:
|
|
Ui::Form_usb *ui;
|
|
Usb_Interface Printer_Usb;
|
|
protected:
|
|
bool nativeEvent(const QByteArray &eventType, void *message, qintptr *result) override;
|
|
|
|
private slots:
|
|
void on_pushButton_clicked();
|
|
void onUsbDeviceChanged(bool inserted); // 槽函数
|
|
void on_pushButton_2_clicked();
|
|
|
|
void on_pushButton_windowTitleChanged(const QString &title);
|
|
|
|
signals:
|
|
void usbDeviceChanged(bool inserted); // 声明信号
|
|
};
|
|
|
|
#endif // FORM_USB_H
|