diff --git a/importDigiKey/importDigiKey.cpp b/importDigiKey/importDigiKey.cpp new file mode 100644 index 0000000..86056c9 --- /dev/null +++ b/importDigiKey/importDigiKey.cpp @@ -0,0 +1,8 @@ +#include "importDigiKey.h" + +//! [0] +QString cImportDigiKey::echo(const QString &message) +{ + return message; +} +//! [0] diff --git a/importDigiKey/importDigiKey.h b/importDigiKey/importDigiKey.h new file mode 100644 index 0000000..883ab18 --- /dev/null +++ b/importDigiKey/importDigiKey.h @@ -0,0 +1,20 @@ +#ifndef IMPORTDIGIKEY_H +#define IMPORTDIGIKEY_H + +#include +#include +#include "inventryPartsInterface.h" + +//! [0] +class importDigikey : public QObject, inventryPartsInterface +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "at.windesign.inventryPartsInterface" FILE "importDigiKey.json") + Q_INTERFACES(inventryPartsInterface) + +public: + QString echo(const QString &message) override; +}; +//! [0] + +#endif diff --git a/importDigiKey/importDigiKey.json b/importDigiKey/importDigiKey.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/importDigiKey/importDigiKey.json @@ -0,0 +1 @@ +{} diff --git a/importDigiKey/importDigiKey.pro b/importDigiKey/importDigiKey.pro new file mode 100644 index 0000000..5340b27 --- /dev/null +++ b/importDigiKey/importDigiKey.pro @@ -0,0 +1,18 @@ +#! [0] +TEMPLATE = lib +CONFIG += plugin +QT += widgets +INCLUDEPATH += ../inventryParts +HEADERS = importDigiKey.h +SOURCES = importDigiKey.cpp +TARGET = $$qtLibraryTarget(importDigiKey) +DESTDIR = ../plugins +#! [0] + +EXAMPLE_FILES = importDigiKey.json + +# install +#target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/importDigiKey/plugins +#INSTALLS += target + +CONFIG += install_ok # Do not cargo-cult this!