KiCad PCB EDA Suite
Loading...
Searching...
No Matches
model_file_preview_request_service.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
19 */
20
21#ifndef MODEL_FILE_PREVIEW_REQUEST_SERVICE_H
22#define MODEL_FILE_PREVIEW_REQUEST_SERVICE_H
23
25
26#include <memory>
27
29{
30public:
33
36
39
40 // The owning UI thread calls Cancel when its dialog closes and Shutdown before wxApp teardown.
41 // Completion callbacks must not call either lifecycle method.
42 void Cancel();
43 void Shutdown();
44
45private:
46 struct STATE;
47
48 std::shared_ptr<STATE> m_state;
49};
50
51#endif // MODEL_FILE_PREVIEW_REQUEST_SERVICE_H
MODEL_FILE_PREVIEW_REQUEST_SERVICE & operator=(const MODEL_FILE_PREVIEW_REQUEST_SERVICE &)=delete
MODEL_FILE_PREVIEW_REQUEST_SERVICE(const MODEL_FILE_PREVIEW_REQUEST_SERVICE &)=delete
std::function< void(wxString, uint64_t, COMPLETION)> REQUEST