pqServerConfigurationImporter class can be used to import remote server configurations.
More...
#include <pqServerConfigurationImporter.h>
Inherits QObject.
pqServerConfigurationImporter class can be used to import remote server configurations.
Definition at line 20 of file pqServerConfigurationImporter.h.
◆ SourceMode
◆ pqServerConfigurationImporter()
pqServerConfigurationImporter::pqServerConfigurationImporter |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~pqServerConfigurationImporter()
pqServerConfigurationImporter::~pqServerConfigurationImporter |
( |
| ) |
|
|
override |
◆ addSource()
Add source URL.
Currently, we only support pvsc sources. In future we may support other types of sources. For every url added, the following locations are tried, in the specific order:
- ${url}
- ${url}/v{major_version}.{minor_version}/[win32|macos|nix]/servers.pvsc
- ${url}/v{major_version}.{minor_version}/[win32|macos|nix]/servers.xml
- ${url}/v{major_version}.{minor_version}/servers.pvsc
- ${url}/v{major_version}.{minor_version}/servers.xml
- ${url}/servers.pvsc
- ${url}/servers.xml The search stops as soon as a url returns a valid servers configuration file. Note all paths are case-sensitive.
◆ clearSources()
void pqServerConfigurationImporter::clearSources |
( |
| ) |
|
Remove all added sources.
◆ configurations()
const QList<Item>& pqServerConfigurationImporter::configurations |
( |
| ) |
const |
◆ fetchConfigurations
void pqServerConfigurationImporter::fetchConfigurations |
( |
| ) |
|
|
slot |
◆ abortFetch
void pqServerConfigurationImporter::abortFetch |
( |
| ) |
|
|
slot |
◆ incrementalUpdate
void pqServerConfigurationImporter::incrementalUpdate |
( |
| ) |
|
|
signal |
fired as source configurations are fetched.
Makes it possible to build interfaces that are populated as new configurations arrive, rather than waiting for the entire fetchConfigurations() to complete.
◆ configurationsUpdated
void pqServerConfigurationImporter::configurationsUpdated |
( |
| ) |
|
|
signal |
◆ authenticationRequired
void pqServerConfigurationImporter::authenticationRequired |
( |
QNetworkReply * |
, |
|
|
QAuthenticator * |
|
|
) |
| |
|
signal |
this signal is fired whenever the source-url requests authentication before delivering the contents.
Refer to QNetworkAccessManager::authenticationRequired() for details.
◆ abortFetchTriggered
void pqServerConfigurationImporter::abortFetchTriggered |
( |
| ) |
|
|
signal |
fired when abortFetch() is called.
An internal signal, not really useful for external components.
◆ message
void pqServerConfigurationImporter::message |
( |
const QString & |
message | ) |
|
|
signal |
this class posts miscellaneous information about the network communication using this signal.
◆ processDownloadedContents()
bool pqServerConfigurationImporter::processDownloadedContents |
( |
| ) |
|
|
protected |
Called after data from each source is fetched fully.
This will process the fetched data and update the configurations list. May fire incrementalUpdate() if configurations were updated.
◆ fetch()
bool pqServerConfigurationImporter::fetch |
( |
const QUrl & |
url | ) |
|
|
protected |
Returns true if valid config was fetched and processed from the URL, otherwise returns false.
The documentation for this class was generated from the following file: