QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
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
Abstract interface for project storage GUI - to be implemented by various backends and registered in ...
virtual QString showLoadGui()
Opens GUI to allow user to select a project to be loaded (GUI specific to this storage type).
virtual QString visibleName()
Returns human-readable name of the storage.
virtual QString type()=0
Unique identifier of the project storage type.
virtual QString showSaveGui()
Opens GUI to allow user to select where a project should be saved (GUI specific to this storage type)...
virtual ~QgsProjectStorageGuiProvider()=default