initial commit

This commit is contained in:
2023-05-28 21:32:58 +02:00
parent dd538dfb4e
commit 5073d69d72
11 changed files with 141 additions and 41 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "cimportdigikey.h"
QString cImportDigikey::pluginName()
{
return(PLUGIN_NAME);
}
qint16 cImportDigikey::pluginVersion()
{
return(PLUGIN_VERSION);
}
+24
View File
@@ -0,0 +1,24 @@
#ifndef CIMPORTDIGIKEY_H
#define CIMPORTDIGIKEY_H
#include <QObject>
#include <QtPlugin>
#include "cimportinterface.h"
#define PLUGIN_NAME "Import DigiKey"
#define PLUGIN_VERSION 1
class cImportDigikey : public QObject, cImportInterface
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "at.windesign.importInterface" FILE "importDigiKey.json")
Q_INTERFACES(cImportInterface)
public:
QString pluginName() override;
qint16 pluginVersion() override;
};
#endif
-8
View File
@@ -1,8 +0,0 @@
#include "importDigiKey.h"
//! [0]
QString cImportDigiKey::echo(const QString &message)
{
return message;
}
//! [0]
-20
View File
@@ -1,20 +0,0 @@
#ifndef IMPORTDIGIKEY_H
#define IMPORTDIGIKEY_H
#include <QObject>
#include <QtPlugin>
#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
+4 -2
View File
@@ -3,8 +3,10 @@ TEMPLATE = lib
CONFIG += plugin
QT += widgets
INCLUDEPATH += ../inventryParts
HEADERS = importDigiKey.h
SOURCES = importDigiKey.cpp
HEADERS = \
cimportdigikey.h
SOURCES = \
cimportdigikey.cpp
TARGET = $$qtLibraryTarget(importDigiKey)
DESTDIR = ../plugins
#! [0]