|
| enum | Flags { EditingReloadsEverything = (1 << 0)
} |
| |
| using | FileMapper = std::function< QString(const QString &path, score::FileKind kind, bool output)> |
| |
|
|
virtual Flags | flags () const noexcept |
| |
|
virtual QString | prettyName () const noexcept=0 |
| |
|
virtual QString | category () const noexcept=0 |
| |
|
virtual QUrl | manual () const noexcept |
| |
| virtual int | visualPriority () const noexcept |
| |
|
virtual DeviceEnumerators | getEnumerators (const score::DocumentContext &ctx) const |
| |
|
virtual DeviceInterface * | makeDevice (const Device::DeviceSettings &settings, const Explorer::DeviceDocumentPlugin &plugin, const score::DocumentContext &ctx)=0 |
| |
|
virtual ProtocolSettingsWidget * | makeSettingsWidget ()=0 |
| |
|
virtual AddressDialog * | makeAddAddressDialog (const Device::DeviceInterface &dev, const score::DocumentContext &ctx, QWidget *)=0 |
| |
|
virtual AddressDialog * | makeEditAddressDialog (const Device::AddressSettings &, const Device::DeviceInterface &dev, const score::DocumentContext &ctx, QWidget *)=0 |
| |
|
virtual const Device::DeviceSettings & | defaultSettings () const noexcept=0 |
| |
|
virtual void | serializeProtocolSpecificSettings (const QVariant &data, const VisitorVariant &visitor) const =0 |
| |
|
template<typename T > |
| void | serializeProtocolSpecificSettings_T (const QVariant &data, const VisitorVariant &visitor) const |
| |
|
virtual QVariant | makeProtocolSpecificSettings (const VisitorVariant &visitor) const =0 |
| |
|
template<typename T > |
| QVariant | makeProtocolSpecificSettings_T (const VisitorVariant &vis) const |
| |
| virtual QVariant | relocateExternalFiles (const QVariant &settings, const FileMapper &map) const |
| |
| virtual bool | checkResourcesAvailable (const Device::DeviceSettings &a, const DeviceResourceMap &) const noexcept |
| |
|
virtual bool | checkCompatibility (const Device::DeviceSettings &a, const Device::DeviceSettings &b) const noexcept=0 |
| |
|
virtual InterfaceKey | interfaceKey () const noexcept=0 |
| | Identifies an interface uniquely.
|
| |
◆ FileMapper
Callback handed to relocateExternalFiles: receives one path held in the settings and returns what it should become, or an empty string to leave it alone. output marks a file the device writes rather than reads.
◆ checkResourcesAvailable()
| bool Device::ProtocolFactory::checkResourcesAvailable |
( |
const Device::DeviceSettings & |
a, |
|
|
const DeviceResourceMap & |
|
|
) |
| const |
|
virtualnoexcept |
Returns true if the device can be instantiated. e.g. are the necessary ports available at the system level. Second argument is a map of all the used resources by other devices in the score.
◆ relocateExternalFiles()
| QVariant Device::ProtocolFactory::relocateExternalFiles |
( |
const QVariant & |
settings, |
|
|
const FileMapper & |
map |
|
) |
| const |
|
virtual |
Report — and optionally rewrite — the files these protocol-specific settings reference, so that project consolidation can collect them.
Returns updated settings, or an empty QVariant when nothing changed. The default implementation reports nothing, which is right for the many protocols that only ever talk to the network.
Reimplemented in Gfx::LibavProtocolFactory.
◆ visualPriority()
| int Device::ProtocolFactory::visualPriority |
( |
| ) |
const |
|
virtualnoexcept |
The one with the highest priority will show up first in the protocol list
The documentation for this class was generated from the following files: