Debian Codegraph @

src/core/session.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/session.h`/
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include "iprofile.h"cxx . . $ `<file>/src/core/iprofile.h`/
7 #include "isession.h"cxx . . $ `<file>/src/core/isession.h`/
8 #include <deque>
9 #include <functional>
10 #include <memory>
11 #include <mutex>
12 #include <optional>
13 #include <string>
14 #include <unordered_map>
15 #include <vector>
16
17 class IProfileApplicatorcxx . . $ IProfileApplicator#;
18 class IProfileViewcxx . . $ IProfileView#;
19 class IProfileViewFactorycxx . . $ IProfileViewFactory#;
20 class IHelperMonitorcxx . . $ IHelperMonitor#;
21
22 class Sessioncxx . . $ Session# final : public ISessioncxx . . $ ISession#
23 {
24 public:
25 Sessioncxx . . $ Session#Session(456168c8863a4993).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IProfileApplicatorcxx . . $ IProfileApplicator#> profileApplicator,
26 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfileManagercxx . . $ IProfileManager#> &&profileManager,
27 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfileViewFactorycxx . . $ IProfileViewFactory#> &&profileViewFactory,
28 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IHelperMonitorcxx . . $ IHelperMonitor#> &&helperMonitor,
29 bool logProfileStack = false) noexcept;
30
31 void addManualProfileObservercxx . . $ Session#addManualProfileObserver(b6a8fcfa605ca162).(
32 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ISessioncxx . . $ ISession#::ManualProfileObservercxx . . $ ISession#ManualProfileObserver#> observer) override;
33 void removeManualProfileObservercxx . . $ Session#removeManualProfileObserver(b6a8fcfa605ca162).(
34 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ISessioncxx . . $ ISession#::ManualProfileObservercxx . . $ ISession#ManualProfileObserver#> observer) override;
35
36 void initcxx . . $ Session#init(2ffe4369e6bd4764).(ISysModelcxx . . $ ISysModel# const &model) override;
37 bool toggleManualProfilecxx . . $ Session#toggleManualProfile(7c222eea44a24d43).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName) override;
38 bool activateManualProfilecxx . . $ Session#activateManualProfile(7c222eea44a24d43).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName) override;
39 bool deactivateManualProfilecxx . . $ Session#deactivateManualProfile(7c222eea44a24d43).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName) override;
40 IProfileManagercxx . . $ IProfileManager# &profileManagercxx . . $ Session#profileManager(4cba1b6c4fb53c57).() const override;
41
42 void logProfileStackcxx . . $ Session#logProfileStack(b45ddcbc8423892c).(bool enable) override;
43
44 private:
45 void profileAddedcxx . . $ Session#profileAdded(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName);
46 void profileRemovedcxx . . $ Session#profileRemoved(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName);
47 void profileChangedcxx . . $ Session#profileChanged(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName);
48 void profileActiveChangedcxx . . $ Session#profileActiveChanged(a3b17e0268c60856).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName, bool active);
49 void profileSavedcxx . . $ Session#profileSaved(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName);
50 void profileInfoChangedcxx . . $ Session#profileInfoChanged(1acf29b044426ccc).(IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &oldInfo,
51 IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &newInfo);
52
53 void queueProfileViewForExecutablecxx . . $ Session#queueProfileViewForExecutable(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &executableName);
54 void dequeueProfileViewForExecutablecxx . . $ Session#dequeueProfileViewForExecutable(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &executableName);
55
56 void populateProfileExeIndexcxx . . $ Session#populateProfileExeIndex(49f6e7a06ebc5aa8).();
57 void watchProfilescxx . . $ Session#watchProfiles(49f6e7a06ebc5aa8).();
58
59 void createProfileViewscxx . . $ Session#createProfileViews(521d355d0436275a).(
60 stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<IProfileViewcxx . . $ IProfileView#>> baseProfileView,
61 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &profileNames);
62
63 void queueProfileViewcxx . . $ Session#queueProfileView(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName);
64 void dequeueProfileViewcxx . . $ Session#dequeueProfileView(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName);
65
66 void notifyManualProfileToggledcxx . . $ Session#notifyManualProfileToggled(a3b17e0268c60856).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName, bool active);
67
68 void logProfileStackcxx . . $ Session#logProfileStack(83f5f38750778ac8).() const;
69
70 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IProfileApplicatorcxx . . $ IProfileApplicator#> profileApplicator_cxx . . $ Session#profileApplicator_.;
71 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfileManagercxx . . $ IProfileManager#> profileManager_cxx . . $ Session#profileManager_.;
72 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfileViewFactorycxx . . $ IProfileViewFactory#> profileViewFactory_cxx . . $ Session#profileViewFactory_.;
73 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IHelperMonitorcxx . . $ IHelperMonitor#> helperMonitor_cxx . . $ Session#helperMonitor_.;
74
75 class ProfileManagerObservercxx . . $ Session#ProfileManagerObserver#;
76 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ProfileManagerObservercxx . . $ Session#ProfileManagerObserver#> const profileManagerObserver_cxx . . $ Session#profileManagerObserver_.;
77
78 class HelperMonitorObservercxx . . $ Session#HelperMonitorObserver#;
79 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<HelperMonitorObservercxx . . $ Session#HelperMonitorObserver#> const helperMonitorObserver_cxx . . $ Session#helperMonitorObserver_.;
80
81 stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> manualProfile_cxx . . $ Session#manualProfile_.;
82 stdcxx . . $ std/::mutexcxx . . $ std/mutex# manualProfileMutex_cxx . . $ Session#manualProfileMutex_.;
83
84 stdcxx . . $ std/::dequecxx . . $ std/deque#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfileViewcxx . . $ IProfileView#>> pViews_cxx . . $ Session#pViews_.;
85 stdcxx . . $ std/::mutexcxx . . $ std/mutex# pViewsMutex_cxx . . $ Session#pViewsMutex_.;
86
87 using executableNamecxx . . $ Session#executableName# = stdcxx . . $ std/::stringcxx . . $ std/string#;
88 using profileNamecxx . . $ Session#profileName# = stdcxx . . $ std/::stringcxx . . $ std/string#;
89 stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<executableNamecxx . . $ Session#executableName#, profileNamecxx . . $ Session#profileName#> profileExeIndex_cxx . . $ Session#profileExeIndex_.;
90 stdcxx . . $ std/::mutexcxx . . $ std/mutex# profileExeIndexMutex_cxx . . $ Session#profileExeIndexMutex_.;
91
92 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ISessioncxx . . $ ISession#::ManualProfileObservercxx . . $ ISession#ManualProfileObserver#>> manualProfileObservers_cxx . . $ Session#manualProfileObservers_.;
93 stdcxx . . $ std/::mutexcxx . . $ std/mutex# manualProfileObserversMutex_cxx . . $ Session#manualProfileObserversMutex_.;
94
95 bool logProfileStack_cxx . . $ Session#logProfileStack_.;
96 };