| 1 | /* |
| 2 | * This file is part of system-settings |
| 3 | * |
| 4 | * Copyright (C) 2016 Canonical Ltd. |
| 5 | * |
| 6 | * This program is free software: you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License version 3, as published |
| 8 | * by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 12 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 13 | * PURPOSE. See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along |
| 16 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef FAKE_GSETTINGS_H |
| 20 | #define FAKE_GSETTINGS_Hcxx . . $ `tests/mocks/GSettings.1.0/fake_gsettings.h:20:9`! |
| 21 | |
| 22 | #include <QList> |
| 23 | #include <QObject> |
| 24 | #include <QQmlParserStatus> |
| 25 | #include <QStringList> |
| 26 | #include <QVariant> |
| 27 | |
| 28 | class GSettingsSchemaQmlcxx . . $ GSettingsSchemaQml#: public QObjectcxx . . $ QObject# |
| 29 | { |
| 30 | Q_OBJECTcxx . . $ GSettingsSchemaQml#QPrivateSignal# |
| 31 | |
| 32 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QByteArray id READ id WRITE setId) |
| 33 | |
| 34 | public: |
| 35 | GSettingsSchemaQmlcxx . . $ GSettingsSchemaQml#GSettingsSchemaQml(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = nullptr); |
| 36 | |
| 37 | QByteArraycxx . . $ QByteArray# idcxx . . $ GSettingsSchemaQml#id(a96750bfbcb1fbe9).() const; |
| 38 | void setIdcxx . . $ GSettingsSchemaQml#setId(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &id); |
| 39 | |
| 40 | QByteArraycxx . . $ QByteArray# pathcxx . . $ GSettingsSchemaQml#path(a96750bfbcb1fbe9).() const; |
| 41 | void setPathcxx . . $ GSettingsSchemaQml#setPath(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &path); |
| 42 | |
| 43 | private: |
| 44 | QByteArraycxx . . $ QByteArray# m_idcxx . . $ GSettingsSchemaQml#m_id.; |
| 45 | QByteArraycxx . . $ QByteArray# m_pathcxx . . $ GSettingsSchemaQml#m_path.; |
| 46 | }; |
| 47 | |
| 48 | class GSettingsQmlcxx . . $ GSettingsQml#: public QObjectcxx . . $ QObject#, public QQmlParserStatuscxx . . $ QQmlParserStatus# |
| 49 | { |
| 50 | Q_OBJECTcxx . . $ GSettingsQml#QPrivateSignal# |
| 51 | Q_INTERFACEScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:103:9`!(QQmlParserStatus) |
| 52 | |
| 53 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(GSettingsSchemaQml* schema READ schema NOTIFY schemaChanged) |
| 54 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QVariant autoBrightness READ autoBrightness WRITE setAutoBrightness NOTIFY autoBrightnessChanged) |
| 55 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QVariant launcherWidth READ launcherWidth WRITE setLauncherWidth NOTIFY launcherWidthChanged) |
| 56 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QVariant autohideLauncher READ autohideLauncher WRITE setAutohideLauncher NOTIFY autohideLauncherChanged) |
| 57 | |
| 58 | public: |
| 59 | GSettingsQmlcxx . . $ GSettingsQml#GSettingsQml(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = nullptr); |
| 60 | |
| 61 | void classBegincxx . . $ GSettingsQml#classBegin(49f6e7a06ebc5aa8).() override; |
| 62 | void componentCompletecxx . . $ GSettingsQml#componentComplete(49f6e7a06ebc5aa8).() override; |
| 63 | |
| 64 | GSettingsSchemaQmlcxx . . $ GSettingsSchemaQml# * schemacxx . . $ GSettingsQml#schema(9bf8f5a7121ee481).() const; |
| 65 | QVariantcxx . . $ QVariant# autoBrightnesscxx . . $ GSettingsQml#autoBrightness(23280f95d1ccaa1f).() const; |
| 66 | QVariantcxx . . $ QVariant# launcherWidthcxx . . $ GSettingsQml#launcherWidth(23280f95d1ccaa1f).() const; |
| 67 | QVariantcxx . . $ QVariant# autohideLaunchercxx . . $ GSettingsQml#autohideLauncher(23280f95d1ccaa1f).() const; |
| 68 | |
| 69 | void setAutoBrightnesscxx . . $ GSettingsQml#setAutoBrightness(244511558b20107a).(const QVariantcxx . . $ QVariant# &val); |
| 70 | void setLauncherWidthcxx . . $ GSettingsQml#setLauncherWidth(244511558b20107a).(const QVariantcxx . . $ QVariant# &val); |
| 71 | void setAutohideLaunchercxx . . $ GSettingsQml#setAutohideLauncher(244511558b20107a).(const QVariantcxx . . $ QVariant# &val); |
| 72 | |
| 73 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 74 | void autoBrightnessChangedcxx . . $ GSettingsQml#autoBrightnessChanged(49f6e7a06ebc5aa8).(); |
| 75 | void launcherWidthChangedcxx . . $ GSettingsQml#launcherWidthChanged(49f6e7a06ebc5aa8).(); |
| 76 | void autohideLauncherChangedcxx . . $ GSettingsQml#autohideLauncherChanged(49f6e7a06ebc5aa8).(); |
| 77 | void schemaChangedcxx . . $ GSettingsQml#schemaChanged(49f6e7a06ebc5aa8).(); |
| 78 | |
| 79 | private: |
| 80 | GSettingsSchemaQmlcxx . . $ GSettingsSchemaQml#* m_schemacxx . . $ GSettingsQml#m_schema.; |
| 81 | bool m_validcxx . . $ GSettingsQml#m_valid.; |
| 82 | |
| 83 | friend class GSettingsSchemaQmlcxx . . $ GSettingsSchemaQml#; |
| 84 | }; |
| 85 | |
| 86 | class GSettingsControllerQmlcxx . . $ GSettingsControllerQml#: public QObjectcxx . . $ QObject# |
| 87 | { |
| 88 | Q_OBJECTcxx . . $ GSettingsControllerQml#trUtf8(75d9f1c324b4579d). |
| 89 | |
| 90 | public: |
| 91 | static GSettingsControllerQmlcxx . . $ GSettingsControllerQml#* instancecxx . . $ GSettingsControllerQml#instance(de39fad5de157557).(); |
| 92 | ~cxx . . $ GSettingsControllerQml#`~GSettingsControllerQml`(ced63f7c635d850d).GSettingsControllerQmlcxx . . $ GSettingsControllerQml#(); |
| 93 | |
| 94 | bool autoBrightnesscxx . . $ GSettingsControllerQml#autoBrightness(50ce9a9e25b4a850).() const; |
| 95 | uintcxx . . $ uint# launcherWidthcxx . . $ GSettingsControllerQml#launcherWidth(ddd8539a2fcdd4ce).() const; |
| 96 | bool autohideLaunchercxx . . $ GSettingsControllerQml#autohideLauncher(50ce9a9e25b4a850).() const; |
| 97 | |
| 98 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void setAutoBrightnesscxx . . $ GSettingsControllerQml#setAutoBrightness(b45ddcbc8423892c).(bool val); |
| 99 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void setLauncherWidthcxx . . $ GSettingsControllerQml#setLauncherWidth(cb2f890c2fdad230).(uintcxx . . $ uint# val); |
| 100 | Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void setAutohideLaunchercxx . . $ GSettingsControllerQml#setAutohideLauncher(b45ddcbc8423892c).(bool val); |
| 101 | |
| 102 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 103 | void autoBrightnessChangedcxx . . $ GSettingsControllerQml#autoBrightnessChanged(49f6e7a06ebc5aa8).(); |
| 104 | void launcherWidthChangedcxx . . $ GSettingsControllerQml#launcherWidthChanged(49f6e7a06ebc5aa8).(); |
| 105 | void autohideLauncherChangedcxx . . $ GSettingsControllerQml#autohideLauncherChanged(49f6e7a06ebc5aa8).(); |
| 106 | |
| 107 | private: |
| 108 | GSettingsControllerQmlcxx . . $ GSettingsControllerQml#GSettingsControllerQml(49f6e7a06ebc5aa8).(); |
| 109 | |
| 110 | bool m_autoBrightnesscxx . . $ GSettingsControllerQml#m_autoBrightness.; |
| 111 | uintcxx . . $ uint# m_launcherWidthcxx . . $ GSettingsControllerQml#m_launcherWidth. = 8; |
| 112 | bool m_autohideLaunchercxx . . $ GSettingsControllerQml#m_autohideLauncher. = true; |
| 113 | |
| 114 | static GSettingsControllerQmlcxx . . $ GSettingsControllerQml#* s_controllerInstancecxx . . $ GSettingsControllerQml#s_controllerInstance.; |
| 115 | QListcxx . . $ QList#<GSettingsQmlcxx . . $ GSettingsQml# *> m_registeredGSettingscxx . . $ GSettingsControllerQml#m_registeredGSettings.; |
| 116 | }; |
| 117 | |
| 118 | #endif // FAKE_GSETTINGS_H |