mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #907, model interface
* extended interface, function to get simulator * made CDbMappingComponentAware an interface * public getMappingComponent
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1153f70776
commit
60a937b5b6
@@ -13,8 +13,7 @@
|
||||
#define BLACKGUI_COMPONENTS_DBMAPPINGCOMPONENTAWARE_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
|
||||
class QObject;
|
||||
#include <QObject>
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
@@ -29,16 +28,19 @@ namespace BlackGui
|
||||
//! Set the corresponding component
|
||||
virtual void setMappingComponent(CDbMappingComponent *component);
|
||||
|
||||
//! Get the mapping component
|
||||
CDbMappingComponent *getMappingComponent() const { return m_mappingComponent; }
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
CDbMappingComponentAware(QObject *parent);
|
||||
|
||||
//! Get the mapping component
|
||||
CDbMappingComponent *getMappingComponent() const { return m_mappingComponent; }
|
||||
|
||||
private :
|
||||
CDbMappingComponent *m_mappingComponent = nullptr; //!< reference to component
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Q_DECLARE_INTERFACE(BlackGui::Components::CDbMappingComponentAware, "org.swift-project.blackgui.components.dbmappingcomponentaware")
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user