OpenCPN Partial API docs
Loading...
Searching...
No Matches
update_mgr.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2019 Alec Leamas *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
24#ifndef UPDATE_MGR_H_
25#define UPDATE_MGR_H_
26
27#include <vector>
28
29#include <wx/dialog.h>
30#include <wx/window.h>
31
33
34class OcpnUpdateScrolledWindow; // Forward in .cpp file
35
40class UpdateDialog : public wxDialog {
41public:
42 UpdateDialog(wxWindow* parent, const std::vector<PluginMetadata>& updates);
43 virtual ~UpdateDialog();
44
45 PluginMetadata GetUpdate() { return update; };
46 void SetUpdate(const PluginMetadata md) { update = md; };
47 void RecalculateSize();
48
50
51private:
52 PluginMetadata update;
53};
54
55#endif // UPDATE_MGR_H_
Datatypes and methods to parse ocpn-plugins.xml XML data, either complete catalog or a single plugin.
The list of download candidates in a scrolled window + OK and Settings button.
Modal dialog, displays available updates (possibly just one) and lets user select and eventually conf...
Definition update_mgr.h:40
Plugin metadata, reflects the xml format directly.