#ifndef TESTPLUGIN_H #define TESTPLUGIN_H #include <../../src/interface.h> #include #include #include #include #include #include #include #include #include #include class ScreenShotPlugin : public QObject, public Interface { Q_OBJECT Q_PLUGIN_METADATA(IID "org.SOM.Interface" FILE "ScreenShotPlugin.json") Q_INTERFACES(Interface) public: QString pname() override; QString pdesc() override; QWidget *pcontent() override ; public slots: void updateceheck(); private slots: void shootScreen(); void newScreenshot(); void saveScreenshot(); private: void updateScreenshotLabel(); QLabel *screenshotLabel; QCheckBox *hideThisWindowCheckBox; QSpinBox *delaySpinBox; QPushButton *newScreenshotButton; QPixmap originalPixmap; QWidget *test; }; #endif