QGIS API Documentation 4.3.0-Master (389d690bb77)
Loading...
Searching...
No Matches
qgsstaccollectionlist.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsstaccollectionlist.h
3 ---------------------
4 begin : October 2024
5 copyright : (C) 2024 by Stefanos Natsis
6 email : uclaros at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSSTACCOLLECTIONLIST_H
17#define QGSSTACCOLLECTIONLIST_H
18
19#include "qgis_core.h"
20#include "qgsstaclink.h"
21
22#include <QMap>
23#include <QUrl>
24
26
33class CORE_EXPORT QgsStacCollectionList
34{
35 public:
38
46 QgsStacCollectionList( const QVector< QgsStacCollection * > collections, const QVector< QgsStacLink > links, int numberMatched = -1 );
47
50
55 QVector< QgsStacCollection * > collections() const;
56
61 QVector< QgsStacCollection * > takeCollections();
62
64 int numberReturned() const;
65
70 int numberMatched() const;
71
75 QUrl url() const;
76
80 QUrl rootUrl() const;
81
85 QUrl nextUrl() const;
86
90 QUrl prevUrl() const;
91
92 private:
93 QVector< QgsStacCollection * > mCollections;
94 QMap< QString, QString > mUrls;
95 int mNumberMatched = -1;
96};
97
98#endif // QGSSTACCOLLECTIONLIST_H
QUrl prevUrl() const
Returns the url of the collections' "prev" link.
QVector< QgsStacCollection * > collections() const
Returns the collections Ownership is not transferred.
QgsStacCollectionList()=delete
Default constructor deleted, use the variant with required parameters.
int numberReturned() const
Returns the number of returned collections.
QUrl rootUrl() const
Returns the url of the collections' "root" link.
QUrl nextUrl() const
Returns the url of the collections' "next" link.
QUrl url() const
Returns the url of the collections' "self" link.
QVector< QgsStacCollection * > takeCollections()
Returns the collections Caller takes ownership of the returned collections.
int numberMatched() const
Returns the total number of available collections If this information was not available by the STAC s...
Stores data associated with a STAC Collection.