ExtensionSystem::PluginDependency Struct
struct ExtensionSystem::PluginDependencyKlasa PluginDependency zawiera identyfikator oraz wymagany numer kompatybilnej wersji zależności wtyczki. Więcej...
| Header: | #include <extensionsystem/pluginspec.h> |
Typy publiczne
| enum | Type { Required, Optional, Test } |
Zmienne publiczne
Szczegółowy opis
Odzwierciedla to dane obiektu zależności w metadanych wtyczki. Identyfikator i wersja służą do rozpoznawania zależności. Oznacza to, że wyszukiwana jest wtyczka o podanym identyfikatorze i adresie compatibility version <= dependency version <= plugin version.
Zobacz również sekcję „ ExtensionSystem::IPlugin ”, aby uzyskać więcej informacji na temat zależności wtyczek i dopasowywania wersji.
Dokumentacja typów elementów składowych
enum PluginDependency::Type
Czy zależność jest wymagana, czy opcjonalna.
| Stała | Wartość | Opis |
|---|---|---|
ExtensionSystem::PluginDependency::Required | 0 | Zależność musi być obecna. |
ExtensionSystem::PluginDependency::Optional | 1 | Zależność nie jest koniecznie potrzebna. Należy upewnić się, że wtyczka może się załadować bez zainstalowanej tej zależności, więc na przykład nie można dołączać biblioteki tej zależności. |
ExtensionSystem::PluginDependency::Test | 2 | Zależność musi być ładowana wymuszenie w celu przeprowadzenia testów wtyczki. |
Dokumentacja zmiennych składowych
QString PluginDependency::id
Identyfikator ciągu znaków wtyczki.
ExtensionSystem::PluginDependency::Type PluginDependency::type
Określa, czy zależność jest obowiązkowa, czy opcjonalna.
Zobacz także ExtensionSystem::PluginDependency::Type.
QString PluginDependency::version
Ciąg znaków określający wersję, z którą wtyczka musi być zgodna, aby spełnić to wymaganie.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.