initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "cimportdigikey.h"
|
||||
|
||||
|
||||
QString cImportDigikey::pluginName()
|
||||
{
|
||||
return(PLUGIN_NAME);
|
||||
}
|
||||
qint16 cImportDigikey::pluginVersion()
|
||||
{
|
||||
return(PLUGIN_VERSION);
|
||||
}
|
||||
@@ -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
|
||||
@@ -1,8 +0,0 @@
|
||||
#include "importDigiKey.h"
|
||||
|
||||
//! [0]
|
||||
QString cImportDigiKey::echo(const QString &message)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
//! [0]
|
||||
@@ -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
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user