C++ (Qt)class CameraInterface{}; class CommonCamera : public QObject, public CameraInterface{signals: initDone();}; class SonyCamera : public CommonCamera{ void doInit() { ... emit initDone(); }};
C++ (Qt)#ifndef IPLUGIN_H#define IPLUGIN_H #include <QtCore> class CameraInterface{public: virtual ~CameraInterface() {} virtual void powerOn() = 0; virtual void powerOff() = 0;}; Q_DECLARE_INTERFACE(CameraInterface, "ru.prog.test.CameraInterface/1.0") #endif // IPLUGIN_H
C++ (Qt)class CameraInterface : public QObject{ Q_OBJECTpublic: virtual ~CameraInterface() {} virtual void powerOn();}; Q_DECLARE_INTERFACE(CameraInterface, "ru.myCompany.myApp.cameraInterface/1.0")
C++ (Qt)class CameraInterface{}; class CommonCamera : public QObject, public CameraInterface{signals: initDone();};
C++ (Qt)class CameraInterface : public QObject{signals: initDone();};