KiCad PCB EDA Suite
Loading...
Searching...
No Matches
startwizard_provider_privacy.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2023 Mark Roszko <[email protected]>
5 * Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#ifndef STARTWIZARD_PROVIDER_PCM_H
22#define STARTWIZARD_PROVIDER_PCM_H
23
25#include <memory>
26
28{
29 bool m_autoUpdateKiCad = true;
30 bool m_autoUpdatePCM = true;
31 bool m_enableSentry = false;
32 bool m_enableApi = true;
33};
34
36{
37public:
39
41
42 wxString Name() const override { return wxT( "privacy" ); }
43
44 bool NeedsUserInput() const override;
45
46 wxPanel* GetWizardPanel( wxWindow* aParent, STARTWIZARD* aWizard ) override;
47
48 void Finish() override;
49
50 void ApplyDefaults() override;
51
52private:
53 std::shared_ptr<STARTWIZARD_PROVIDER_PRIVACY_MODEL> m_model;
54};
55
56#endif
std::shared_ptr< STARTWIZARD_PROVIDER_PRIVACY_MODEL > m_model
wxPanel * GetWizardPanel(wxWindow *aParent, STARTWIZARD *aWizard) override
void ApplyDefaults() override
Apply whatever actions and settings should happen if the user cancels the startup wizard.
STARTWIZARD_PROVIDER(const wxString &aPageName)