greaterThan(QT_MAJOR_VERSION, 4) { QT += widgets DEFINES += HAVE_QT5}TEMPLATE = libTARGET = rsrcsQT += sql networkCONFIG += shared dll pluginDEFINES += D_SHARED_LIBSOURCES = src/rsrcs.cpp HEADERS = src/rsrcs.h DESTDIR = ../../core/bin/OBJECTS_DIR = build/MOC_DIR = build/RCC_DIR = build/TRANSLATIONS += ../../core/bin/l10n/rsrsc_ru.tsmessage($$DEFINES)
#include <QtGlobal>#include <QtCore>#include <QDebug>//---minGW/*#ifdef D_SHARED_LIB #define D_SHARED_LIB_EXPORT Q_DECL_EXPORT#else #define D_SHARED_LIB_EXPORT Q_DECL_IMPORT#endif*///---msvc#ifdef D_SHARED_LIB #define D_SHARED_LIB_EXPORT __declspec(dllexport)#else #define D_SHARED_LIB_EXPORT __declspec(dllimport)#endif//SHARED FUNCTIONS_______________________________________________________________________extern "C" D_SHARED_LIB_EXPORT const QString getVersion();extern "C" D_SHARED_LIB_EXPORT const QStringList selectDates4Report(QWidget *parent);extern "C" D_SHARED_LIB_EXPORT const QList< QList<QString> > selectDepts(const QStringList &connectionParameters, bool multiSelection, bool showDeletedItems, int id_firm, QWidget *parent, Qt::WindowState state);extern "C" D_SHARED_LIB_EXPORT const QList< QList<QString> > selectPosts(const QStringList &connectionParameters, bool multiSelection, bool showDeletedItems, int id_firm, int id_dept, QWidget *parent, Qt::WindowState state);extern "C" D_SHARED_LIB_EXPORT QImage drawGraph(const QStringList &names,const QList<double> &values,int itemsLimit);
C++ (Qt)extern "C" D_SHARED_LIB_EXPORT void selectDepts2(QList< QList<QString> > & outList,const QStringList &connectionParameters,... ){ outList = selectDepts(connectionParameters..);}