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
33#include "catalog_parser.h"
34
36
41class UpdateDialog : public wxDialog {
42public:
43 UpdateDialog(wxWindow* parent, const std::vector<PluginMetadata>& updates);
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__
The list of download candidates in a scrolled window + OK and Settings button.
Definition: update_mgr.cpp:392
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.