#ifndef _CCS_SHOP_1_INCLUDE_
#define _CCS_SHOP_1_INCLUDE_
#include <ShopInterface.h>
#include <QtCore/QtPlugin>
class Shop1Plugin
: public QObject,
public ShopInterface
{
Q_OBJECT
Q_INTERFACES(ShopInterface)
public:
virtual ~Shop1Plugin ();
virtual QIcon getShopIcon
() const;
virtual bool checkPrices
(QString strCompName,
double & dPrice,
QString strURL
);
};
#endif
#ifndef _CCS_SHOP_1_INCLUDE_
#define _CCS_SHOP_1_INCLUDE_
#include <ShopInterface.h>
#include <QtCore/QtPlugin>
class Shop1Plugin : public QObject, public ShopInterface
{
Q_OBJECT
Q_INTERFACES(ShopInterface)
public:
virtual ~Shop1Plugin ();
virtual QStringList shopNames() const;
virtual QIcon getShopIcon() const;
virtual bool checkPrices(QString strCompName, double & dPrice, QString strURL );
};
#endif
To copy to clipboard, switch view to plain text mode
It seems most likely that #include isn't processed. Like MOC can't finding Q_DECLARE_INTERFACE, but as you see - its there. I'll make test and put entire interface in one file with its realization.
PS. And it worked. If Interface is in the same file as its realization - it worked. Why MOC can't find this include? Maybe I should add this include to MOC processing line.
Bookmarks