@@ -28,6 +28,7 @@ class QStringList;
28
28
class QgsReadWriteContext ;
29
29
30
30
/* *
31
+ * \ingroup core
31
32
* Abstract interface for project storage - to be implemented by various backends
32
33
* and registered in QgsProjectStorageRegistry.
33
34
*
@@ -37,7 +38,11 @@ class CORE_EXPORT QgsProjectStorage
37
38
{
38
39
public:
39
40
40
- // ! Metadata associated with a project
41
+ /* *
42
+ * \ingroup core
43
+ * Metadata associated with a project
44
+ * \since QGIS 3.2
45
+ */
41
46
class Metadata
42
47
{
43
48
public:
@@ -47,7 +52,7 @@ class CORE_EXPORT QgsProjectStorage
47
52
QDateTime lastModified;
48
53
};
49
54
50
- virtual ~QgsProjectStorage ();
55
+ virtual ~QgsProjectStorage () = default ;
51
56
52
57
/* *
53
58
* Unique identifier of the project storage type. If type() returns "memory", all project file names
@@ -75,7 +80,7 @@ class CORE_EXPORT QgsProjectStorage
75
80
virtual bool writeProject ( const QString &uri, QIODevice *device, QgsReadWriteContext &context ) = 0;
76
81
77
82
/* *
78
- * Removes and existing project at the given URI. Returns true if the removal
83
+ * Removes an existing project at the given URI. Returns true if the removal
79
84
* was successful.
80
85
*/
81
86
virtual bool removeProject ( const QString &uri ) = 0;
@@ -90,7 +95,7 @@ class CORE_EXPORT QgsProjectStorage
90
95
* Reads project metadata (e.g. last modified time) if this is supported by the storage implementation.
91
96
* Returns true if the metadata were read with success.
92
97
*/
93
- virtual bool readProjectMetadata ( const QString &uri, QgsProjectStorage::Metadata &metadata SIP_OUT ) { Q_UNUSED ( uri ); Q_UNUSED ( metadata ); return false ; }
98
+ virtual bool readProjectStorageMetadata ( const QString &uri, QgsProjectStorage::Metadata &metadata SIP_OUT ) { Q_UNUSED ( uri ); Q_UNUSED ( metadata ); return false ; }
94
99
95
100
/* *
96
101
* Returns human-readable name of the storage. Used as the menu item text in QGIS. Empty name
0 commit comments