OpenCPN Partial API docs
Loading...
Searching...
No Matches
update_mgr.h
1/******************************************************************************
2 *
3 * Project: OpenCPN
4 *
5 ***************************************************************************
6 * Copyright (C) 2019 Alec Leamas *
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the *
20 * Free Software Foundation, Inc., *
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
22 ***************************************************************************
23 */
24
25#ifndef UPDATE_MGR_H__
26#define UPDATE_MGR_H__
27
28#include <vector>
29
30#include <wx/dialog.h>
31#include <wx/window.h>
32
34
36
41class UpdateDialog : public wxDialog {
42public:
43 UpdateDialog(wxWindow* parent, const std::vector<PluginMetadata>& updates);
44 virtual ~UpdateDialog();
45
46 PluginMetadata GetUpdate() { return update; };
47 void SetUpdate(const PluginMetadata md) { update = md; };
48 void RecalculateSize();
49
51
52private:
53 PluginMetadata update;
54};
55
56#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:41
Plugin metadata, reflects the xml format directly.