QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsprojectstorageguiprovider.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprojectstoragegui.h
3  --------------------------------------
4  Date : June 2019
5  Copyright : (C) 2019 by Peter Petrik
6  Email : zilolv 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 QGSPROJECTSTORAGEGUI_H
17 #define QGSPROJECTSTORAGEGUI_H
18 
19 #include "qgis_gui.h"
20 #include "qgis_sip.h"
21 
22 #include <QString>
23 
32 {
33  public:
34  virtual ~QgsProjectStorageGuiProvider() = default;
35 
40  virtual QString type() = 0;
41 
47  virtual QString visibleName() { return QString(); }
48 
53  virtual QString showLoadGui() { return QString(); }
54 
59  virtual QString showSaveGui() { return QString(); }
60 };
61 
62 #endif // QGSPROJECTSTORAGEGUI_H
QgsProjectStorageGuiProvider::~QgsProjectStorageGuiProvider
virtual ~QgsProjectStorageGuiProvider()=default
QgsProjectStorageGuiProvider::showSaveGui
virtual QString showSaveGui()
Opens GUI to allow user to select where a project should be saved (GUI specific to this storage type)...
Definition: qgsprojectstorageguiprovider.h:59
QgsProjectStorageGuiProvider::type
virtual QString type()=0
Unique identifier of the project storage type.
qgis_sip.h
QgsProjectStorageGuiProvider::showLoadGui
virtual QString showLoadGui()
Opens GUI to allow user to select a project to be loaded (GUI specific to this storage type).
Definition: qgsprojectstorageguiprovider.h:53
QgsProjectStorageGuiProvider
Abstract interface for project storage GUI - to be implemented by various backends and registered in ...
Definition: qgsprojectstorageguiprovider.h:32
QgsProjectStorageGuiProvider::visibleName
virtual QString visibleName()
Returns human-readable name of the storage.
Definition: qgsprojectstorageguiprovider.h:47