| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/profilemanagerui.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <QObject> |
| 7 | #include <QSet> |
| 8 | #include <QString> |
| 9 | #include <QUrl> |
| 10 | #include <QVariantList> |
| 11 | #include <memory> |
| 12 | #include <string> |
| 13 | #include <string_view> |
| 14 | |
| 15 | class IProfileManagercxx . . $ IProfileManager#; |
| 16 | class ISessioncxx . . $ ISession#; |
| 17 | class ISysModelUIcxx . . $ ISysModelUI#; |
| 18 | class IFileCachecxx . . $ IFileCache#; |
| 19 | |
| 20 | class ProfileManagerUIcxx . . $ ProfileManagerUI# : public QObjectcxx . . $ QObject# |
| 21 | { |
| 22 | Q_OBJECTcxx . . $ ProfileManagerUI#qt_create_metaobjectdata(a52531b27a9fa42b). |
| 23 | |
| 24 | public: |
| 25 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# QMLComponentIDcxx . . $ std/basic_string_view#basic_string_view(837a1ee5a10cb792).{"PROFILE_MANAGER"}; |
| 26 | |
| 27 | explicit ProfileManagerUIcxx . . $ ProfileManagerUI#ProfileManagerUI(cc6a52b634b3d446).(QObjectcxx . . $ QObject# *parent = nullptr) noexcept; |
| 28 | |
| 29 | void initcxx . . $ ProfileManagerUI#init(4ab9ddb9f0ca45f2).(ISessioncxx . . $ ISession# *session, ISysModelUIcxx . . $ ISysModelUI# *sysModelUI); |
| 30 | |
| 31 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! QStringcxx . . $ QString# defaultIconcxx . . $ ProfileManagerUI#defaultIcon(6ef7b6c27b00b43d).() const; |
| 32 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! bool isProfileNameInUsecxx . . $ ProfileManagerUI#isProfileNameInUse(e1defb592416720d).(QStringcxx . . $ QString# const &profileName); |
| 33 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! bool isExecutableNameInUsecxx . . $ ProfileManagerUI#isExecutableNameInUse(e1defb592416720d).(QStringcxx . . $ QString# const &executableName); |
| 34 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! bool isProfileUnsavedcxx . . $ ProfileManagerUI#isProfileUnsaved(e1defb592416720d).(QStringcxx . . $ QString# const &profileName); |
| 35 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! bool isProfileActivecxx . . $ ProfileManagerUI#isProfileActive(e1defb592416720d).(QStringcxx . . $ QString# const &profileName); |
| 36 | |
| 37 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void addcxx . . $ ProfileManagerUI#add(6d8ce341bc76c5ea).(QStringcxx . . $ QString# const &name, QStringcxx . . $ QString# const &exe, |
| 38 | QStringcxx . . $ QString# const &icon, QStringcxx . . $ QString# const &base); |
| 39 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void removecxx . . $ ProfileManagerUI#remove(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 40 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void updateInfocxx . . $ ProfileManagerUI#updateInfo(6d8ce341bc76c5ea).(QStringcxx . . $ QString# const &oldName, QStringcxx . . $ QString# const &newName, |
| 41 | QStringcxx . . $ QString# const &exe, QStringcxx . . $ QString# const &icon); |
| 42 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void activatecxx . . $ ProfileManagerUI#activate(37c160c81b6367f7).(QStringcxx . . $ QString# const &name, bool active); |
| 43 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void toggleManualProfilecxx . . $ ProfileManagerUI#toggleManualProfile(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 44 | |
| 45 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void loadSettingscxx . . $ ProfileManagerUI#loadSettings(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 46 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! bool loadSettingscxx . . $ ProfileManagerUI#loadSettings(f4a1dd5527cb2081).(QStringcxx . . $ QString# const &name, QUrlcxx . . $ QUrl# const &path); |
| 47 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void applySettingscxx . . $ ProfileManagerUI#applySettings(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 48 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void resetSettingscxx . . $ ProfileManagerUI#resetSettings(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 49 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void restoreSettingscxx . . $ ProfileManagerUI#restoreSettings(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 50 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! void saveSettingscxx . . $ ProfileManagerUI#saveSettings(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 51 | Q_INVOKABLEcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:78:9`! bool exportProfilecxx . . $ ProfileManagerUI#exportProfile(f4a1dd5527cb2081).(QStringcxx . . $ QString# const &name, QUrlcxx . . $ QUrl# const &path); |
| 52 | |
| 53 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 54 | void initProfilescxx . . $ ProfileManagerUI#initProfiles(2f4009bfc0c7e161).(QVariantListcxx . . $ QVariantList# const &profiles); |
| 55 | void profileAddedcxx . . $ ProfileManagerUI#profileAdded(c483c13b107e5b24).(QStringcxx . . $ QString# const &name, QStringcxx . . $ QString# const &exe, |
| 56 | QStringcxx . . $ QString# const &icon, bool hasCustomIcon, bool isActive); |
| 57 | void profileRemovedcxx . . $ ProfileManagerUI#profileRemoved(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 58 | void profileChangedcxx . . $ ProfileManagerUI#profileChanged(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 59 | void profileActiveChangedcxx . . $ ProfileManagerUI#profileActiveChanged(37c160c81b6367f7).(QStringcxx . . $ QString# const &name, bool active); |
| 60 | void manualProfileToggledcxx . . $ ProfileManagerUI#manualProfileToggled(37c160c81b6367f7).(QStringcxx . . $ QString# const &name, bool active); |
| 61 | void profileSavedcxx . . $ ProfileManagerUI#profileSaved(3520e46b33348bf6).(QStringcxx . . $ QString# const &name); |
| 62 | void profileInfoChangedcxx . . $ ProfileManagerUI#profileInfoChanged(d16393eab9ce24f1).(QStringcxx . . $ QString# const &oldName, QStringcxx . . $ QString# const &newName, |
| 63 | QStringcxx . . $ QString# const &exe, QStringcxx . . $ QString# const &icon, |
| 64 | bool hasCustomIcon, bool isActive); |
| 65 | |
| 66 | private: |
| 67 | stdcxx . . $ std/::stringcxx . . $ std/string# cleanIconFilePathcxx . . $ ProfileManagerUI#cleanIconFilePath(a5d9afeefb59deef).(QStringcxx . . $ QString# iconPath) const; |
| 68 | QStringcxx . . $ QString# toQMLIconPathcxx . . $ ProfileManagerUI#toQMLIconPath(f19053a6d670cfb9).(stdcxx . . $ std/::stringcxx . . $ std/string# const &iconPath) const; |
| 69 | |
| 70 | void addProfileComponetcxx . . $ ProfileManagerUI#addProfileComponet(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName); |
| 71 | void addProfileUsedNamescxx . . $ ProfileManagerUI#addProfileUsedNames(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName); |
| 72 | void removeProfileUsedNamescxx . . $ ProfileManagerUI#removeProfileUsedNames(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &profileName); |
| 73 | |
| 74 | ISessioncxx . . $ ISession# *session_cxx . . $ ProfileManagerUI#session_.{nullptr}; |
| 75 | IProfileManagercxx . . $ IProfileManager# *profileManager_cxx . . $ ProfileManagerUI#profileManager_.{nullptr}; |
| 76 | ISysModelUIcxx . . $ ISysModelUI# *sysModelUI_cxx . . $ ProfileManagerUI#sysModelUI_.{nullptr}; |
| 77 | |
| 78 | class ProfileManagerObservercxx . . $ ProfileManagerUI#ProfileManagerObserver#; |
| 79 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ProfileManagerObservercxx . . $ ProfileManagerUI#ProfileManagerObserver#> profileManagerObserver_cxx . . $ ProfileManagerUI#profileManagerObserver_.; |
| 80 | |
| 81 | class ManualProfileObservercxx . . $ ProfileManagerUI#ManualProfileObserver#; |
| 82 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ManualProfileObservercxx . . $ ProfileManagerUI#ManualProfileObserver#> manualProfileObserver_cxx . . $ ProfileManagerUI#manualProfileObserver_.; |
| 83 | |
| 84 | QSetcxx . . $ QSet#<QStringcxx . . $ QString#> usedProfileNames_cxx . . $ ProfileManagerUI#usedProfileNames_.; |
| 85 | QSetcxx . . $ QSet#<QStringcxx . . $ QString#> usedExecutableNames_cxx . . $ ProfileManagerUI#usedExecutableNames_.; |
| 86 | |
| 87 | static bool const registered_cxx . . $ ProfileManagerUI#registered_.; |
| 88 | static char const *const trStringscxx . . $ ProfileManagerUI#trStrings.[]; |
| 89 | }; |