Debian Codegraph @

src/dependencyInjector/DependencyInjectorBootstrapper.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2021 Damir Porobic <[email protected]>
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, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef KSNIP_DEPENDENCYINJECTORBOOTSTRAPPER_H
21 #define KSNIP_DEPENDENCYINJECTORBOOTSTRAPPER_H
22
23 #include "DependencyInjector.h"
24
25 class DependencyInjectorBootstrapper
26 {
27 public:
28 DependencyInjectorBootstrapper() = default;
29 ~DependencyInjectorBootstrapper() = default;
30
31 static void BootstrapCore(DependencyInjector *dependencyInjector);
32 static void BootstrapCommandLine(DependencyInjector *dependencyInjector);
33 static void BootstrapGui(DependencyInjector *dependencyInjector);
34
35 private:
36 static void injectConfig(DependencyInjector *dependencyInjector);
37 static void injectLogger(DependencyInjector *dependencyInjector);
38 static void injectImageGrabber(DependencyInjector *dependencyInjector);
39 static void injectFileDialogService(DependencyInjector *dependencyInjector);
40 static void injectDirectoryPathProvider(DependencyInjector *dependencyInjector);
41 static void injectDesktopServiceAdapter(DependencyInjector *dependencyInjector);
42 static void injectScaledSizeProvider(DependencyInjector *dependencyInjector);
43 static void injectPluginLoader(DependencyInjector *dependencyInjector);
44 static void injectPluginSearchPathProvider(DependencyInjector *dependencyInjector);
45 static void injectOcrWindowCreator(DependencyInjector *dependencyInjector);
46 };
47
48 #endif //KSNIP_DEPENDENCYINJECTORBOOTSTRAPPER_H