diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b0014ba --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.user +/build diff --git a/sipTestBib.cpp b/sipTestBib.cpp new file mode 100644 index 0000000..e822167 --- /dev/null +++ b/sipTestBib.cpp @@ -0,0 +1,50 @@ +#include "sipTestBib.h" + + +SipTestBib::SipTestBib(QObject *parent) : QObject(parent) +{ +} + +int SipTestBib::getIntVar() const +{ + return _intVar; +} + +void SipTestBib::setIntVar(int intVar) +{ + _intVar = intVar; +} + +double SipTestBib::getDoubleVar() const +{ + return _doubleVar; +} + +void SipTestBib::setDoubleVar(double doubleVar) +{ + _doubleVar = doubleVar; +} + +QString SipTestBib::getStringVar() const +{ + return _stringVar; +} + +void SipTestBib::setStringVar(const QString &stringVar) +{ + _stringVar = stringVar; +} + +QVariantHash SipTestBib::getDictVar() const +{ + return _dictVar; +} + +void SipTestBib::setDictVar(const QVariantHash &dictVar) +{ + _dictVar = dictVar; +} + + + + diff --git a/sipTestBib.h b/sipTestBib.h new file mode 100644 index 0000000..99ee26f --- /dev/null +++ b/sipTestBib.h @@ -0,0 +1,40 @@ +#ifndef SIPTESTBIB_H +#define SIPTESTBIB_H + +#include "sipTestBib_global.h" + +#include +#include +#include + + +class SIPTESTBIBSHARED_EXPORT SipTestBib : public QObject +{ + Q_PROPERTY(int intVar READ getIntVar WRITE setIntVar) + Q_PROPERTY(double doubleVar READ getDoubleVar WRITE setDoubleVar) + Q_PROPERTY(QString stringVar READ getStringVar WRITE setStringVar) + Q_PROPERTY(QVariantHash dictVar READ getDictVar WRITE setDictVar) + +public: + SipTestBib(QObject *parent = 0); + + int getIntVar() const; + void setIntVar(int intVar); + + double getDoubleVar() const; + void setDoubleVar(double doubleVar); + + QString getStringVar() const; + void setStringVar(const QString &stringVar); + + QVariantHash getDictVar() const; + void setDictVar(const QVariantHash &dictVar); + +private: + int _intVar; + double _doubleVar; + QString _stringVar; + QVariantHash _dictVar; +}; + +#endif // SIPTESTBIB_H diff --git a/sipTestBib.pro b/sipTestBib.pro new file mode 100644 index 0000000..7a34275 --- /dev/null +++ b/sipTestBib.pro @@ -0,0 +1,22 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2015-10-13T18:09:34 +# +#------------------------------------------------- + +QT -= gui + +TARGET = sipTestBib +TEMPLATE = lib + +DEFINES += SIPTESTBIB_LIBRARY + +SOURCES += sipTestBib.cpp + +HEADERS += sipTestBib.h \ + sipTestBib_global.h + +unix { + target.path = /usr/lib + INSTALLS += target +} diff --git a/sipTestBib_global.h b/sipTestBib_global.h new file mode 100644 index 0000000..e871a20 --- /dev/null +++ b/sipTestBib_global.h @@ -0,0 +1,12 @@ +#ifndef SIPTESTBIB_GLOBAL_H +#define SIPTESTBIB_GLOBAL_H + +#include + +#if defined(SIPTESTBIB_LIBRARY) +# define SIPTESTBIBSHARED_EXPORT Q_DECL_EXPORT +#else +# define SIPTESTBIBSHARED_EXPORT Q_DECL_IMPORT +#endif + +#endif // SIPTESTBIB_GLOBAL_H