From dd538dfb4e1e720daccb61b1b56c20c2e92a6c8c Mon Sep 17 00:00:00 2001 From: Herwig Birke Date: Sat, 27 May 2023 21:59:30 +0200 Subject: [PATCH] initial commit --- importDigiKey/importDigiKey.cpp | 8 ++++++++ importDigiKey/importDigiKey.h | 20 ++++++++++++++++++++ importDigiKey/importDigiKey.json | 1 + importDigiKey/importDigiKey.pro | 18 ++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 importDigiKey/importDigiKey.cpp create mode 100644 importDigiKey/importDigiKey.h create mode 100644 importDigiKey/importDigiKey.json create mode 100644 importDigiKey/importDigiKey.pro 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!