File: qgsproviderregistry.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (820 lines) | stat: -rw-r--r-- 24,936 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/providers/qgsproviderregistry.h                             *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/







class QgsProviderRegistry
{
%Docstring(signature="appended")
A registry / canonical manager of data providers.

This is a Singleton class that manages data provider access.

Providers can be either loaded via libraries or native providers that
are included in the core QGIS installation and accessed through function
pointers.

Loaded providers may be restricted using QGIS_PROVIDER_FILE environment
variable. QGIS_PROVIDER_FILE is regexp pattern applied to provider file
name (not provider key). For example, if the variable is set to
gdal|ogr|postgres it will load only providers gdal, ogr and postgres.
%End

%TypeHeaderCode
#include "qgsproviderregistry.h"
%End
  public:


    enum WidgetMode /BaseType=IntEnum/
    {

      Standalone,

      Embedded,

      Manager,
    };

    static QgsProviderRegistry *instance( const QString &pluginPath = QString() );
%Docstring
Means of accessing canonical single instance
%End

    ~QgsProviderRegistry();

 QString library( const QString &providerKey ) const /Deprecated/;
%Docstring
Returns path for the library of the provider.

If the provider uses direct provider function pointers instead of a
library an empty string will be returned.

.. deprecated:: 3.10

   Providers may not need to be loaded from a library (empty string returned).
%End

    QString pluginList( bool asHtml = false ) const;
%Docstring
Returns list of provider plugins found
%End

    QDir libraryDirectory() const;
%Docstring
Returns the library directory where plugins are found.
%End

    void setLibraryDirectory( const QDir &path );
%Docstring
Sets library directory where to search for plugins
%End


    QgsDataProvider *createProvider( const QString &providerKey,
                                     const QString &dataSource,
                                     const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions(),
                                     Qgis::DataProviderReadFlags flags = Qgis::DataProviderReadFlags() ) /TransferBack/;
%Docstring
Creates a new instance of a provider.

:param providerKey: identifier of the provider
:param dataSource: string containing data source for the provider
:param options: provider options
:param flags: provider flags since QGIS 3.16

:return: new instance of provider or ``None`` on error

.. seealso:: :py:func:`createRasterDataProvider`
%End

 Qgis::DataItemProviderCapabilities providerCapabilities( const QString &providerKey ) const /Deprecated/;
%Docstring
Returns the provider capabilities

:param providerKey: identifier of the provider

.. deprecated:: 3.10

   Use instead :py:func:`~QgsProviderRegistry.capabilities` method of individual data item provider.
%End


    QgsRasterDataProvider *createRasterDataProvider(
      const QString &providerKey,
      const QString &uri,
      const QString &format,
      int nBands,
      Qgis::DataType type,
      int width, int height,
      double *geoTransform,
      const QgsCoordinateReferenceSystem &crs,
      const QStringList &createOptions = QStringList() ) /Factory/;
%Docstring
Creates new instance of raster data provider

.. seealso:: :py:func:`createProvider`

.. versionadded:: 3.10
%End

    QList<QPair<QString, QString> > pyramidResamplingMethods( const QString &providerKey );
%Docstring
Returns list of raster pyramid resampling methods

.. versionadded:: 3.10
%End

    QVariantMap decodeUri( const QString &providerKey, const QString &uri );
%Docstring
Breaks a provider data source URI into its component paths (e.g. file
path, layer name).

:param providerKey: identifier of the provider
:param uri: uri string

:return: map containing components. Standard components include "path",
         "layerName", "url".

.. note::

   this function may not be supported by all providers, an empty map will be returned in such case

.. versionadded:: 3.4
%End

    QString encodeUri( const QString &providerKey, const QVariantMap &parts );
%Docstring
Reassembles a provider data source URI from its component paths (e.g.
file path, layer name).

:param providerKey: identifier of the provider
:param parts: parts as returned by decodeUri

:return: datasource uri string

.. note::

   this function may not be supported by all providers, an empty string will be returned in such case

.. seealso:: :py:func:`decodeUri`

.. versionadded:: 3.12
%End

    QString absoluteToRelativeUri( const QString &providerKey, const QString &uri, const QgsReadWriteContext &context ) const;
%Docstring
Converts absolute path(s) to relative path(s) in the given
provider-specific URI. and returns modified URI according to the context
object's configuration. This is commonly used when writing project
files. If a provider does not work with paths, unmodified URI will be
returned.

:return: modified URI with relative path(s)

.. note::

   this function may not be supported by all providers. The default
   implementation uses :py:func:`QgsPathResolver.writePath()` on the whole URI.

.. seealso:: :py:func:`relativeToAbsoluteUri`

.. versionadded:: 3.30
%End

    QString relativeToAbsoluteUri( const QString &providerKey, const QString &uri, const QgsReadWriteContext &context ) const;
%Docstring
Converts relative path(s) to absolute path(s) in the given
provider-specific URI. and returns modified URI according to the context
object's configuration. This is commonly used when reading project
files. If a provider does not work with paths, unmodified URI will be
returned.

:return: modified URI with absolute path(s)

.. note::

   this function may not be supported by all providers. The default
   implementation uses :py:func:`QgsPathResolver.readPath()` on the whole URI.

.. seealso:: :py:func:`absoluteToRelativeUri`

.. versionadded:: 3.30
%End

 QWidget *createSelectionWidget( const QString &providerKey, QWidget *parent = 0, Qt::WindowFlags fl = Qt::WindowFlags(), QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Standalone ) /Deprecated/;
%Docstring
Returns a new widget for selecting layers from a provider. Either the
``parent`` widget must be set or the caller becomes responsible for
deleting the returned widget.

.. deprecated:: 3.10

   Use :py:func:`QgsGui.sourceSelectProviderRegistry()`->:py:func:`~QgsProviderRegistry.createDataSourceWidget` instead.
%End

    QList< QgsDataItemProvider * > dataItemProviders( const QString &providerKey ) const /Factory/;
%Docstring
Returns list of data item providers of the provider

.. note::

   Ownership of created data item providers is passed to the caller.

.. versionadded:: 3.10
%End

    int listStyles( const QString &providerKey,
                    const QString &uri,
                    QStringList &ids,
                    QStringList &names,
                    QStringList &descriptions,
                    QString &errCause );
%Docstring
Lists stored layer styles in the provider defined by ``providerKey`` and
``uri``

:return: - 1 if not implemented by provider, otherwise number of styles
           stored

.. versionadded:: 3.10
%End

    bool styleExists( const QString &providerKey, const QString &uri, const QString &styleId, QString &errorCause /Out/ );
%Docstring
Returns ``True`` if a layer style with the specified ``styleId`` exists
in the provider defined by ``providerKey`` and ``uri``.

:param providerKey: provider key
:param uri: provider URI
:param styleId: style ID to test for

:return: - ``True`` if the layer style already exists
         - errorCause: a descriptive error message, if an error occurs
           while checking if the style exists

.. seealso:: :py:func:`getStyleById`

.. versionadded:: 3.24
%End

    QString getStyleById( const QString &providerKey, const QString &uri, const QString &styleId, QString &errCause );
%Docstring
Gets a layer style defined by ``styleId``.

.. seealso:: :py:func:`styleExists`

.. versionadded:: 3.10
%End

    bool deleteStyleById( const QString &providerKey, const QString &uri, const QString &styleId, QString &errCause );
%Docstring
Deletes a layer style defined by ``styleId``

.. versionadded:: 3.10
%End

    bool saveStyle( const QString &providerKey,  const QString &uri, const QString &qmlStyle, const QString &sldStyle,
                    const QString &styleName, const QString &styleDescription,
                    const QString &uiFileContent, bool useAsDefault, QString &errCause );
%Docstring
Saves a layer style to provider

.. versionadded:: 3.10
%End

    QString loadStyle( const QString &providerKey, const QString &uri, QString &errCause );
%Docstring
Loads a layer style defined by ``uri``

:return: the style QML (XML)

.. versionadded:: 3.10
%End

    QString loadStoredStyle( const QString &providerKey, const QString &uri, QString &styleName, QString &errCause );
%Docstring
Loads a layer style from the provider storage, reporting its name.

:param providerKey: name of the data provider
:param uri: data source uri
:param styleName: the name of the style if available, empty otherwise
:param errCause: report errors

:return: the style QML (XML)

.. versionadded:: 3.30
%End

    bool saveLayerMetadata( const QString &providerKey, const QString &uri, const QgsLayerMetadata &metadata, QString &errorMessage /Out/ ) throw( QgsNotSupportedException );
%Docstring
Saves ``metadata`` to the layer corresponding to the specified ``uri``.

:param providerKey: identifier of the provider
:param uri: uri of layer to store metadata for
:param metadata: layer metadata

:return: - ``True`` if the metadata was successfully saved.
         - errorMessage: descriptive string of error if encountered

:raises QgsNotSupportedException: if the provider does not support
                                  saving layer metadata for the
                                  specified ``uri``.

.. versionadded:: 3.20
%End

    bool createDb( const QString &providerKey, const QString &dbPath, QString &errCause );
%Docstring
Creates database by the provider on the path

.. versionadded:: 3.10
%End

    QgsTransaction *createTransaction( const QString &providerKey, const QString &connString ) /Factory/;
%Docstring
Returns new instance of transaction. Ownership is transferred to the
caller

.. versionadded:: 3.10
%End

 QFunctionPointer function( const QString &providerKey, const QString &functionName ) const /Deprecated/;
%Docstring
Gets pointer to provider function

:param providerKey: identifier of the provider
:param functionName: name of function

:return: pointer to function or ``None`` on error. If the provider uses
         direct provider function pointers instead of a library ``None``
         will be returned.

.. deprecated:: 3.10

   Any provider functionality should be accessed through :py:class:`QgsProviderMetadata`.
%End

 QLibrary *createProviderLibrary( const QString &providerKey ) const /Factory,Deprecated/;
%Docstring
Returns a new QLibrary for the specified ``providerKey``. Ownership of
the returned object is transferred to the caller and the caller is
responsible for deleting it.

If the provider uses direct provider function pointers instead of a
library ``None`` will be returned.

.. deprecated:: 3.10

   Providers may not need to be loaded from a library.
%End

    QStringList providerList() const;
%Docstring
Returns list of available providers by their keys
%End

    QgsProviderMetadata *providerMetadata( const QString &providerKey ) const;
%Docstring
Returns metadata of the provider or ``None`` if not found
%End

    QSet< QString > providersForLayerType( Qgis::LayerType type ) const;
%Docstring
Returns a list of the provider keys for available providers which handle
the specified layer ``type``.

.. versionadded:: 3.26
%End

    class ProviderCandidateDetails
{
%Docstring(signature="appended")
Contains information pertaining to a candidate provider.

.. versionadded:: 3.18
%End

%TypeHeaderCode
#include "qgsproviderregistry.h"
%End
      public:

        ProviderCandidateDetails( QgsProviderMetadata *metadata, const QList< Qgis::LayerType > &layerTypes );
%Docstring
Constructor for ProviderCandidateDetails, with the specified provider
``metadata`` and valid candidate ``layerTypes``.
%End

        QgsProviderMetadata *metadata() const;
%Docstring
Returns the candidate provider metadata.
%End

        QList<Qgis::LayerType> layerTypes() const;
%Docstring
Returns a list of map layer types which are valid options for opening
the target using this candidate provider.
%End

        SIP_PYOBJECT __repr__();
%MethodCode
        QString str = QStringLiteral( "<QgsProviderRegistry.ProviderCandidateDetails: %1>" ).arg( sipCpp->metadata()->key() );
        sipRes = PyUnicode_FromString( str.toUtf8().constData() );
%End

    };

    QList< QgsProviderRegistry::ProviderCandidateDetails > preferredProvidersForUri( const QString &uri ) const;
%Docstring
Returns the details for the preferred provider(s) for opening the
specified ``uri``.

The preferred provider is determined by comparing the priority returned
by :py:func:`QgsProviderMetadata.priorityForUri()` for all registered
providers, and selecting the provider with the largest non-zero
priority.

An empty list may be returned, which indicates that no providers are
available which returned a non-zero priority for the specified URI.

In the case that multiple providers returned the same priority for the
URI then all of these providers will be returned.

.. seealso:: :py:func:`shouldDeferUriForOtherProviders`

.. versionadded:: 3.18
%End

    class UnusableUriDetails
{
%Docstring(signature="appended")
Contains information about unusable URIs which aren't handled by any
registered providers.

For example, if a QGIS install is built without the PDAL library then
las/laz files are unusable. This class can then be used to construct
friendly warnings to users advising them why the las/laz files cannot be
used on their QGIS build.

.. versionadded:: 3.18.1
%End

%TypeHeaderCode
#include "qgsproviderregistry.h"
%End
      public:

        UnusableUriDetails( const QString &uri = QString(), const QString &warning = QString(), const QList< Qgis::LayerType > &layerTypes = QList< Qgis::LayerType >() );
%Docstring
Constructor for UnusableUriDetails for the given ``uri``, with the
specified user-friendly, translated ``warning``.

The optional ``layerTypes`` argument can be used to specify layer types
which are usually valid options for opening the URI.
%End

        QString uri;

        QString warning;

        QString detailedWarning;

        QList<Qgis::LayerType> layerTypes;

        SIP_PYOBJECT __repr__();
%MethodCode
        QString str = QStringLiteral( "<QgsProviderRegistry.UnusableUriDetails: %1>" ).arg( sipCpp->warning );
        sipRes = PyUnicode_FromString( str.toUtf8().constData() );
%End

    };

    class UnusableUriHandlerInterface
{
%Docstring(signature="appended")
An interface used to handle unusable URIs which aren't handled by any
registered providers, and construct user-friendly warnings as to why the
URI is unusable.

For example, if a QGIS install is built without the PDAL library then
las/laz files are unusable. This class can then be used to construct
friendly warnings to users advising them why the las/laz files cannot be
used on their QGIS build.

.. versionadded:: 3.18.1
%End

%TypeHeaderCode
#include "qgsproviderregistry.h"
%End
      public:

        virtual ~UnusableUriHandlerInterface();

        virtual bool matchesUri( const QString &uri ) const = 0;
%Docstring
Returns ``True`` if the handle is an unusable URI handler for the
specified ``uri``.
%End

        virtual UnusableUriDetails details( const QString &uri ) const = 0;
%Docstring
Returns the details for advising the user why the ``uri`` is not usable.
%End

    };

    bool registerUnusableUriHandler( UnusableUriHandlerInterface *handler /Transfer/ );
%Docstring
Registers an unusable URI ``handler``, used to handle unusable URIs
which aren't handled by any registered providers, and construct
user-friendly warnings as to why the URI is unusable.

:return: ``True`` on success

.. note::

   ownership of the UnusableUriHandlerInterface instance is transferred to the registry

.. versionadded:: 3.18.1
%End

    bool handleUnusableUri( const QString &uri, UnusableUriDetails &details /Out/ ) const;
%Docstring
Returns ``True`` if the specified ``uri`` can potentially be handled by
QGIS, if additional dependencies or build-time requirements are present.

This can be used to show user-friendly warning messages advising them
why a particular ``uri`` cannot be opened on their QGIS install. For
example, if a QGIS install is built without the PDAL library then
las/laz files are unusable, and this method can be used to retrieve a
user-friendly warning as to why the las/laz files cannot be used on
their QGIS build.

.. warning::

   This method does not perform the test to actually determine if the given ``uri``
   can be handled by any registered provider. It is assumed that prior to calling this method
   the caller has already determined in advance that the ``uri`` could not be handled.

:param uri: URI to test

:return: - ``True`` if the ``uri`` was matched to a registered
           QgsProviderRegistry.UnusableUriHandlerInterface.
         - details: will be populated with details allowing construction
           of a user-friendly warning message

.. seealso:: :py:func:`registerUnusableUriHandler`

.. versionadded:: 3.18.1
%End

    bool shouldDeferUriForOtherProviders( const QString &uri, const QString &providerKey ) const;
%Docstring
Returns ``True`` if the provider with matching ``providerKey`` should
defer handling of the specified ``uri`` to another provider.

This method tests whether any providers are listed as the preferred
provider for ``uri`` (see
:py:func:`~QgsProviderRegistry.preferredProvidersForUri`), and if so
tests whether the specified provider is included in that preferred
providers list. Returns ``True`` only if the specified provider is
calculated as one of the preferred providers for the URI.

In the case that there is no registered preferred provider for the URI
then ``False`` will be returned, and the provider must use another
metric to determine whether it should handle the URI.

.. seealso:: :py:func:`preferredProvidersForUri`

.. versionadded:: 3.18
%End

    bool uriIsBlocklisted( const QString &uri ) const;
%Docstring
Returns ``True`` if the specified ``uri`` is known by any registered
provider to be something which should be blocklisted from the QGIS
interface, e.g. an internal detail only.

Specifically, this method can be utilized by the browser panel to hide
noisy internal details for URIs which are known to be sidecar files
only, such as ".aux.xml" files or ".shp.xml" files, or the
"ept-build.json" files which sit alongside Entwine "ept.json" point
cloud sources.

This method tests whether any of the registered providers return
``True`` for the their :py:func:`QgsProviderMetadata.uriIsBlocklisted()`
implementation for the specified URI.

.. versionadded:: 3.18
%End

    QList< QgsProviderSublayerDetails > querySublayers( const QString &uri, Qgis::SublayerQueryFlags flags = Qgis::SublayerQueryFlags(), QgsFeedback *feedback = 0 ) const;
%Docstring
Queries the specified ``uri`` and returns a list of any valid sublayers
found in the dataset which can be handled by any registered data
provider.

This method iteratively queries each registered data provider and
returns the complete collated list of all valid sublayers found in the
dataset which can be opened by the data providers.

The optional ``flags`` argument can be used to control the behavior of
the query.

The optional ``feedback`` argument can be used to provide cancellation
support for long-running queries.

.. versionadded:: 3.22
%End

    QString fileVectorFilters() const;
%Docstring
Returns a file filter string for supported vector files.

Returns a string suitable for a QFileDialog of vector file formats
supported by all data providers.

.. seealso:: :py:func:`fileRasterFilters`

.. seealso:: :py:func:`fileMeshFilters`

.. seealso:: :py:func:`filePointCloudFilters`

.. seealso:: :py:func:`fileVectorTileFilters`

.. seealso:: :py:func:`fileTiledSceneFilters`
%End

    QString fileRasterFilters() const;
%Docstring
Returns a file filter string for supported raster files.

Returns a string suitable for a QFileDialog of raster file formats
supported by all data providers.

.. note::

   This replaces :py:func:`QgsRasterLayer.buildSupportedRasterFileFilter()`

.. seealso:: :py:func:`fileVectorFilters`

.. seealso:: :py:func:`fileMeshFilters`

.. seealso:: :py:func:`filePointCloudFilters`

.. seealso:: :py:func:`fileVectorTileFilters`

.. seealso:: :py:func:`fileTiledSceneFilters`
%End

    QString fileMeshFilters() const;
%Docstring
Returns a file filter string for supported mesh files.

Returns a string suitable for a QFileDialog of mesh file formats
supported by all data providers.

.. seealso:: :py:func:`fileMeshDatasetFilters`

.. seealso:: :py:func:`fileRasterFilters`

.. seealso:: :py:func:`fileVectorFilters`

.. seealso:: :py:func:`filePointCloudFilters`

.. seealso:: :py:func:`fileVectorTileFilters`

.. seealso:: :py:func:`fileTiledSceneFilters`

.. versionadded:: 3.6
%End

    QString fileMeshDatasetFilters() const;
%Docstring
Returns a file filter string for supported mesh dataset files.

Returns a string suitable for a QFileDialog of mesh datasets file
formats supported by all data providers.

.. seealso:: :py:func:`fileMeshFilters`

.. versionadded:: 3.6
%End

    QString filePointCloudFilters() const;
%Docstring
Returns a file filter string for supported point clouds.

Returns a string suitable for a QFileDialog of point cloud file formats
supported by all data providers.

.. seealso:: :py:func:`fileMeshFilters`

.. seealso:: :py:func:`fileRasterFilters`

.. seealso:: :py:func:`fileVectorFilters`

.. seealso:: :py:func:`fileVectorTileFilters`

.. seealso:: :py:func:`fileTiledSceneFilters`

.. versionadded:: 3.18
%End

    QString fileVectorTileFilters() const;
%Docstring
Returns a file filter string for supported vector tile files.

Returns a string suitable for a QFileDialog of vector tile file formats
supported by all data providers.

.. seealso:: :py:func:`fileMeshFilters`

.. seealso:: :py:func:`fileRasterFilters`

.. seealso:: :py:func:`fileVectorFilters`

.. seealso:: :py:func:`filePointCloudFilters`

.. seealso:: :py:func:`fileTiledSceneFilters`

.. versionadded:: 3.32
%End

    QString fileTiledSceneFilters() const;
%Docstring
Returns a file filter string for supported tiled scene files.

Returns a string suitable for a QFileDialog of tiled scene file formats
supported by all data providers.

.. seealso:: :py:func:`fileMeshFilters`

.. seealso:: :py:func:`fileRasterFilters`

.. seealso:: :py:func:`fileVectorFilters`

.. seealso:: :py:func:`filePointCloudFilters`

.. seealso:: :py:func:`fileVectorTileFilters`

.. versionadded:: 3.34
%End

    QString databaseDrivers() const;
%Docstring
Returns a string containing the available database drivers
%End
    QString directoryDrivers() const;
%Docstring
Returns a string containing the available directory drivers
%End
    QString protocolDrivers() const;
%Docstring
Returns a string containing the available protocol drivers
%End

 void registerGuis( QWidget *widget ) /Deprecated/;
%Docstring
.. deprecated:: 3.10

   Does nothing - use :py:func:`QgsGui.providerGuiRegistry()`.
%End

    bool registerProvider( QgsProviderMetadata *providerMetadata /Transfer/ );
%Docstring
register a new vector data provider from its ``providerMetadata``

:return: ``True`` on success, ``False`` if a provider with the same key
         was already registered

.. note::

   ownership of the :py:class:`QgsProviderMetadata` instance is transferred to the registry

.. versionadded:: 3.2
%End


  private:
    QgsProviderRegistry( const QString &pluginPath );
}; // class QgsProviderRegistry

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/providers/qgsproviderregistry.h                             *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/