From aa3f3d675f157158cdfa178f56583a3fdc316f32 Mon Sep 17 00:00:00 2001 From: jingshenghao Date: Mon, 13 Jan 2025 13:41:15 +0800 Subject: [PATCH] feat: Add files generated by qdbusXML2cpp and DCONG2cpp Add files generated by qdbusXML2cpp and DCONG2cpp Log: Add files generated by qdbusXML2cpp and DCONG2cpp --- .../com.deepin.SessionManagerAdaptor.cpp | 199 ++++++++++ .../com.deepin.SessionManagerAdaptor.h | 122 ++++++ .../com.deepin.StartManagerAdaptor.cpp | 129 ++++++ .../com.deepin.StartManagerAdaptor.h | 116 ++++++ .../com.deepin.WMSwitcherAdaptor.cpp | 69 ++++ .../com.deepin.WMSwitcherAdaptor.h | 65 +++ .../com.deepin.api.XEventMonitorAdaptor.cpp | 67 ++++ .../com.deepin.api.XEventMonitorAdaptor.h | 120 ++++++ ...com.deepin.daemon.Accounts.UserAdaptor.cpp | 373 ++++++++++++++++++ .../com.deepin.daemon.Accounts.UserAdaptor.h | 272 +++++++++++++ .../com.deepin.daemon.AccountsAdaptor.cpp | 133 +++++++ .../com.deepin.daemon.AccountsAdaptor.h | 124 ++++++ .../com.deepin.daemon.AppearanceAdaptor.cpp | 219 ++++++++++ .../com.deepin.daemon.AppearanceAdaptor.h | 151 +++++++ .../com.deepin.daemon.Audio.SinkAdaptor.cpp | 145 +++++++ .../com.deepin.daemon.Audio.SinkAdaptor.h | 125 ++++++ .../com.deepin.daemon.Audio.SourceAdaptor.cpp | 145 +++++++ .../com.deepin.daemon.Audio.SourceAdaptor.h | 125 ++++++ .../com.deepin.daemon.AudioAdaptor.cpp | 187 +++++++++ .../com.deepin.daemon.AudioAdaptor.h | 150 +++++++ .../com.deepin.daemon.BluetoothAdaptor.cpp | 193 +++++++++ .../com.deepin.daemon.BluetoothAdaptor.h | 253 ++++++++++++ ...m.deepin.daemon.Display.MonitorAdaptor.cpp | 209 ++++++++++ ...com.deepin.daemon.Display.MonitorAdaptor.h | 172 ++++++++ .../com.deepin.daemon.DisplayAdaptor.cpp | 257 ++++++++++++ .../com.deepin.daemon.DisplayAdaptor.h | 198 ++++++++++ .../com.deepin.daemon.GestureAdaptor.cpp | 53 +++ .../com.deepin.daemon.GestureAdaptor.h | 132 +++++++ ...daemon.Grub2.EditAuthenticationAdaptor.cpp | 53 +++ ...n.daemon.Grub2.EditAuthenticationAdaptor.h | 60 +++ .../com.deepin.daemon.Grub2.ThemeAdaptor.cpp | 79 ++++ .../com.deepin.daemon.Grub2.ThemeAdaptor.h | 77 ++++ .../com.deepin.daemon.Grub2Adaptor.cpp | 131 ++++++ .../com.deepin.daemon.Grub2Adaptor.h | 105 +++++ ...pin.daemon.InputDevice.KeyboardAdaptor.cpp | 183 +++++++++ ...eepin.daemon.InputDevice.KeyboardAdaptor.h | 120 ++++++ ...deepin.daemon.InputDevice.MouseAdaptor.cpp | 173 ++++++++ ...m.deepin.daemon.InputDevice.MouseAdaptor.h | 107 +++++ ...pin.daemon.InputDevice.TouchPadAdaptor.cpp | 257 ++++++++++++ ...eepin.daemon.InputDevice.TouchPadAdaptor.h | 142 +++++++ ...n.daemon.InputDevice.TrackPointAdaptor.cpp | 173 ++++++++ ...pin.daemon.InputDevice.TrackPointAdaptor.h | 107 +++++ ...deepin.daemon.InputDevice.WacomAdaptor.cpp | 203 ++++++++++ ...m.deepin.daemon.InputDevice.WacomAdaptor.h | 123 ++++++ .../com.deepin.daemon.InputDevicesAdaptor.cpp | 53 +++ .../com.deepin.daemon.InputDevicesAdaptor.h | 58 +++ .../com.deepin.daemon.KeybindingAdaptor.cpp | 199 ++++++++++ .../com.deepin.daemon.KeybindingAdaptor.h | 188 +++++++++ .../com.deepin.daemon.LangSelectorAdaptor.cpp | 101 +++++ .../com.deepin.daemon.LangSelectorAdaptor.h | 92 +++++ .../com.deepin.daemon.MimeAdaptor.cpp | 83 ++++ .../com.deepin.daemon.MimeAdaptor.h | 83 ++++ .../com.deepin.daemon.NetworkAdaptor.cpp | 325 +++++++++++++++ .../com.deepin.daemon.NetworkAdaptor.h | 278 +++++++++++++ .../com.deepin.daemon.PasswdConfAdaptor.cpp | 129 ++++++ .../com.deepin.daemon.PasswdConfAdaptor.h | 101 +++++ .../com.deepin.daemon.PowerAdaptor.cpp | 317 +++++++++++++++ .../com.deepin.daemon.PowerAdaptor.h | 182 +++++++++ .../com.deepin.daemon.PowerManagerAdaptor.cpp | 73 ++++ .../com.deepin.daemon.PowerManagerAdaptor.h | 67 ++++ .../com.deepin.daemon.SoundEffectAdaptor.cpp | 97 +++++ .../com.deepin.daemon.SoundEffectAdaptor.h | 85 ++++ .../com.deepin.daemon.SystemInfoAdaptor.cpp | 83 ++++ .../com.deepin.daemon.SystemInfoAdaptor.h | 79 ++++ .../com.deepin.daemon.TimedateAdaptor.cpp | 239 +++++++++++ .../com.deepin.daemon.TimedateAdaptor.h | 167 ++++++++ .../com.deepin.daemon.TimedatedAdaptor.cpp | 71 ++++ .../com.deepin.daemon.TimedatedAdaptor.h | 78 ++++ .../com.deepin.dbusdemoAdaptor.cpp | 95 +++++ .../qdbusxml2cpp/com.deepin.dbusdemoAdaptor.h | 98 +++++ .../com.deepin.dde.ControlCenterAdaptor.cpp | 123 ++++++ .../com.deepin.dde.ControlCenterAdaptor.h | 101 +++++ .../com.deepin.dde.DockAdaptor.cpp | 101 +++++ .../qdbusxml2cpp/com.deepin.dde.DockAdaptor.h | 91 +++++ .../com.deepin.dde.LauncherAdaptor.cpp | 85 ++++ .../com.deepin.dde.LauncherAdaptor.h | 79 ++++ .../com.deepin.dde.NotificationAdaptor.cpp | 205 ++++++++++ .../com.deepin.dde.NotificationAdaptor.h | 204 ++++++++++ .../com.deepin.dde.TrayManagerAdaptor.cpp | 63 +++ .../com.deepin.dde.TrayManagerAdaptor.h | 81 ++++ ...om.deepin.dde.daemon.Dock.EntryAdaptor.cpp | 143 +++++++ .../com.deepin.dde.daemon.Dock.EntryAdaptor.h | 113 ++++++ .../com.deepin.dde.daemon.DockAdaptor.cpp | 321 +++++++++++++++ .../com.deepin.dde.daemon.DockAdaptor.h | 223 +++++++++++ .../com.deepin.dde.daemon.LauncherAdaptor.cpp | 153 +++++++ .../com.deepin.dde.daemon.LauncherAdaptor.h | 144 +++++++ .../com.deepin.dde.lockFrontAdaptor.cpp | 71 ++++ .../com.deepin.dde.lockFrontAdaptor.h | 71 ++++ .../com.deepin.dde.osdAdaptor.cpp | 41 ++ .../qdbusxml2cpp/com.deepin.dde.osdAdaptor.h | 51 +++ .../com.deepin.dde.shutdownFrontAdaptor.cpp | 83 ++++ .../com.deepin.dde.shutdownFrontAdaptor.h | 67 ++++ .../com.deepin.lastore.ManagerAdaptor.cpp | 197 +++++++++ .../com.deepin.lastore.ManagerAdaptor.h | 152 +++++++ .../com.deepin.lastore.UpdaterAdaptor.cpp | 89 +++++ .../com.deepin.lastore.UpdaterAdaptor.h | 81 ++++ .../com.deepin.system.DisplayAdaptor.cpp | 49 +++ .../com.deepin.system.DisplayAdaptor.h | 59 +++ .../com.deepin.system.NetworkAdaptor.cpp | 77 ++++ .../com.deepin.system.NetworkAdaptor.h | 76 ++++ .../com.deepin.system.PowerAdaptor.cpp | 181 +++++++++ .../com.deepin.system.PowerAdaptor.h | 138 +++++++ .../com.deepin.system.SystemInfoAdaptor.cpp | 53 +++ .../com.deepin.system.SystemInfoAdaptor.h | 59 +++ .../org.deepin.dde.Accounts1.UserAdaptor.cpp | 373 ++++++++++++++++++ .../org.deepin.dde.Accounts1.UserAdaptor.h | 272 +++++++++++++ .../org.deepin.dde.Accounts1Adaptor.cpp | 133 +++++++ .../org.deepin.dde.Accounts1Adaptor.h | 124 ++++++ .../org.deepin.dde.AirplaneMode1Adaptor.cpp | 83 ++++ .../org.deepin.dde.AirplaneMode1Adaptor.h | 77 ++++ .../org.deepin.dde.Appearance1Adaptor.cpp | 261 ++++++++++++ .../org.deepin.dde.Appearance1Adaptor.h | 195 +++++++++ .../org.deepin.dde.Audio1.SinkAdaptor.cpp | 145 +++++++ .../org.deepin.dde.Audio1.SinkAdaptor.h | 125 ++++++ .../org.deepin.dde.Audio1.SourceAdaptor.cpp | 145 +++++++ .../org.deepin.dde.Audio1.SourceAdaptor.h | 125 ++++++ .../org.deepin.dde.Audio1Adaptor.cpp | 187 +++++++++ .../org.deepin.dde.Audio1Adaptor.h | 150 +++++++ .../org.deepin.dde.Bluetooth1Adaptor.cpp | 193 +++++++++ .../org.deepin.dde.Bluetooth1Adaptor.h | 253 ++++++++++++ ....dde.ControlCenter1.GrandSearchAdaptor.cpp | 59 +++ ...in.dde.ControlCenter1.GrandSearchAdaptor.h | 62 +++ .../org.deepin.dde.ControlCenter1Adaptor.cpp | 123 ++++++ .../org.deepin.dde.ControlCenter1Adaptor.h | 101 +++++ ...org.deepin.dde.Display1.MonitorAdaptor.cpp | 209 ++++++++++ .../org.deepin.dde.Display1.MonitorAdaptor.h | 172 ++++++++ .../org.deepin.dde.Display1Adaptor.cpp | 49 +++ .../org.deepin.dde.Display1Adaptor.h | 59 +++ .../org.deepin.dde.Dock1Adaptor.cpp | 101 +++++ .../org.deepin.dde.Dock1Adaptor.h | 91 +++++ .../org.deepin.dde.Gesture1Adaptor.cpp | 53 +++ .../org.deepin.dde.Gesture1Adaptor.h | 132 +++++++ ...in.dde.Grub2.EditAuthenticationAdaptor.cpp | 53 +++ ...epin.dde.Grub2.EditAuthenticationAdaptor.h | 60 +++ .../org.deepin.dde.Grub2.ThemeAdaptor.cpp | 79 ++++ .../org.deepin.dde.Grub2.ThemeAdaptor.h | 77 ++++ .../org.deepin.dde.Grub2Adaptor.cpp | 131 ++++++ .../org.deepin.dde.Grub2Adaptor.h | 105 +++++ ...eepin.dde.InputDevice1.KeyboardAdaptor.cpp | 183 +++++++++ ....deepin.dde.InputDevice1.KeyboardAdaptor.h | 120 ++++++ ...g.deepin.dde.InputDevice1.MouseAdaptor.cpp | 191 +++++++++ ...org.deepin.dde.InputDevice1.MouseAdaptor.h | 116 ++++++ ...eepin.dde.InputDevice1.TouchPadAdaptor.cpp | 257 ++++++++++++ ....deepin.dde.InputDevice1.TouchPadAdaptor.h | 142 +++++++ ...pin.dde.InputDevice1.TrackPointAdaptor.cpp | 173 ++++++++ ...eepin.dde.InputDevice1.TrackPointAdaptor.h | 107 +++++ ...g.deepin.dde.InputDevice1.WacomAdaptor.cpp | 203 ++++++++++ ...org.deepin.dde.InputDevice1.WacomAdaptor.h | 123 ++++++ .../org.deepin.dde.InputDevices1Adaptor.cpp | 53 +++ .../org.deepin.dde.InputDevices1Adaptor.h | 58 +++ .../org.deepin.dde.Keybinding1Adaptor.cpp | 199 ++++++++++ .../org.deepin.dde.Keybinding1Adaptor.h | 188 +++++++++ .../org.deepin.dde.LangSelector1Adaptor.cpp | 101 +++++ .../org.deepin.dde.LangSelector1Adaptor.h | 92 +++++ .../org.deepin.dde.Lastore1.JobAdaptor.cpp | 101 +++++ .../org.deepin.dde.Lastore1.JobAdaptor.h | 91 +++++ ...org.deepin.dde.Lastore1.ManagerAdaptor.cpp | 197 +++++++++ .../org.deepin.dde.Lastore1.ManagerAdaptor.h | 152 +++++++ ...org.deepin.dde.Lastore1.UpdaterAdaptor.cpp | 89 +++++ .../org.deepin.dde.Lastore1.UpdaterAdaptor.h | 81 ++++ .../org.deepin.dde.Launcher1Adaptor.cpp | 85 ++++ .../org.deepin.dde.Launcher1Adaptor.h | 79 ++++ .../org.deepin.dde.LockFront1Adaptor.cpp | 71 ++++ .../org.deepin.dde.LockFront1Adaptor.h | 75 ++++ .../org.deepin.dde.LockService1Adaptor.cpp | 69 ++++ .../org.deepin.dde.LockService1Adaptor.h | 80 ++++ .../org.deepin.dde.Mime1Adaptor.cpp | 83 ++++ .../org.deepin.dde.Mime1Adaptor.h | 83 ++++ .../org.deepin.dde.Network1Adaptor.cpp | 77 ++++ .../org.deepin.dde.Network1Adaptor.h | 76 ++++ .../org.deepin.dde.Notification1Adaptor.cpp | 197 +++++++++ .../org.deepin.dde.Notification1Adaptor.h | 200 ++++++++++ .../org.deepin.dde.Osd1Adaptor.cpp | 41 ++ .../qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.h | 51 +++ .../org.deepin.dde.PasswdConf1Adaptor.cpp | 129 ++++++ .../org.deepin.dde.PasswdConf1Adaptor.h | 101 +++++ .../org.deepin.dde.Permission1Adaptor.cpp | 131 ++++++ .../org.deepin.dde.Permission1Adaptor.h | 139 +++++++ .../org.deepin.dde.Power1Adaptor.cpp | 229 +++++++++++ .../org.deepin.dde.Power1Adaptor.h | 170 ++++++++ .../org.deepin.dde.PowerManager1Adaptor.cpp | 73 ++++ .../org.deepin.dde.PowerManager1Adaptor.h | 67 ++++ .../org.deepin.dde.SessionManager1Adaptor.cpp | 199 ++++++++++ .../org.deepin.dde.SessionManager1Adaptor.h | 122 ++++++ .../org.deepin.dde.ShutdownFront1Adaptor.cpp | 83 ++++ .../org.deepin.dde.ShutdownFront1Adaptor.h | 67 ++++ .../org.deepin.dde.SoundEffect1Adaptor.cpp | 97 +++++ .../org.deepin.dde.SoundEffect1Adaptor.h | 85 ++++ .../org.deepin.dde.StartManager1Adaptor.cpp | 129 ++++++ .../org.deepin.dde.StartManager1Adaptor.h | 116 ++++++ .../org.deepin.dde.SystemInfo1Adaptor.cpp | 53 +++ .../org.deepin.dde.SystemInfo1Adaptor.h | 59 +++ .../org.deepin.dde.Timedate1Adaptor.cpp | 71 ++++ .../org.deepin.dde.Timedate1Adaptor.h | 78 ++++ .../org.deepin.dde.TrayManager1Adaptor.cpp | 63 +++ .../org.deepin.dde.TrayManager1Adaptor.h | 81 ++++ .../org.deepin.dde.WMSwitcher1Adaptor.cpp | 69 ++++ .../org.deepin.dde.WMSwitcher1Adaptor.h | 65 +++ .../org.deepin.dde.XEventMonitor1Adaptor.cpp | 67 ++++ .../org.deepin.dde.XEventMonitor1Adaptor.h | 120 ++++++ ...g.deepin.dde.daemon.Dock1.EntryAdaptor.cpp | 143 +++++++ ...org.deepin.dde.daemon.Dock1.EntryAdaptor.h | 113 ++++++ .../org.deepin.dde.daemon.Dock1Adaptor.cpp | 321 +++++++++++++++ .../org.deepin.dde.daemon.Dock1Adaptor.h | 223 +++++++++++ ...org.deepin.dde.daemon.Launcher1Adaptor.cpp | 153 +++++++ .../org.deepin.dde.daemon.Launcher1Adaptor.h | 144 +++++++ .../org.desktopspec.MimeManager1Adaptor.cpp | 61 +++ .../org.desktopspec.MimeManager1Adaptor.h | 69 ++++ .../org.desktopspec.permissionAdaptor.cpp | 131 ++++++ .../org.desktopspec.permissionAdaptor.h | 139 +++++++ 210 files changed, 26843 insertions(+) create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h create mode 100644 toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.cpp create mode 100644 toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.h diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.cpp new file mode 100644 index 0000000..ff46b7b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.cpp @@ -0,0 +1,199 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.SessionManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SessionManagerAdaptor + */ + +SessionManagerAdaptor::SessionManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SessionManagerAdaptor::~SessionManagerAdaptor() +{ + // destructor +} + +QString SessionManagerAdaptor::currentUid() const +{ + // get the value of property CurrentUid + return qvariant_cast< QString >(parent()->property("CurrentUid")); +} + +bool SessionManagerAdaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +int SessionManagerAdaptor::stage() const +{ + // get the value of property Stage + return qvariant_cast< int >(parent()->property("Stage")); +} + +bool SessionManagerAdaptor::AllowSessionDaemonRun() +{ + // handle method call com.deepin.SessionManager.AllowSessionDaemonRun + bool out0; + QMetaObject::invokeMethod(parent(), "AllowSessionDaemonRun", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManagerAdaptor::CanHibernate() +{ + // handle method call com.deepin.SessionManager.CanHibernate + bool out0; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManagerAdaptor::CanLogout() +{ + // handle method call com.deepin.SessionManager.CanLogout + bool out0; + QMetaObject::invokeMethod(parent(), "CanLogout", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManagerAdaptor::CanReboot() +{ + // handle method call com.deepin.SessionManager.CanReboot + bool out0; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManagerAdaptor::CanShutdown() +{ + // handle method call com.deepin.SessionManager.CanShutdown + bool out0; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManagerAdaptor::CanSuspend() +{ + // handle method call com.deepin.SessionManager.CanSuspend + bool out0; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void SessionManagerAdaptor::ForceLogout() +{ + // handle method call com.deepin.SessionManager.ForceLogout + QMetaObject::invokeMethod(parent(), "ForceLogout"); +} + +void SessionManagerAdaptor::ForceReboot() +{ + // handle method call com.deepin.SessionManager.ForceReboot + QMetaObject::invokeMethod(parent(), "ForceReboot"); +} + +void SessionManagerAdaptor::ForceShutdown() +{ + // handle method call com.deepin.SessionManager.ForceShutdown + QMetaObject::invokeMethod(parent(), "ForceShutdown"); +} + +void SessionManagerAdaptor::Logout() +{ + // handle method call com.deepin.SessionManager.Logout + QMetaObject::invokeMethod(parent(), "Logout"); +} + +void SessionManagerAdaptor::PowerOffChoose() +{ + // handle method call com.deepin.SessionManager.PowerOffChoose + QMetaObject::invokeMethod(parent(), "PowerOffChoose"); +} + +void SessionManagerAdaptor::Reboot() +{ + // handle method call com.deepin.SessionManager.Reboot + QMetaObject::invokeMethod(parent(), "Reboot"); +} + +bool SessionManagerAdaptor::Register(const QString &in0) +{ + // handle method call com.deepin.SessionManager.Register + bool out0; + QMetaObject::invokeMethod(parent(), "Register", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void SessionManagerAdaptor::RequestHibernate() +{ + // handle method call com.deepin.SessionManager.RequestHibernate + QMetaObject::invokeMethod(parent(), "RequestHibernate"); +} + +void SessionManagerAdaptor::RequestLock() +{ + // handle method call com.deepin.SessionManager.RequestLock + QMetaObject::invokeMethod(parent(), "RequestLock"); +} + +void SessionManagerAdaptor::RequestLogout() +{ + // handle method call com.deepin.SessionManager.RequestLogout + QMetaObject::invokeMethod(parent(), "RequestLogout"); +} + +void SessionManagerAdaptor::RequestReboot() +{ + // handle method call com.deepin.SessionManager.RequestReboot + QMetaObject::invokeMethod(parent(), "RequestReboot"); +} + +void SessionManagerAdaptor::RequestShutdown() +{ + // handle method call com.deepin.SessionManager.RequestShutdown + QMetaObject::invokeMethod(parent(), "RequestShutdown"); +} + +void SessionManagerAdaptor::RequestSuspend() +{ + // handle method call com.deepin.SessionManager.RequestSuspend + QMetaObject::invokeMethod(parent(), "RequestSuspend"); +} + +void SessionManagerAdaptor::SetLocked(bool in0) +{ + // handle method call com.deepin.SessionManager.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, in0)); +} + +void SessionManagerAdaptor::Shutdown() +{ + // handle method call com.deepin.SessionManager.Shutdown + QMetaObject::invokeMethod(parent(), "Shutdown"); +} + +void SessionManagerAdaptor::ToggleDebug() +{ + // handle method call com.deepin.SessionManager.ToggleDebug + QMetaObject::invokeMethod(parent(), "ToggleDebug"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.h new file mode 100644 index 0000000..e6de8d2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor.h @@ -0,0 +1,122 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.SessionManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_SESSIONMANAGERADAPTOR_H +#define COM_DEEPIN_SESSIONMANAGERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.SessionManager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.SessionManager + */ +class SessionManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.SessionManager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SessionManagerAdaptor(QObject *parent); + virtual ~SessionManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString CurrentUid READ currentUid) + QString currentUid() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(int Stage READ stage) + int stage() const; + +public Q_SLOTS: // METHODS + bool AllowSessionDaemonRun(); + bool CanHibernate(); + bool CanLogout(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); + void ForceLogout(); + void ForceReboot(); + void ForceShutdown(); + void Logout(); + void PowerOffChoose(); + void Reboot(); + bool Register(const QString &in0); + void RequestHibernate(); + void RequestLock(); + void RequestLogout(); + void RequestReboot(); + void RequestShutdown(); + void RequestSuspend(); + void SetLocked(bool in0); + void Shutdown(); + void ToggleDebug(); +Q_SIGNALS: // SIGNALS + void Unlock(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.cpp new file mode 100644 index 0000000..158b83d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.cpp @@ -0,0 +1,129 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.StartManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.StartManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class StartManagerAdaptor + */ + +StartManagerAdaptor::StartManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +StartManagerAdaptor::~StartManagerAdaptor() +{ + // destructor +} + +qulonglong StartManagerAdaptor::neededMemory() const +{ + // get the value of property NeededMemory + return qvariant_cast< qulonglong >(parent()->property("NeededMemory")); +} + +bool StartManagerAdaptor::AddAutostart(const QString &in0) +{ + // handle method call com.deepin.StartManager.AddAutostart + bool out0; + QMetaObject::invokeMethod(parent(), "AddAutostart", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList StartManagerAdaptor::AutostartList() +{ + // handle method call com.deepin.StartManager.AutostartList + QStringList out0; + QMetaObject::invokeMethod(parent(), "AutostartList", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +AppsCGroupInfo StartManagerAdaptor::GetApps() +{ + // handle method call com.deepin.StartManager.GetApps + AppsCGroupInfo out0; + QMetaObject::invokeMethod(parent(), "GetApps", Q_RETURN_ARG(AppsCGroupInfo, out0)); + return out0; +} + +bool StartManagerAdaptor::IsAutostart(const QString &in0) +{ + // handle method call com.deepin.StartManager.IsAutostart + bool out0; + QMetaObject::invokeMethod(parent(), "IsAutostart", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +bool StartManagerAdaptor::IsMemSufficient() +{ + // handle method call com.deepin.StartManager.IsMemSufficient + bool out0; + QMetaObject::invokeMethod(parent(), "IsMemSufficient", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool StartManagerAdaptor::Launch(const QString &in0) +{ + // handle method call com.deepin.StartManager.Launch + bool out0; + QMetaObject::invokeMethod(parent(), "Launch", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void StartManagerAdaptor::LaunchApp(const QString &in0, uint in1, const QStringList &in2) +{ + // handle method call com.deepin.StartManager.LaunchApp + QMetaObject::invokeMethod(parent(), "LaunchApp", Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QStringList, in2)); +} + +void StartManagerAdaptor::LaunchAppAction(const QString &in0, const QString &in1, uint in2) +{ + // handle method call com.deepin.StartManager.LaunchAppAction + QMetaObject::invokeMethod(parent(), "LaunchAppAction", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(uint, in2)); +} + +bool StartManagerAdaptor::LaunchWithTimestamp(const QString &in0, uint in1) +{ + // handle method call com.deepin.StartManager.LaunchWithTimestamp + bool out0; + QMetaObject::invokeMethod(parent(), "LaunchWithTimestamp", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +bool StartManagerAdaptor::RemoveAutostart(const QString &in0) +{ + // handle method call com.deepin.StartManager.RemoveAutostart + bool out0; + QMetaObject::invokeMethod(parent(), "RemoveAutostart", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void StartManagerAdaptor::RunCommand(const QString &in0, const QStringList &in1) +{ + // handle method call com.deepin.StartManager.RunCommand + QMetaObject::invokeMethod(parent(), "RunCommand", Q_ARG(QString, in0), Q_ARG(QStringList, in1)); +} + +void StartManagerAdaptor::TryAgain(bool in0) +{ + // handle method call com.deepin.StartManager.TryAgain + QMetaObject::invokeMethod(parent(), "TryAgain", Q_ARG(bool, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.h new file mode 100644 index 0000000..bf2215d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor.h @@ -0,0 +1,116 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.StartManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.StartManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.StartManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_STARTMANAGERADAPTOR_H +#define COM_DEEPIN_STARTMANAGERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.StartManager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.StartManager + */ +class StartManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.StartManager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + StartManagerAdaptor(QObject *parent); + virtual ~StartManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(qulonglong NeededMemory READ neededMemory) + qulonglong neededMemory() const; + +public Q_SLOTS: // METHODS + bool AddAutostart(const QString &in0); + QStringList AutostartList(); + AppsCGroupInfo GetApps(); + bool IsAutostart(const QString &in0); + bool IsMemSufficient(); + bool Launch(const QString &in0); + void LaunchApp(const QString &in0, uint in1, const QStringList &in2); + void LaunchAppAction(const QString &in0, const QString &in1, uint in2); + bool LaunchWithTimestamp(const QString &in0, uint in1); + bool RemoveAutostart(const QString &in0); + void RunCommand(const QString &in0, const QStringList &in1); + void TryAgain(bool in0); +Q_SIGNALS: // SIGNALS + void AutostartChanged(const QString &in0, const QString &in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.cpp new file mode 100644 index 0000000..c8591d6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.cpp @@ -0,0 +1,69 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.WMSwitcher.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcher.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WMSwitcherAdaptor + */ + +WMSwitcherAdaptor::WMSwitcherAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WMSwitcherAdaptor::~WMSwitcherAdaptor() +{ + // destructor +} + +bool WMSwitcherAdaptor::AllowSwitch() +{ + // handle method call com.deepin.WMSwitcher.AllowSwitch + bool out0; + QMetaObject::invokeMethod(parent(), "AllowSwitch", Q_RETURN_ARG(bool, out0)); + return out0; +} + +QString WMSwitcherAdaptor::CurrentWM() +{ + // handle method call com.deepin.WMSwitcher.CurrentWM + QString out0; + QMetaObject::invokeMethod(parent(), "CurrentWM", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void WMSwitcherAdaptor::RequestSwitchWM() +{ + // handle method call com.deepin.WMSwitcher.RequestSwitchWM + QMetaObject::invokeMethod(parent(), "RequestSwitchWM"); +} + +void WMSwitcherAdaptor::RestartWM() +{ + // handle method call com.deepin.WMSwitcher.RestartWM + QMetaObject::invokeMethod(parent(), "RestartWM"); +} + +void WMSwitcherAdaptor::Start2DWM() +{ + // handle method call com.deepin.WMSwitcher.Start2DWM + QMetaObject::invokeMethod(parent(), "Start2DWM"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.h new file mode 100644 index 0000000..01d6182 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor.h @@ -0,0 +1,65 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.WMSwitcher.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcherAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcher.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_WMSWITCHERADAPTOR_H +#define COM_DEEPIN_WMSWITCHERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.WMSwitcher.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.WMSwitcher + */ +class WMSwitcherAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.WMSwitcher") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WMSwitcherAdaptor(QObject *parent); + virtual ~WMSwitcherAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool AllowSwitch(); + QString CurrentWM(); + void RequestSwitchWM(); + void RestartWM(); + void Start2DWM(); +Q_SIGNALS: // SIGNALS + void WMChanged(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.cpp new file mode 100644 index 0000000..e72aa79 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.cpp @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.api.XEventMonitor.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class XEventMonitorAdaptor + */ + +XEventMonitorAdaptor::XEventMonitorAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +XEventMonitorAdaptor::~XEventMonitorAdaptor() +{ + // destructor +} + +QString XEventMonitorAdaptor::RegisterArea(int in0, int in1, int in2, int in3, int in4) +{ + // handle method call com.deepin.api.XEventMonitor.RegisterArea + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterArea", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3), Q_ARG(int, in4)); + return out0; +} + +QString XEventMonitorAdaptor::RegisterAreas(AreaList in0, int in1) +{ + // handle method call com.deepin.api.XEventMonitor.RegisterAreas + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterAreas", Q_RETURN_ARG(QString, out0), Q_ARG(AreaList, in0), Q_ARG(int, in1)); + return out0; +} + +QString XEventMonitorAdaptor::RegisterFullScreen() +{ + // handle method call com.deepin.api.XEventMonitor.RegisterFullScreen + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterFullScreen", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool XEventMonitorAdaptor::UnregisterArea(const QString &in0) +{ + // handle method call com.deepin.api.XEventMonitor.UnregisterArea + bool out0; + QMetaObject::invokeMethod(parent(), "UnregisterArea", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.h new file mode 100644 index 0000000..b36263d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor.h @@ -0,0 +1,120 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.api.XEventMonitor.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_API_XEVENTMONITORADAPTOR_H +#define COM_DEEPIN_API_XEVENTMONITORADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.api.XEventMonitor.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.api.XEventMonitor + */ +class XEventMonitorAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.api.XEventMonitor") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + XEventMonitorAdaptor(QObject *parent); + virtual ~XEventMonitorAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString RegisterArea(int in0, int in1, int in2, int in3, int in4); + QString RegisterAreas(AreaList in0, int in1); + QString RegisterFullScreen(); + bool UnregisterArea(const QString &in0); +Q_SIGNALS: // SIGNALS + void ButtonPress(int in0, int in1, int in2, const QString &in3); + void ButtonRelease(int in0, int in1, int in2, const QString &in3); + void CancelAllArea(); + void CursorInto(int in0, int in1, const QString &in2); + void CursorMove(int in0, int in1, const QString &in2); + void CursorOut(int in0, int in1, const QString &in2); + void KeyPress(const QString &in0, int in1, int in2, const QString &in3); + void KeyRelease(const QString &in0, int in1, int in2, const QString &in3); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.cpp new file mode 100644 index 0000000..bc83a46 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.cpp @@ -0,0 +1,373 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Accounts.User.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.User.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class UserAdaptor + */ + +UserAdaptor::UserAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +UserAdaptor::~UserAdaptor() +{ + // destructor +} + +int UserAdaptor::accountType() const +{ + // get the value of property AccountType + return qvariant_cast< int >(parent()->property("AccountType")); +} + +bool UserAdaptor::automaticLogin() const +{ + // get the value of property AutomaticLogin + return qvariant_cast< bool >(parent()->property("AutomaticLogin")); +} + +qulonglong UserAdaptor::createdTime() const +{ + // get the value of property CreatedTime + return qvariant_cast< qulonglong >(parent()->property("CreatedTime")); +} + +QStringList UserAdaptor::desktopBackgrounds() const +{ + // get the value of property DesktopBackgrounds + return qvariant_cast< QStringList >(parent()->property("DesktopBackgrounds")); +} + +QString UserAdaptor::fullName() const +{ + // get the value of property FullName + return qvariant_cast< QString >(parent()->property("FullName")); +} + +QString UserAdaptor::gid() const +{ + // get the value of property Gid + return qvariant_cast< QString >(parent()->property("Gid")); +} + +QString UserAdaptor::greeterBackground() const +{ + // get the value of property GreeterBackground + return qvariant_cast< QString >(parent()->property("GreeterBackground")); +} + +QStringList UserAdaptor::groups() const +{ + // get the value of property Groups + return qvariant_cast< QStringList >(parent()->property("Groups")); +} + +QStringList UserAdaptor::historyLayout() const +{ + // get the value of property HistoryLayout + return qvariant_cast< QStringList >(parent()->property("HistoryLayout")); +} + +QString UserAdaptor::homeDir() const +{ + // get the value of property HomeDir + return qvariant_cast< QString >(parent()->property("HomeDir")); +} + +QString UserAdaptor::iconFile() const +{ + // get the value of property IconFile + return qvariant_cast< QString >(parent()->property("IconFile")); +} + +QStringList UserAdaptor::iconList() const +{ + // get the value of property IconList + return qvariant_cast< QStringList >(parent()->property("IconList")); +} + +QString UserAdaptor::layout() const +{ + // get the value of property Layout + return qvariant_cast< QString >(parent()->property("Layout")); +} + +QString UserAdaptor::locale() const +{ + // get the value of property Locale + return qvariant_cast< QString >(parent()->property("Locale")); +} + +bool UserAdaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +qulonglong UserAdaptor::loginTime() const +{ + // get the value of property LoginTime + return qvariant_cast< qulonglong >(parent()->property("LoginTime")); +} + +int UserAdaptor::longDateFormat() const +{ + // get the value of property LongDateFormat + return qvariant_cast< int >(parent()->property("LongDateFormat")); +} + +int UserAdaptor::longTimeFormat() const +{ + // get the value of property LongTimeFormat + return qvariant_cast< int >(parent()->property("LongTimeFormat")); +} + +int UserAdaptor::maxPasswordAge() const +{ + // get the value of property MaxPasswordAge + return qvariant_cast< int >(parent()->property("MaxPasswordAge")); +} + +bool UserAdaptor::noPasswdLogin() const +{ + // get the value of property NoPasswdLogin + return qvariant_cast< bool >(parent()->property("NoPasswdLogin")); +} + +QString UserAdaptor::passwordHint() const +{ + // get the value of property PasswordHint + return qvariant_cast< QString >(parent()->property("PasswordHint")); +} + +int UserAdaptor::passwordLastChange() const +{ + // get the value of property PasswordLastChange + return qvariant_cast< int >(parent()->property("PasswordLastChange")); +} + +QString UserAdaptor::passwordStatus() const +{ + // get the value of property PasswordStatus + return qvariant_cast< QString >(parent()->property("PasswordStatus")); +} + +QString UserAdaptor::shell() const +{ + // get the value of property Shell + return qvariant_cast< QString >(parent()->property("Shell")); +} + +int UserAdaptor::shortDateFormat() const +{ + // get the value of property ShortDateFormat + return qvariant_cast< int >(parent()->property("ShortDateFormat")); +} + +int UserAdaptor::shortTimeFormat() const +{ + // get the value of property ShortTimeFormat + return qvariant_cast< int >(parent()->property("ShortTimeFormat")); +} + +bool UserAdaptor::systemAccount() const +{ + // get the value of property SystemAccount + return qvariant_cast< bool >(parent()->property("SystemAccount")); +} + +QString UserAdaptor::uUID() const +{ + // get the value of property UUID + return qvariant_cast< QString >(parent()->property("UUID")); +} + +QString UserAdaptor::uid() const +{ + // get the value of property Uid + return qvariant_cast< QString >(parent()->property("Uid")); +} + +bool UserAdaptor::use24HourFormat() const +{ + // get the value of property Use24HourFormat + return qvariant_cast< bool >(parent()->property("Use24HourFormat")); +} + +QString UserAdaptor::userName() const +{ + // get the value of property UserName + return qvariant_cast< QString >(parent()->property("UserName")); +} + +int UserAdaptor::weekBegins() const +{ + // get the value of property WeekBegins + return qvariant_cast< int >(parent()->property("WeekBegins")); +} + +int UserAdaptor::weekdayFormat() const +{ + // get the value of property WeekdayFormat + return qvariant_cast< int >(parent()->property("WeekdayFormat")); +} + +int UserAdaptor::workspace() const +{ + // get the value of property Workspace + return qvariant_cast< int >(parent()->property("Workspace")); +} + +QString UserAdaptor::xSession() const +{ + // get the value of property XSession + return qvariant_cast< QString >(parent()->property("XSession")); +} + +void UserAdaptor::AddGroup(const QString &group) +{ + // handle method call com.deepin.daemon.Accounts.User.AddGroup + QMetaObject::invokeMethod(parent(), "AddGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteGroup(const QString &group) +{ + // handle method call com.deepin.daemon.Accounts.User.DeleteGroup + QMetaObject::invokeMethod(parent(), "DeleteGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteIconFile(const QString &iconFile) +{ + // handle method call com.deepin.daemon.Accounts.User.DeleteIconFile + QMetaObject::invokeMethod(parent(), "DeleteIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::EnableNoPasswdLogin(bool enabled) +{ + // handle method call com.deepin.daemon.Accounts.User.EnableNoPasswdLogin + QMetaObject::invokeMethod(parent(), "EnableNoPasswdLogin", Q_ARG(bool, enabled)); +} + +bool UserAdaptor::IsPasswordExpired() +{ + // handle method call com.deepin.daemon.Accounts.User.IsPasswordExpired + bool out0; + QMetaObject::invokeMethod(parent(), "IsPasswordExpired", Q_RETURN_ARG(bool, out0)); + return out0; +} + +int UserAdaptor::PasswordExpiredInfo(int &dayLeft) +{ + // handle method call com.deepin.daemon.Accounts.User.PasswordExpiredInfo + //return static_cast(parent())->PasswordExpiredInfo(dayLeft); +} + +void UserAdaptor::SetAutomaticLogin(bool enabled) +{ + // handle method call com.deepin.daemon.Accounts.User.SetAutomaticLogin + QMetaObject::invokeMethod(parent(), "SetAutomaticLogin", Q_ARG(bool, enabled)); +} + +void UserAdaptor::SetDesktopBackgrounds(const QStringList &backgrounds) +{ + // handle method call com.deepin.daemon.Accounts.User.SetDesktopBackgrounds + QMetaObject::invokeMethod(parent(), "SetDesktopBackgrounds", Q_ARG(QStringList, backgrounds)); +} + +void UserAdaptor::SetFullName(const QString &name) +{ + // handle method call com.deepin.daemon.Accounts.User.SetFullName + QMetaObject::invokeMethod(parent(), "SetFullName", Q_ARG(QString, name)); +} + +void UserAdaptor::SetGreeterBackground(const QString &background) +{ + // handle method call com.deepin.daemon.Accounts.User.SetGreeterBackground + QMetaObject::invokeMethod(parent(), "SetGreeterBackground", Q_ARG(QString, background)); +} + +void UserAdaptor::SetGroups(const QStringList &groups) +{ + // handle method call com.deepin.daemon.Accounts.User.SetGroups + QMetaObject::invokeMethod(parent(), "SetGroups", Q_ARG(QStringList, groups)); +} + +void UserAdaptor::SetHistoryLayout(const QStringList &layouts) +{ + // handle method call com.deepin.daemon.Accounts.User.SetHistoryLayout + QMetaObject::invokeMethod(parent(), "SetHistoryLayout", Q_ARG(QStringList, layouts)); +} + +void UserAdaptor::SetHomeDir(const QString &home) +{ + // handle method call com.deepin.daemon.Accounts.User.SetHomeDir + QMetaObject::invokeMethod(parent(), "SetHomeDir", Q_ARG(QString, home)); +} + +void UserAdaptor::SetIconFile(const QString &iconFile) +{ + // handle method call com.deepin.daemon.Accounts.User.SetIconFile + QMetaObject::invokeMethod(parent(), "SetIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::SetLayout(const QString &layout) +{ + // handle method call com.deepin.daemon.Accounts.User.SetLayout + QMetaObject::invokeMethod(parent(), "SetLayout", Q_ARG(QString, layout)); +} + +void UserAdaptor::SetLocale(const QString &locale) +{ + // handle method call com.deepin.daemon.Accounts.User.SetLocale + QMetaObject::invokeMethod(parent(), "SetLocale", Q_ARG(QString, locale)); +} + +void UserAdaptor::SetLocked(bool locked) +{ + // handle method call com.deepin.daemon.Accounts.User.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, locked)); +} + +void UserAdaptor::SetMaxPasswordAge(int nDays) +{ + // handle method call com.deepin.daemon.Accounts.User.SetMaxPasswordAge + QMetaObject::invokeMethod(parent(), "SetMaxPasswordAge", Q_ARG(int, nDays)); +} + +void UserAdaptor::SetPassword(const QString &password) +{ + // handle method call com.deepin.daemon.Accounts.User.SetPassword + QMetaObject::invokeMethod(parent(), "SetPassword", Q_ARG(QString, password)); +} + +void UserAdaptor::SetPasswordHint(const QString &hint) +{ + // handle method call com.deepin.daemon.Accounts.User.SetPasswordHint + QMetaObject::invokeMethod(parent(), "SetPasswordHint", Q_ARG(QString, hint)); +} + +void UserAdaptor::SetShell(const QString &shell) +{ + // handle method call com.deepin.daemon.Accounts.User.SetShell + QMetaObject::invokeMethod(parent(), "SetShell", Q_ARG(QString, shell)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.h new file mode 100644 index 0000000..f500eb2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor.h @@ -0,0 +1,272 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Accounts.User.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.UserAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.User.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_ACCOUNTS_USERADAPTOR_H +#define COM_DEEPIN_DAEMON_ACCOUNTS_USERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.User.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Accounts.User + */ +class UserAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Accounts.User") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + UserAdaptor(QObject *parent); + virtual ~UserAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int AccountType READ accountType) + int accountType() const; + + Q_PROPERTY(bool AutomaticLogin READ automaticLogin) + bool automaticLogin() const; + + Q_PROPERTY(qulonglong CreatedTime READ createdTime) + qulonglong createdTime() const; + + Q_PROPERTY(QStringList DesktopBackgrounds READ desktopBackgrounds) + QStringList desktopBackgrounds() const; + + Q_PROPERTY(QString FullName READ fullName) + QString fullName() const; + + Q_PROPERTY(QString Gid READ gid) + QString gid() const; + + Q_PROPERTY(QString GreeterBackground READ greeterBackground) + QString greeterBackground() const; + + Q_PROPERTY(QStringList Groups READ groups) + QStringList groups() const; + + Q_PROPERTY(QStringList HistoryLayout READ historyLayout) + QStringList historyLayout() const; + + Q_PROPERTY(QString HomeDir READ homeDir) + QString homeDir() const; + + Q_PROPERTY(QString IconFile READ iconFile) + QString iconFile() const; + + Q_PROPERTY(QStringList IconList READ iconList) + QStringList iconList() const; + + Q_PROPERTY(QString Layout READ layout) + QString layout() const; + + Q_PROPERTY(QString Locale READ locale) + QString locale() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(qulonglong LoginTime READ loginTime) + qulonglong loginTime() const; + + Q_PROPERTY(int LongDateFormat READ longDateFormat) + int longDateFormat() const; + + Q_PROPERTY(int LongTimeFormat READ longTimeFormat) + int longTimeFormat() const; + + Q_PROPERTY(int MaxPasswordAge READ maxPasswordAge) + int maxPasswordAge() const; + + Q_PROPERTY(bool NoPasswdLogin READ noPasswdLogin) + bool noPasswdLogin() const; + + Q_PROPERTY(QString PasswordHint READ passwordHint) + QString passwordHint() const; + + Q_PROPERTY(int PasswordLastChange READ passwordLastChange) + int passwordLastChange() const; + + Q_PROPERTY(QString PasswordStatus READ passwordStatus) + QString passwordStatus() const; + + Q_PROPERTY(QString Shell READ shell) + QString shell() const; + + Q_PROPERTY(int ShortDateFormat READ shortDateFormat) + int shortDateFormat() const; + + Q_PROPERTY(int ShortTimeFormat READ shortTimeFormat) + int shortTimeFormat() const; + + Q_PROPERTY(bool SystemAccount READ systemAccount) + bool systemAccount() const; + + Q_PROPERTY(QString UUID READ uUID) + QString uUID() const; + + Q_PROPERTY(QString Uid READ uid) + QString uid() const; + + Q_PROPERTY(bool Use24HourFormat READ use24HourFormat) + bool use24HourFormat() const; + + Q_PROPERTY(QString UserName READ userName) + QString userName() const; + + Q_PROPERTY(int WeekBegins READ weekBegins) + int weekBegins() const; + + Q_PROPERTY(int WeekdayFormat READ weekdayFormat) + int weekdayFormat() const; + + Q_PROPERTY(int Workspace READ workspace) + int workspace() const; + + Q_PROPERTY(QString XSession READ xSession) + QString xSession() const; + +public Q_SLOTS: // METHODS + void AddGroup(const QString &group); + void DeleteGroup(const QString &group); + void DeleteIconFile(const QString &iconFile); + void EnableNoPasswdLogin(bool enabled); + bool IsPasswordExpired(); + int PasswordExpiredInfo(int &dayLeft); + void SetAutomaticLogin(bool enabled); + void SetDesktopBackgrounds(const QStringList &backgrounds); + void SetFullName(const QString &name); + void SetGreeterBackground(const QString &background); + void SetGroups(const QStringList &groups); + void SetHistoryLayout(const QStringList &layouts); + void SetHomeDir(const QString &home); + void SetIconFile(const QString &iconFile); + void SetLayout(const QString &layout); + void SetLocale(const QString &locale); + void SetLocked(bool locked); + void SetMaxPasswordAge(int nDays); + void SetPassword(const QString &password); + void SetPasswordHint(const QString &hint); + void SetShell(const QString &shell); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.cpp new file mode 100644 index 0000000..247e3e3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.cpp @@ -0,0 +1,133 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Accounts.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class AccountsAdaptor + */ + +AccountsAdaptor::AccountsAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +AccountsAdaptor::~AccountsAdaptor() +{ + // destructor +} + +bool AccountsAdaptor::allowGuest() const +{ + // get the value of property AllowGuest + return qvariant_cast< bool >(parent()->property("AllowGuest")); +} + +QString AccountsAdaptor::guestIcon() const +{ + // get the value of property GuestIcon + return qvariant_cast< QString >(parent()->property("GuestIcon")); +} + +QStringList AccountsAdaptor::userList() const +{ + // get the value of property UserList + return qvariant_cast< QStringList >(parent()->property("UserList")); +} + +void AccountsAdaptor::AllowGuestAccount(bool in0) +{ + // handle method call com.deepin.daemon.Accounts.AllowGuestAccount + QMetaObject::invokeMethod(parent(), "AllowGuestAccount", Q_ARG(bool, in0)); +} + +QString AccountsAdaptor::CreateGuestAccount() +{ + // handle method call com.deepin.daemon.Accounts.CreateGuestAccount + QString out0; + QMetaObject::invokeMethod(parent(), "CreateGuestAccount", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusObjectPath AccountsAdaptor::CreateUser(const QString &in0, const QString &in1, int in2) +{ + // handle method call com.deepin.daemon.Accounts.CreateUser + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "CreateUser", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); + return out0; +} + +void AccountsAdaptor::DeleteUser(const QString &in0, bool in1) +{ + // handle method call com.deepin.daemon.Accounts.DeleteUser + QMetaObject::invokeMethod(parent(), "DeleteUser", Q_ARG(QString, in0), Q_ARG(bool, in1)); +} + +QString AccountsAdaptor::FindUserById(const QString &in0) +{ + // handle method call com.deepin.daemon.Accounts.FindUserById + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserById", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString AccountsAdaptor::FindUserByName(const QString &in0) +{ + // handle method call com.deepin.daemon.Accounts.FindUserByName + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserByName", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList AccountsAdaptor::GetGroups() +{ + // handle method call com.deepin.daemon.Accounts.GetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetGroups", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList AccountsAdaptor::GetPresetGroups(int in0) +{ + // handle method call com.deepin.daemon.Accounts.GetPresetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetPresetGroups", Q_RETURN_ARG(QStringList, out0), Q_ARG(int, in0)); + return out0; +} + +bool AccountsAdaptor::IsPasswordValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call com.deepin.daemon.Accounts.IsPasswordValid + //return static_cast(parent())->IsPasswordValid(in0, out1, out2); +} + +bool AccountsAdaptor::IsUsernameValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call com.deepin.daemon.Accounts.IsUsernameValid + //return static_cast(parent())->IsUsernameValid(in0, out1, out2); +} + +QString AccountsAdaptor::RandUserIcon() +{ + // handle method call com.deepin.daemon.Accounts.RandUserIcon + QString out0; + QMetaObject::invokeMethod(parent(), "RandUserIcon", Q_RETURN_ARG(QString, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.h new file mode 100644 index 0000000..c8ade3e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor.h @@ -0,0 +1,124 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Accounts.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AccountsAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_ACCOUNTSADAPTOR_H +#define COM_DEEPIN_DAEMON_ACCOUNTSADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Accounts.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Accounts + */ +class AccountsAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Accounts") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + AccountsAdaptor(QObject *parent); + virtual ~AccountsAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AllowGuest READ allowGuest) + bool allowGuest() const; + + Q_PROPERTY(QString GuestIcon READ guestIcon) + QString guestIcon() const; + + Q_PROPERTY(QStringList UserList READ userList) + QStringList userList() const; + +public Q_SLOTS: // METHODS + void AllowGuestAccount(bool in0); + QString CreateGuestAccount(); + QDBusObjectPath CreateUser(const QString &in0, const QString &in1, int in2); + void DeleteUser(const QString &in0, bool in1); + QString FindUserById(const QString &in0); + QString FindUserByName(const QString &in0); + QStringList GetGroups(); + QStringList GetPresetGroups(int in0); + bool IsPasswordValid(const QString &in0, QString &out1, int &out2); + bool IsUsernameValid(const QString &in0, QString &out1, int &out2); + QString RandUserIcon(); +Q_SIGNALS: // SIGNALS + void UserAdded(const QString &in0); + void UserDeleted(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.cpp new file mode 100644 index 0000000..c143aa0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.cpp @@ -0,0 +1,219 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Appearance.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Appearance.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class AppearanceAdaptor + */ + +AppearanceAdaptor::AppearanceAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +AppearanceAdaptor::~AppearanceAdaptor() +{ + // destructor +} + +QString AppearanceAdaptor::background() const +{ + // get the value of property Background + return qvariant_cast< QString >(parent()->property("Background")); +} + +void AppearanceAdaptor::setBackground(const QString &value) +{ + // set the value of property Background + parent()->setProperty("Background", QVariant::fromValue(value)); +} + +QString AppearanceAdaptor::cursorTheme() const +{ + // get the value of property CursorTheme + return qvariant_cast< QString >(parent()->property("CursorTheme")); +} + +void AppearanceAdaptor::setCursorTheme(const QString &value) +{ + // set the value of property CursorTheme + parent()->setProperty("CursorTheme", QVariant::fromValue(value)); +} + +double AppearanceAdaptor::fontSize() const +{ + // get the value of property FontSize + return qvariant_cast< double >(parent()->property("FontSize")); +} + +void AppearanceAdaptor::setFontSize(double value) +{ + // set the value of property FontSize + parent()->setProperty("FontSize", QVariant::fromValue(value)); +} + +QString AppearanceAdaptor::gtkTheme() const +{ + // get the value of property GtkTheme + return qvariant_cast< QString >(parent()->property("GtkTheme")); +} + +void AppearanceAdaptor::setGtkTheme(const QString &value) +{ + // set the value of property GtkTheme + parent()->setProperty("GtkTheme", QVariant::fromValue(value)); +} + +QString AppearanceAdaptor::iconTheme() const +{ + // get the value of property IconTheme + return qvariant_cast< QString >(parent()->property("IconTheme")); +} + +void AppearanceAdaptor::setIconTheme(const QString &value) +{ + // set the value of property IconTheme + parent()->setProperty("IconTheme", QVariant::fromValue(value)); +} + +QString AppearanceAdaptor::monospaceFont() const +{ + // get the value of property MonospaceFont + return qvariant_cast< QString >(parent()->property("MonospaceFont")); +} + +void AppearanceAdaptor::setMonospaceFont(const QString &value) +{ + // set the value of property MonospaceFont + parent()->setProperty("MonospaceFont", QVariant::fromValue(value)); +} + +double AppearanceAdaptor::opacity() const +{ + // get the value of property Opacity + return qvariant_cast< double >(parent()->property("Opacity")); +} + +void AppearanceAdaptor::setOpacity(double value) +{ + // set the value of property Opacity + parent()->setProperty("Opacity", QVariant::fromValue(value)); +} + +QString AppearanceAdaptor::qtActiveColor() const +{ + // get the value of property QtActiveColor + return qvariant_cast< QString >(parent()->property("QtActiveColor")); +} + +void AppearanceAdaptor::setQtActiveColor(const QString &value) +{ + // set the value of property QtActiveColor + parent()->setProperty("QtActiveColor", QVariant::fromValue(value)); +} + +QString AppearanceAdaptor::standardFont() const +{ + // get the value of property StandardFont + return qvariant_cast< QString >(parent()->property("StandardFont")); +} + +void AppearanceAdaptor::setStandardFont(const QString &value) +{ + // set the value of property StandardFont + parent()->setProperty("StandardFont", QVariant::fromValue(value)); +} + +QString AppearanceAdaptor::wallpaperSlideShow() const +{ + // get the value of property WallpaperSlideShow + return qvariant_cast< QString >(parent()->property("WallpaperSlideShow")); +} + +void AppearanceAdaptor::setWallpaperSlideShow(const QString &value) +{ + // set the value of property WallpaperSlideShow + parent()->setProperty("WallpaperSlideShow", QVariant::fromValue(value)); +} + +void AppearanceAdaptor::Delete(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Appearance.Delete + QMetaObject::invokeMethod(parent(), "Delete", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +double AppearanceAdaptor::GetScaleFactor() +{ + // handle method call com.deepin.daemon.Appearance.GetScaleFactor + double out0; + QMetaObject::invokeMethod(parent(), "GetScaleFactor", Q_RETURN_ARG(double, out0)); + return out0; +} + +QMap AppearanceAdaptor::GetScreenScaleFactors() +{ + // handle method call com.deepin.daemon.Appearance.GetScreenScaleFactors + QMap scaleFactors; + QMetaObject::invokeMethod(parent(), "GetScreenScaleFactors", Q_RETURN_ARG(QMap, scaleFactors)); + return scaleFactors; +} + +QString AppearanceAdaptor::List(const QString &in0) +{ + // handle method call com.deepin.daemon.Appearance.List + QString out0; + QMetaObject::invokeMethod(parent(), "List", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +void AppearanceAdaptor::Set(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Appearance.Set + QMetaObject::invokeMethod(parent(), "Set", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void AppearanceAdaptor::SetScaleFactor(double in0) +{ + // handle method call com.deepin.daemon.Appearance.SetScaleFactor + QMetaObject::invokeMethod(parent(), "SetScaleFactor", Q_ARG(double, in0)); +} + +void AppearanceAdaptor::SetScreenScaleFactors(const QMap &scaleFactors) +{ + // handle method call com.deepin.daemon.Appearance.SetScreenScaleFactors + QMetaObject::invokeMethod(parent(), "SetScreenScaleFactors", Q_ARG(QMap, scaleFactors)); +} + +QString AppearanceAdaptor::Show(const QString &in0, const QStringList &in1) +{ + // handle method call com.deepin.daemon.Appearance.Show + QString out0; + QMetaObject::invokeMethod(parent(), "Show", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(QStringList, in1)); + return out0; +} + +QString AppearanceAdaptor::Thumbnail(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Appearance.Thumbnail + QString out0; + QMetaObject::invokeMethod(parent(), "Thumbnail", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.h new file mode 100644 index 0000000..f7265ad --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor.h @@ -0,0 +1,151 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Appearance.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AppearanceAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Appearance.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_APPEARANCEADAPTOR_H +#define COM_DEEPIN_DAEMON_APPEARANCEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Appearance.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Appearance + */ +class AppearanceAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Appearance") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + AppearanceAdaptor(QObject *parent); + virtual ~AppearanceAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString Background READ background WRITE setBackground) + QString background() const; + void setBackground(const QString &value); + + Q_PROPERTY(QString CursorTheme READ cursorTheme WRITE setCursorTheme) + QString cursorTheme() const; + void setCursorTheme(const QString &value); + + Q_PROPERTY(double FontSize READ fontSize WRITE setFontSize) + double fontSize() const; + void setFontSize(double value); + + Q_PROPERTY(QString GtkTheme READ gtkTheme WRITE setGtkTheme) + QString gtkTheme() const; + void setGtkTheme(const QString &value); + + Q_PROPERTY(QString IconTheme READ iconTheme WRITE setIconTheme) + QString iconTheme() const; + void setIconTheme(const QString &value); + + Q_PROPERTY(QString MonospaceFont READ monospaceFont WRITE setMonospaceFont) + QString monospaceFont() const; + void setMonospaceFont(const QString &value); + + Q_PROPERTY(double Opacity READ opacity WRITE setOpacity) + double opacity() const; + void setOpacity(double value); + + Q_PROPERTY(QString QtActiveColor READ qtActiveColor WRITE setQtActiveColor) + QString qtActiveColor() const; + void setQtActiveColor(const QString &value); + + Q_PROPERTY(QString StandardFont READ standardFont WRITE setStandardFont) + QString standardFont() const; + void setStandardFont(const QString &value); + + Q_PROPERTY(QString WallpaperSlideShow READ wallpaperSlideShow WRITE setWallpaperSlideShow) + QString wallpaperSlideShow() const; + void setWallpaperSlideShow(const QString &value); + +public Q_SLOTS: // METHODS + void Delete(const QString &in0, const QString &in1); + double GetScaleFactor(); + QMap GetScreenScaleFactors(); + QString List(const QString &in0); + void Set(const QString &in0, const QString &in1); + void SetScaleFactor(double in0); + void SetScreenScaleFactors(const QMap &scaleFactors); + QString Show(const QString &in0, const QStringList &in1); + QString Thumbnail(const QString &in0, const QString &in1); +Q_SIGNALS: // SIGNALS + void Changed(const QString &in0, const QString &in1); + void Refreshed(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.cpp new file mode 100644 index 0000000..b32bde7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.cpp @@ -0,0 +1,145 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Audio.Sink.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.Sink.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SinkAdaptor + */ + +SinkAdaptor::SinkAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SinkAdaptor::~SinkAdaptor() +{ + // destructor +} + +AudioPort SinkAdaptor::activePort() const +{ + // get the value of property ActivePort + return qvariant_cast< AudioPort >(parent()->property("ActivePort")); +} + +double SinkAdaptor::balance() const +{ + // get the value of property Balance + return qvariant_cast< double >(parent()->property("Balance")); +} + +double SinkAdaptor::baseVolume() const +{ + // get the value of property BaseVolume + return qvariant_cast< double >(parent()->property("BaseVolume")); +} + +uint SinkAdaptor::card() const +{ + // get the value of property Card + return qvariant_cast< uint >(parent()->property("Card")); +} + +QString SinkAdaptor::description() const +{ + // get the value of property Description + return qvariant_cast< QString >(parent()->property("Description")); +} + +double SinkAdaptor::fade() const +{ + // get the value of property Fade + return qvariant_cast< double >(parent()->property("Fade")); +} + +bool SinkAdaptor::mute() const +{ + // get the value of property Mute + return qvariant_cast< bool >(parent()->property("Mute")); +} + +QString SinkAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +AudioPortList SinkAdaptor::ports() const +{ + // get the value of property Ports + return qvariant_cast< AudioPortList >(parent()->property("Ports")); +} + +bool SinkAdaptor::supportBalance() const +{ + // get the value of property SupportBalance + return qvariant_cast< bool >(parent()->property("SupportBalance")); +} + +bool SinkAdaptor::supportFade() const +{ + // get the value of property SupportFade + return qvariant_cast< bool >(parent()->property("SupportFade")); +} + +double SinkAdaptor::volume() const +{ + // get the value of property Volume + return qvariant_cast< double >(parent()->property("Volume")); +} + +QDBusObjectPath SinkAdaptor::GetMeter() +{ + // handle method call com.deepin.daemon.Audio.Sink.GetMeter + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetMeter", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +void SinkAdaptor::SetBalance(double in0, bool in1) +{ + // handle method call com.deepin.daemon.Audio.Sink.SetBalance + QMetaObject::invokeMethod(parent(), "SetBalance", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + +void SinkAdaptor::SetFade(double in0) +{ + // handle method call com.deepin.daemon.Audio.Sink.SetFade + QMetaObject::invokeMethod(parent(), "SetFade", Q_ARG(double, in0)); +} + +void SinkAdaptor::SetMute(bool in0) +{ + // handle method call com.deepin.daemon.Audio.Sink.SetMute + QMetaObject::invokeMethod(parent(), "SetMute", Q_ARG(bool, in0)); +} + +void SinkAdaptor::SetPort(const QString &in0) +{ + // handle method call com.deepin.daemon.Audio.Sink.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(QString, in0)); +} + +void SinkAdaptor::SetVolume(double in0, bool in1) +{ + // handle method call com.deepin.daemon.Audio.Sink.SetVolume + QMetaObject::invokeMethod(parent(), "SetVolume", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.h new file mode 100644 index 0000000..9494298 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor.h @@ -0,0 +1,125 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Audio.Sink.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SinkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.Sink.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_AUDIO_SINKADAPTOR_H +#define COM_DEEPIN_DAEMON_AUDIO_SINKADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.Sink.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Audio.Sink + */ +class SinkAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Audio.Sink") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SinkAdaptor(QObject *parent); + virtual ~SinkAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(AudioPort ActivePort READ activePort) + AudioPort activePort() const; + + Q_PROPERTY(double Balance READ balance) + double balance() const; + + Q_PROPERTY(double BaseVolume READ baseVolume) + double baseVolume() const; + + Q_PROPERTY(uint Card READ card) + uint card() const; + + Q_PROPERTY(QString Description READ description) + QString description() const; + + Q_PROPERTY(double Fade READ fade) + double fade() const; + + Q_PROPERTY(bool Mute READ mute) + bool mute() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(AudioPortList Ports READ ports) + AudioPortList ports() const; + + Q_PROPERTY(bool SupportBalance READ supportBalance) + bool supportBalance() const; + + Q_PROPERTY(bool SupportFade READ supportFade) + bool supportFade() const; + + Q_PROPERTY(double Volume READ volume) + double volume() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath GetMeter(); + void SetBalance(double in0, bool in1); + void SetFade(double in0); + void SetMute(bool in0); + void SetPort(const QString &in0); + void SetVolume(double in0, bool in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.cpp new file mode 100644 index 0000000..c2cd6b8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.cpp @@ -0,0 +1,145 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Audio.Source.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.Source.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SourceAdaptor + */ + +SourceAdaptor::SourceAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SourceAdaptor::~SourceAdaptor() +{ + // destructor +} + +AudioPort SourceAdaptor::activePort() const +{ + // get the value of property ActivePort + return qvariant_cast< AudioPort >(parent()->property("ActivePort")); +} + +double SourceAdaptor::balance() const +{ + // get the value of property Balance + return qvariant_cast< double >(parent()->property("Balance")); +} + +double SourceAdaptor::baseVolume() const +{ + // get the value of property BaseVolume + return qvariant_cast< double >(parent()->property("BaseVolume")); +} + +uint SourceAdaptor::card() const +{ + // get the value of property Card + return qvariant_cast< uint >(parent()->property("Card")); +} + +QString SourceAdaptor::description() const +{ + // get the value of property Description + return qvariant_cast< QString >(parent()->property("Description")); +} + +double SourceAdaptor::fade() const +{ + // get the value of property Fade + return qvariant_cast< double >(parent()->property("Fade")); +} + +bool SourceAdaptor::mute() const +{ + // get the value of property Mute + return qvariant_cast< bool >(parent()->property("Mute")); +} + +QString SourceAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +AudioPortList SourceAdaptor::ports() const +{ + // get the value of property Ports + return qvariant_cast< AudioPortList >(parent()->property("Ports")); +} + +bool SourceAdaptor::supportBalance() const +{ + // get the value of property SupportBalance + return qvariant_cast< bool >(parent()->property("SupportBalance")); +} + +bool SourceAdaptor::supportFade() const +{ + // get the value of property SupportFade + return qvariant_cast< bool >(parent()->property("SupportFade")); +} + +double SourceAdaptor::volume() const +{ + // get the value of property Volume + return qvariant_cast< double >(parent()->property("Volume")); +} + +QDBusObjectPath SourceAdaptor::GetMeter() +{ + // handle method call com.deepin.daemon.Audio.Source.GetMeter + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetMeter", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +void SourceAdaptor::SetBalance(double in0, bool in1) +{ + // handle method call com.deepin.daemon.Audio.Source.SetBalance + QMetaObject::invokeMethod(parent(), "SetBalance", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + +void SourceAdaptor::SetFade(double in0) +{ + // handle method call com.deepin.daemon.Audio.Source.SetFade + QMetaObject::invokeMethod(parent(), "SetFade", Q_ARG(double, in0)); +} + +void SourceAdaptor::SetMute(bool in0) +{ + // handle method call com.deepin.daemon.Audio.Source.SetMute + QMetaObject::invokeMethod(parent(), "SetMute", Q_ARG(bool, in0)); +} + +void SourceAdaptor::SetPort(const QString &in0) +{ + // handle method call com.deepin.daemon.Audio.Source.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(QString, in0)); +} + +void SourceAdaptor::SetVolume(double in0, bool in1) +{ + // handle method call com.deepin.daemon.Audio.Source.SetVolume + QMetaObject::invokeMethod(parent(), "SetVolume", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.h new file mode 100644 index 0000000..72159e0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor.h @@ -0,0 +1,125 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Audio.Source.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.SourceAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.Source.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_AUDIO_SOURCEADAPTOR_H +#define COM_DEEPIN_DAEMON_AUDIO_SOURCEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.Source.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Audio.Source + */ +class SourceAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Audio.Source") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SourceAdaptor(QObject *parent); + virtual ~SourceAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(AudioPort ActivePort READ activePort) + AudioPort activePort() const; + + Q_PROPERTY(double Balance READ balance) + double balance() const; + + Q_PROPERTY(double BaseVolume READ baseVolume) + double baseVolume() const; + + Q_PROPERTY(uint Card READ card) + uint card() const; + + Q_PROPERTY(QString Description READ description) + QString description() const; + + Q_PROPERTY(double Fade READ fade) + double fade() const; + + Q_PROPERTY(bool Mute READ mute) + bool mute() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(AudioPortList Ports READ ports) + AudioPortList ports() const; + + Q_PROPERTY(bool SupportBalance READ supportBalance) + bool supportBalance() const; + + Q_PROPERTY(bool SupportFade READ supportFade) + bool supportFade() const; + + Q_PROPERTY(double Volume READ volume) + double volume() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath GetMeter(); + void SetBalance(double in0, bool in1); + void SetFade(double in0); + void SetMute(bool in0); + void SetPort(const QString &in0); + void SetVolume(double in0, bool in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.cpp new file mode 100644 index 0000000..cc248a7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.cpp @@ -0,0 +1,187 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Audio.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class AudioAdaptor + */ + +AudioAdaptor::AudioAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +AudioAdaptor::~AudioAdaptor() +{ + // destructor +} + +bool AudioAdaptor::audioServerState() const +{ + // get the value of property AudioServerState + return qvariant_cast< bool >(parent()->property("AudioServerState")); +} + +QString AudioAdaptor::bluetoothAudioMode() const +{ + // get the value of property BluetoothAudioMode + return qvariant_cast< QString >(parent()->property("BluetoothAudioMode")); +} + +QStringList AudioAdaptor::bluetoothAudioModeOpts() const +{ + // get the value of property BluetoothAudioModeOpts + return qvariant_cast< QStringList >(parent()->property("BluetoothAudioModeOpts")); +} + +QString AudioAdaptor::cards() const +{ + // get the value of property Cards + return qvariant_cast< QString >(parent()->property("Cards")); +} + +QString AudioAdaptor::cardsWithoutUnavailable() const +{ + // get the value of property CardsWithoutUnavailable + return qvariant_cast< QString >(parent()->property("CardsWithoutUnavailable")); +} + +QString AudioAdaptor::currentAudioServer() const +{ + // get the value of property CurrentAudioServer + return qvariant_cast< QString >(parent()->property("CurrentAudioServer")); +} + +QDBusObjectPath AudioAdaptor::defaultSink() const +{ + // get the value of property DefaultSink + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSink")); +} + +QDBusObjectPath AudioAdaptor::defaultSource() const +{ + // get the value of property DefaultSource + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSource")); +} + +bool AudioAdaptor::increaseVolume() const +{ + // get the value of property IncreaseVolume + return qvariant_cast< bool >(parent()->property("IncreaseVolume")); +} + +void AudioAdaptor::setIncreaseVolume(bool value) +{ + // set the value of property IncreaseVolume + parent()->setProperty("IncreaseVolume", QVariant::fromValue(value)); +} + +double AudioAdaptor::maxUIVolume() const +{ + // get the value of property MaxUIVolume + return qvariant_cast< double >(parent()->property("MaxUIVolume")); +} + +bool AudioAdaptor::pausePlayer() const +{ + // get the value of property PausePlayer + return qvariant_cast< bool >(parent()->property("PausePlayer")); +} + +void AudioAdaptor::setPausePlayer(bool value) +{ + // set the value of property PausePlayer + parent()->setProperty("PausePlayer", QVariant::fromValue(value)); +} + +bool AudioAdaptor::reduceNoise() const +{ + // get the value of property ReduceNoise + return qvariant_cast< bool >(parent()->property("ReduceNoise")); +} + +void AudioAdaptor::setReduceNoise(bool value) +{ + // set the value of property ReduceNoise + parent()->setProperty("ReduceNoise", QVariant::fromValue(value)); +} + +QList AudioAdaptor::sinkInputs() const +{ + // get the value of property SinkInputs + return qvariant_cast< QList >(parent()->property("SinkInputs")); +} + +QList AudioAdaptor::sinks() const +{ + // get the value of property Sinks + return qvariant_cast< QList >(parent()->property("Sinks")); +} + +QList AudioAdaptor::sources() const +{ + // get the value of property Sources + return qvariant_cast< QList >(parent()->property("Sources")); +} + +bool AudioAdaptor::IsPortEnabled(uint in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Audio.IsPortEnabled + bool out0; + QMetaObject::invokeMethod(parent(), "IsPortEnabled", Q_RETURN_ARG(bool, out0), Q_ARG(uint, in0), Q_ARG(QString, in1)); + return out0; +} + +void AudioAdaptor::Reset() +{ + // handle method call com.deepin.daemon.Audio.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void AudioAdaptor::SetBluetoothAudioMode(const QString &in0) +{ + // handle method call com.deepin.daemon.Audio.SetBluetoothAudioMode + QMetaObject::invokeMethod(parent(), "SetBluetoothAudioMode", Q_ARG(QString, in0)); +} + +void AudioAdaptor::SetDefaultSink(const QString &in0) +{ + // handle method call com.deepin.daemon.Audio.SetDefaultSink + QMetaObject::invokeMethod(parent(), "SetDefaultSink", Q_ARG(QString, in0)); +} + +void AudioAdaptor::SetDefaultSource(const QString &in0) +{ + // handle method call com.deepin.daemon.Audio.SetDefaultSource + QMetaObject::invokeMethod(parent(), "SetDefaultSource", Q_ARG(QString, in0)); +} + +void AudioAdaptor::SetPort(uint in0, const QString &in1, int in2) +{ + // handle method call com.deepin.daemon.Audio.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); +} + +void AudioAdaptor::SetPortEnabled(uint in0, const QString &in1, bool in2) +{ + // handle method call com.deepin.daemon.Audio.SetPortEnabled + QMetaObject::invokeMethod(parent(), "SetPortEnabled", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(bool, in2)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.h new file mode 100644 index 0000000..daae419 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor.h @@ -0,0 +1,150 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Audio.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.AudioAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_AUDIOADAPTOR_H +#define COM_DEEPIN_DAEMON_AUDIOADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Audio + */ +class AudioAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Audio") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + AudioAdaptor(QObject *parent); + virtual ~AudioAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AudioServerState READ audioServerState) + bool audioServerState() const; + + Q_PROPERTY(QString BluetoothAudioMode READ bluetoothAudioMode) + QString bluetoothAudioMode() const; + + Q_PROPERTY(QStringList BluetoothAudioModeOpts READ bluetoothAudioModeOpts) + QStringList bluetoothAudioModeOpts() const; + + Q_PROPERTY(QString Cards READ cards) + QString cards() const; + + Q_PROPERTY(QString CardsWithoutUnavailable READ cardsWithoutUnavailable) + QString cardsWithoutUnavailable() const; + + Q_PROPERTY(QString CurrentAudioServer READ currentAudioServer) + QString currentAudioServer() const; + + Q_PROPERTY(QDBusObjectPath DefaultSink READ defaultSink) + QDBusObjectPath defaultSink() const; + + Q_PROPERTY(QDBusObjectPath DefaultSource READ defaultSource) + QDBusObjectPath defaultSource() const; + + Q_PROPERTY(bool IncreaseVolume READ increaseVolume WRITE setIncreaseVolume) + bool increaseVolume() const; + void setIncreaseVolume(bool value); + + Q_PROPERTY(double MaxUIVolume READ maxUIVolume) + double maxUIVolume() const; + + Q_PROPERTY(bool PausePlayer READ pausePlayer WRITE setPausePlayer) + bool pausePlayer() const; + void setPausePlayer(bool value); + + Q_PROPERTY(bool ReduceNoise READ reduceNoise WRITE setReduceNoise) + bool reduceNoise() const; + void setReduceNoise(bool value); + + Q_PROPERTY(QList SinkInputs READ sinkInputs) + QList sinkInputs() const; + + Q_PROPERTY(QList Sinks READ sinks) + QList sinks() const; + + Q_PROPERTY(QList Sources READ sources) + QList sources() const; + +public Q_SLOTS: // METHODS + bool IsPortEnabled(uint in0, const QString &in1); + void Reset(); + void SetBluetoothAudioMode(const QString &in0); + void SetDefaultSink(const QString &in0); + void SetDefaultSource(const QString &in0); + void SetPort(uint in0, const QString &in1, int in2); + void SetPortEnabled(uint in0, const QString &in1, bool in2); +Q_SIGNALS: // SIGNALS + void PortEnabledChanged(uint in0, const QString &in1, bool in2); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.cpp new file mode 100644 index 0000000..175460c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.cpp @@ -0,0 +1,193 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Bluetooth.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Bluetooth.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class BluetoothAdaptor + */ + +BluetoothAdaptor::BluetoothAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +BluetoothAdaptor::~BluetoothAdaptor() +{ + // destructor +} + +bool BluetoothAdaptor::canSendFile() const +{ + // get the value of property CanSendFile + return qvariant_cast< bool >(parent()->property("CanSendFile")); +} + +bool BluetoothAdaptor::displaySwitch() const +{ + // get the value of property DisplaySwitch + return qvariant_cast< bool >(parent()->property("DisplaySwitch")); +} + +void BluetoothAdaptor::setDisplaySwitch(bool value) +{ + // set the value of property DisplaySwitch + parent()->setProperty("DisplaySwitch", QVariant::fromValue(value)); +} + +uint BluetoothAdaptor::state() const +{ + // get the value of property State + return qvariant_cast< uint >(parent()->property("State")); +} + +bool BluetoothAdaptor::transportable() const +{ + // get the value of property Transportable + return qvariant_cast< bool >(parent()->property("Transportable")); +} + +void BluetoothAdaptor::CancelTransferSession(const QDBusObjectPath &sessionPath) +{ + // handle method call com.deepin.daemon.Bluetooth.CancelTransferSession + QMetaObject::invokeMethod(parent(), "CancelTransferSession", Q_ARG(QDBusObjectPath, sessionPath)); +} + +void BluetoothAdaptor::ClearUnpairedDevice() +{ + // handle method call com.deepin.daemon.Bluetooth.ClearUnpairedDevice + QMetaObject::invokeMethod(parent(), "ClearUnpairedDevice"); +} + +void BluetoothAdaptor::Confirm(const QDBusObjectPath &device, bool accept) +{ + // handle method call com.deepin.daemon.Bluetooth.Confirm + QMetaObject::invokeMethod(parent(), "Confirm", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept)); +} + +void BluetoothAdaptor::ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter) +{ + // handle method call com.deepin.daemon.Bluetooth.ConnectDevice + QMetaObject::invokeMethod(parent(), "ConnectDevice", Q_ARG(QDBusObjectPath, device), Q_ARG(QDBusObjectPath, adapter)); +} + +QString BluetoothAdaptor::DebugInfo() +{ + // handle method call com.deepin.daemon.Bluetooth.DebugInfo + QString info; + QMetaObject::invokeMethod(parent(), "DebugInfo", Q_RETURN_ARG(QString, info)); + return info; +} + +void BluetoothAdaptor::DisconnectDevice(const QDBusObjectPath &device) +{ + // handle method call com.deepin.daemon.Bluetooth.DisconnectDevice + QMetaObject::invokeMethod(parent(), "DisconnectDevice", Q_ARG(QDBusObjectPath, device)); +} + +void BluetoothAdaptor::FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey) +{ + // handle method call com.deepin.daemon.Bluetooth.FeedPasskey + QMetaObject::invokeMethod(parent(), "FeedPasskey", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(uint, passkey)); +} + +void BluetoothAdaptor::FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode) +{ + // handle method call com.deepin.daemon.Bluetooth.FeedPinCode + QMetaObject::invokeMethod(parent(), "FeedPinCode", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(QString, pinCode)); +} + +QString BluetoothAdaptor::GetAdapters() +{ + // handle method call com.deepin.daemon.Bluetooth.GetAdapters + QString adaptersJSON; + QMetaObject::invokeMethod(parent(), "GetAdapters", Q_RETURN_ARG(QString, adaptersJSON)); + return adaptersJSON; +} + +QString BluetoothAdaptor::GetDevices(const QDBusObjectPath &adapter) +{ + // handle method call com.deepin.daemon.Bluetooth.GetDevices + QString devicesJSON; + QMetaObject::invokeMethod(parent(), "GetDevices", Q_RETURN_ARG(QString, devicesJSON), Q_ARG(QDBusObjectPath, adapter)); + return devicesJSON; +} + +void BluetoothAdaptor::RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device) +{ + // handle method call com.deepin.daemon.Bluetooth.RemoveDevice + QMetaObject::invokeMethod(parent(), "RemoveDevice", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QDBusObjectPath, device)); +} + +void BluetoothAdaptor::RequestDiscovery(const QDBusObjectPath &adapter) +{ + // handle method call com.deepin.daemon.Bluetooth.RequestDiscovery + QMetaObject::invokeMethod(parent(), "RequestDiscovery", Q_ARG(QDBusObjectPath, adapter)); +} + +QDBusObjectPath BluetoothAdaptor::SendFiles(const QString &device, const QStringList &files) +{ + // handle method call com.deepin.daemon.Bluetooth.SendFiles + QDBusObjectPath sessionPath; + QMetaObject::invokeMethod(parent(), "SendFiles", Q_RETURN_ARG(QDBusObjectPath, sessionPath), Q_ARG(QString, device), Q_ARG(QStringList, files)); + return sessionPath; +} + +void BluetoothAdaptor::SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias) +{ + // handle method call com.deepin.daemon.Bluetooth.SetAdapterAlias + QMetaObject::invokeMethod(parent(), "SetAdapterAlias", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QString, alias)); +} + +void BluetoothAdaptor::SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable) +{ + // handle method call com.deepin.daemon.Bluetooth.SetAdapterDiscoverable + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverable", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discoverable)); +} + +void BluetoothAdaptor::SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout) +{ + // handle method call com.deepin.daemon.Bluetooth.SetAdapterDiscoverableTimeout + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverableTimeout", Q_ARG(QDBusObjectPath, adapter), Q_ARG(uint, timeout)); +} + +void BluetoothAdaptor::SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering) +{ + // handle method call com.deepin.daemon.Bluetooth.SetAdapterDiscovering + QMetaObject::invokeMethod(parent(), "SetAdapterDiscovering", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discovering)); +} + +void BluetoothAdaptor::SetAdapterPowered(const QDBusObjectPath &adapter, bool powered) +{ + // handle method call com.deepin.daemon.Bluetooth.SetAdapterPowered + QMetaObject::invokeMethod(parent(), "SetAdapterPowered", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, powered)); +} + +void BluetoothAdaptor::SetDeviceAlias(const QDBusObjectPath &device, const QString &alias) +{ + // handle method call com.deepin.daemon.Bluetooth.SetDeviceAlias + QMetaObject::invokeMethod(parent(), "SetDeviceAlias", Q_ARG(QDBusObjectPath, device), Q_ARG(QString, alias)); +} + +void BluetoothAdaptor::SetDeviceTrusted(const QDBusObjectPath &device, bool trusted) +{ + // handle method call com.deepin.daemon.Bluetooth.SetDeviceTrusted + QMetaObject::invokeMethod(parent(), "SetDeviceTrusted", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, trusted)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.h new file mode 100644 index 0000000..da5efac --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor.h @@ -0,0 +1,253 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Bluetooth.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.BluetoothAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Bluetooth.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_BLUETOOTHADAPTOR_H +#define COM_DEEPIN_DAEMON_BLUETOOTHADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Bluetooth.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Bluetooth + */ +class BluetoothAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Bluetooth") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + BluetoothAdaptor(QObject *parent); + virtual ~BluetoothAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CanSendFile READ canSendFile) + bool canSendFile() const; + + Q_PROPERTY(bool DisplaySwitch READ displaySwitch WRITE setDisplaySwitch) + bool displaySwitch() const; + void setDisplaySwitch(bool value); + + Q_PROPERTY(uint State READ state) + uint state() const; + + Q_PROPERTY(bool Transportable READ transportable) + bool transportable() const; + +public Q_SLOTS: // METHODS + void CancelTransferSession(const QDBusObjectPath &sessionPath); + void ClearUnpairedDevice(); + void Confirm(const QDBusObjectPath &device, bool accept); + void ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter); + QString DebugInfo(); + void DisconnectDevice(const QDBusObjectPath &device); + void FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey); + void FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode); + QString GetAdapters(); + QString GetDevices(const QDBusObjectPath &adapter); + void RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device); + void RequestDiscovery(const QDBusObjectPath &adapter); + QDBusObjectPath SendFiles(const QString &device, const QStringList &files); + void SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias); + void SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable); + void SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout); + void SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering); + void SetAdapterPowered(const QDBusObjectPath &adapter, bool powered); + void SetDeviceAlias(const QDBusObjectPath &device, const QString &alias); + void SetDeviceTrusted(const QDBusObjectPath &device, bool trusted); +Q_SIGNALS: // SIGNALS + void AdapterAdded(const QString &adapterJSON); + void AdapterPropertiesChanged(const QString &adapterJSON); + void AdapterRemoved(const QString &adapterJSON); + void Cancelled(const QDBusObjectPath &device); + void ConnectFailed(const QDBusObjectPath &device); + void DeviceAdded(const QString &devJSON); + void DevicePropertiesChanged(const QString &devJSON); + void DeviceRemoved(const QString &devJSON); + void DisplayPasskey(const QDBusObjectPath &device, uint passkey, uint entered); + void DisplayPinCode(const QDBusObjectPath &device, const QString &pinCode); + void ObexSessionCreated(const QDBusObjectPath &sessionPath); + void ObexSessionProgress(const QDBusObjectPath &sessionPath, qulonglong totalSize, qulonglong transferred, int currentIdx); + void ObexSessionRemoved(const QDBusObjectPath &sessionPath); + void RequestAuthorization(const QDBusObjectPath &device); + void RequestConfirmation(const QDBusObjectPath &device, const QString &passkey); + void RequestPasskey(const QDBusObjectPath &device); + void RequestPinCode(const QDBusObjectPath &device); + void TransferCreated(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath); + void TransferFailed(const QString &file, const QDBusObjectPath &sessionPath, const QString &errInfo); + void TransferRemoved(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath, bool done); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.cpp new file mode 100644 index 0000000..90c2635 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.cpp @@ -0,0 +1,209 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Display.Monitor.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.Monitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MonitorAdaptor + */ + +MonitorAdaptor::MonitorAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MonitorAdaptor::~MonitorAdaptor() +{ + // destructor +} + +QStringList MonitorAdaptor::availableFillModes() const +{ + // get the value of property AvailableFillModes + return qvariant_cast< QStringList >(parent()->property("AvailableFillModes")); +} + +Resolution MonitorAdaptor::bestMode() const +{ + // get the value of property BestMode + return qvariant_cast< Resolution >(parent()->property("BestMode")); +} + +bool MonitorAdaptor::connected() const +{ + // get the value of property Connected + return qvariant_cast< bool >(parent()->property("Connected")); +} + +QString MonitorAdaptor::currentFillMode() const +{ + // get the value of property CurrentFillMode + return qvariant_cast< QString >(parent()->property("CurrentFillMode")); +} + +void MonitorAdaptor::setCurrentFillMode(const QString &value) +{ + // set the value of property CurrentFillMode + parent()->setProperty("CurrentFillMode", QVariant::fromValue(value)); +} + +Resolution MonitorAdaptor::currentMode() const +{ + // get the value of property CurrentMode + return qvariant_cast< Resolution >(parent()->property("CurrentMode")); +} + +uchar MonitorAdaptor::currentRotateMode() const +{ + // get the value of property CurrentRotateMode + return qvariant_cast< uchar >(parent()->property("CurrentRotateMode")); +} + +bool MonitorAdaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +ushort MonitorAdaptor::height() const +{ + // get the value of property Height + return qvariant_cast< ushort >(parent()->property("Height")); +} + +QString MonitorAdaptor::manufacturer() const +{ + // get the value of property Manufacturer + return qvariant_cast< QString >(parent()->property("Manufacturer")); +} + +uint MonitorAdaptor::mmHeight() const +{ + // get the value of property MmHeight + return qvariant_cast< uint >(parent()->property("MmHeight")); +} + +uint MonitorAdaptor::mmWidth() const +{ + // get the value of property MmWidth + return qvariant_cast< uint >(parent()->property("MmWidth")); +} + +QString MonitorAdaptor::model() const +{ + // get the value of property Model + return qvariant_cast< QString >(parent()->property("Model")); +} + +ResolutionList MonitorAdaptor::modes() const +{ + // get the value of property Modes + return qvariant_cast< ResolutionList >(parent()->property("Modes")); +} + +QString MonitorAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +ushort MonitorAdaptor::reflect() const +{ + // get the value of property Reflect + return qvariant_cast< ushort >(parent()->property("Reflect")); +} + +ReflectList MonitorAdaptor::reflects() const +{ + // get the value of property Reflects + return qvariant_cast< ReflectList >(parent()->property("Reflects")); +} + +double MonitorAdaptor::refreshRate() const +{ + // get the value of property RefreshRate + return qvariant_cast< double >(parent()->property("RefreshRate")); +} + +ushort MonitorAdaptor::rotation() const +{ + // get the value of property Rotation + return qvariant_cast< ushort >(parent()->property("Rotation")); +} + +RotationList MonitorAdaptor::rotations() const +{ + // get the value of property Rotations + return qvariant_cast< RotationList >(parent()->property("Rotations")); +} + +ushort MonitorAdaptor::width() const +{ + // get the value of property Width + return qvariant_cast< ushort >(parent()->property("Width")); +} + +short MonitorAdaptor::x() const +{ + // get the value of property X + return qvariant_cast< short >(parent()->property("X")); +} + +short MonitorAdaptor::y() const +{ + // get the value of property Y + return qvariant_cast< short >(parent()->property("Y")); +} + +void MonitorAdaptor::Enable(bool in0) +{ + // handle method call com.deepin.daemon.Display.Monitor.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, in0)); +} + +void MonitorAdaptor::SetMode(uint in0) +{ + // handle method call com.deepin.daemon.Display.Monitor.SetMode + QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(uint, in0)); +} + +void MonitorAdaptor::SetModeBySize(ushort in0, ushort in1) +{ + // handle method call com.deepin.daemon.Display.Monitor.SetModeBySize + QMetaObject::invokeMethod(parent(), "SetModeBySize", Q_ARG(ushort, in0), Q_ARG(ushort, in1)); +} + +void MonitorAdaptor::SetPosition(short in0, short in1) +{ + // handle method call com.deepin.daemon.Display.Monitor.SetPosition + QMetaObject::invokeMethod(parent(), "SetPosition", Q_ARG(short, in0), Q_ARG(short, in1)); +} + +void MonitorAdaptor::SetReflect(ushort in0) +{ + // handle method call com.deepin.daemon.Display.Monitor.SetReflect + QMetaObject::invokeMethod(parent(), "SetReflect", Q_ARG(ushort, in0)); +} + +void MonitorAdaptor::SetRotation(ushort in0) +{ + // handle method call com.deepin.daemon.Display.Monitor.SetRotation + QMetaObject::invokeMethod(parent(), "SetRotation", Q_ARG(ushort, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.h new file mode 100644 index 0000000..4b8443b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor.h @@ -0,0 +1,172 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Display.Monitor.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.MonitorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.Monitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_DISPLAY_MONITORADAPTOR_H +#define COM_DEEPIN_DAEMON_DISPLAY_MONITORADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.Monitor.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Display.Monitor + */ +class MonitorAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Display.Monitor") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MonitorAdaptor(QObject *parent); + virtual ~MonitorAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QStringList AvailableFillModes READ availableFillModes) + QStringList availableFillModes() const; + + Q_PROPERTY(Resolution BestMode READ bestMode) + Resolution bestMode() const; + + Q_PROPERTY(bool Connected READ connected) + bool connected() const; + + Q_PROPERTY(QString CurrentFillMode READ currentFillMode WRITE setCurrentFillMode) + QString currentFillMode() const; + void setCurrentFillMode(const QString &value); + + Q_PROPERTY(Resolution CurrentMode READ currentMode) + Resolution currentMode() const; + + Q_PROPERTY(uchar CurrentRotateMode READ currentRotateMode) + uchar currentRotateMode() const; + + Q_PROPERTY(bool Enabled READ enabled) + bool enabled() const; + + Q_PROPERTY(ushort Height READ height) + ushort height() const; + + Q_PROPERTY(QString Manufacturer READ manufacturer) + QString manufacturer() const; + + Q_PROPERTY(uint MmHeight READ mmHeight) + uint mmHeight() const; + + Q_PROPERTY(uint MmWidth READ mmWidth) + uint mmWidth() const; + + Q_PROPERTY(QString Model READ model) + QString model() const; + + Q_PROPERTY(ResolutionList Modes READ modes) + ResolutionList modes() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(ushort Reflect READ reflect) + ushort reflect() const; + + Q_PROPERTY(ReflectList Reflects READ reflects) + ReflectList reflects() const; + + Q_PROPERTY(double RefreshRate READ refreshRate) + double refreshRate() const; + + Q_PROPERTY(ushort Rotation READ rotation) + ushort rotation() const; + + Q_PROPERTY(RotationList Rotations READ rotations) + RotationList rotations() const; + + Q_PROPERTY(ushort Width READ width) + ushort width() const; + + Q_PROPERTY(short X READ x) + short x() const; + + Q_PROPERTY(short Y READ y) + short y() const; + +public Q_SLOTS: // METHODS + void Enable(bool in0); + void SetMode(uint in0); + void SetModeBySize(ushort in0, ushort in1); + void SetPosition(short in0, short in1); + void SetReflect(ushort in0); + void SetRotation(ushort in0); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.cpp new file mode 100644 index 0000000..db824ac --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.cpp @@ -0,0 +1,257 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Display.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DisplayAdaptor + */ + +DisplayAdaptor::DisplayAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DisplayAdaptor::~DisplayAdaptor() +{ + // destructor +} + +BrightnessMap DisplayAdaptor::brightness() const +{ + // get the value of property Brightness + return qvariant_cast< BrightnessMap >(parent()->property("Brightness")); +} + +int DisplayAdaptor::colorTemperatureManual() const +{ + // get the value of property ColorTemperatureManual + return qvariant_cast< int >(parent()->property("ColorTemperatureManual")); +} + +int DisplayAdaptor::colorTemperatureMode() const +{ + // get the value of property ColorTemperatureMode + return qvariant_cast< int >(parent()->property("ColorTemperatureMode")); +} + +QString DisplayAdaptor::currentCustomId() const +{ + // get the value of property CurrentCustomId + return qvariant_cast< QString >(parent()->property("CurrentCustomId")); +} + +QStringList DisplayAdaptor::customIdList() const +{ + // get the value of property CustomIdList + return qvariant_cast< QStringList >(parent()->property("CustomIdList")); +} + +uchar DisplayAdaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< uchar >(parent()->property("DisplayMode")); +} + +bool DisplayAdaptor::hasChanged() const +{ + // get the value of property HasChanged + return qvariant_cast< bool >(parent()->property("HasChanged")); +} + +uint DisplayAdaptor::maxBacklightBrightness() const +{ + // get the value of property MaxBacklightBrightness + return qvariant_cast< uint >(parent()->property("MaxBacklightBrightness")); +} + +QList DisplayAdaptor::monitors() const +{ + // get the value of property Monitors + return qvariant_cast< QList >(parent()->property("Monitors")); +} + +QString DisplayAdaptor::primary() const +{ + // get the value of property Primary + return qvariant_cast< QString >(parent()->property("Primary")); +} + +ScreenRect DisplayAdaptor::primaryRect() const +{ + // get the value of property PrimaryRect + return qvariant_cast< ScreenRect >(parent()->property("PrimaryRect")); +} + +ushort DisplayAdaptor::screenHeight() const +{ + // get the value of property ScreenHeight + return qvariant_cast< ushort >(parent()->property("ScreenHeight")); +} + +ushort DisplayAdaptor::screenWidth() const +{ + // get the value of property ScreenWidth + return qvariant_cast< ushort >(parent()->property("ScreenWidth")); +} + +bool DisplayAdaptor::supportColorTemperature() const +{ + // get the value of property SupportColorTemperature + return qvariant_cast< bool >(parent()->property("SupportColorTemperature")); +} + +TouchscreenMap DisplayAdaptor::touchMap() const +{ + // get the value of property TouchMap + return qvariant_cast< TouchscreenMap >(parent()->property("TouchMap")); +} + +TouchscreenInfoList DisplayAdaptor::touchscreens() const +{ + // get the value of property Touchscreens + return qvariant_cast< TouchscreenInfoList >(parent()->property("Touchscreens")); +} + +TouchscreenInfoList_V2 DisplayAdaptor::touchscreensV2() const +{ + // get the value of property TouchscreensV2 + return qvariant_cast< TouchscreenInfoList_V2 >(parent()->property("TouchscreensV2")); +} + +void DisplayAdaptor::ApplyChanges() +{ + // handle method call com.deepin.daemon.Display.ApplyChanges + QMetaObject::invokeMethod(parent(), "ApplyChanges"); +} + +void DisplayAdaptor::AssociateTouch(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Display.AssociateTouch + QMetaObject::invokeMethod(parent(), "AssociateTouch", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void DisplayAdaptor::AssociateTouchByUUID(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Display.AssociateTouchByUUID + QMetaObject::invokeMethod(parent(), "AssociateTouchByUUID", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void DisplayAdaptor::ChangeBrightness(bool in0) +{ + // handle method call com.deepin.daemon.Display.ChangeBrightness + QMetaObject::invokeMethod(parent(), "ChangeBrightness", Q_ARG(bool, in0)); +} + +void DisplayAdaptor::DeleteCustomMode(const QString &in0) +{ + // handle method call com.deepin.daemon.Display.DeleteCustomMode + QMetaObject::invokeMethod(parent(), "DeleteCustomMode", Q_ARG(QString, in0)); +} + +uchar DisplayAdaptor::GetRealDisplayMode() +{ + // handle method call com.deepin.daemon.Display.GetRealDisplayMode + uchar out0; + QMetaObject::invokeMethod(parent(), "GetRealDisplayMode", Q_RETURN_ARG(uchar, out0)); + return out0; +} + +QStringList DisplayAdaptor::ListOutputNames() +{ + // handle method call com.deepin.daemon.Display.ListOutputNames + QStringList out0; + QMetaObject::invokeMethod(parent(), "ListOutputNames", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +ResolutionList DisplayAdaptor::ListOutputsCommonModes() +{ + // handle method call com.deepin.daemon.Display.ListOutputsCommonModes + ResolutionList out0; + QMetaObject::invokeMethod(parent(), "ListOutputsCommonModes", Q_RETURN_ARG(ResolutionList, out0)); + return out0; +} + +void DisplayAdaptor::ModifyConfigName(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Display.ModifyConfigName + QMetaObject::invokeMethod(parent(), "ModifyConfigName", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void DisplayAdaptor::RefreshBrightness() +{ + // handle method call com.deepin.daemon.Display.RefreshBrightness + QMetaObject::invokeMethod(parent(), "RefreshBrightness"); +} + +void DisplayAdaptor::Reset() +{ + // handle method call com.deepin.daemon.Display.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void DisplayAdaptor::ResetChanges() +{ + // handle method call com.deepin.daemon.Display.ResetChanges + QMetaObject::invokeMethod(parent(), "ResetChanges"); +} + +void DisplayAdaptor::Save() +{ + // handle method call com.deepin.daemon.Display.Save + QMetaObject::invokeMethod(parent(), "Save"); +} + +void DisplayAdaptor::SetAndSaveBrightness(const QString &in0, double in1) +{ + // handle method call com.deepin.daemon.Display.SetAndSaveBrightness + QMetaObject::invokeMethod(parent(), "SetAndSaveBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void DisplayAdaptor::SetBrightness(const QString &in0, double in1) +{ + // handle method call com.deepin.daemon.Display.SetBrightness + QMetaObject::invokeMethod(parent(), "SetBrightness", Q_ARG(QString, in0), Q_ARG(double, in1)); +} + +void DisplayAdaptor::SetColorTemperature(int in0) +{ + // handle method call com.deepin.daemon.Display.SetColorTemperature + QMetaObject::invokeMethod(parent(), "SetColorTemperature", Q_ARG(int, in0)); +} + +void DisplayAdaptor::SetMethodAdjustCCT(int in0) +{ + // handle method call com.deepin.daemon.Display.SetMethodAdjustCCT + QMetaObject::invokeMethod(parent(), "SetMethodAdjustCCT", Q_ARG(int, in0)); +} + +void DisplayAdaptor::SetPrimary(const QString &in0) +{ + // handle method call com.deepin.daemon.Display.SetPrimary + QMetaObject::invokeMethod(parent(), "SetPrimary", Q_ARG(QString, in0)); +} + +void DisplayAdaptor::SwitchMode(uchar in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Display.SwitchMode + QMetaObject::invokeMethod(parent(), "SwitchMode", Q_ARG(uchar, in0), Q_ARG(QString, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.h new file mode 100644 index 0000000..1d13e95 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor.h @@ -0,0 +1,198 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Display.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.DisplayAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_DISPLAYADAPTOR_H +#define COM_DEEPIN_DAEMON_DISPLAYADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Display.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Display + */ +class DisplayAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Display") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + DisplayAdaptor(QObject *parent); + virtual ~DisplayAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(BrightnessMap Brightness READ brightness) + BrightnessMap brightness() const; + + Q_PROPERTY(int ColorTemperatureManual READ colorTemperatureManual) + int colorTemperatureManual() const; + + Q_PROPERTY(int ColorTemperatureMode READ colorTemperatureMode) + int colorTemperatureMode() const; + + Q_PROPERTY(QString CurrentCustomId READ currentCustomId) + QString currentCustomId() const; + + Q_PROPERTY(QStringList CustomIdList READ customIdList) + QStringList customIdList() const; + + Q_PROPERTY(uchar DisplayMode READ displayMode) + uchar displayMode() const; + + Q_PROPERTY(bool HasChanged READ hasChanged) + bool hasChanged() const; + + Q_PROPERTY(uint MaxBacklightBrightness READ maxBacklightBrightness) + uint maxBacklightBrightness() const; + + Q_PROPERTY(QList Monitors READ monitors) + QList monitors() const; + + Q_PROPERTY(QString Primary READ primary) + QString primary() const; + + Q_PROPERTY(ScreenRect PrimaryRect READ primaryRect) + ScreenRect primaryRect() const; + + Q_PROPERTY(ushort ScreenHeight READ screenHeight) + ushort screenHeight() const; + + Q_PROPERTY(ushort ScreenWidth READ screenWidth) + ushort screenWidth() const; + + Q_PROPERTY(bool SupportColorTemperature READ supportColorTemperature) + bool supportColorTemperature() const; + + Q_PROPERTY(TouchscreenMap TouchMap READ touchMap) + TouchscreenMap touchMap() const; + + Q_PROPERTY(TouchscreenInfoList Touchscreens READ touchscreens) + TouchscreenInfoList touchscreens() const; + + Q_PROPERTY(TouchscreenInfoList_V2 TouchscreensV2 READ touchscreensV2) + TouchscreenInfoList_V2 touchscreensV2() const; + +public Q_SLOTS: // METHODS + void ApplyChanges(); + void AssociateTouch(const QString &in0, const QString &in1); + void AssociateTouchByUUID(const QString &in0, const QString &in1); + void ChangeBrightness(bool in0); + void DeleteCustomMode(const QString &in0); + uchar GetRealDisplayMode(); + QStringList ListOutputNames(); + ResolutionList ListOutputsCommonModes(); + void ModifyConfigName(const QString &in0, const QString &in1); + void RefreshBrightness(); + void Reset(); + void ResetChanges(); + void Save(); + void SetAndSaveBrightness(const QString &in0, double in1); + void SetBrightness(const QString &in0, double in1); + void SetColorTemperature(int in0); + void SetMethodAdjustCCT(int in0); + void SetPrimary(const QString &in0); + void SwitchMode(uchar in0, const QString &in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.cpp new file mode 100644 index 0000000..abad9c7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Gesture.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Gesture.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class GestureAdaptor + */ + +GestureAdaptor::GestureAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +GestureAdaptor::~GestureAdaptor() +{ + // destructor +} + +void GestureAdaptor::SetEdgeMoveStopDuration(uint duration) +{ + // handle method call com.deepin.daemon.Gesture.SetEdgeMoveStopDuration + QMetaObject::invokeMethod(parent(), "SetEdgeMoveStopDuration", Q_ARG(uint, duration)); +} + +void GestureAdaptor::SetInputIgnore(const QString &node, bool ignore) +{ + // handle method call com.deepin.daemon.Gesture.SetInputIgnore + QMetaObject::invokeMethod(parent(), "SetInputIgnore", Q_ARG(QString, node), Q_ARG(bool, ignore)); +} + +void GestureAdaptor::SetShortPressDuration(uint duration) +{ + // handle method call com.deepin.daemon.Gesture.SetShortPressDuration + QMetaObject::invokeMethod(parent(), "SetShortPressDuration", Q_ARG(uint, duration)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.h new file mode 100644 index 0000000..0f1e744 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.h @@ -0,0 +1,132 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Gesture.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Gesture.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_GESTUREADAPTOR_H +#define COM_DEEPIN_DAEMON_GESTUREADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Gesture.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Gesture + */ +class GestureAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Gesture") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + GestureAdaptor(QObject *parent); + virtual ~GestureAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void SetEdgeMoveStopDuration(uint duration); + void SetInputIgnore(const QString &node, bool ignore); + void SetShortPressDuration(uint duration); +Q_SIGNALS: // SIGNALS + void DbclickDown(int fingers); + void Event(const QString &name, const QString &direction, int fingers); + void SwipeMoving(int fingers, double accelX, double accely); + void SwipeStop(int fingers); + void TouchEdgeEvent(const QString &direction, double scalex, double scaley); + void TouchEdgeMoveStop(const QString &direction, double scalex, double scaley, int duration); + void TouchEdgeMoveStopLeave(const QString &direction, double scalex, double scaley, int duration); + void TouchMovementEvent(const QString &duration, int fingers, double startScalex, double startScaley, double endScalex, double endScaley); + void TouchMoving(double scalex, double scaley); + void TouchPressTimeout(int fingers, int time, double scalex, double scaley); + void TouchSinglePressTimeout(int time, double scalex, double scaley); + void TouchUpOrCancel(double scalex, double scaley); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.cpp new file mode 100644 index 0000000..e53be88 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Grub2.EditAuthentication.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthentication.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class EditAuthenticationAdaptor + */ + +EditAuthenticationAdaptor::EditAuthenticationAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +EditAuthenticationAdaptor::~EditAuthenticationAdaptor() +{ + // destructor +} + +QStringList EditAuthenticationAdaptor::enabledUsers() const +{ + // get the value of property EnabledUsers + return qvariant_cast< QStringList >(parent()->property("EnabledUsers")); +} + +void EditAuthenticationAdaptor::Disable(const QString &username) +{ + // handle method call com.deepin.daemon.Grub2.EditAuthentication.Disable + QMetaObject::invokeMethod(parent(), "Disable", Q_ARG(QString, username)); +} + +void EditAuthenticationAdaptor::Enable(const QString &username, const QString &password) +{ + // handle method call com.deepin.daemon.Grub2.EditAuthentication.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(QString, username), Q_ARG(QString, password)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.h new file mode 100644 index 0000000..7f3ea46 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor.h @@ -0,0 +1,60 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Grub2.EditAuthentication.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthenticationAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthentication.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_GRUB2_EDITAUTHENTICATIONADAPTOR_H +#define COM_DEEPIN_DAEMON_GRUB2_EDITAUTHENTICATIONADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.EditAuthentication.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Grub2.EditAuthentication + */ +class EditAuthenticationAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Grub2.EditAuthentication") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + EditAuthenticationAdaptor(QObject *parent); + virtual ~EditAuthenticationAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QStringList EnabledUsers READ enabledUsers) + QStringList enabledUsers() const; + +public Q_SLOTS: // METHODS + void Disable(const QString &username); + void Enable(const QString &username, const QString &password); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.cpp new file mode 100644 index 0000000..fea00a3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.cpp @@ -0,0 +1,79 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Grub2.Theme.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.Theme.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ThemeAdaptor + */ + +ThemeAdaptor::ThemeAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ThemeAdaptor::~ThemeAdaptor() +{ + // destructor +} + +QString ThemeAdaptor::itemColor() const +{ + // get the value of property ItemColor + return qvariant_cast< QString >(parent()->property("ItemColor")); +} + +QString ThemeAdaptor::selectedItemColor() const +{ + // get the value of property SelectedItemColor + return qvariant_cast< QString >(parent()->property("SelectedItemColor")); +} + +bool ThemeAdaptor::updating() const +{ + // get the value of property Updating + return qvariant_cast< bool >(parent()->property("Updating")); +} + +QString ThemeAdaptor::GetBackground() +{ + // handle method call com.deepin.daemon.Grub2.Theme.GetBackground + QString out0; + QMetaObject::invokeMethod(parent(), "GetBackground", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void ThemeAdaptor::SetBackgroundSourceFile(const QString &in0) +{ + // handle method call com.deepin.daemon.Grub2.Theme.SetBackgroundSourceFile + QMetaObject::invokeMethod(parent(), "SetBackgroundSourceFile", Q_ARG(QString, in0)); +} + +void ThemeAdaptor::SetItemColor(const QString &in0) +{ + // handle method call com.deepin.daemon.Grub2.Theme.SetItemColor + QMetaObject::invokeMethod(parent(), "SetItemColor", Q_ARG(QString, in0)); +} + +void ThemeAdaptor::SetSelectedItemColor(const QString &in0) +{ + // handle method call com.deepin.daemon.Grub2.Theme.SetSelectedItemColor + QMetaObject::invokeMethod(parent(), "SetSelectedItemColor", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.h new file mode 100644 index 0000000..f57ca51 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor.h @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Grub2.Theme.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.ThemeAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.Theme.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_GRUB2_THEMEADAPTOR_H +#define COM_DEEPIN_DAEMON_GRUB2_THEMEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.Theme.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Grub2.Theme + */ +class ThemeAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Grub2.Theme") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ThemeAdaptor(QObject *parent); + virtual ~ThemeAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString ItemColor READ itemColor) + QString itemColor() const; + + Q_PROPERTY(QString SelectedItemColor READ selectedItemColor) + QString selectedItemColor() const; + + Q_PROPERTY(bool Updating READ updating) + bool updating() const; + +public Q_SLOTS: // METHODS + QString GetBackground(); + void SetBackgroundSourceFile(const QString &in0); + void SetItemColor(const QString &in0); + void SetSelectedItemColor(const QString &in0); +Q_SIGNALS: // SIGNALS + void BackgroundChanged(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.cpp new file mode 100644 index 0000000..e4297c5 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.cpp @@ -0,0 +1,131 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Grub2.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Grub2Adaptor + */ + +Grub2Adaptor::Grub2Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Grub2Adaptor::~Grub2Adaptor() +{ + // destructor +} + +QString Grub2Adaptor::defaultEntry() const +{ + // get the value of property DefaultEntry + return qvariant_cast< QString >(parent()->property("DefaultEntry")); +} + +bool Grub2Adaptor::enableTheme() const +{ + // get the value of property EnableTheme + return qvariant_cast< bool >(parent()->property("EnableTheme")); +} + +QString Grub2Adaptor::resolution() const +{ + // get the value of property Resolution + return qvariant_cast< QString >(parent()->property("Resolution")); +} + +QString Grub2Adaptor::theme() const +{ + // get the value of property Theme + return qvariant_cast< QString >(parent()->property("Theme")); +} + +uint Grub2Adaptor::timeout() const +{ + // get the value of property Timeout + return qvariant_cast< uint >(parent()->property("Timeout")); +} + +bool Grub2Adaptor::updating() const +{ + // get the value of property Updating + return qvariant_cast< bool >(parent()->property("Updating")); +} + +QString Grub2Adaptor::GetAvailableResolutions() +{ + // handle method call com.deepin.daemon.Grub2.GetAvailableResolutions + QString modeJSON; + QMetaObject::invokeMethod(parent(), "GetAvailableResolutions", Q_RETURN_ARG(QString, modeJSON)); + return modeJSON; +} + +QStringList Grub2Adaptor::GetSimpleEntryTitles() +{ + // handle method call com.deepin.daemon.Grub2.GetSimpleEntryTitles + QStringList titles; + QMetaObject::invokeMethod(parent(), "GetSimpleEntryTitles", Q_RETURN_ARG(QStringList, titles)); + return titles; +} + +QString Grub2Adaptor::GetThemes() +{ + // handle method call com.deepin.daemon.Grub2.GetThemes + QString themes; + QMetaObject::invokeMethod(parent(), "GetThemes", Q_RETURN_ARG(QString, themes)); + return themes; +} + +void Grub2Adaptor::Reset() +{ + // handle method call com.deepin.daemon.Grub2.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Grub2Adaptor::SetDefaultEntry(const QString &entry) +{ + // handle method call com.deepin.daemon.Grub2.SetDefaultEntry + QMetaObject::invokeMethod(parent(), "SetDefaultEntry", Q_ARG(QString, entry)); +} + +void Grub2Adaptor::SetEnableTheme(bool enabled) +{ + // handle method call com.deepin.daemon.Grub2.SetEnableTheme + QMetaObject::invokeMethod(parent(), "SetEnableTheme", Q_ARG(bool, enabled)); +} + +void Grub2Adaptor::SetResolution(const QString &resolution) +{ + // handle method call com.deepin.daemon.Grub2.SetResolution + QMetaObject::invokeMethod(parent(), "SetResolution", Q_ARG(QString, resolution)); +} + +void Grub2Adaptor::SetTheme(const QString &themeId) +{ + // handle method call com.deepin.daemon.Grub2.SetTheme + QMetaObject::invokeMethod(parent(), "SetTheme", Q_ARG(QString, themeId)); +} + +void Grub2Adaptor::SetTimeout(uint timeout) +{ + // handle method call com.deepin.daemon.Grub2.SetTimeout + QMetaObject::invokeMethod(parent(), "SetTimeout", Q_ARG(uint, timeout)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.h new file mode 100644 index 0000000..0ecefc0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor.h @@ -0,0 +1,105 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Grub2.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_GRUB2ADAPTOR_H +#define COM_DEEPIN_DAEMON_GRUB2ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Grub2.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Grub2 + */ +class Grub2Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Grub2") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Grub2Adaptor(QObject *parent); + virtual ~Grub2Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString DefaultEntry READ defaultEntry) + QString defaultEntry() const; + + Q_PROPERTY(bool EnableTheme READ enableTheme) + bool enableTheme() const; + + Q_PROPERTY(QString Resolution READ resolution) + QString resolution() const; + + Q_PROPERTY(QString Theme READ theme) + QString theme() const; + + Q_PROPERTY(uint Timeout READ timeout) + uint timeout() const; + + Q_PROPERTY(bool Updating READ updating) + bool updating() const; + +public Q_SLOTS: // METHODS + QString GetAvailableResolutions(); + QStringList GetSimpleEntryTitles(); + QString GetThemes(); + void Reset(); + void SetDefaultEntry(const QString &entry); + void SetEnableTheme(bool enabled); + void SetResolution(const QString &resolution); + void SetTheme(const QString &themeId); + void SetTimeout(uint timeout); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.cpp new file mode 100644 index 0000000..5040c74 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.cpp @@ -0,0 +1,183 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.Keyboard.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Keyboard.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class KeyboardAdaptor + */ + +KeyboardAdaptor::KeyboardAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +KeyboardAdaptor::~KeyboardAdaptor() +{ + // destructor +} + +bool KeyboardAdaptor::capslockToggle() const +{ + // get the value of property CapslockToggle + return qvariant_cast< bool >(parent()->property("CapslockToggle")); +} + +void KeyboardAdaptor::setCapslockToggle(bool value) +{ + // set the value of property CapslockToggle + parent()->setProperty("CapslockToggle", QVariant::fromValue(value)); +} + +QString KeyboardAdaptor::currentLayout() const +{ + // get the value of property CurrentLayout + return qvariant_cast< QString >(parent()->property("CurrentLayout")); +} + +void KeyboardAdaptor::setCurrentLayout(const QString &value) +{ + // set the value of property CurrentLayout + parent()->setProperty("CurrentLayout", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::cursorBlink() const +{ + // get the value of property CursorBlink + return qvariant_cast< int >(parent()->property("CursorBlink")); +} + +void KeyboardAdaptor::setCursorBlink(int value) +{ + // set the value of property CursorBlink + parent()->setProperty("CursorBlink", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::layoutScope() const +{ + // get the value of property LayoutScope + return qvariant_cast< int >(parent()->property("LayoutScope")); +} + +void KeyboardAdaptor::setLayoutScope(int value) +{ + // set the value of property LayoutScope + parent()->setProperty("LayoutScope", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatDelay() const +{ + // get the value of property RepeatDelay + return qvariant_cast< uint >(parent()->property("RepeatDelay")); +} + +void KeyboardAdaptor::setRepeatDelay(uint value) +{ + // set the value of property RepeatDelay + parent()->setProperty("RepeatDelay", QVariant::fromValue(value)); +} + +bool KeyboardAdaptor::repeatEnabled() const +{ + // get the value of property RepeatEnabled + return qvariant_cast< bool >(parent()->property("RepeatEnabled")); +} + +void KeyboardAdaptor::setRepeatEnabled(bool value) +{ + // set the value of property RepeatEnabled + parent()->setProperty("RepeatEnabled", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatInterval() const +{ + // get the value of property RepeatInterval + return qvariant_cast< uint >(parent()->property("RepeatInterval")); +} + +void KeyboardAdaptor::setRepeatInterval(uint value) +{ + // set the value of property RepeatInterval + parent()->setProperty("RepeatInterval", QVariant::fromValue(value)); +} + +QStringList KeyboardAdaptor::userLayoutList() const +{ + // get the value of property UserLayoutList + return qvariant_cast< QStringList >(parent()->property("UserLayoutList")); +} + +QStringList KeyboardAdaptor::userOptionList() const +{ + // get the value of property UserOptionList + return qvariant_cast< QStringList >(parent()->property("UserOptionList")); +} + +void KeyboardAdaptor::AddLayoutOption(const QString &in0) +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.AddLayoutOption + QMetaObject::invokeMethod(parent(), "AddLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::AddUserLayout(const QString &in0) +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.AddUserLayout + QMetaObject::invokeMethod(parent(), "AddUserLayout", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::ClearLayoutOption() +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.ClearLayoutOption + QMetaObject::invokeMethod(parent(), "ClearLayoutOption"); +} + +void KeyboardAdaptor::DeleteLayoutOption(const QString &in0) +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.DeleteLayoutOption + QMetaObject::invokeMethod(parent(), "DeleteLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::DeleteUserLayout(const QString &in0) +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.DeleteUserLayout + QMetaObject::invokeMethod(parent(), "DeleteUserLayout", Q_ARG(QString, in0)); +} + +QString KeyboardAdaptor::GetLayoutDesc(const QString &in0) +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.GetLayoutDesc + QString out0; + QMetaObject::invokeMethod(parent(), "GetLayoutDesc", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +KeyboardLayoutList KeyboardAdaptor::LayoutList() +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.LayoutList + KeyboardLayoutList out0; + QMetaObject::invokeMethod(parent(), "LayoutList", Q_RETURN_ARG(KeyboardLayoutList, out0)); + return out0; +} + +void KeyboardAdaptor::Reset() +{ + // handle method call com.deepin.daemon.InputDevice.Keyboard.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.h new file mode 100644 index 0000000..5183c17 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor.h @@ -0,0 +1,120 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.Keyboard.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.KeyboardAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Keyboard.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_INPUTDEVICE_KEYBOARDADAPTOR_H +#define COM_DEEPIN_DAEMON_INPUTDEVICE_KEYBOARDADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Keyboard.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.InputDevice.Keyboard + */ +class KeyboardAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.InputDevice.Keyboard") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + KeyboardAdaptor(QObject *parent); + virtual ~KeyboardAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CapslockToggle READ capslockToggle WRITE setCapslockToggle) + bool capslockToggle() const; + void setCapslockToggle(bool value); + + Q_PROPERTY(QString CurrentLayout READ currentLayout WRITE setCurrentLayout) + QString currentLayout() const; + void setCurrentLayout(const QString &value); + + Q_PROPERTY(int CursorBlink READ cursorBlink WRITE setCursorBlink) + int cursorBlink() const; + void setCursorBlink(int value); + + Q_PROPERTY(int LayoutScope READ layoutScope WRITE setLayoutScope) + int layoutScope() const; + void setLayoutScope(int value); + + Q_PROPERTY(uint RepeatDelay READ repeatDelay WRITE setRepeatDelay) + uint repeatDelay() const; + void setRepeatDelay(uint value); + + Q_PROPERTY(bool RepeatEnabled READ repeatEnabled WRITE setRepeatEnabled) + bool repeatEnabled() const; + void setRepeatEnabled(bool value); + + Q_PROPERTY(uint RepeatInterval READ repeatInterval WRITE setRepeatInterval) + uint repeatInterval() const; + void setRepeatInterval(uint value); + + Q_PROPERTY(QStringList UserLayoutList READ userLayoutList) + QStringList userLayoutList() const; + + Q_PROPERTY(QStringList UserOptionList READ userOptionList) + QStringList userOptionList() const; + +public Q_SLOTS: // METHODS + void AddLayoutOption(const QString &in0); + void AddUserLayout(const QString &in0); + void ClearLayoutOption(); + void DeleteLayoutOption(const QString &in0); + void DeleteUserLayout(const QString &in0); + QString GetLayoutDesc(const QString &in0); + KeyboardLayoutList LayoutList(); + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.cpp new file mode 100644 index 0000000..7514c15 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.cpp @@ -0,0 +1,173 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.Mouse.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Mouse.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MouseAdaptor + */ + +MouseAdaptor::MouseAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MouseAdaptor::~MouseAdaptor() +{ + // destructor +} + +bool MouseAdaptor::adaptiveAccelProfile() const +{ + // get the value of property AdaptiveAccelProfile + return qvariant_cast< bool >(parent()->property("AdaptiveAccelProfile")); +} + +void MouseAdaptor::setAdaptiveAccelProfile(bool value) +{ + // set the value of property AdaptiveAccelProfile + parent()->setProperty("AdaptiveAccelProfile", QVariant::fromValue(value)); +} + +QString MouseAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +bool MouseAdaptor::disableTpad() const +{ + // get the value of property DisableTpad + return qvariant_cast< bool >(parent()->property("DisableTpad")); +} + +void MouseAdaptor::setDisableTpad(bool value) +{ + // set the value of property DisableTpad + parent()->setProperty("DisableTpad", QVariant::fromValue(value)); +} + +int MouseAdaptor::doubleClick() const +{ + // get the value of property DoubleClick + return qvariant_cast< int >(parent()->property("DoubleClick")); +} + +void MouseAdaptor::setDoubleClick(int value) +{ + // set the value of property DoubleClick + parent()->setProperty("DoubleClick", QVariant::fromValue(value)); +} + +int MouseAdaptor::dragThreshold() const +{ + // get the value of property DragThreshold + return qvariant_cast< int >(parent()->property("DragThreshold")); +} + +void MouseAdaptor::setDragThreshold(int value) +{ + // set the value of property DragThreshold + parent()->setProperty("DragThreshold", QVariant::fromValue(value)); +} + +bool MouseAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +bool MouseAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void MouseAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +bool MouseAdaptor::middleButtonEmulation() const +{ + // get the value of property MiddleButtonEmulation + return qvariant_cast< bool >(parent()->property("MiddleButtonEmulation")); +} + +void MouseAdaptor::setMiddleButtonEmulation(bool value) +{ + // set the value of property MiddleButtonEmulation + parent()->setProperty("MiddleButtonEmulation", QVariant::fromValue(value)); +} + +double MouseAdaptor::motionAcceleration() const +{ + // get the value of property MotionAcceleration + return qvariant_cast< double >(parent()->property("MotionAcceleration")); +} + +void MouseAdaptor::setMotionAcceleration(double value) +{ + // set the value of property MotionAcceleration + parent()->setProperty("MotionAcceleration", QVariant::fromValue(value)); +} + +double MouseAdaptor::motionScaling() const +{ + // get the value of property MotionScaling + return qvariant_cast< double >(parent()->property("MotionScaling")); +} + +void MouseAdaptor::setMotionScaling(double value) +{ + // set the value of property MotionScaling + parent()->setProperty("MotionScaling", QVariant::fromValue(value)); +} + +double MouseAdaptor::motionThreshold() const +{ + // get the value of property MotionThreshold + return qvariant_cast< double >(parent()->property("MotionThreshold")); +} + +void MouseAdaptor::setMotionThreshold(double value) +{ + // set the value of property MotionThreshold + parent()->setProperty("MotionThreshold", QVariant::fromValue(value)); +} + +bool MouseAdaptor::naturalScroll() const +{ + // get the value of property NaturalScroll + return qvariant_cast< bool >(parent()->property("NaturalScroll")); +} + +void MouseAdaptor::setNaturalScroll(bool value) +{ + // set the value of property NaturalScroll + parent()->setProperty("NaturalScroll", QVariant::fromValue(value)); +} + +void MouseAdaptor::Reset() +{ + // handle method call com.deepin.daemon.InputDevice.Mouse.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.h new file mode 100644 index 0000000..ce535d2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor.h @@ -0,0 +1,107 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.Mouse.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.MouseAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Mouse.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_INPUTDEVICE_MOUSEADAPTOR_H +#define COM_DEEPIN_DAEMON_INPUTDEVICE_MOUSEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Mouse.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.InputDevice.Mouse + */ +class MouseAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.InputDevice.Mouse") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MouseAdaptor(QObject *parent); + virtual ~MouseAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AdaptiveAccelProfile READ adaptiveAccelProfile WRITE setAdaptiveAccelProfile) + bool adaptiveAccelProfile() const; + void setAdaptiveAccelProfile(bool value); + + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(bool DisableTpad READ disableTpad WRITE setDisableTpad) + bool disableTpad() const; + void setDisableTpad(bool value); + + Q_PROPERTY(int DoubleClick READ doubleClick WRITE setDoubleClick) + int doubleClick() const; + void setDoubleClick(int value); + + Q_PROPERTY(int DragThreshold READ dragThreshold WRITE setDragThreshold) + int dragThreshold() const; + void setDragThreshold(int value); + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(bool MiddleButtonEmulation READ middleButtonEmulation WRITE setMiddleButtonEmulation) + bool middleButtonEmulation() const; + void setMiddleButtonEmulation(bool value); + + Q_PROPERTY(double MotionAcceleration READ motionAcceleration WRITE setMotionAcceleration) + double motionAcceleration() const; + void setMotionAcceleration(double value); + + Q_PROPERTY(double MotionScaling READ motionScaling WRITE setMotionScaling) + double motionScaling() const; + void setMotionScaling(double value); + + Q_PROPERTY(double MotionThreshold READ motionThreshold WRITE setMotionThreshold) + double motionThreshold() const; + void setMotionThreshold(double value); + + Q_PROPERTY(bool NaturalScroll READ naturalScroll WRITE setNaturalScroll) + bool naturalScroll() const; + void setNaturalScroll(bool value); + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.cpp new file mode 100644 index 0000000..d8eb330 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.cpp @@ -0,0 +1,257 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.TouchPad.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPad.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TouchPadAdaptor + */ + +TouchPadAdaptor::TouchPadAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TouchPadAdaptor::~TouchPadAdaptor() +{ + // destructor +} + +int TouchPadAdaptor::deltaScroll() const +{ + // get the value of property DeltaScroll + return qvariant_cast< int >(parent()->property("DeltaScroll")); +} + +void TouchPadAdaptor::setDeltaScroll(int value) +{ + // set the value of property DeltaScroll + parent()->setProperty("DeltaScroll", QVariant::fromValue(value)); +} + +QString TouchPadAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +bool TouchPadAdaptor::disableIfTyping() const +{ + // get the value of property DisableIfTyping + return qvariant_cast< bool >(parent()->property("DisableIfTyping")); +} + +void TouchPadAdaptor::setDisableIfTyping(bool value) +{ + // set the value of property DisableIfTyping + parent()->setProperty("DisableIfTyping", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::doubleClick() const +{ + // get the value of property DoubleClick + return qvariant_cast< int >(parent()->property("DoubleClick")); +} + +void TouchPadAdaptor::setDoubleClick(int value) +{ + // set the value of property DoubleClick + parent()->setProperty("DoubleClick", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::dragThreshold() const +{ + // get the value of property DragThreshold + return qvariant_cast< int >(parent()->property("DragThreshold")); +} + +void TouchPadAdaptor::setDragThreshold(int value) +{ + // set the value of property DragThreshold + parent()->setProperty("DragThreshold", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::edgeScroll() const +{ + // get the value of property EdgeScroll + return qvariant_cast< bool >(parent()->property("EdgeScroll")); +} + +void TouchPadAdaptor::setEdgeScroll(bool value) +{ + // set the value of property EdgeScroll + parent()->setProperty("EdgeScroll", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +bool TouchPadAdaptor::horizScroll() const +{ + // get the value of property HorizScroll + return qvariant_cast< bool >(parent()->property("HorizScroll")); +} + +void TouchPadAdaptor::setHorizScroll(bool value) +{ + // set the value of property HorizScroll + parent()->setProperty("HorizScroll", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void TouchPadAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +double TouchPadAdaptor::motionAcceleration() const +{ + // get the value of property MotionAcceleration + return qvariant_cast< double >(parent()->property("MotionAcceleration")); +} + +void TouchPadAdaptor::setMotionAcceleration(double value) +{ + // set the value of property MotionAcceleration + parent()->setProperty("MotionAcceleration", QVariant::fromValue(value)); +} + +double TouchPadAdaptor::motionScaling() const +{ + // get the value of property MotionScaling + return qvariant_cast< double >(parent()->property("MotionScaling")); +} + +void TouchPadAdaptor::setMotionScaling(double value) +{ + // set the value of property MotionScaling + parent()->setProperty("MotionScaling", QVariant::fromValue(value)); +} + +double TouchPadAdaptor::motionThreshold() const +{ + // get the value of property MotionThreshold + return qvariant_cast< double >(parent()->property("MotionThreshold")); +} + +void TouchPadAdaptor::setMotionThreshold(double value) +{ + // set the value of property MotionThreshold + parent()->setProperty("MotionThreshold", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::naturalScroll() const +{ + // get the value of property NaturalScroll + return qvariant_cast< bool >(parent()->property("NaturalScroll")); +} + +void TouchPadAdaptor::setNaturalScroll(bool value) +{ + // set the value of property NaturalScroll + parent()->setProperty("NaturalScroll", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::palmDetect() const +{ + // get the value of property PalmDetect + return qvariant_cast< bool >(parent()->property("PalmDetect")); +} + +void TouchPadAdaptor::setPalmDetect(bool value) +{ + // set the value of property PalmDetect + parent()->setProperty("PalmDetect", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::palmMinWidth() const +{ + // get the value of property PalmMinWidth + return qvariant_cast< int >(parent()->property("PalmMinWidth")); +} + +void TouchPadAdaptor::setPalmMinWidth(int value) +{ + // set the value of property PalmMinWidth + parent()->setProperty("PalmMinWidth", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::palmMinZ() const +{ + // get the value of property PalmMinZ + return qvariant_cast< int >(parent()->property("PalmMinZ")); +} + +void TouchPadAdaptor::setPalmMinZ(int value) +{ + // set the value of property PalmMinZ + parent()->setProperty("PalmMinZ", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::tPadEnable() const +{ + // get the value of property TPadEnable + return qvariant_cast< bool >(parent()->property("TPadEnable")); +} + +void TouchPadAdaptor::setTPadEnable(bool value) +{ + // set the value of property TPadEnable + parent()->setProperty("TPadEnable", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::tapClick() const +{ + // get the value of property TapClick + return qvariant_cast< bool >(parent()->property("TapClick")); +} + +void TouchPadAdaptor::setTapClick(bool value) +{ + // set the value of property TapClick + parent()->setProperty("TapClick", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::vertScroll() const +{ + // get the value of property VertScroll + return qvariant_cast< bool >(parent()->property("VertScroll")); +} + +void TouchPadAdaptor::setVertScroll(bool value) +{ + // set the value of property VertScroll + parent()->setProperty("VertScroll", QVariant::fromValue(value)); +} + +void TouchPadAdaptor::Reset() +{ + // handle method call com.deepin.daemon.InputDevice.TouchPad.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.h new file mode 100644 index 0000000..1627a54 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor.h @@ -0,0 +1,142 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.TouchPad.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPadAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPad.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_INPUTDEVICE_TOUCHPADADAPTOR_H +#define COM_DEEPIN_DAEMON_INPUTDEVICE_TOUCHPADADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TouchPad.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.InputDevice.TouchPad + */ +class TouchPadAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.InputDevice.TouchPad") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TouchPadAdaptor(QObject *parent); + virtual ~TouchPadAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DeltaScroll READ deltaScroll WRITE setDeltaScroll) + int deltaScroll() const; + void setDeltaScroll(int value); + + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(bool DisableIfTyping READ disableIfTyping WRITE setDisableIfTyping) + bool disableIfTyping() const; + void setDisableIfTyping(bool value); + + Q_PROPERTY(int DoubleClick READ doubleClick WRITE setDoubleClick) + int doubleClick() const; + void setDoubleClick(int value); + + Q_PROPERTY(int DragThreshold READ dragThreshold WRITE setDragThreshold) + int dragThreshold() const; + void setDragThreshold(int value); + + Q_PROPERTY(bool EdgeScroll READ edgeScroll WRITE setEdgeScroll) + bool edgeScroll() const; + void setEdgeScroll(bool value); + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(bool HorizScroll READ horizScroll WRITE setHorizScroll) + bool horizScroll() const; + void setHorizScroll(bool value); + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(double MotionAcceleration READ motionAcceleration WRITE setMotionAcceleration) + double motionAcceleration() const; + void setMotionAcceleration(double value); + + Q_PROPERTY(double MotionScaling READ motionScaling WRITE setMotionScaling) + double motionScaling() const; + void setMotionScaling(double value); + + Q_PROPERTY(double MotionThreshold READ motionThreshold WRITE setMotionThreshold) + double motionThreshold() const; + void setMotionThreshold(double value); + + Q_PROPERTY(bool NaturalScroll READ naturalScroll WRITE setNaturalScroll) + bool naturalScroll() const; + void setNaturalScroll(bool value); + + Q_PROPERTY(bool PalmDetect READ palmDetect WRITE setPalmDetect) + bool palmDetect() const; + void setPalmDetect(bool value); + + Q_PROPERTY(int PalmMinWidth READ palmMinWidth WRITE setPalmMinWidth) + int palmMinWidth() const; + void setPalmMinWidth(int value); + + Q_PROPERTY(int PalmMinZ READ palmMinZ WRITE setPalmMinZ) + int palmMinZ() const; + void setPalmMinZ(int value); + + Q_PROPERTY(bool TPadEnable READ tPadEnable WRITE setTPadEnable) + bool tPadEnable() const; + void setTPadEnable(bool value); + + Q_PROPERTY(bool TapClick READ tapClick WRITE setTapClick) + bool tapClick() const; + void setTapClick(bool value); + + Q_PROPERTY(bool VertScroll READ vertScroll WRITE setVertScroll) + bool vertScroll() const; + void setVertScroll(bool value); + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.cpp new file mode 100644 index 0000000..ae320f1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.cpp @@ -0,0 +1,173 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.TrackPoint.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPoint.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TrackPointAdaptor + */ + +TrackPointAdaptor::TrackPointAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TrackPointAdaptor::~TrackPointAdaptor() +{ + // destructor +} + +QString TrackPointAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +bool TrackPointAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +bool TrackPointAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void TrackPointAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +bool TrackPointAdaptor::middleButtonEnabled() const +{ + // get the value of property MiddleButtonEnabled + return qvariant_cast< bool >(parent()->property("MiddleButtonEnabled")); +} + +void TrackPointAdaptor::setMiddleButtonEnabled(bool value) +{ + // set the value of property MiddleButtonEnabled + parent()->setProperty("MiddleButtonEnabled", QVariant::fromValue(value)); +} + +int TrackPointAdaptor::middleButtonTimeout() const +{ + // get the value of property MiddleButtonTimeout + return qvariant_cast< int >(parent()->property("MiddleButtonTimeout")); +} + +void TrackPointAdaptor::setMiddleButtonTimeout(int value) +{ + // set the value of property MiddleButtonTimeout + parent()->setProperty("MiddleButtonTimeout", QVariant::fromValue(value)); +} + +double TrackPointAdaptor::motionAcceleration() const +{ + // get the value of property MotionAcceleration + return qvariant_cast< double >(parent()->property("MotionAcceleration")); +} + +void TrackPointAdaptor::setMotionAcceleration(double value) +{ + // set the value of property MotionAcceleration + parent()->setProperty("MotionAcceleration", QVariant::fromValue(value)); +} + +double TrackPointAdaptor::motionScaling() const +{ + // get the value of property MotionScaling + return qvariant_cast< double >(parent()->property("MotionScaling")); +} + +void TrackPointAdaptor::setMotionScaling(double value) +{ + // set the value of property MotionScaling + parent()->setProperty("MotionScaling", QVariant::fromValue(value)); +} + +double TrackPointAdaptor::motionThreshold() const +{ + // get the value of property MotionThreshold + return qvariant_cast< double >(parent()->property("MotionThreshold")); +} + +void TrackPointAdaptor::setMotionThreshold(double value) +{ + // set the value of property MotionThreshold + parent()->setProperty("MotionThreshold", QVariant::fromValue(value)); +} + +bool TrackPointAdaptor::wheelEmulation() const +{ + // get the value of property WheelEmulation + return qvariant_cast< bool >(parent()->property("WheelEmulation")); +} + +void TrackPointAdaptor::setWheelEmulation(bool value) +{ + // set the value of property WheelEmulation + parent()->setProperty("WheelEmulation", QVariant::fromValue(value)); +} + +int TrackPointAdaptor::wheelEmulationButton() const +{ + // get the value of property WheelEmulationButton + return qvariant_cast< int >(parent()->property("WheelEmulationButton")); +} + +void TrackPointAdaptor::setWheelEmulationButton(int value) +{ + // set the value of property WheelEmulationButton + parent()->setProperty("WheelEmulationButton", QVariant::fromValue(value)); +} + +int TrackPointAdaptor::wheelEmulationTimeout() const +{ + // get the value of property WheelEmulationTimeout + return qvariant_cast< int >(parent()->property("WheelEmulationTimeout")); +} + +void TrackPointAdaptor::setWheelEmulationTimeout(int value) +{ + // set the value of property WheelEmulationTimeout + parent()->setProperty("WheelEmulationTimeout", QVariant::fromValue(value)); +} + +bool TrackPointAdaptor::wheelHorizScroll() const +{ + // get the value of property WheelHorizScroll + return qvariant_cast< bool >(parent()->property("WheelHorizScroll")); +} + +void TrackPointAdaptor::setWheelHorizScroll(bool value) +{ + // set the value of property WheelHorizScroll + parent()->setProperty("WheelHorizScroll", QVariant::fromValue(value)); +} + +void TrackPointAdaptor::Reset() +{ + // handle method call com.deepin.daemon.InputDevice.TrackPoint.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.h new file mode 100644 index 0000000..ef13f40 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor.h @@ -0,0 +1,107 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.TrackPoint.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPointAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPoint.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_INPUTDEVICE_TRACKPOINTADAPTOR_H +#define COM_DEEPIN_DAEMON_INPUTDEVICE_TRACKPOINTADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.TrackPoint.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.InputDevice.TrackPoint + */ +class TrackPointAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.InputDevice.TrackPoint") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TrackPointAdaptor(QObject *parent); + virtual ~TrackPointAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(bool MiddleButtonEnabled READ middleButtonEnabled WRITE setMiddleButtonEnabled) + bool middleButtonEnabled() const; + void setMiddleButtonEnabled(bool value); + + Q_PROPERTY(int MiddleButtonTimeout READ middleButtonTimeout WRITE setMiddleButtonTimeout) + int middleButtonTimeout() const; + void setMiddleButtonTimeout(int value); + + Q_PROPERTY(double MotionAcceleration READ motionAcceleration WRITE setMotionAcceleration) + double motionAcceleration() const; + void setMotionAcceleration(double value); + + Q_PROPERTY(double MotionScaling READ motionScaling WRITE setMotionScaling) + double motionScaling() const; + void setMotionScaling(double value); + + Q_PROPERTY(double MotionThreshold READ motionThreshold WRITE setMotionThreshold) + double motionThreshold() const; + void setMotionThreshold(double value); + + Q_PROPERTY(bool WheelEmulation READ wheelEmulation WRITE setWheelEmulation) + bool wheelEmulation() const; + void setWheelEmulation(bool value); + + Q_PROPERTY(int WheelEmulationButton READ wheelEmulationButton WRITE setWheelEmulationButton) + int wheelEmulationButton() const; + void setWheelEmulationButton(int value); + + Q_PROPERTY(int WheelEmulationTimeout READ wheelEmulationTimeout WRITE setWheelEmulationTimeout) + int wheelEmulationTimeout() const; + void setWheelEmulationTimeout(int value); + + Q_PROPERTY(bool WheelHorizScroll READ wheelHorizScroll WRITE setWheelHorizScroll) + bool wheelHorizScroll() const; + void setWheelHorizScroll(bool value); + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.cpp new file mode 100644 index 0000000..4d0a4ab --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.cpp @@ -0,0 +1,203 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.Wacom.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Wacom.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WacomAdaptor + */ + +WacomAdaptor::WacomAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WacomAdaptor::~WacomAdaptor() +{ + // destructor +} + +WacomDeviceList WacomAdaptor::actionInfos() const +{ + // get the value of property ActionInfos + return qvariant_cast< WacomDeviceList >(parent()->property("ActionInfos")); +} + +bool WacomAdaptor::cursorMode() const +{ + // get the value of property CursorMode + return qvariant_cast< bool >(parent()->property("CursorMode")); +} + +void WacomAdaptor::setCursorMode(bool value) +{ + // set the value of property CursorMode + parent()->setProperty("CursorMode", QVariant::fromValue(value)); +} + +QString WacomAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +uint WacomAdaptor::eraserPressureSensitive() const +{ + // get the value of property EraserPressureSensitive + return qvariant_cast< uint >(parent()->property("EraserPressureSensitive")); +} + +void WacomAdaptor::setEraserPressureSensitive(uint value) +{ + // set the value of property EraserPressureSensitive + parent()->setProperty("EraserPressureSensitive", QVariant::fromValue(value)); +} + +uint WacomAdaptor::eraserRawSample() const +{ + // get the value of property EraserRawSample + return qvariant_cast< uint >(parent()->property("EraserRawSample")); +} + +void WacomAdaptor::setEraserRawSample(uint value) +{ + // set the value of property EraserRawSample + parent()->setProperty("EraserRawSample", QVariant::fromValue(value)); +} + +uint WacomAdaptor::eraserThreshold() const +{ + // get the value of property EraserThreshold + return qvariant_cast< uint >(parent()->property("EraserThreshold")); +} + +void WacomAdaptor::setEraserThreshold(uint value) +{ + // set the value of property EraserThreshold + parent()->setProperty("EraserThreshold", QVariant::fromValue(value)); +} + +bool WacomAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +QString WacomAdaptor::keyDownAction() const +{ + // get the value of property KeyDownAction + return qvariant_cast< QString >(parent()->property("KeyDownAction")); +} + +void WacomAdaptor::setKeyDownAction(const QString &value) +{ + // set the value of property KeyDownAction + parent()->setProperty("KeyDownAction", QVariant::fromValue(value)); +} + +QString WacomAdaptor::keyUpAction() const +{ + // get the value of property KeyUpAction + return qvariant_cast< QString >(parent()->property("KeyUpAction")); +} + +void WacomAdaptor::setKeyUpAction(const QString &value) +{ + // set the value of property KeyUpAction + parent()->setProperty("KeyUpAction", QVariant::fromValue(value)); +} + +bool WacomAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void WacomAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +QString WacomAdaptor::mapOutput() const +{ + // get the value of property MapOutput + return qvariant_cast< QString >(parent()->property("MapOutput")); +} + +void WacomAdaptor::setMapOutput(const QString &value) +{ + // set the value of property MapOutput + parent()->setProperty("MapOutput", QVariant::fromValue(value)); +} + +uint WacomAdaptor::stylusPressureSensitive() const +{ + // get the value of property StylusPressureSensitive + return qvariant_cast< uint >(parent()->property("StylusPressureSensitive")); +} + +void WacomAdaptor::setStylusPressureSensitive(uint value) +{ + // set the value of property StylusPressureSensitive + parent()->setProperty("StylusPressureSensitive", QVariant::fromValue(value)); +} + +uint WacomAdaptor::stylusRawSample() const +{ + // get the value of property StylusRawSample + return qvariant_cast< uint >(parent()->property("StylusRawSample")); +} + +void WacomAdaptor::setStylusRawSample(uint value) +{ + // set the value of property StylusRawSample + parent()->setProperty("StylusRawSample", QVariant::fromValue(value)); +} + +uint WacomAdaptor::stylusThreshold() const +{ + // get the value of property StylusThreshold + return qvariant_cast< uint >(parent()->property("StylusThreshold")); +} + +void WacomAdaptor::setStylusThreshold(uint value) +{ + // set the value of property StylusThreshold + parent()->setProperty("StylusThreshold", QVariant::fromValue(value)); +} + +uint WacomAdaptor::suppress() const +{ + // get the value of property Suppress + return qvariant_cast< uint >(parent()->property("Suppress")); +} + +void WacomAdaptor::setSuppress(uint value) +{ + // set the value of property Suppress + parent()->setProperty("Suppress", QVariant::fromValue(value)); +} + +void WacomAdaptor::Reset() +{ + // handle method call com.deepin.daemon.InputDevice.Wacom.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.h new file mode 100644 index 0000000..cf24c7f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor.h @@ -0,0 +1,123 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevice.Wacom.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.WacomAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Wacom.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_INPUTDEVICE_WACOMADAPTOR_H +#define COM_DEEPIN_DAEMON_INPUTDEVICE_WACOMADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevice.Wacom.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.InputDevice.Wacom + */ +class WacomAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.InputDevice.Wacom") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WacomAdaptor(QObject *parent); + virtual ~WacomAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(WacomDeviceList ActionInfos READ actionInfos) + WacomDeviceList actionInfos() const; + + Q_PROPERTY(bool CursorMode READ cursorMode WRITE setCursorMode) + bool cursorMode() const; + void setCursorMode(bool value); + + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(uint EraserPressureSensitive READ eraserPressureSensitive WRITE setEraserPressureSensitive) + uint eraserPressureSensitive() const; + void setEraserPressureSensitive(uint value); + + Q_PROPERTY(uint EraserRawSample READ eraserRawSample WRITE setEraserRawSample) + uint eraserRawSample() const; + void setEraserRawSample(uint value); + + Q_PROPERTY(uint EraserThreshold READ eraserThreshold WRITE setEraserThreshold) + uint eraserThreshold() const; + void setEraserThreshold(uint value); + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(QString KeyDownAction READ keyDownAction WRITE setKeyDownAction) + QString keyDownAction() const; + void setKeyDownAction(const QString &value); + + Q_PROPERTY(QString KeyUpAction READ keyUpAction WRITE setKeyUpAction) + QString keyUpAction() const; + void setKeyUpAction(const QString &value); + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(QString MapOutput READ mapOutput WRITE setMapOutput) + QString mapOutput() const; + void setMapOutput(const QString &value); + + Q_PROPERTY(uint StylusPressureSensitive READ stylusPressureSensitive WRITE setStylusPressureSensitive) + uint stylusPressureSensitive() const; + void setStylusPressureSensitive(uint value); + + Q_PROPERTY(uint StylusRawSample READ stylusRawSample WRITE setStylusRawSample) + uint stylusRawSample() const; + void setStylusRawSample(uint value); + + Q_PROPERTY(uint StylusThreshold READ stylusThreshold WRITE setStylusThreshold) + uint stylusThreshold() const; + void setStylusThreshold(uint value); + + Q_PROPERTY(uint Suppress READ suppress WRITE setSuppress) + uint suppress() const; + void setSuppress(uint value); + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.cpp new file mode 100644 index 0000000..f3923b7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevices.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevices.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class InputDevicesAdaptor + */ + +InputDevicesAdaptor::InputDevicesAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +InputDevicesAdaptor::~InputDevicesAdaptor() +{ + // destructor +} + +InputDeviceList InputDevicesAdaptor::infos() const +{ + // get the value of property Infos + return qvariant_cast< InputDeviceList >(parent()->property("Infos")); +} + +uint InputDevicesAdaptor::wheelSpeed() const +{ + // get the value of property WheelSpeed + return qvariant_cast< uint >(parent()->property("WheelSpeed")); +} + +void InputDevicesAdaptor::setWheelSpeed(uint value) +{ + // set the value of property WheelSpeed + parent()->setProperty("WheelSpeed", QVariant::fromValue(value)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.h new file mode 100644 index 0000000..c27d0fe --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.h @@ -0,0 +1,58 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.InputDevices.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevices.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_INPUTDEVICESADAPTOR_H +#define COM_DEEPIN_DAEMON_INPUTDEVICESADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevices.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.InputDevices + */ +class InputDevicesAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.InputDevices") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + InputDevicesAdaptor(QObject *parent); + virtual ~InputDevicesAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(InputDeviceList Infos READ infos) + InputDeviceList infos() const; + + Q_PROPERTY(uint WheelSpeed READ wheelSpeed WRITE setWheelSpeed) + uint wheelSpeed() const; + void setWheelSpeed(uint value); + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.cpp new file mode 100644 index 0000000..8c514cf --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.cpp @@ -0,0 +1,199 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Keybinding.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Keybinding.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class KeybindingAdaptor + */ + +KeybindingAdaptor::KeybindingAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +KeybindingAdaptor::~KeybindingAdaptor() +{ + // destructor +} + +int KeybindingAdaptor::numLockState() const +{ + // get the value of property NumLockState + return qvariant_cast< int >(parent()->property("NumLockState")); +} + +uint KeybindingAdaptor::shortcutSwitchLayout() const +{ + // get the value of property ShortcutSwitchLayout + return qvariant_cast< uint >(parent()->property("ShortcutSwitchLayout")); +} + +void KeybindingAdaptor::setShortcutSwitchLayout(uint value) +{ + // set the value of property ShortcutSwitchLayout + parent()->setProperty("ShortcutSwitchLayout", QVariant::fromValue(value)); +} + +QString KeybindingAdaptor::Add(const QString &in0, const QString &in1, const QString &in2, bool &out1) +{ + // handle method call com.deepin.daemon.Keybinding.Add + //return static_cast(parent())->Add(in0, in1, in2, out1); +} + +void KeybindingAdaptor::AddCustomShortcut(const QString &in0, const QString &in1, const QString &in2) +{ + // handle method call com.deepin.daemon.Keybinding.AddCustomShortcut + QMetaObject::invokeMethod(parent(), "AddCustomShortcut", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2)); +} + +void KeybindingAdaptor::AddShortcutKeystroke(const QString &in0, int in1, const QString &in2) +{ + // handle method call com.deepin.daemon.Keybinding.AddShortcutKeystroke + QMetaObject::invokeMethod(parent(), "AddShortcutKeystroke", Q_ARG(QString, in0), Q_ARG(int, in1), Q_ARG(QString, in2)); +} + +bool KeybindingAdaptor::CheckAvaliable(const QString &in0, QString &out1) +{ + // handle method call com.deepin.daemon.Keybinding.CheckAvaliable + //return static_cast(parent())->CheckAvaliable(in0, out1); +} + +void KeybindingAdaptor::ClearShortcutKeystrokes(const QString &in0, int in1) +{ + // handle method call com.deepin.daemon.Keybinding.ClearShortcutKeystrokes + QMetaObject::invokeMethod(parent(), "ClearShortcutKeystrokes", Q_ARG(QString, in0), Q_ARG(int, in1)); +} + +void KeybindingAdaptor::Delete(const QString &in0, int in1) +{ + // handle method call com.deepin.daemon.Keybinding.Delete + QMetaObject::invokeMethod(parent(), "Delete", Q_ARG(QString, in0), Q_ARG(int, in1)); +} + +void KeybindingAdaptor::DeleteCustomShortcut(const QString &in0) +{ + // handle method call com.deepin.daemon.Keybinding.DeleteCustomShortcut + QMetaObject::invokeMethod(parent(), "DeleteCustomShortcut", Q_ARG(QString, in0)); +} + +void KeybindingAdaptor::DeleteShortcutKeystroke(const QString &in0, int in1, const QString &in2) +{ + // handle method call com.deepin.daemon.Keybinding.DeleteShortcutKeystroke + QMetaObject::invokeMethod(parent(), "DeleteShortcutKeystroke", Q_ARG(QString, in0), Q_ARG(int, in1), Q_ARG(QString, in2)); +} + +void KeybindingAdaptor::Disable(const QString &in0, int in1) +{ + // handle method call com.deepin.daemon.Keybinding.Disable + QMetaObject::invokeMethod(parent(), "Disable", Q_ARG(QString, in0), Q_ARG(int, in1)); +} + +QString KeybindingAdaptor::GetShortcut(const QString &in0, int in1) +{ + // handle method call com.deepin.daemon.Keybinding.GetShortcut + QString out0; + QMetaObject::invokeMethod(parent(), "GetShortcut", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(int, in1)); + return out0; +} + +void KeybindingAdaptor::GrabScreen() +{ + // handle method call com.deepin.daemon.Keybinding.GrabScreen + QMetaObject::invokeMethod(parent(), "GrabScreen"); +} + +QString KeybindingAdaptor::List() +{ + // handle method call com.deepin.daemon.Keybinding.List + QString out0; + QMetaObject::invokeMethod(parent(), "List", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString KeybindingAdaptor::ListAllShortcuts() +{ + // handle method call com.deepin.daemon.Keybinding.ListAllShortcuts + QString out0; + QMetaObject::invokeMethod(parent(), "ListAllShortcuts", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString KeybindingAdaptor::ListShortcutsByType(int in0) +{ + // handle method call com.deepin.daemon.Keybinding.ListShortcutsByType + QString out0; + QMetaObject::invokeMethod(parent(), "ListShortcutsByType", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0)); + return out0; +} + +QString KeybindingAdaptor::LookupConflictingShortcut(const QString &in0) +{ + // handle method call com.deepin.daemon.Keybinding.LookupConflictingShortcut + QString out0; + QMetaObject::invokeMethod(parent(), "LookupConflictingShortcut", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +bool KeybindingAdaptor::ModifiedAccel(const QString &in0, int in1, const QString &in2, bool in3, QString &out1) +{ + // handle method call com.deepin.daemon.Keybinding.ModifiedAccel + //return static_cast(parent())->ModifiedAccel(in0, in1, in2, in3, out1); +} + +void KeybindingAdaptor::ModifyCustomShortcut(const QString &in0, const QString &in1, const QString &in2, const QString &in3) +{ + // handle method call com.deepin.daemon.Keybinding.ModifyCustomShortcut + QMetaObject::invokeMethod(parent(), "ModifyCustomShortcut", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2), Q_ARG(QString, in3)); +} + +QString KeybindingAdaptor::Query(const QString &in0, int in1) +{ + // handle method call com.deepin.daemon.Keybinding.Query + QString out0; + QMetaObject::invokeMethod(parent(), "Query", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(int, in1)); + return out0; +} + +void KeybindingAdaptor::Reset() +{ + // handle method call com.deepin.daemon.Keybinding.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +QString KeybindingAdaptor::SearchShortcuts(const QString &in0) +{ + // handle method call com.deepin.daemon.Keybinding.SearchShortcuts + QString out0; + QMetaObject::invokeMethod(parent(), "SearchShortcuts", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +void KeybindingAdaptor::SelectKeystroke() +{ + // handle method call com.deepin.daemon.Keybinding.SelectKeystroke + QMetaObject::invokeMethod(parent(), "SelectKeystroke"); +} + +void KeybindingAdaptor::SetNumLockState(int in0) +{ + // handle method call com.deepin.daemon.Keybinding.SetNumLockState + QMetaObject::invokeMethod(parent(), "SetNumLockState", Q_ARG(int, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.h new file mode 100644 index 0000000..02edb8d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor.h @@ -0,0 +1,188 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Keybinding.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.KeybindingAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Keybinding.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_KEYBINDINGADAPTOR_H +#define COM_DEEPIN_DAEMON_KEYBINDINGADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Keybinding.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Keybinding + */ +class KeybindingAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Keybinding") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + KeybindingAdaptor(QObject *parent); + virtual ~KeybindingAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int NumLockState READ numLockState) + int numLockState() const; + + Q_PROPERTY(uint ShortcutSwitchLayout READ shortcutSwitchLayout WRITE setShortcutSwitchLayout) + uint shortcutSwitchLayout() const; + void setShortcutSwitchLayout(uint value); + +public Q_SLOTS: // METHODS + QString Add(const QString &in0, const QString &in1, const QString &in2, bool &out1); + void AddCustomShortcut(const QString &in0, const QString &in1, const QString &in2); + void AddShortcutKeystroke(const QString &in0, int in1, const QString &in2); + bool CheckAvaliable(const QString &in0, QString &out1); + void ClearShortcutKeystrokes(const QString &in0, int in1); + void Delete(const QString &in0, int in1); + void DeleteCustomShortcut(const QString &in0); + void DeleteShortcutKeystroke(const QString &in0, int in1, const QString &in2); + void Disable(const QString &in0, int in1); + QString GetShortcut(const QString &in0, int in1); + void GrabScreen(); + QString List(); + QString ListAllShortcuts(); + QString ListShortcutsByType(int in0); + QString LookupConflictingShortcut(const QString &in0); + bool ModifiedAccel(const QString &in0, int in1, const QString &in2, bool in3, QString &out1); + void ModifyCustomShortcut(const QString &in0, const QString &in1, const QString &in2, const QString &in3); + QString Query(const QString &in0, int in1); + void Reset(); + QString SearchShortcuts(const QString &in0); + void SelectKeystroke(); + void SetNumLockState(int in0); +Q_SIGNALS: // SIGNALS + void Added(const QString &in0, int in1); + void Changed(const QString &in0, int in1); + void Deleted(const QString &in0, int in1); + void KeyEvent(bool in0, const QString &in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.cpp new file mode 100644 index 0000000..6428e3c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.cpp @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.LangSelector.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelector.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LangSelectorAdaptor + */ + +LangSelectorAdaptor::LangSelectorAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LangSelectorAdaptor::~LangSelectorAdaptor() +{ + // destructor +} + +QString LangSelectorAdaptor::currentLocale() const +{ + // get the value of property CurrentLocale + return qvariant_cast< QString >(parent()->property("CurrentLocale")); +} + +int LangSelectorAdaptor::localeState() const +{ + // get the value of property LocaleState + return qvariant_cast< int >(parent()->property("LocaleState")); +} + +QStringList LangSelectorAdaptor::locales() const +{ + // get the value of property Locales + return qvariant_cast< QStringList >(parent()->property("Locales")); +} + +void LangSelectorAdaptor::AddLocale(const QString &in0) +{ + // handle method call com.deepin.daemon.LangSelector.AddLocale + QMetaObject::invokeMethod(parent(), "AddLocale", Q_ARG(QString, in0)); +} + +void LangSelectorAdaptor::DeleteLocale(const QString &in0) +{ + // handle method call com.deepin.daemon.LangSelector.DeleteLocale + QMetaObject::invokeMethod(parent(), "DeleteLocale", Q_ARG(QString, in0)); +} + +QStringList LangSelectorAdaptor::GetLanguageSupportPackages(const QString &in0) +{ + // handle method call com.deepin.daemon.LangSelector.GetLanguageSupportPackages + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetLanguageSupportPackages", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, in0)); + return out0; +} + +QString LangSelectorAdaptor::GetLocaleDescription(const QString &in0) +{ + // handle method call com.deepin.daemon.LangSelector.GetLocaleDescription + QString out0; + QMetaObject::invokeMethod(parent(), "GetLocaleDescription", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +LocaleList LangSelectorAdaptor::GetLocaleList() +{ + // handle method call com.deepin.daemon.LangSelector.GetLocaleList + LocaleList out0; + QMetaObject::invokeMethod(parent(), "GetLocaleList", Q_RETURN_ARG(LocaleList, out0)); + return out0; +} + +void LangSelectorAdaptor::Reset() +{ + // handle method call com.deepin.daemon.LangSelector.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void LangSelectorAdaptor::SetLocale(const QString &in0) +{ + // handle method call com.deepin.daemon.LangSelector.SetLocale + QMetaObject::invokeMethod(parent(), "SetLocale", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.h new file mode 100644 index 0000000..7490013 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor.h @@ -0,0 +1,92 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.LangSelector.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelectorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelector.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_LANGSELECTORADAPTOR_H +#define COM_DEEPIN_DAEMON_LANGSELECTORADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LangSelector.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.LangSelector + */ +class LangSelectorAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.LangSelector") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + LangSelectorAdaptor(QObject *parent); + virtual ~LangSelectorAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString CurrentLocale READ currentLocale) + QString currentLocale() const; + + Q_PROPERTY(int LocaleState READ localeState) + int localeState() const; + + Q_PROPERTY(QStringList Locales READ locales) + QStringList locales() const; + +public Q_SLOTS: // METHODS + void AddLocale(const QString &in0); + void DeleteLocale(const QString &in0); + QStringList GetLanguageSupportPackages(const QString &in0); + QString GetLocaleDescription(const QString &in0); + LocaleList GetLocaleList(); + void Reset(); + void SetLocale(const QString &in0); +Q_SIGNALS: // SIGNALS + void Changed(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.cpp new file mode 100644 index 0000000..6a42be7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.cpp @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Mime.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Mime.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MimeAdaptor + */ + +MimeAdaptor::MimeAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MimeAdaptor::~MimeAdaptor() +{ + // destructor +} + +void MimeAdaptor::AddUserApp(const QStringList &mimeTypes, const QString &desktopId) +{ + // handle method call com.deepin.daemon.Mime.AddUserApp + QMetaObject::invokeMethod(parent(), "AddUserApp", Q_ARG(QStringList, mimeTypes), Q_ARG(QString, desktopId)); +} + +void MimeAdaptor::DeleteApp(const QStringList &mimeTypes, const QString &desktopId) +{ + // handle method call com.deepin.daemon.Mime.DeleteApp + QMetaObject::invokeMethod(parent(), "DeleteApp", Q_ARG(QStringList, mimeTypes), Q_ARG(QString, desktopId)); +} + +void MimeAdaptor::DeleteUserApp(const QString &desktopId) +{ + // handle method call com.deepin.daemon.Mime.DeleteUserApp + QMetaObject::invokeMethod(parent(), "DeleteUserApp", Q_ARG(QString, desktopId)); +} + +QString MimeAdaptor::GetDefaultApp(const QString &mimeType) +{ + // handle method call com.deepin.daemon.Mime.GetDefaultApp + QString defaultApp; + QMetaObject::invokeMethod(parent(), "GetDefaultApp", Q_RETURN_ARG(QString, defaultApp), Q_ARG(QString, mimeType)); + return defaultApp; +} + +QString MimeAdaptor::ListApps(const QString &mimeType) +{ + // handle method call com.deepin.daemon.Mime.ListApps + QString apps; + QMetaObject::invokeMethod(parent(), "ListApps", Q_RETURN_ARG(QString, apps), Q_ARG(QString, mimeType)); + return apps; +} + +QString MimeAdaptor::ListUserApps(const QString &mimeType) +{ + // handle method call com.deepin.daemon.Mime.ListUserApps + QString userApps; + QMetaObject::invokeMethod(parent(), "ListUserApps", Q_RETURN_ARG(QString, userApps), Q_ARG(QString, mimeType)); + return userApps; +} + +void MimeAdaptor::SetDefaultApp(const QStringList &mimeTypes, const QString &desktopId) +{ + // handle method call com.deepin.daemon.Mime.SetDefaultApp + QMetaObject::invokeMethod(parent(), "SetDefaultApp", Q_ARG(QStringList, mimeTypes), Q_ARG(QString, desktopId)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.h new file mode 100644 index 0000000..bce284a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor.h @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Mime.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.MimeAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Mime.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_MIMEADAPTOR_H +#define COM_DEEPIN_DAEMON_MIMEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Mime.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Mime + */ +class MimeAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Mime") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MimeAdaptor(QObject *parent); + virtual ~MimeAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void AddUserApp(const QStringList &mimeTypes, const QString &desktopId); + void DeleteApp(const QStringList &mimeTypes, const QString &desktopId); + void DeleteUserApp(const QString &desktopId); + QString GetDefaultApp(const QString &mimeType); + QString ListApps(const QString &mimeType); + QString ListUserApps(const QString &mimeType); + void SetDefaultApp(const QStringList &mimeTypes, const QString &desktopId); +Q_SIGNALS: // SIGNALS + void Change(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.cpp new file mode 100644 index 0000000..5913388 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.cpp @@ -0,0 +1,325 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Network.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Network.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class NetworkAdaptor + */ + +NetworkAdaptor::NetworkAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +NetworkAdaptor::~NetworkAdaptor() +{ + // destructor +} + +QString NetworkAdaptor::activeConnections() const +{ + // get the value of property ActiveConnections + return qvariant_cast< QString >(parent()->property("ActiveConnections")); +} + +QString NetworkAdaptor::connections() const +{ + // get the value of property Connections + return qvariant_cast< QString >(parent()->property("Connections")); +} + +uint NetworkAdaptor::connectivity() const +{ + // get the value of property Connectivity + return qvariant_cast< uint >(parent()->property("Connectivity")); +} + +QString NetworkAdaptor::devices() const +{ + // get the value of property Devices + return qvariant_cast< QString >(parent()->property("Devices")); +} + +bool NetworkAdaptor::networkingEnabled() const +{ + // get the value of property NetworkingEnabled + return qvariant_cast< bool >(parent()->property("NetworkingEnabled")); +} + +void NetworkAdaptor::setNetworkingEnabled(bool value) +{ + // set the value of property NetworkingEnabled + parent()->setProperty("NetworkingEnabled", QVariant::fromValue(value)); +} + +uint NetworkAdaptor::state() const +{ + // get the value of property State + return qvariant_cast< uint >(parent()->property("State")); +} + +bool NetworkAdaptor::vpnEnabled() const +{ + // get the value of property VpnEnabled + return qvariant_cast< bool >(parent()->property("VpnEnabled")); +} + +void NetworkAdaptor::setVpnEnabled(bool value) +{ + // set the value of property VpnEnabled + parent()->setProperty("VpnEnabled", QVariant::fromValue(value)); +} + +QString NetworkAdaptor::wirelessAccessPoints() const +{ + // get the value of property WirelessAccessPoints + return qvariant_cast< QString >(parent()->property("WirelessAccessPoints")); +} + +QDBusObjectPath NetworkAdaptor::ActivateAccessPoint(const QString &in0, const QDBusObjectPath &in1, const QDBusObjectPath &in2) +{ + // handle method call com.deepin.daemon.Network.ActivateAccessPoint + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "ActivateAccessPoint", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QDBusObjectPath, in1), Q_ARG(QDBusObjectPath, in2)); + return out0; +} + +QDBusObjectPath NetworkAdaptor::ActivateConnection(const QString &in0, const QDBusObjectPath &in1) +{ + // handle method call com.deepin.daemon.Network.ActivateConnection + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "ActivateConnection", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QDBusObjectPath, in1)); + return out0; +} + +void NetworkAdaptor::CancelSecret(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Network.CancelSecret + QMetaObject::invokeMethod(parent(), "CancelSecret", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +QDBusObjectPath NetworkAdaptor::CreateConnection(const QString &in0, const QDBusObjectPath &in1) +{ + // handle method call com.deepin.daemon.Network.CreateConnection + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "CreateConnection", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QDBusObjectPath, in1)); + return out0; +} + +QDBusObjectPath NetworkAdaptor::CreateConnectionForAccessPoint(const QDBusObjectPath &in0, const QDBusObjectPath &in1) +{ + // handle method call com.deepin.daemon.Network.CreateConnectionForAccessPoint + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "CreateConnectionForAccessPoint", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QDBusObjectPath, in0), Q_ARG(QDBusObjectPath, in1)); + return out0; +} + +void NetworkAdaptor::DeactivateConnection(const QString &in0) +{ + // handle method call com.deepin.daemon.Network.DeactivateConnection + QMetaObject::invokeMethod(parent(), "DeactivateConnection", Q_ARG(QString, in0)); +} + +void NetworkAdaptor::DeleteConnection(const QString &in0) +{ + // handle method call com.deepin.daemon.Network.DeleteConnection + QMetaObject::invokeMethod(parent(), "DeleteConnection", Q_ARG(QString, in0)); +} + +void NetworkAdaptor::DisableWirelessHotspotMode(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.DisableWirelessHotspotMode + QMetaObject::invokeMethod(parent(), "DisableWirelessHotspotMode", Q_ARG(QDBusObjectPath, in0)); +} + +void NetworkAdaptor::DisconnectDevice(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.DisconnectDevice + QMetaObject::invokeMethod(parent(), "DisconnectDevice", Q_ARG(QDBusObjectPath, in0)); +} + +QDBusObjectPath NetworkAdaptor::EditConnection(const QString &in0, const QDBusObjectPath &in1) +{ + // handle method call com.deepin.daemon.Network.EditConnection + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "EditConnection", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QDBusObjectPath, in1)); + return out0; +} + +void NetworkAdaptor::EnableDevice(const QDBusObjectPath &in0, bool in1) +{ + // handle method call com.deepin.daemon.Network.EnableDevice + QMetaObject::invokeMethod(parent(), "EnableDevice", Q_ARG(QDBusObjectPath, in0), Q_ARG(bool, in1)); +} + +void NetworkAdaptor::EnableWirelessHotspotMode(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.EnableWirelessHotspotMode + QMetaObject::invokeMethod(parent(), "EnableWirelessHotspotMode", Q_ARG(QDBusObjectPath, in0)); +} + +void NetworkAdaptor::FeedSecret(const QString &in0, const QString &in1, const QString &in2, bool in3) +{ + // handle method call com.deepin.daemon.Network.FeedSecret + QMetaObject::invokeMethod(parent(), "FeedSecret", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2), Q_ARG(bool, in3)); +} + +QString NetworkAdaptor::GetAccessPoints(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.GetAccessPoints + QString out0; + QMetaObject::invokeMethod(parent(), "GetAccessPoints", Q_RETURN_ARG(QString, out0), Q_ARG(QDBusObjectPath, in0)); + return out0; +} + +QString NetworkAdaptor::GetActiveConnectionInfo() +{ + // handle method call com.deepin.daemon.Network.GetActiveConnectionInfo + QString out0; + QMetaObject::invokeMethod(parent(), "GetActiveConnectionInfo", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString NetworkAdaptor::GetAutoProxy() +{ + // handle method call com.deepin.daemon.Network.GetAutoProxy + QString out0; + QMetaObject::invokeMethod(parent(), "GetAutoProxy", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString NetworkAdaptor::GetProxy(const QString &in0, QString &out1) +{ + // handle method call com.deepin.daemon.Network.GetProxy + //return static_cast(parent())->GetProxy(in0, out1); +} + +QString NetworkAdaptor::GetProxyIgnoreHosts() +{ + // handle method call com.deepin.daemon.Network.GetProxyIgnoreHosts + QString out0; + QMetaObject::invokeMethod(parent(), "GetProxyIgnoreHosts", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString NetworkAdaptor::GetProxyMethod() +{ + // handle method call com.deepin.daemon.Network.GetProxyMethod + QString out0; + QMetaObject::invokeMethod(parent(), "GetProxyMethod", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QStringList NetworkAdaptor::GetSupportedConnectionTypes() +{ + // handle method call com.deepin.daemon.Network.GetSupportedConnectionTypes + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetSupportedConnectionTypes", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString NetworkAdaptor::GetWiredConnectionUuid(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.GetWiredConnectionUuid + QString out0; + QMetaObject::invokeMethod(parent(), "GetWiredConnectionUuid", Q_RETURN_ARG(QString, out0), Q_ARG(QDBusObjectPath, in0)); + return out0; +} + +bool NetworkAdaptor::IsDeviceEnabled(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.IsDeviceEnabled + bool out0; + QMetaObject::invokeMethod(parent(), "IsDeviceEnabled", Q_RETURN_ARG(bool, out0), Q_ARG(QDBusObjectPath, in0)); + return out0; +} + +bool NetworkAdaptor::IsPasswordValid(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Network.IsPasswordValid + bool out0; + QMetaObject::invokeMethod(parent(), "IsPasswordValid", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0), Q_ARG(QString, in1)); + return out0; +} + +bool NetworkAdaptor::IsWirelessHotspotModeEnabled(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.IsWirelessHotspotModeEnabled + bool out0; + QMetaObject::invokeMethod(parent(), "IsWirelessHotspotModeEnabled", Q_RETURN_ARG(bool, out0), Q_ARG(QDBusObjectPath, in0)); + return out0; +} + +QList NetworkAdaptor::ListDeviceConnections(const QDBusObjectPath &in0) +{ + // handle method call com.deepin.daemon.Network.ListDeviceConnections + QList out0; + QMetaObject::invokeMethod(parent(), "ListDeviceConnections", Q_RETURN_ARG(QList, out0), Q_ARG(QDBusObjectPath, in0)); + return out0; +} + +void NetworkAdaptor::RegisterSecretReceiver() +{ + // handle method call com.deepin.daemon.Network.RegisterSecretReceiver + QMetaObject::invokeMethod(parent(), "RegisterSecretReceiver"); +} + +void NetworkAdaptor::RequestIPConflictCheck(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Network.RequestIPConflictCheck + QMetaObject::invokeMethod(parent(), "RequestIPConflictCheck", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void NetworkAdaptor::RequestWirelessScan() +{ + // handle method call com.deepin.daemon.Network.RequestWirelessScan + QMetaObject::invokeMethod(parent(), "RequestWirelessScan"); +} + +void NetworkAdaptor::SetAutoProxy(const QString &in0) +{ + // handle method call com.deepin.daemon.Network.SetAutoProxy + QMetaObject::invokeMethod(parent(), "SetAutoProxy", Q_ARG(QString, in0)); +} + +void NetworkAdaptor::SetDeviceManaged(const QString &in0, bool in1) +{ + // handle method call com.deepin.daemon.Network.SetDeviceManaged + QMetaObject::invokeMethod(parent(), "SetDeviceManaged", Q_ARG(QString, in0), Q_ARG(bool, in1)); +} + +void NetworkAdaptor::SetProxy(const QString &in0, const QString &in1, const QString &in2) +{ + // handle method call com.deepin.daemon.Network.SetProxy + QMetaObject::invokeMethod(parent(), "SetProxy", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2)); +} + +void NetworkAdaptor::SetProxyIgnoreHosts(const QString &in0) +{ + // handle method call com.deepin.daemon.Network.SetProxyIgnoreHosts + QMetaObject::invokeMethod(parent(), "SetProxyIgnoreHosts", Q_ARG(QString, in0)); +} + +void NetworkAdaptor::SetProxyMethod(const QString &in0) +{ + // handle method call com.deepin.daemon.Network.SetProxyMethod + QMetaObject::invokeMethod(parent(), "SetProxyMethod", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.h new file mode 100644 index 0000000..38523ec --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor.h @@ -0,0 +1,278 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Network.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.NetworkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Network.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_NETWORKADAPTOR_H +#define COM_DEEPIN_DAEMON_NETWORKADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Network.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Network + */ +class NetworkAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Network") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + NetworkAdaptor(QObject *parent); + virtual ~NetworkAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString ActiveConnections READ activeConnections) + QString activeConnections() const; + + Q_PROPERTY(QString Connections READ connections) + QString connections() const; + + Q_PROPERTY(uint Connectivity READ connectivity) + uint connectivity() const; + + Q_PROPERTY(QString Devices READ devices) + QString devices() const; + + Q_PROPERTY(bool NetworkingEnabled READ networkingEnabled WRITE setNetworkingEnabled) + bool networkingEnabled() const; + void setNetworkingEnabled(bool value); + + Q_PROPERTY(uint State READ state) + uint state() const; + + Q_PROPERTY(bool VpnEnabled READ vpnEnabled WRITE setVpnEnabled) + bool vpnEnabled() const; + void setVpnEnabled(bool value); + + Q_PROPERTY(QString WirelessAccessPoints READ wirelessAccessPoints) + QString wirelessAccessPoints() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath ActivateAccessPoint(const QString &in0, const QDBusObjectPath &in1, const QDBusObjectPath &in2); + QDBusObjectPath ActivateConnection(const QString &in0, const QDBusObjectPath &in1); + void CancelSecret(const QString &in0, const QString &in1); + QDBusObjectPath CreateConnection(const QString &in0, const QDBusObjectPath &in1); + QDBusObjectPath CreateConnectionForAccessPoint(const QDBusObjectPath &in0, const QDBusObjectPath &in1); + void DeactivateConnection(const QString &in0); + void DeleteConnection(const QString &in0); + void DisableWirelessHotspotMode(const QDBusObjectPath &in0); + void DisconnectDevice(const QDBusObjectPath &in0); + QDBusObjectPath EditConnection(const QString &in0, const QDBusObjectPath &in1); + void EnableDevice(const QDBusObjectPath &in0, bool in1); + void EnableWirelessHotspotMode(const QDBusObjectPath &in0); + void FeedSecret(const QString &in0, const QString &in1, const QString &in2, bool in3); + QString GetAccessPoints(const QDBusObjectPath &in0); + QString GetActiveConnectionInfo(); + QString GetAutoProxy(); + QString GetProxy(const QString &in0, QString &out1); + QString GetProxyIgnoreHosts(); + QString GetProxyMethod(); + QStringList GetSupportedConnectionTypes(); + QString GetWiredConnectionUuid(const QDBusObjectPath &in0); + bool IsDeviceEnabled(const QDBusObjectPath &in0); + bool IsPasswordValid(const QString &in0, const QString &in1); + bool IsWirelessHotspotModeEnabled(const QDBusObjectPath &in0); + QList ListDeviceConnections(const QDBusObjectPath &in0); + void RegisterSecretReceiver(); + void RequestIPConflictCheck(const QString &in0, const QString &in1); + void RequestWirelessScan(); + void SetAutoProxy(const QString &in0); + void SetDeviceManaged(const QString &in0, bool in1); + void SetProxy(const QString &in0, const QString &in1, const QString &in2); + void SetProxyIgnoreHosts(const QString &in0); + void SetProxyMethod(const QString &in0); +Q_SIGNALS: // SIGNALS + void AccessPointAdded(const QString &in0, const QString &in1); + void AccessPointPropertiesChanged(const QString &in0, const QString &in1); + void AccessPointRemoved(const QString &in0, const QString &in1); + void ActiveConnectionInfoChanged(); + void DeviceEnabled(const QString &in0, bool in1); + void IPConflict(const QString &in0, const QString &in1); + void NeedSecrets(const QString &in0); + void NeedSecretsFinished(const QString &in0, const QString &in1); + void ProxyMethodChanged(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.cpp new file mode 100644 index 0000000..4c8c75b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.cpp @@ -0,0 +1,129 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.PasswdConf.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConf.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PasswdConfAdaptor + */ + +PasswdConfAdaptor::PasswdConfAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PasswdConfAdaptor::~PasswdConfAdaptor() +{ + // destructor +} + +void PasswdConfAdaptor::Backup() +{ + // handle method call com.deepin.daemon.PasswdConf.Backup + QMetaObject::invokeMethod(parent(), "Backup"); +} + +bool PasswdConfAdaptor::GetEnabled() +{ + // handle method call com.deepin.daemon.PasswdConf.GetEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "GetEnabled", Q_RETURN_ARG(bool, enabled)); + return enabled; +} + +bool PasswdConfAdaptor::GetFirstLetterUpper() +{ + // handle method call com.deepin.daemon.PasswdConf.GetFirstLetterUpper + bool enabled; + QMetaObject::invokeMethod(parent(), "GetFirstLetterUpper", Q_RETURN_ARG(bool, enabled)); + return enabled; +} + +int PasswdConfAdaptor::GetLengthLimit(int &maxLength) +{ + // handle method call com.deepin.daemon.PasswdConf.GetLengthLimit + //return static_cast(parent())->GetLengthLimit(maxLength); +} + +QString PasswdConfAdaptor::GetValidatePolicy() +{ + // handle method call com.deepin.daemon.PasswdConf.GetValidatePolicy + QString validatePolicy; + QMetaObject::invokeMethod(parent(), "GetValidatePolicy", Q_RETURN_ARG(QString, validatePolicy)); + return validatePolicy; +} + +int PasswdConfAdaptor::GetValidateRequired() +{ + // handle method call com.deepin.daemon.PasswdConf.GetValidateRequired + int validateRequired; + QMetaObject::invokeMethod(parent(), "GetValidateRequired", Q_RETURN_ARG(int, validateRequired)); + return validateRequired; +} + +QString PasswdConfAdaptor::ReadConfig() +{ + // handle method call com.deepin.daemon.PasswdConf.ReadConfig + QString data; + QMetaObject::invokeMethod(parent(), "ReadConfig", Q_RETURN_ARG(QString, data)); + return data; +} + +void PasswdConfAdaptor::Reset() +{ + // handle method call com.deepin.daemon.PasswdConf.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void PasswdConfAdaptor::SetEnabled(bool enabled) +{ + // handle method call com.deepin.daemon.PasswdConf.SetEnabled + QMetaObject::invokeMethod(parent(), "SetEnabled", Q_ARG(bool, enabled)); +} + +void PasswdConfAdaptor::SetFirstLetterUpper(bool enabled) +{ + // handle method call com.deepin.daemon.PasswdConf.SetFirstLetterUpper + QMetaObject::invokeMethod(parent(), "SetFirstLetterUpper", Q_ARG(bool, enabled)); +} + +void PasswdConfAdaptor::SetLengthLimit(int minLength, int maxLength) +{ + // handle method call com.deepin.daemon.PasswdConf.SetLengthLimit + QMetaObject::invokeMethod(parent(), "SetLengthLimit", Q_ARG(int, minLength), Q_ARG(int, maxLength)); +} + +void PasswdConfAdaptor::SetValidatePolicy(const QString &validatePolicy) +{ + // handle method call com.deepin.daemon.PasswdConf.SetValidatePolicy + QMetaObject::invokeMethod(parent(), "SetValidatePolicy", Q_ARG(QString, validatePolicy)); +} + +void PasswdConfAdaptor::SetValidateRequired(int validateRequired) +{ + // handle method call com.deepin.daemon.PasswdConf.SetValidateRequired + QMetaObject::invokeMethod(parent(), "SetValidateRequired", Q_ARG(int, validateRequired)); +} + +void PasswdConfAdaptor::WriteConfig(const QString &data) +{ + // handle method call com.deepin.daemon.PasswdConf.WriteConfig + QMetaObject::invokeMethod(parent(), "WriteConfig", Q_ARG(QString, data)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.h new file mode 100644 index 0000000..a605b65 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor.h @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.PasswdConf.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConfAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConf.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_PASSWDCONFADAPTOR_H +#define COM_DEEPIN_DAEMON_PASSWDCONFADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PasswdConf.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.PasswdConf + */ +class PasswdConfAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.PasswdConf") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PasswdConfAdaptor(QObject *parent); + virtual ~PasswdConfAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void Backup(); + bool GetEnabled(); + bool GetFirstLetterUpper(); + int GetLengthLimit(int &maxLength); + QString GetValidatePolicy(); + int GetValidateRequired(); + QString ReadConfig(); + void Reset(); + void SetEnabled(bool enabled); + void SetFirstLetterUpper(bool enabled); + void SetLengthLimit(int minLength, int maxLength); + void SetValidatePolicy(const QString &validatePolicy); + void SetValidateRequired(int validateRequired); + void WriteConfig(const QString &data); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.cpp new file mode 100644 index 0000000..ac6d8b6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.cpp @@ -0,0 +1,317 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Power.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Power.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PowerAdaptor + */ + +PowerAdaptor::PowerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PowerAdaptor::~PowerAdaptor() +{ + // destructor +} + +bool PowerAdaptor::ambientLightAdjustBrightness() const +{ + // get the value of property AmbientLightAdjustBrightness + return qvariant_cast< bool >(parent()->property("AmbientLightAdjustBrightness")); +} + +void PowerAdaptor::setAmbientLightAdjustBrightness(bool value) +{ + // set the value of property AmbientLightAdjustBrightness + parent()->setProperty("AmbientLightAdjustBrightness", QVariant::fromValue(value)); +} + +BatteryPresentInfo PowerAdaptor::batteryIsPresent() const +{ + // get the value of property BatteryIsPresent + return qvariant_cast< BatteryPresentInfo >(parent()->property("BatteryIsPresent")); +} + +int PowerAdaptor::batteryLidClosedAction() const +{ + // get the value of property BatteryLidClosedAction + return qvariant_cast< int >(parent()->property("BatteryLidClosedAction")); +} + +void PowerAdaptor::setBatteryLidClosedAction(int value) +{ + // set the value of property BatteryLidClosedAction + parent()->setProperty("BatteryLidClosedAction", QVariant::fromValue(value)); +} + +int PowerAdaptor::batteryLockDelay() const +{ + // get the value of property BatteryLockDelay + return qvariant_cast< int >(parent()->property("BatteryLockDelay")); +} + +void PowerAdaptor::setBatteryLockDelay(int value) +{ + // set the value of property BatteryLockDelay + parent()->setProperty("BatteryLockDelay", QVariant::fromValue(value)); +} + +BatteryPercentageInfo PowerAdaptor::batteryPercentage() const +{ + // get the value of property BatteryPercentage + return qvariant_cast< BatteryPercentageInfo >(parent()->property("BatteryPercentage")); +} + +int PowerAdaptor::batteryPressPowerBtnAction() const +{ + // get the value of property BatteryPressPowerBtnAction + return qvariant_cast< int >(parent()->property("BatteryPressPowerBtnAction")); +} + +void PowerAdaptor::setBatteryPressPowerBtnAction(int value) +{ + // set the value of property BatteryPressPowerBtnAction + parent()->setProperty("BatteryPressPowerBtnAction", QVariant::fromValue(value)); +} + +int PowerAdaptor::batteryScreenBlackDelay() const +{ + // get the value of property BatteryScreenBlackDelay + return qvariant_cast< int >(parent()->property("BatteryScreenBlackDelay")); +} + +void PowerAdaptor::setBatteryScreenBlackDelay(int value) +{ + // set the value of property BatteryScreenBlackDelay + parent()->setProperty("BatteryScreenBlackDelay", QVariant::fromValue(value)); +} + +int PowerAdaptor::batteryScreensaverDelay() const +{ + // get the value of property BatteryScreensaverDelay + return qvariant_cast< int >(parent()->property("BatteryScreensaverDelay")); +} + +void PowerAdaptor::setBatteryScreensaverDelay(int value) +{ + // set the value of property BatteryScreensaverDelay + parent()->setProperty("BatteryScreensaverDelay", QVariant::fromValue(value)); +} + +int PowerAdaptor::batterySleepDelay() const +{ + // get the value of property BatterySleepDelay + return qvariant_cast< int >(parent()->property("BatterySleepDelay")); +} + +void PowerAdaptor::setBatterySleepDelay(int value) +{ + // set the value of property BatterySleepDelay + parent()->setProperty("BatterySleepDelay", QVariant::fromValue(value)); +} + +BatteryStateInfo PowerAdaptor::batteryState() const +{ + // get the value of property BatteryState + return qvariant_cast< BatteryStateInfo >(parent()->property("BatteryState")); +} + +bool PowerAdaptor::hasAmbientLightSensor() const +{ + // get the value of property HasAmbientLightSensor + return qvariant_cast< bool >(parent()->property("HasAmbientLightSensor")); +} + +bool PowerAdaptor::isHighPerformanceSupported() const +{ + // get the value of property IsHighPerformanceSupported + return qvariant_cast< bool >(parent()->property("IsHighPerformanceSupported")); +} + +bool PowerAdaptor::lidClosedSleep() const +{ + // get the value of property LidClosedSleep + return qvariant_cast< bool >(parent()->property("LidClosedSleep")); +} + +void PowerAdaptor::setLidClosedSleep(bool value) +{ + // set the value of property LidClosedSleep + parent()->setProperty("LidClosedSleep", QVariant::fromValue(value)); +} + +bool PowerAdaptor::lidIsPresent() const +{ + // get the value of property LidIsPresent + return qvariant_cast< bool >(parent()->property("LidIsPresent")); +} + +int PowerAdaptor::linePowerLidClosedAction() const +{ + // get the value of property LinePowerLidClosedAction + return qvariant_cast< int >(parent()->property("LinePowerLidClosedAction")); +} + +void PowerAdaptor::setLinePowerLidClosedAction(int value) +{ + // set the value of property LinePowerLidClosedAction + parent()->setProperty("LinePowerLidClosedAction", QVariant::fromValue(value)); +} + +int PowerAdaptor::linePowerLockDelay() const +{ + // get the value of property LinePowerLockDelay + return qvariant_cast< int >(parent()->property("LinePowerLockDelay")); +} + +void PowerAdaptor::setLinePowerLockDelay(int value) +{ + // set the value of property LinePowerLockDelay + parent()->setProperty("LinePowerLockDelay", QVariant::fromValue(value)); +} + +int PowerAdaptor::linePowerPressPowerBtnAction() const +{ + // get the value of property LinePowerPressPowerBtnAction + return qvariant_cast< int >(parent()->property("LinePowerPressPowerBtnAction")); +} + +void PowerAdaptor::setLinePowerPressPowerBtnAction(int value) +{ + // set the value of property LinePowerPressPowerBtnAction + parent()->setProperty("LinePowerPressPowerBtnAction", QVariant::fromValue(value)); +} + +int PowerAdaptor::linePowerScreenBlackDelay() const +{ + // get the value of property LinePowerScreenBlackDelay + return qvariant_cast< int >(parent()->property("LinePowerScreenBlackDelay")); +} + +void PowerAdaptor::setLinePowerScreenBlackDelay(int value) +{ + // set the value of property LinePowerScreenBlackDelay + parent()->setProperty("LinePowerScreenBlackDelay", QVariant::fromValue(value)); +} + +int PowerAdaptor::linePowerScreensaverDelay() const +{ + // get the value of property LinePowerScreensaverDelay + return qvariant_cast< int >(parent()->property("LinePowerScreensaverDelay")); +} + +void PowerAdaptor::setLinePowerScreensaverDelay(int value) +{ + // set the value of property LinePowerScreensaverDelay + parent()->setProperty("LinePowerScreensaverDelay", QVariant::fromValue(value)); +} + +int PowerAdaptor::linePowerSleepDelay() const +{ + // get the value of property LinePowerSleepDelay + return qvariant_cast< int >(parent()->property("LinePowerSleepDelay")); +} + +void PowerAdaptor::setLinePowerSleepDelay(int value) +{ + // set the value of property LinePowerSleepDelay + parent()->setProperty("LinePowerSleepDelay", QVariant::fromValue(value)); +} + +int PowerAdaptor::lowPowerAutoSleepThreshold() const +{ + // get the value of property LowPowerAutoSleepThreshold + return qvariant_cast< int >(parent()->property("LowPowerAutoSleepThreshold")); +} + +void PowerAdaptor::setLowPowerAutoSleepThreshold(int value) +{ + // set the value of property LowPowerAutoSleepThreshold + parent()->setProperty("LowPowerAutoSleepThreshold", QVariant::fromValue(value)); +} + +bool PowerAdaptor::lowPowerNotifyEnable() const +{ + // get the value of property LowPowerNotifyEnable + return qvariant_cast< bool >(parent()->property("LowPowerNotifyEnable")); +} + +void PowerAdaptor::setLowPowerNotifyEnable(bool value) +{ + // set the value of property LowPowerNotifyEnable + parent()->setProperty("LowPowerNotifyEnable", QVariant::fromValue(value)); +} + +int PowerAdaptor::lowPowerNotifyThreshold() const +{ + // get the value of property LowPowerNotifyThreshold + return qvariant_cast< int >(parent()->property("LowPowerNotifyThreshold")); +} + +void PowerAdaptor::setLowPowerNotifyThreshold(int value) +{ + // set the value of property LowPowerNotifyThreshold + parent()->setProperty("LowPowerNotifyThreshold", QVariant::fromValue(value)); +} + +bool PowerAdaptor::onBattery() const +{ + // get the value of property OnBattery + return qvariant_cast< bool >(parent()->property("OnBattery")); +} + +bool PowerAdaptor::screenBlackLock() const +{ + // get the value of property ScreenBlackLock + return qvariant_cast< bool >(parent()->property("ScreenBlackLock")); +} + +void PowerAdaptor::setScreenBlackLock(bool value) +{ + // set the value of property ScreenBlackLock + parent()->setProperty("ScreenBlackLock", QVariant::fromValue(value)); +} + +bool PowerAdaptor::sleepLock() const +{ + // get the value of property SleepLock + return qvariant_cast< bool >(parent()->property("SleepLock")); +} + +void PowerAdaptor::setSleepLock(bool value) +{ + // set the value of property SleepLock + parent()->setProperty("SleepLock", QVariant::fromValue(value)); +} + +uint PowerAdaptor::warnLevel() const +{ + // get the value of property WarnLevel + return qvariant_cast< uint >(parent()->property("WarnLevel")); +} + +void PowerAdaptor::Reset() +{ + // handle method call com.deepin.daemon.Power.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.h new file mode 100644 index 0000000..4b0ea18 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor.h @@ -0,0 +1,182 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Power.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Power.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_POWERADAPTOR_H +#define COM_DEEPIN_DAEMON_POWERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Power.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Power + */ +class PowerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Power") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PowerAdaptor(QObject *parent); + virtual ~PowerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AmbientLightAdjustBrightness READ ambientLightAdjustBrightness WRITE setAmbientLightAdjustBrightness) + bool ambientLightAdjustBrightness() const; + void setAmbientLightAdjustBrightness(bool value); + + Q_PROPERTY(BatteryPresentInfo BatteryIsPresent READ batteryIsPresent) + BatteryPresentInfo batteryIsPresent() const; + + Q_PROPERTY(int BatteryLidClosedAction READ batteryLidClosedAction WRITE setBatteryLidClosedAction) + int batteryLidClosedAction() const; + void setBatteryLidClosedAction(int value); + + Q_PROPERTY(int BatteryLockDelay READ batteryLockDelay WRITE setBatteryLockDelay) + int batteryLockDelay() const; + void setBatteryLockDelay(int value); + + Q_PROPERTY(BatteryPercentageInfo BatteryPercentage READ batteryPercentage) + BatteryPercentageInfo batteryPercentage() const; + + Q_PROPERTY(int BatteryPressPowerBtnAction READ batteryPressPowerBtnAction WRITE setBatteryPressPowerBtnAction) + int batteryPressPowerBtnAction() const; + void setBatteryPressPowerBtnAction(int value); + + Q_PROPERTY(int BatteryScreenBlackDelay READ batteryScreenBlackDelay WRITE setBatteryScreenBlackDelay) + int batteryScreenBlackDelay() const; + void setBatteryScreenBlackDelay(int value); + + Q_PROPERTY(int BatteryScreensaverDelay READ batteryScreensaverDelay WRITE setBatteryScreensaverDelay) + int batteryScreensaverDelay() const; + void setBatteryScreensaverDelay(int value); + + Q_PROPERTY(int BatterySleepDelay READ batterySleepDelay WRITE setBatterySleepDelay) + int batterySleepDelay() const; + void setBatterySleepDelay(int value); + + Q_PROPERTY(BatteryStateInfo BatteryState READ batteryState) + BatteryStateInfo batteryState() const; + + Q_PROPERTY(bool HasAmbientLightSensor READ hasAmbientLightSensor) + bool hasAmbientLightSensor() const; + + Q_PROPERTY(bool IsHighPerformanceSupported READ isHighPerformanceSupported) + bool isHighPerformanceSupported() const; + + Q_PROPERTY(bool LidClosedSleep READ lidClosedSleep WRITE setLidClosedSleep) + bool lidClosedSleep() const; + void setLidClosedSleep(bool value); + + Q_PROPERTY(bool LidIsPresent READ lidIsPresent) + bool lidIsPresent() const; + + Q_PROPERTY(int LinePowerLidClosedAction READ linePowerLidClosedAction WRITE setLinePowerLidClosedAction) + int linePowerLidClosedAction() const; + void setLinePowerLidClosedAction(int value); + + Q_PROPERTY(int LinePowerLockDelay READ linePowerLockDelay WRITE setLinePowerLockDelay) + int linePowerLockDelay() const; + void setLinePowerLockDelay(int value); + + Q_PROPERTY(int LinePowerPressPowerBtnAction READ linePowerPressPowerBtnAction WRITE setLinePowerPressPowerBtnAction) + int linePowerPressPowerBtnAction() const; + void setLinePowerPressPowerBtnAction(int value); + + Q_PROPERTY(int LinePowerScreenBlackDelay READ linePowerScreenBlackDelay WRITE setLinePowerScreenBlackDelay) + int linePowerScreenBlackDelay() const; + void setLinePowerScreenBlackDelay(int value); + + Q_PROPERTY(int LinePowerScreensaverDelay READ linePowerScreensaverDelay WRITE setLinePowerScreensaverDelay) + int linePowerScreensaverDelay() const; + void setLinePowerScreensaverDelay(int value); + + Q_PROPERTY(int LinePowerSleepDelay READ linePowerSleepDelay WRITE setLinePowerSleepDelay) + int linePowerSleepDelay() const; + void setLinePowerSleepDelay(int value); + + Q_PROPERTY(int LowPowerAutoSleepThreshold READ lowPowerAutoSleepThreshold WRITE setLowPowerAutoSleepThreshold) + int lowPowerAutoSleepThreshold() const; + void setLowPowerAutoSleepThreshold(int value); + + Q_PROPERTY(bool LowPowerNotifyEnable READ lowPowerNotifyEnable WRITE setLowPowerNotifyEnable) + bool lowPowerNotifyEnable() const; + void setLowPowerNotifyEnable(bool value); + + Q_PROPERTY(int LowPowerNotifyThreshold READ lowPowerNotifyThreshold WRITE setLowPowerNotifyThreshold) + int lowPowerNotifyThreshold() const; + void setLowPowerNotifyThreshold(int value); + + Q_PROPERTY(bool OnBattery READ onBattery) + bool onBattery() const; + + Q_PROPERTY(bool ScreenBlackLock READ screenBlackLock WRITE setScreenBlackLock) + bool screenBlackLock() const; + void setScreenBlackLock(bool value); + + Q_PROPERTY(bool SleepLock READ sleepLock WRITE setSleepLock) + bool sleepLock() const; + void setSleepLock(bool value); + + Q_PROPERTY(uint WarnLevel READ warnLevel) + uint warnLevel() const; + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.cpp new file mode 100644 index 0000000..78abfb0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.cpp @@ -0,0 +1,73 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.PowerManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PowerManagerAdaptor + */ + +PowerManagerAdaptor::PowerManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PowerManagerAdaptor::~PowerManagerAdaptor() +{ + // destructor +} + +QString PowerManagerAdaptor::virtualMachineName() const +{ + // get the value of property VirtualMachineName + return qvariant_cast< QString >(parent()->property("VirtualMachineName")); +} + +bool PowerManagerAdaptor::CanHibernate() +{ + // handle method call com.deepin.daemon.PowerManager.CanHibernate + bool can; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, can)); + return can; +} + +bool PowerManagerAdaptor::CanReboot() +{ + // handle method call com.deepin.daemon.PowerManager.CanReboot + bool can; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, can)); + return can; +} + +bool PowerManagerAdaptor::CanShutdown() +{ + // handle method call com.deepin.daemon.PowerManager.CanShutdown + bool can; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, can)); + return can; +} + +bool PowerManagerAdaptor::CanSuspend() +{ + // handle method call com.deepin.daemon.PowerManager.CanSuspend + bool can; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, can)); + return can; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.h new file mode 100644 index 0000000..e2ad560 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.h @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.PowerManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_POWERMANAGERADAPTOR_H +#define COM_DEEPIN_DAEMON_POWERMANAGERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.PowerManager + */ +class PowerManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.PowerManager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PowerManagerAdaptor(QObject *parent); + virtual ~PowerManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString VirtualMachineName READ virtualMachineName) + QString virtualMachineName() const; + +public Q_SLOTS: // METHODS + bool CanHibernate(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.cpp new file mode 100644 index 0000000..86eb48e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.cpp @@ -0,0 +1,97 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.SoundEffect.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffect.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SoundEffectAdaptor + */ + +SoundEffectAdaptor::SoundEffectAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SoundEffectAdaptor::~SoundEffectAdaptor() +{ + // destructor +} + +bool SoundEffectAdaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +void SoundEffectAdaptor::setEnabled(bool value) +{ + // set the value of property Enabled + parent()->setProperty("Enabled", QVariant::fromValue(value)); +} + +void SoundEffectAdaptor::EnableSound(const QString &name, bool enabled) +{ + // handle method call com.deepin.daemon.SoundEffect.EnableSound + QMetaObject::invokeMethod(parent(), "EnableSound", Q_ARG(QString, name), Q_ARG(bool, enabled)); +} + +QMap SoundEffectAdaptor::GetSoundEnabledMap() +{ + // handle method call com.deepin.daemon.SoundEffect.GetSoundEnabledMap + QMap result; + QMetaObject::invokeMethod(parent(), "GetSoundEnabledMap", Q_RETURN_ARG(QMap, result)); + return result; +} + +QString SoundEffectAdaptor::GetSoundFile(const QString &name) +{ + // handle method call com.deepin.daemon.SoundEffect.GetSoundFile + QString file; + QMetaObject::invokeMethod(parent(), "GetSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name)); + return file; +} + +QString SoundEffectAdaptor::GetSystemSoundFile(const QString &name) +{ + // handle method call com.deepin.daemon.SoundEffect.GetSystemSoundFile + QString file; + QMetaObject::invokeMethod(parent(), "GetSystemSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name)); + return file; +} + +bool SoundEffectAdaptor::IsSoundEnabled(const QString &name) +{ + // handle method call com.deepin.daemon.SoundEffect.IsSoundEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "IsSoundEnabled", Q_RETURN_ARG(bool, enabled), Q_ARG(QString, name)); + return enabled; +} + +void SoundEffectAdaptor::PlaySound(const QString &name) +{ + // handle method call com.deepin.daemon.SoundEffect.PlaySound + QMetaObject::invokeMethod(parent(), "PlaySound", Q_ARG(QString, name)); +} + +void SoundEffectAdaptor::PlaySystemSound(const QString &name) +{ + // handle method call com.deepin.daemon.SoundEffect.PlaySystemSound + QMetaObject::invokeMethod(parent(), "PlaySystemSound", Q_ARG(QString, name)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.h new file mode 100644 index 0000000..37a3ac1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.h @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.SoundEffect.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffect.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_SOUNDEFFECTADAPTOR_H +#define COM_DEEPIN_DAEMON_SOUNDEFFECTADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffect.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.SoundEffect + */ +class SoundEffectAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.SoundEffect") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SoundEffectAdaptor(QObject *parent); + virtual ~SoundEffectAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Enabled READ enabled WRITE setEnabled) + bool enabled() const; + void setEnabled(bool value); + +public Q_SLOTS: // METHODS + void EnableSound(const QString &name, bool enabled); + QMap GetSoundEnabledMap(); + QString GetSoundFile(const QString &name); + QString GetSystemSoundFile(const QString &name); + bool IsSoundEnabled(const QString &name); + void PlaySound(const QString &name); + void PlaySystemSound(const QString &name); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.cpp new file mode 100644 index 0000000..5ba12f6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.cpp @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.SystemInfo.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfo.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SystemInfoAdaptor + */ + +SystemInfoAdaptor::SystemInfoAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SystemInfoAdaptor::~SystemInfoAdaptor() +{ + // destructor +} + +qulonglong SystemInfoAdaptor::diskCap() const +{ + // get the value of property DiskCap + return qvariant_cast< qulonglong >(parent()->property("DiskCap")); +} + +QString SystemInfoAdaptor::distroDesc() const +{ + // get the value of property DistroDesc + return qvariant_cast< QString >(parent()->property("DistroDesc")); +} + +QString SystemInfoAdaptor::distroID() const +{ + // get the value of property DistroID + return qvariant_cast< QString >(parent()->property("DistroID")); +} + +QString SystemInfoAdaptor::distroVer() const +{ + // get the value of property DistroVer + return qvariant_cast< QString >(parent()->property("DistroVer")); +} + +qulonglong SystemInfoAdaptor::memoryCap() const +{ + // get the value of property MemoryCap + return qvariant_cast< qulonglong >(parent()->property("MemoryCap")); +} + +QString SystemInfoAdaptor::processor() const +{ + // get the value of property Processor + return qvariant_cast< QString >(parent()->property("Processor")); +} + +qlonglong SystemInfoAdaptor::systemType() const +{ + // get the value of property SystemType + return qvariant_cast< qlonglong >(parent()->property("SystemType")); +} + +QString SystemInfoAdaptor::version() const +{ + // get the value of property Version + return qvariant_cast< QString >(parent()->property("Version")); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.h new file mode 100644 index 0000000..a2aea4d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor.h @@ -0,0 +1,79 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.SystemInfo.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfoAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfo.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_SYSTEMINFOADAPTOR_H +#define COM_DEEPIN_DAEMON_SYSTEMINFOADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SystemInfo.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.SystemInfo + */ +class SystemInfoAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.SystemInfo") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SystemInfoAdaptor(QObject *parent); + virtual ~SystemInfoAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(qulonglong DiskCap READ diskCap) + qulonglong diskCap() const; + + Q_PROPERTY(QString DistroDesc READ distroDesc) + QString distroDesc() const; + + Q_PROPERTY(QString DistroID READ distroID) + QString distroID() const; + + Q_PROPERTY(QString DistroVer READ distroVer) + QString distroVer() const; + + Q_PROPERTY(qulonglong MemoryCap READ memoryCap) + qulonglong memoryCap() const; + + Q_PROPERTY(QString Processor READ processor) + QString processor() const; + + Q_PROPERTY(qlonglong SystemType READ systemType) + qlonglong systemType() const; + + Q_PROPERTY(QString Version READ version) + QString version() const; + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.cpp new file mode 100644 index 0000000..8afb2b0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.cpp @@ -0,0 +1,239 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Timedate.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Timedate.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TimedateAdaptor + */ + +TimedateAdaptor::TimedateAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TimedateAdaptor::~TimedateAdaptor() +{ + // destructor +} + +bool TimedateAdaptor::canNTP() const +{ + // get the value of property CanNTP + return qvariant_cast< bool >(parent()->property("CanNTP")); +} + +int TimedateAdaptor::dSTOffset() const +{ + // get the value of property DSTOffset + return qvariant_cast< int >(parent()->property("DSTOffset")); +} + +void TimedateAdaptor::setDSTOffset(int value) +{ + // set the value of property DSTOffset + parent()->setProperty("DSTOffset", QVariant::fromValue(value)); +} + +bool TimedateAdaptor::localRTC() const +{ + // get the value of property LocalRTC + return qvariant_cast< bool >(parent()->property("LocalRTC")); +} + +int TimedateAdaptor::longDateFormat() const +{ + // get the value of property LongDateFormat + return qvariant_cast< int >(parent()->property("LongDateFormat")); +} + +void TimedateAdaptor::setLongDateFormat(int value) +{ + // set the value of property LongDateFormat + parent()->setProperty("LongDateFormat", QVariant::fromValue(value)); +} + +int TimedateAdaptor::longTimeFormat() const +{ + // get the value of property LongTimeFormat + return qvariant_cast< int >(parent()->property("LongTimeFormat")); +} + +void TimedateAdaptor::setLongTimeFormat(int value) +{ + // set the value of property LongTimeFormat + parent()->setProperty("LongTimeFormat", QVariant::fromValue(value)); +} + +bool TimedateAdaptor::nTP() const +{ + // get the value of property NTP + return qvariant_cast< bool >(parent()->property("NTP")); +} + +QString TimedateAdaptor::nTPServer() const +{ + // get the value of property NTPServer + return qvariant_cast< QString >(parent()->property("NTPServer")); +} + +int TimedateAdaptor::shortDateFormat() const +{ + // get the value of property ShortDateFormat + return qvariant_cast< int >(parent()->property("ShortDateFormat")); +} + +void TimedateAdaptor::setShortDateFormat(int value) +{ + // set the value of property ShortDateFormat + parent()->setProperty("ShortDateFormat", QVariant::fromValue(value)); +} + +int TimedateAdaptor::shortTimeFormat() const +{ + // get the value of property ShortTimeFormat + return qvariant_cast< int >(parent()->property("ShortTimeFormat")); +} + +void TimedateAdaptor::setShortTimeFormat(int value) +{ + // set the value of property ShortTimeFormat + parent()->setProperty("ShortTimeFormat", QVariant::fromValue(value)); +} + +QString TimedateAdaptor::timezone() const +{ + // get the value of property Timezone + return qvariant_cast< QString >(parent()->property("Timezone")); +} + +bool TimedateAdaptor::use24HourFormat() const +{ + // get the value of property Use24HourFormat + return qvariant_cast< bool >(parent()->property("Use24HourFormat")); +} + +void TimedateAdaptor::setUse24HourFormat(bool value) +{ + // set the value of property Use24HourFormat + parent()->setProperty("Use24HourFormat", QVariant::fromValue(value)); +} + +QStringList TimedateAdaptor::userTimezones() const +{ + // get the value of property UserTimezones + return qvariant_cast< QStringList >(parent()->property("UserTimezones")); +} + +int TimedateAdaptor::weekBegins() const +{ + // get the value of property WeekBegins + return qvariant_cast< int >(parent()->property("WeekBegins")); +} + +void TimedateAdaptor::setWeekBegins(int value) +{ + // set the value of property WeekBegins + parent()->setProperty("WeekBegins", QVariant::fromValue(value)); +} + +int TimedateAdaptor::weekdayFormat() const +{ + // get the value of property WeekdayFormat + return qvariant_cast< int >(parent()->property("WeekdayFormat")); +} + +void TimedateAdaptor::setWeekdayFormat(int value) +{ + // set the value of property WeekdayFormat + parent()->setProperty("WeekdayFormat", QVariant::fromValue(value)); +} + +void TimedateAdaptor::AddUserTimezone(const QString &in0) +{ + // handle method call com.deepin.daemon.Timedate.AddUserTimezone + QMetaObject::invokeMethod(parent(), "AddUserTimezone", Q_ARG(QString, in0)); +} + +void TimedateAdaptor::DeleteUserTimezone(const QString &in0) +{ + // handle method call com.deepin.daemon.Timedate.DeleteUserTimezone + QMetaObject::invokeMethod(parent(), "DeleteUserTimezone", Q_ARG(QString, in0)); +} + +QStringList TimedateAdaptor::GetSampleNTPServers() +{ + // handle method call com.deepin.daemon.Timedate.GetSampleNTPServers + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetSampleNTPServers", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +ZoneInfo TimedateAdaptor::GetZoneInfo(const QString &in0) +{ + // handle method call com.deepin.daemon.Timedate.GetZoneInfo + ZoneInfo out0; + QMetaObject::invokeMethod(parent(), "GetZoneInfo", Q_RETURN_ARG(ZoneInfo, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList TimedateAdaptor::GetZoneList() +{ + // handle method call com.deepin.daemon.Timedate.GetZoneList + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetZoneList", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +void TimedateAdaptor::SetDate(int in0, int in1, int in2, int in3, int in4, int in5, int in6) +{ + // handle method call com.deepin.daemon.Timedate.SetDate + QMetaObject::invokeMethod(parent(), "SetDate", Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3), Q_ARG(int, in4), Q_ARG(int, in5), Q_ARG(int, in6)); +} + +void TimedateAdaptor::SetLocalRTC(bool in0, bool in1) +{ + // handle method call com.deepin.daemon.Timedate.SetLocalRTC + QMetaObject::invokeMethod(parent(), "SetLocalRTC", Q_ARG(bool, in0), Q_ARG(bool, in1)); +} + +void TimedateAdaptor::SetNTP(bool in0) +{ + // handle method call com.deepin.daemon.Timedate.SetNTP + QMetaObject::invokeMethod(parent(), "SetNTP", Q_ARG(bool, in0)); +} + +void TimedateAdaptor::SetNTPServer(const QString &in0) +{ + // handle method call com.deepin.daemon.Timedate.SetNTPServer + QMetaObject::invokeMethod(parent(), "SetNTPServer", Q_ARG(QString, in0)); +} + +void TimedateAdaptor::SetTime(qlonglong in0, bool in1) +{ + // handle method call com.deepin.daemon.Timedate.SetTime + QMetaObject::invokeMethod(parent(), "SetTime", Q_ARG(qlonglong, in0), Q_ARG(bool, in1)); +} + +void TimedateAdaptor::SetTimezone(const QString &in0) +{ + // handle method call com.deepin.daemon.Timedate.SetTimezone + QMetaObject::invokeMethod(parent(), "SetTimezone", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.h new file mode 100644 index 0000000..684a45f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor.h @@ -0,0 +1,167 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.Timedate.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedateAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Timedate.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_TIMEDATEADAPTOR_H +#define COM_DEEPIN_DAEMON_TIMEDATEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Timedate.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Timedate + */ +class TimedateAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Timedate") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TimedateAdaptor(QObject *parent); + virtual ~TimedateAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CanNTP READ canNTP) + bool canNTP() const; + + Q_PROPERTY(int DSTOffset READ dSTOffset WRITE setDSTOffset) + int dSTOffset() const; + void setDSTOffset(int value); + + Q_PROPERTY(bool LocalRTC READ localRTC) + bool localRTC() const; + + Q_PROPERTY(int LongDateFormat READ longDateFormat WRITE setLongDateFormat) + int longDateFormat() const; + void setLongDateFormat(int value); + + Q_PROPERTY(int LongTimeFormat READ longTimeFormat WRITE setLongTimeFormat) + int longTimeFormat() const; + void setLongTimeFormat(int value); + + Q_PROPERTY(bool NTP READ nTP) + bool nTP() const; + + Q_PROPERTY(QString NTPServer READ nTPServer) + QString nTPServer() const; + + Q_PROPERTY(int ShortDateFormat READ shortDateFormat WRITE setShortDateFormat) + int shortDateFormat() const; + void setShortDateFormat(int value); + + Q_PROPERTY(int ShortTimeFormat READ shortTimeFormat WRITE setShortTimeFormat) + int shortTimeFormat() const; + void setShortTimeFormat(int value); + + Q_PROPERTY(QString Timezone READ timezone) + QString timezone() const; + + Q_PROPERTY(bool Use24HourFormat READ use24HourFormat WRITE setUse24HourFormat) + bool use24HourFormat() const; + void setUse24HourFormat(bool value); + + Q_PROPERTY(QStringList UserTimezones READ userTimezones) + QStringList userTimezones() const; + + Q_PROPERTY(int WeekBegins READ weekBegins WRITE setWeekBegins) + int weekBegins() const; + void setWeekBegins(int value); + + Q_PROPERTY(int WeekdayFormat READ weekdayFormat WRITE setWeekdayFormat) + int weekdayFormat() const; + void setWeekdayFormat(int value); + +public Q_SLOTS: // METHODS + void AddUserTimezone(const QString &in0); + void DeleteUserTimezone(const QString &in0); + QStringList GetSampleNTPServers(); + ZoneInfo GetZoneInfo(const QString &in0); + QStringList GetZoneList(); + void SetDate(int in0, int in1, int in2, int in3, int in4, int in5, int in6); + void SetLocalRTC(bool in0, bool in1); + void SetNTP(bool in0); + void SetNTPServer(const QString &in0); + void SetTime(qlonglong in0, bool in1); + void SetTimezone(const QString &in0); +Q_SIGNALS: // SIGNALS + void TimeUpdate(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.cpp new file mode 100644 index 0000000..f0c169a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.cpp @@ -0,0 +1,71 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Timedated.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Timedated.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TimedatedAdaptor + */ + +TimedatedAdaptor::TimedatedAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TimedatedAdaptor::~TimedatedAdaptor() +{ + // destructor +} + +QString TimedatedAdaptor::nTPServer() const +{ + // get the value of property NTPServer + return qvariant_cast< QString >(parent()->property("NTPServer")); +} + +void TimedatedAdaptor::SetLocalRTC(bool in0, bool in1, const QString &in2) +{ + // handle method call com.deepin.daemon.Timedated.SetLocalRTC + QMetaObject::invokeMethod(parent(), "SetLocalRTC", Q_ARG(bool, in0), Q_ARG(bool, in1), Q_ARG(QString, in2)); +} + +void TimedatedAdaptor::SetNTP(bool in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Timedated.SetNTP + QMetaObject::invokeMethod(parent(), "SetNTP", Q_ARG(bool, in0), Q_ARG(QString, in1)); +} + +void TimedatedAdaptor::SetNTPServer(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Timedated.SetNTPServer + QMetaObject::invokeMethod(parent(), "SetNTPServer", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void TimedatedAdaptor::SetTime(qlonglong in0, bool in1, const QString &in2) +{ + // handle method call com.deepin.daemon.Timedated.SetTime + QMetaObject::invokeMethod(parent(), "SetTime", Q_ARG(qlonglong, in0), Q_ARG(bool, in1), Q_ARG(QString, in2)); +} + +void TimedatedAdaptor::SetTimezone(const QString &in0, const QString &in1) +{ + // handle method call com.deepin.daemon.Timedated.SetTimezone + QMetaObject::invokeMethod(parent(), "SetTimezone", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.h new file mode 100644 index 0000000..4da0907 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor.h @@ -0,0 +1,78 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.Timedated.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.TimedatedAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Timedated.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DAEMON_TIMEDATEDADAPTOR_H +#define COM_DEEPIN_DAEMON_TIMEDATEDADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Timedated.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.daemon.Timedated + */ +class TimedatedAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.daemon.Timedated") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TimedatedAdaptor(QObject *parent); + virtual ~TimedatedAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString NTPServer READ nTPServer) + QString nTPServer() const; + +public Q_SLOTS: // METHODS + void SetLocalRTC(bool in0, bool in1, const QString &in2); + void SetNTP(bool in0, const QString &in1); + void SetNTPServer(const QString &in0, const QString &in1); + void SetTime(qlonglong in0, bool in1, const QString &in2); + void SetTimezone(const QString &in0, const QString &in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.cpp new file mode 100644 index 0000000..5590749 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.cpp @@ -0,0 +1,95 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dbusdemo.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemo.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DbusdemoAdaptor + */ + +DbusdemoAdaptor::DbusdemoAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DbusdemoAdaptor::~DbusdemoAdaptor() +{ + // destructor +} + +uint DbusdemoAdaptor::age() const +{ + // get the value of property Age + return qvariant_cast< uint >(parent()->property("Age")); +} + +void DbusdemoAdaptor::setAge(uint value) +{ + // set the value of property Age + parent()->setProperty("Age", QVariant::fromValue(value)); +} + +AreaList DbusdemoAdaptor::areas() const +{ + // get the value of property Areas + return qvariant_cast< AreaList >(parent()->property("Areas")); +} + +void DbusdemoAdaptor::setAreas(AreaList value) +{ + // set the value of property Areas + parent()->setProperty("Areas", QVariant::fromValue(value)); +} + +QDBusObjectPath DbusdemoAdaptor::currentSessionPath() const +{ + // get the value of property CurrentSessionPath + return qvariant_cast< QDBusObjectPath >(parent()->property("CurrentSessionPath")); +} + +bool DbusdemoAdaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +QString DbusdemoAdaptor::Hello() +{ + // handle method call com.deepin.dbusdemo.Hello + QString out0; + QMetaObject::invokeMethod(parent(), "Hello", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool DbusdemoAdaptor::Register(const QString &id) +{ + // handle method call com.deepin.dbusdemo.Register + bool result; + QMetaObject::invokeMethod(parent(), "Register", Q_RETURN_ARG(bool, result), Q_ARG(QString, id)); + return result; +} + +bool DbusdemoAdaptor::SetArea(const QString &id, AreaList area) +{ + // handle method call com.deepin.dbusdemo.SetArea + bool result; + QMetaObject::invokeMethod(parent(), "SetArea", Q_RETURN_ARG(bool, result), Q_ARG(QString, id), Q_ARG(AreaList, area)); + return result; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.h new file mode 100644 index 0000000..9355e4d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor.h @@ -0,0 +1,98 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dbusdemo.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemoAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemo.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DBUSDEMOADAPTOR_H +#define COM_DEEPIN_DBUSDEMOADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dbusdemo.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dbusdemo + */ +class DbusdemoAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dbusdemo") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + DbusdemoAdaptor(QObject *parent); + virtual ~DbusdemoAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(uint Age READ age WRITE setAge) + uint age() const; + void setAge(uint value); + + Q_PROPERTY(AreaList Areas READ areas WRITE setAreas) + AreaList areas() const; + void setAreas(AreaList value); + + Q_PROPERTY(QDBusObjectPath CurrentSessionPath READ currentSessionPath) + QDBusObjectPath currentSessionPath() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + +public Q_SLOTS: // METHODS + QString Hello(); + bool Register(const QString &id); + bool SetArea(const QString &id, AreaList area); +Q_SIGNALS: // SIGNALS + void AreaTestSig(const QString &id, AreaList aaa); + void Tick(); + void Tick2(const QString &id); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.cpp new file mode 100644 index 0000000..e50b540 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.cpp @@ -0,0 +1,123 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.ControlCenter.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenter.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ControlCenterAdaptor + */ + +ControlCenterAdaptor::ControlCenterAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ControlCenterAdaptor::~ControlCenterAdaptor() +{ + // destructor +} + +ControlCenterRect ControlCenterAdaptor::rect() const +{ + // get the value of property Rect + return qvariant_cast< ControlCenterRect >(parent()->property("Rect")); +} + +bool ControlCenterAdaptor::showInRight() const +{ + // get the value of property ShowInRight + return qvariant_cast< bool >(parent()->property("ShowInRight")); +} + +void ControlCenterAdaptor::Hide() +{ + // handle method call com.deepin.dde.ControlCenter.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +void ControlCenterAdaptor::HideImmediately() +{ + // handle method call com.deepin.dde.ControlCenter.HideImmediately + QMetaObject::invokeMethod(parent(), "HideImmediately"); +} + +void ControlCenterAdaptor::SetAutoHide(bool autoHide) +{ + // handle method call com.deepin.dde.ControlCenter.SetAutoHide + QMetaObject::invokeMethod(parent(), "SetAutoHide", Q_ARG(bool, autoHide)); +} + +void ControlCenterAdaptor::Show() +{ + // handle method call com.deepin.dde.ControlCenter.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void ControlCenterAdaptor::ShowHome() +{ + // handle method call com.deepin.dde.ControlCenter.ShowHome + QMetaObject::invokeMethod(parent(), "ShowHome"); +} + +void ControlCenterAdaptor::ShowImmediately() +{ + // handle method call com.deepin.dde.ControlCenter.ShowImmediately + QMetaObject::invokeMethod(parent(), "ShowImmediately"); +} + +void ControlCenterAdaptor::ShowModule(const QString &module) +{ + // handle method call com.deepin.dde.ControlCenter.ShowModule + QMetaObject::invokeMethod(parent(), "ShowModule", Q_ARG(QString, module)); +} + +void ControlCenterAdaptor::ShowPage(const QString &module, const QString &page) +{ + // handle method call com.deepin.dde.ControlCenter.ShowPage + QMetaObject::invokeMethod(parent(), "ShowPage", Q_ARG(QString, module), Q_ARG(QString, page)); +} + +void ControlCenterAdaptor::Toggle() +{ + // handle method call com.deepin.dde.ControlCenter.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +void ControlCenterAdaptor::ToggleInLeft() +{ + // handle method call com.deepin.dde.ControlCenter.ToggleInLeft + QMetaObject::invokeMethod(parent(), "ToggleInLeft"); +} + +bool ControlCenterAdaptor::isModuleAvailable(const QString &m) +{ + // handle method call com.deepin.dde.ControlCenter.isModuleAvailable + bool out0; + QMetaObject::invokeMethod(parent(), "isModuleAvailable", Q_RETURN_ARG(bool, out0), Q_ARG(QString, m)); + return out0; +} + +bool ControlCenterAdaptor::isNetworkCanShowPassword() +{ + // handle method call com.deepin.dde.ControlCenter.isNetworkCanShowPassword + bool out0; + QMetaObject::invokeMethod(parent(), "isNetworkCanShowPassword", Q_RETURN_ARG(bool, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.h new file mode 100644 index 0000000..ed2c687 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor.h @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.ControlCenter.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenterAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenter.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_CONTROLCENTERADAPTOR_H +#define COM_DEEPIN_DDE_CONTROLCENTERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.ControlCenter.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.ControlCenter + */ +class ControlCenterAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.ControlCenter") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ControlCenterAdaptor(QObject *parent); + virtual ~ControlCenterAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(ControlCenterRect Rect READ rect) + ControlCenterRect rect() const; + + Q_PROPERTY(bool ShowInRight READ showInRight) + bool showInRight() const; + +public Q_SLOTS: // METHODS + void Hide(); + void HideImmediately(); + void SetAutoHide(bool autoHide); + void Show(); + void ShowHome(); + void ShowImmediately(); + void ShowModule(const QString &module); + void ShowPage(const QString &module, const QString &page); + void Toggle(); + void ToggleInLeft(); + bool isModuleAvailable(const QString &m); + bool isNetworkCanShowPassword(); +Q_SIGNALS: // SIGNALS + void destRectChanged(); + void rectChanged(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.cpp new file mode 100644 index 0000000..97843fa --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.cpp @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.Dock.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Dock.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DockAdaptor + */ + +DockAdaptor::DockAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DockAdaptor::~DockAdaptor() +{ + // destructor +} + +DockGeometry DockAdaptor::geometry() const +{ + // get the value of property geometry + return qvariant_cast< DockGeometry >(parent()->property("geometry")); +} + +bool DockAdaptor::showInPrimary() const +{ + // get the value of property showInPrimary + return qvariant_cast< bool >(parent()->property("showInPrimary")); +} + +void DockAdaptor::setShowInPrimary(bool value) +{ + // set the value of property showInPrimary + parent()->setProperty("showInPrimary", QVariant::fromValue(value)); +} + +QStringList DockAdaptor::GetLoadedPlugins() +{ + // handle method call com.deepin.dde.Dock.GetLoadedPlugins + QStringList list; + QMetaObject::invokeMethod(parent(), "GetLoadedPlugins", Q_RETURN_ARG(QStringList, list)); + return list; +} + +void DockAdaptor::ReloadPlugins() +{ + // handle method call com.deepin.dde.Dock.ReloadPlugins + QMetaObject::invokeMethod(parent(), "ReloadPlugins"); +} + +void DockAdaptor::callShow() +{ + // handle method call com.deepin.dde.Dock.callShow + QMetaObject::invokeMethod(parent(), "callShow"); +} + +QString DockAdaptor::getPluginKey(const QString &pluginName) +{ + // handle method call com.deepin.dde.Dock.getPluginKey + QString key; + QMetaObject::invokeMethod(parent(), "getPluginKey", Q_RETURN_ARG(QString, key), Q_ARG(QString, pluginName)); + return key; +} + +bool DockAdaptor::getPluginVisible(const QString &pluginName) +{ + // handle method call com.deepin.dde.Dock.getPluginVisible + bool visible; + QMetaObject::invokeMethod(parent(), "getPluginVisible", Q_RETURN_ARG(bool, visible), Q_ARG(QString, pluginName)); + return visible; +} + +void DockAdaptor::resizeDock(int offset, bool dragging) +{ + // handle method call com.deepin.dde.Dock.resizeDock + QMetaObject::invokeMethod(parent(), "resizeDock", Q_ARG(int, offset), Q_ARG(bool, dragging)); +} + +void DockAdaptor::setPluginVisible(const QString &pluginName, bool visible) +{ + // handle method call com.deepin.dde.Dock.setPluginVisible + QMetaObject::invokeMethod(parent(), "setPluginVisible", Q_ARG(QString, pluginName), Q_ARG(bool, visible)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.h new file mode 100644 index 0000000..cc99b0e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor.h @@ -0,0 +1,91 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.Dock.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.DockAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Dock.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_DOCKADAPTOR_H +#define COM_DEEPIN_DDE_DOCKADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Dock.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.Dock + */ +class DockAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.Dock") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + DockAdaptor(QObject *parent); + virtual ~DockAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(DockGeometry geometry READ geometry) + DockGeometry geometry() const; + + Q_PROPERTY(bool showInPrimary READ showInPrimary WRITE setShowInPrimary) + bool showInPrimary() const; + void setShowInPrimary(bool value); + +public Q_SLOTS: // METHODS + QStringList GetLoadedPlugins(); + void ReloadPlugins(); + void callShow(); + QString getPluginKey(const QString &pluginName); + bool getPluginVisible(const QString &pluginName); + void resizeDock(int offset, bool dragging); + void setPluginVisible(const QString &pluginName, bool visible); +Q_SIGNALS: // SIGNALS + void pluginVisibleChanged(const QString &in0, bool in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.cpp new file mode 100644 index 0000000..0f09d0a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.cpp @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.Launcher.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Launcher.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LauncherAdaptor + */ + +LauncherAdaptor::LauncherAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LauncherAdaptor::~LauncherAdaptor() +{ + // destructor +} + +bool LauncherAdaptor::visible() const +{ + // get the value of property Visible + return qvariant_cast< bool >(parent()->property("Visible")); +} + +void LauncherAdaptor::Exit() +{ + // handle method call com.deepin.dde.Launcher.Exit + QMetaObject::invokeMethod(parent(), "Exit"); +} + +void LauncherAdaptor::Hide() +{ + // handle method call com.deepin.dde.Launcher.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +bool LauncherAdaptor::IsVisible() +{ + // handle method call com.deepin.dde.Launcher.IsVisible + bool out0; + QMetaObject::invokeMethod(parent(), "IsVisible", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void LauncherAdaptor::Show() +{ + // handle method call com.deepin.dde.Launcher.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void LauncherAdaptor::ShowByMode(qlonglong in0) +{ + // handle method call com.deepin.dde.Launcher.ShowByMode + QMetaObject::invokeMethod(parent(), "ShowByMode", Q_ARG(qlonglong, in0)); +} + +void LauncherAdaptor::Toggle() +{ + // handle method call com.deepin.dde.Launcher.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +void LauncherAdaptor::UninstallApp(const QString &appKey) +{ + // handle method call com.deepin.dde.Launcher.UninstallApp + QMetaObject::invokeMethod(parent(), "UninstallApp", Q_ARG(QString, appKey)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.h new file mode 100644 index 0000000..5650141 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor.h @@ -0,0 +1,79 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.Launcher.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.LauncherAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Launcher.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_LAUNCHERADAPTOR_H +#define COM_DEEPIN_DDE_LAUNCHERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Launcher.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.Launcher + */ +class LauncherAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.Launcher") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + LauncherAdaptor(QObject *parent); + virtual ~LauncherAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Visible READ visible) + bool visible() const; + +public Q_SLOTS: // METHODS + void Exit(); + void Hide(); + bool IsVisible(); + void Show(); + void ShowByMode(qlonglong in0); + void Toggle(); + void UninstallApp(const QString &appKey); +Q_SIGNALS: // SIGNALS + void Closed(); + void Shown(); + void VisibleChanged(bool visible); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.cpp new file mode 100644 index 0000000..d2dee6d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.cpp @@ -0,0 +1,205 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.Notification.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Notification.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class NotificationAdaptor + */ + +NotificationAdaptor::NotificationAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +NotificationAdaptor::~NotificationAdaptor() +{ + // destructor +} + +QString NotificationAdaptor::allSetting() const +{ + // get the value of property allSetting + return qvariant_cast< QString >(parent()->property("allSetting")); +} + +void NotificationAdaptor::setAllSetting(const QString &value) +{ + // set the value of property allSetting + parent()->setProperty("allSetting", QVariant::fromValue(value)); +} + +uint NotificationAdaptor::recordCount() const +{ + // get the value of property recordCount + return qvariant_cast< uint >(parent()->property("recordCount")); +} + +QString NotificationAdaptor::systemSetting() const +{ + // get the value of property systemSetting + return qvariant_cast< QString >(parent()->property("systemSetting")); +} + +void NotificationAdaptor::setSystemSetting(const QString &value) +{ + // set the value of property systemSetting + parent()->setProperty("systemSetting", QVariant::fromValue(value)); +} + +void NotificationAdaptor::ClearRecords() +{ + // handle method call com.deepin.dde.Notification.ClearRecords + QMetaObject::invokeMethod(parent(), "ClearRecords"); +} + +void NotificationAdaptor::CloseNotification(uint in0) +{ + // handle method call com.deepin.dde.Notification.CloseNotification + QMetaObject::invokeMethod(parent(), "CloseNotification", Q_ARG(uint, in0)); +} + +QString NotificationAdaptor::GetAllRecords() +{ + // handle method call com.deepin.dde.Notification.GetAllRecords + QString out0; + QMetaObject::invokeMethod(parent(), "GetAllRecords", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusVariant NotificationAdaptor::GetAppInfo(const QString &in0, uint in1) +{ + // handle method call com.deepin.dde.Notification.GetAppInfo + QDBusVariant out0; + QMetaObject::invokeMethod(parent(), "GetAppInfo", Q_RETURN_ARG(QDBusVariant, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +QStringList NotificationAdaptor::GetAppList() +{ + // handle method call com.deepin.dde.Notification.GetAppList + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetAppList", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList NotificationAdaptor::GetCapbilities() +{ + // handle method call com.deepin.dde.Notification.GetCapbilities + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetCapbilities", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString NotificationAdaptor::GetRecordById(const QString &in0) +{ + // handle method call com.deepin.dde.Notification.GetRecordById + QString out0; + QMetaObject::invokeMethod(parent(), "GetRecordById", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString NotificationAdaptor::GetRecordsFromId(int in0, const QString &in1) +{ + // handle method call com.deepin.dde.Notification.GetRecordsFromId + QString out0; + QMetaObject::invokeMethod(parent(), "GetRecordsFromId", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0), Q_ARG(QString, in1)); + return out0; +} + +QString NotificationAdaptor::GetServerInformation(QString &out1, QString &out2, QString &out3) +{ + // handle method call com.deepin.dde.Notification.GetServerInformation + //return static_cast(parent())->GetServerInformation(out1, out2, out3); +} + +QDBusVariant NotificationAdaptor::GetSystemInfo(uint in0) +{ + // handle method call com.deepin.dde.Notification.GetSystemInfo + QDBusVariant out0; + QMetaObject::invokeMethod(parent(), "GetSystemInfo", Q_RETURN_ARG(QDBusVariant, out0), Q_ARG(uint, in0)); + return out0; +} + +void NotificationAdaptor::Hide() +{ + // handle method call com.deepin.dde.Notification.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +uint NotificationAdaptor::Notify(const QString &in0, uint in1, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7) +{ + // handle method call com.deepin.dde.Notification.Notify + uint out0; + QMetaObject::invokeMethod(parent(), "Notify", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QString, in2), Q_ARG(QString, in3), Q_ARG(QString, in4), Q_ARG(QStringList, in5), Q_ARG(QVariantMap, in6), Q_ARG(int, in7)); + return out0; +} + +void NotificationAdaptor::RemoveRecord(const QString &in0) +{ + // handle method call com.deepin.dde.Notification.RemoveRecord + QMetaObject::invokeMethod(parent(), "RemoveRecord", Q_ARG(QString, in0)); +} + +void NotificationAdaptor::SetAppInfo(const QString &in0, uint in1, const QDBusVariant &in2) +{ + // handle method call com.deepin.dde.Notification.SetAppInfo + QMetaObject::invokeMethod(parent(), "SetAppInfo", Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QDBusVariant, in2)); +} + +void NotificationAdaptor::SetSystemInfo(uint in0, const QDBusVariant &in1) +{ + // handle method call com.deepin.dde.Notification.SetSystemInfo + QMetaObject::invokeMethod(parent(), "SetSystemInfo", Q_ARG(uint, in0), Q_ARG(QDBusVariant, in1)); +} + +void NotificationAdaptor::Show() +{ + // handle method call com.deepin.dde.Notification.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void NotificationAdaptor::Toggle() +{ + // handle method call com.deepin.dde.Notification.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +QString NotificationAdaptor::getAppSetting(const QString &in0) +{ + // handle method call com.deepin.dde.Notification.getAppSetting + QString out0; + QMetaObject::invokeMethod(parent(), "getAppSetting", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +uint NotificationAdaptor::recordCount() +{ + // handle method call com.deepin.dde.Notification.recordCount + uint out0; + QMetaObject::invokeMethod(parent(), "recordCount", Q_RETURN_ARG(uint, out0)); + return out0; +} + +void NotificationAdaptor::setAppSetting(const QString &in0) +{ + // handle method call com.deepin.dde.Notification.setAppSetting + QMetaObject::invokeMethod(parent(), "setAppSetting", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.h new file mode 100644 index 0000000..4902135 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor.h @@ -0,0 +1,204 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.Notification.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.NotificationAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Notification.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_NOTIFICATIONADAPTOR_H +#define COM_DEEPIN_DDE_NOTIFICATIONADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.Notification.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.Notification + */ +class NotificationAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.Notification") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + NotificationAdaptor(QObject *parent); + virtual ~NotificationAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString allSetting READ allSetting WRITE setAllSetting) + QString allSetting() const; + void setAllSetting(const QString &value); + + Q_PROPERTY(uint recordCount READ recordCount) + uint recordCount() const; + + Q_PROPERTY(QString systemSetting READ systemSetting WRITE setSystemSetting) + QString systemSetting() const; + void setSystemSetting(const QString &value); + +public Q_SLOTS: // METHODS + void ClearRecords(); + void CloseNotification(uint in0); + QString GetAllRecords(); + QDBusVariant GetAppInfo(const QString &in0, uint in1); + QStringList GetAppList(); + QStringList GetCapbilities(); + QString GetRecordById(const QString &in0); + QString GetRecordsFromId(int in0, const QString &in1); + QString GetServerInformation(QString &out1, QString &out2, QString &out3); + QDBusVariant GetSystemInfo(uint in0); + void Hide(); + uint Notify(const QString &in0, uint in1, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7); + void RemoveRecord(const QString &in0); + void SetAppInfo(const QString &in0, uint in1, const QDBusVariant &in2); + void SetSystemInfo(uint in0, const QDBusVariant &in1); + void Show(); + void Toggle(); + QString getAppSetting(const QString &in0); + uint recordCount(); + void setAppSetting(const QString &in0); +Q_SIGNALS: // SIGNALS + void ActionInvoked(uint in0, const QString &in1); + void AppAddedSignal(const QString &in0); + void AppInfoChanged(const QString &in0, uint in1, const QDBusVariant &in2); + void AppRemovedSignal(const QString &in0); + void NotificationClosed(uint in0, uint in1); + void RecordAdded(const QString &in0); + void SystemInfoChanged(uint in0, const QDBusVariant &in1); + void appAdded(const QString &in0); + void appRemoved(const QString &in0); + void appSettingChanged(const QString &in0); + void systemSettingChanged(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.cpp new file mode 100644 index 0000000..2469263 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.cpp @@ -0,0 +1,63 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.TrayManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TrayManagerAdaptor + */ + +TrayManagerAdaptor::TrayManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TrayManagerAdaptor::~TrayManagerAdaptor() +{ + // destructor +} + +QList TrayManagerAdaptor::trayIcons() const +{ + // get the value of property TrayIcons + return qvariant_cast< QList >(parent()->property("TrayIcons")); +} + +void TrayManagerAdaptor::EnableNotification(uint win, bool enabled) +{ + // handle method call com.deepin.dde.TrayManager.EnableNotification + QMetaObject::invokeMethod(parent(), "EnableNotification", Q_ARG(uint, win), Q_ARG(bool, enabled)); +} + +QString TrayManagerAdaptor::GetName(uint win) +{ + // handle method call com.deepin.dde.TrayManager.GetName + QString name; + QMetaObject::invokeMethod(parent(), "GetName", Q_RETURN_ARG(QString, name), Q_ARG(uint, win)); + return name; +} + +bool TrayManagerAdaptor::Manage() +{ + // handle method call com.deepin.dde.TrayManager.Manage + bool ok; + QMetaObject::invokeMethod(parent(), "Manage", Q_RETURN_ARG(bool, ok)); + return ok; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.h new file mode 100644 index 0000000..32e68f7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor.h @@ -0,0 +1,81 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.TrayManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_TRAYMANAGERADAPTOR_H +#define COM_DEEPIN_DDE_TRAYMANAGERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.TrayManager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.TrayManager + */ +class TrayManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.TrayManager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TrayManagerAdaptor(QObject *parent); + virtual ~TrayManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QList TrayIcons READ trayIcons) + QList trayIcons() const; + +public Q_SLOTS: // METHODS + void EnableNotification(uint win, bool enabled); + QString GetName(uint win); + bool Manage(); +Q_SIGNALS: // SIGNALS + void Added(uint id); + void Changed(uint id); + void Inited(); + void Removed(uint id); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.cpp new file mode 100644 index 0000000..819d5e6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.cpp @@ -0,0 +1,143 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.daemon.Dock.Entry.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.Entry.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class EntryAdaptor + */ + +EntryAdaptor::EntryAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +EntryAdaptor::~EntryAdaptor() +{ + // destructor +} + +uint EntryAdaptor::currentWindow() const +{ + // get the value of property CurrentWindow + return qvariant_cast< uint >(parent()->property("CurrentWindow")); +} + +QString EntryAdaptor::desktopFile() const +{ + // get the value of property DesktopFile + return qvariant_cast< QString >(parent()->property("DesktopFile")); +} + +QString EntryAdaptor::icon() const +{ + // get the value of property Icon + return qvariant_cast< QString >(parent()->property("Icon")); +} + +QString EntryAdaptor::id() const +{ + // get the value of property Id + return qvariant_cast< QString >(parent()->property("Id")); +} + +bool EntryAdaptor::isActive() const +{ + // get the value of property IsActive + return qvariant_cast< bool >(parent()->property("IsActive")); +} + +bool EntryAdaptor::isDocked() const +{ + // get the value of property IsDocked + return qvariant_cast< bool >(parent()->property("IsDocked")); +} + +QString EntryAdaptor::menu() const +{ + // get the value of property Menu + return qvariant_cast< QString >(parent()->property("Menu")); +} + +QString EntryAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +WindowInfoMap EntryAdaptor::windowInfos() const +{ + // get the value of property WindowInfos + return qvariant_cast< WindowInfoMap >(parent()->property("WindowInfos")); +} + +void EntryAdaptor::Activate(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.Activate + QMetaObject::invokeMethod(parent(), "Activate", Q_ARG(uint, in0)); +} + +void EntryAdaptor::Check() +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.Check + QMetaObject::invokeMethod(parent(), "Check"); +} + +void EntryAdaptor::ForceQuit() +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.ForceQuit + QMetaObject::invokeMethod(parent(), "ForceQuit"); +} + +void EntryAdaptor::HandleDragDrop(uint in0, const QStringList &in1) +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.HandleDragDrop + QMetaObject::invokeMethod(parent(), "HandleDragDrop", Q_ARG(uint, in0), Q_ARG(QStringList, in1)); +} + +void EntryAdaptor::HandleMenuItem(uint in0, const QString &in1) +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.HandleMenuItem + QMetaObject::invokeMethod(parent(), "HandleMenuItem", Q_ARG(uint, in0), Q_ARG(QString, in1)); +} + +void EntryAdaptor::NewInstance(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.NewInstance + QMetaObject::invokeMethod(parent(), "NewInstance", Q_ARG(uint, in0)); +} + +void EntryAdaptor::PresentWindows() +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.PresentWindows + QMetaObject::invokeMethod(parent(), "PresentWindows"); +} + +void EntryAdaptor::RequestDock() +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.RequestDock + QMetaObject::invokeMethod(parent(), "RequestDock"); +} + +void EntryAdaptor::RequestUndock() +{ + // handle method call com.deepin.dde.daemon.Dock.Entry.RequestUndock + QMetaObject::invokeMethod(parent(), "RequestUndock"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.h new file mode 100644 index 0000000..5e2ddbf --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor.h @@ -0,0 +1,113 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.daemon.Dock.Entry.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.EntryAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.Entry.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_DAEMON_DOCK_ENTRYADAPTOR_H +#define COM_DEEPIN_DDE_DAEMON_DOCK_ENTRYADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.Entry.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.daemon.Dock.Entry + */ +class EntryAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.daemon.Dock.Entry") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + EntryAdaptor(QObject *parent); + virtual ~EntryAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(uint CurrentWindow READ currentWindow) + uint currentWindow() const; + + Q_PROPERTY(QString DesktopFile READ desktopFile) + QString desktopFile() const; + + Q_PROPERTY(QString Icon READ icon) + QString icon() const; + + Q_PROPERTY(QString Id READ id) + QString id() const; + + Q_PROPERTY(bool IsActive READ isActive) + bool isActive() const; + + Q_PROPERTY(bool IsDocked READ isDocked) + bool isDocked() const; + + Q_PROPERTY(QString Menu READ menu) + QString menu() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(WindowInfoMap WindowInfos READ windowInfos) + WindowInfoMap windowInfos() const; + +public Q_SLOTS: // METHODS + void Activate(uint in0); + void Check(); + void ForceQuit(); + void HandleDragDrop(uint in0, const QStringList &in1); + void HandleMenuItem(uint in0, const QString &in1); + void NewInstance(uint in0); + void PresentWindows(); + void RequestDock(); + void RequestUndock(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.cpp new file mode 100644 index 0000000..5f40a25 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.cpp @@ -0,0 +1,321 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.daemon.Dock.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DockAdaptor + */ + +DockAdaptor::DockAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DockAdaptor::~DockAdaptor() +{ + // destructor +} + +int DockAdaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< int >(parent()->property("DisplayMode")); +} + +void DockAdaptor::setDisplayMode(int value) +{ + // set the value of property DisplayMode + parent()->setProperty("DisplayMode", QVariant::fromValue(value)); +} + +QStringList DockAdaptor::dockedApps() const +{ + // get the value of property DockedApps + return qvariant_cast< QStringList >(parent()->property("DockedApps")); +} + +QList DockAdaptor::entries() const +{ + // get the value of property Entries + return qvariant_cast< QList >(parent()->property("Entries")); +} + +DockRect DockAdaptor::frontendWindowRect() const +{ + // get the value of property FrontendWindowRect + return qvariant_cast< DockRect >(parent()->property("FrontendWindowRect")); +} + +int DockAdaptor::hideMode() const +{ + // get the value of property HideMode + return qvariant_cast< int >(parent()->property("HideMode")); +} + +void DockAdaptor::setHideMode(int value) +{ + // set the value of property HideMode + parent()->setProperty("HideMode", QVariant::fromValue(value)); +} + +int DockAdaptor::hideState() const +{ + // get the value of property HideState + return qvariant_cast< int >(parent()->property("HideState")); +} + +uint DockAdaptor::hideTimeout() const +{ + // get the value of property HideTimeout + return qvariant_cast< uint >(parent()->property("HideTimeout")); +} + +void DockAdaptor::setHideTimeout(uint value) +{ + // set the value of property HideTimeout + parent()->setProperty("HideTimeout", QVariant::fromValue(value)); +} + +uint DockAdaptor::iconSize() const +{ + // get the value of property IconSize + return qvariant_cast< uint >(parent()->property("IconSize")); +} + +void DockAdaptor::setIconSize(uint value) +{ + // set the value of property IconSize + parent()->setProperty("IconSize", QVariant::fromValue(value)); +} + +double DockAdaptor::opacity() const +{ + // get the value of property Opacity + return qvariant_cast< double >(parent()->property("Opacity")); +} + +void DockAdaptor::setOpacity(double value) +{ + // set the value of property Opacity + parent()->setProperty("Opacity", QVariant::fromValue(value)); +} + +int DockAdaptor::position() const +{ + // get the value of property Position + return qvariant_cast< int >(parent()->property("Position")); +} + +void DockAdaptor::setPosition(int value) +{ + // set the value of property Position + parent()->setProperty("Position", QVariant::fromValue(value)); +} + +uint DockAdaptor::showTimeout() const +{ + // get the value of property ShowTimeout + return qvariant_cast< uint >(parent()->property("ShowTimeout")); +} + +void DockAdaptor::setShowTimeout(uint value) +{ + // set the value of property ShowTimeout + parent()->setProperty("ShowTimeout", QVariant::fromValue(value)); +} + +uint DockAdaptor::windowSize() const +{ + // get the value of property WindowSize + return qvariant_cast< uint >(parent()->property("WindowSize")); +} + +void DockAdaptor::setWindowSize(uint value) +{ + // set the value of property WindowSize + parent()->setProperty("WindowSize", QVariant::fromValue(value)); +} + +uint DockAdaptor::windowSizeEfficient() const +{ + // get the value of property WindowSizeEfficient + return qvariant_cast< uint >(parent()->property("WindowSizeEfficient")); +} + +void DockAdaptor::setWindowSizeEfficient(uint value) +{ + // set the value of property WindowSizeEfficient + parent()->setProperty("WindowSizeEfficient", QVariant::fromValue(value)); +} + +uint DockAdaptor::windowSizeFashion() const +{ + // get the value of property WindowSizeFashion + return qvariant_cast< uint >(parent()->property("WindowSizeFashion")); +} + +void DockAdaptor::setWindowSizeFashion(uint value) +{ + // set the value of property WindowSizeFashion + parent()->setProperty("WindowSizeFashion", QVariant::fromValue(value)); +} + +void DockAdaptor::ActivateWindow(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.ActivateWindow + QMetaObject::invokeMethod(parent(), "ActivateWindow", Q_ARG(uint, in0)); +} + +void DockAdaptor::CancelPreviewWindow() +{ + // handle method call com.deepin.dde.daemon.Dock.CancelPreviewWindow + QMetaObject::invokeMethod(parent(), "CancelPreviewWindow"); +} + +void DockAdaptor::CloseWindow(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.CloseWindow + QMetaObject::invokeMethod(parent(), "CloseWindow", Q_ARG(uint, in0)); +} + +QStringList DockAdaptor::GetDockedAppsDesktopFiles() +{ + // handle method call com.deepin.dde.daemon.Dock.GetDockedAppsDesktopFiles + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetDockedAppsDesktopFiles", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList DockAdaptor::GetEntryIDs() +{ + // handle method call com.deepin.dde.daemon.Dock.GetEntryIDs + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetEntryIDs", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString DockAdaptor::GetPluginSettings() +{ + // handle method call com.deepin.dde.daemon.Dock.GetPluginSettings + QString out0; + QMetaObject::invokeMethod(parent(), "GetPluginSettings", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool DockAdaptor::IsDocked(const QString &in0) +{ + // handle method call com.deepin.dde.daemon.Dock.IsDocked + bool out0; + QMetaObject::invokeMethod(parent(), "IsDocked", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +bool DockAdaptor::IsOnDock(const QString &in0) +{ + // handle method call com.deepin.dde.daemon.Dock.IsOnDock + bool out0; + QMetaObject::invokeMethod(parent(), "IsOnDock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void DockAdaptor::MakeWindowAbove(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.MakeWindowAbove + QMetaObject::invokeMethod(parent(), "MakeWindowAbove", Q_ARG(uint, in0)); +} + +void DockAdaptor::MaximizeWindow(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.MaximizeWindow + QMetaObject::invokeMethod(parent(), "MaximizeWindow", Q_ARG(uint, in0)); +} + +void DockAdaptor::MergePluginSettings(const QString &in0) +{ + // handle method call com.deepin.dde.daemon.Dock.MergePluginSettings + QMetaObject::invokeMethod(parent(), "MergePluginSettings", Q_ARG(QString, in0)); +} + +void DockAdaptor::MinimizeWindow(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.MinimizeWindow + QMetaObject::invokeMethod(parent(), "MinimizeWindow", Q_ARG(uint, in0)); +} + +void DockAdaptor::MoveEntry(int in0, int in1) +{ + // handle method call com.deepin.dde.daemon.Dock.MoveEntry + QMetaObject::invokeMethod(parent(), "MoveEntry", Q_ARG(int, in0), Q_ARG(int, in1)); +} + +void DockAdaptor::MoveWindow(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.MoveWindow + QMetaObject::invokeMethod(parent(), "MoveWindow", Q_ARG(uint, in0)); +} + +void DockAdaptor::PreviewWindow(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.PreviewWindow + QMetaObject::invokeMethod(parent(), "PreviewWindow", Q_ARG(uint, in0)); +} + +QString DockAdaptor::QueryWindowIdentifyMethod(uint in0) +{ + // handle method call com.deepin.dde.daemon.Dock.QueryWindowIdentifyMethod + QString out0; + QMetaObject::invokeMethod(parent(), "QueryWindowIdentifyMethod", Q_RETURN_ARG(QString, out0), Q_ARG(uint, in0)); + return out0; +} + +void DockAdaptor::RemovePluginSettings(const QString &in0, const QStringList &in1) +{ + // handle method call com.deepin.dde.daemon.Dock.RemovePluginSettings + QMetaObject::invokeMethod(parent(), "RemovePluginSettings", Q_ARG(QString, in0), Q_ARG(QStringList, in1)); +} + +bool DockAdaptor::RequestDock(const QString &in0, int in1) +{ + // handle method call com.deepin.dde.daemon.Dock.RequestDock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestDock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0), Q_ARG(int, in1)); + return out0; +} + +bool DockAdaptor::RequestUndock(const QString &in0) +{ + // handle method call com.deepin.dde.daemon.Dock.RequestUndock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestUndock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void DockAdaptor::SetFrontendWindowRect(int in0, int in1, uint in2, uint in3) +{ + // handle method call com.deepin.dde.daemon.Dock.SetFrontendWindowRect + QMetaObject::invokeMethod(parent(), "SetFrontendWindowRect", Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(uint, in2), Q_ARG(uint, in3)); +} + +void DockAdaptor::SetPluginSettings(const QString &in0) +{ + // handle method call com.deepin.dde.daemon.Dock.SetPluginSettings + QMetaObject::invokeMethod(parent(), "SetPluginSettings", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.h new file mode 100644 index 0000000..68041bf --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor.h @@ -0,0 +1,223 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.daemon.Dock.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.DockAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_DAEMON_DOCKADAPTOR_H +#define COM_DEEPIN_DDE_DAEMON_DOCKADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Dock.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.daemon.Dock + */ +class DockAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.daemon.Dock") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + DockAdaptor(QObject *parent); + virtual ~DockAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode) + int displayMode() const; + void setDisplayMode(int value); + + Q_PROPERTY(QStringList DockedApps READ dockedApps) + QStringList dockedApps() const; + + Q_PROPERTY(QList Entries READ entries) + QList entries() const; + + Q_PROPERTY(DockRect FrontendWindowRect READ frontendWindowRect) + DockRect frontendWindowRect() const; + + Q_PROPERTY(int HideMode READ hideMode WRITE setHideMode) + int hideMode() const; + void setHideMode(int value); + + Q_PROPERTY(int HideState READ hideState) + int hideState() const; + + Q_PROPERTY(uint HideTimeout READ hideTimeout WRITE setHideTimeout) + uint hideTimeout() const; + void setHideTimeout(uint value); + + Q_PROPERTY(uint IconSize READ iconSize WRITE setIconSize) + uint iconSize() const; + void setIconSize(uint value); + + Q_PROPERTY(double Opacity READ opacity WRITE setOpacity) + double opacity() const; + void setOpacity(double value); + + Q_PROPERTY(int Position READ position WRITE setPosition) + int position() const; + void setPosition(int value); + + Q_PROPERTY(uint ShowTimeout READ showTimeout WRITE setShowTimeout) + uint showTimeout() const; + void setShowTimeout(uint value); + + Q_PROPERTY(uint WindowSize READ windowSize WRITE setWindowSize) + uint windowSize() const; + void setWindowSize(uint value); + + Q_PROPERTY(uint WindowSizeEfficient READ windowSizeEfficient WRITE setWindowSizeEfficient) + uint windowSizeEfficient() const; + void setWindowSizeEfficient(uint value); + + Q_PROPERTY(uint WindowSizeFashion READ windowSizeFashion WRITE setWindowSizeFashion) + uint windowSizeFashion() const; + void setWindowSizeFashion(uint value); + +public Q_SLOTS: // METHODS + void ActivateWindow(uint in0); + void CancelPreviewWindow(); + void CloseWindow(uint in0); + QStringList GetDockedAppsDesktopFiles(); + QStringList GetEntryIDs(); + QString GetPluginSettings(); + bool IsDocked(const QString &in0); + bool IsOnDock(const QString &in0); + void MakeWindowAbove(uint in0); + void MaximizeWindow(uint in0); + void MergePluginSettings(const QString &in0); + void MinimizeWindow(uint in0); + void MoveEntry(int in0, int in1); + void MoveWindow(uint in0); + void PreviewWindow(uint in0); + QString QueryWindowIdentifyMethod(uint in0); + void RemovePluginSettings(const QString &in0, const QStringList &in1); + bool RequestDock(const QString &in0, int in1); + bool RequestUndock(const QString &in0); + void SetFrontendWindowRect(int in0, int in1, uint in2, uint in3); + void SetPluginSettings(const QString &in0); +Q_SIGNALS: // SIGNALS + void DockAppSettingsSynced(); + void EntryAdded(const QDBusObjectPath &in0, int in1); + void EntryRemoved(const QString &in0); + void PluginSettingsSynced(); + void ServiceRestarted(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.cpp new file mode 100644 index 0000000..00684fa --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.cpp @@ -0,0 +1,153 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.daemon.Launcher.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Launcher.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LauncherAdaptor + */ + +LauncherAdaptor::LauncherAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LauncherAdaptor::~LauncherAdaptor() +{ + // destructor +} + +int LauncherAdaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< int >(parent()->property("DisplayMode")); +} + +void LauncherAdaptor::setDisplayMode(int value) +{ + // set the value of property DisplayMode + parent()->setProperty("DisplayMode", QVariant::fromValue(value)); +} + +bool LauncherAdaptor::fullscreen() const +{ + // get the value of property Fullscreen + return qvariant_cast< bool >(parent()->property("Fullscreen")); +} + +void LauncherAdaptor::setFullscreen(bool value) +{ + // set the value of property Fullscreen + parent()->setProperty("Fullscreen", QVariant::fromValue(value)); +} + +LauncherItemInfoList LauncherAdaptor::GetAllItemInfos() +{ + // handle method call com.deepin.dde.daemon.Launcher.GetAllItemInfos + LauncherItemInfoList itemInfoList; + QMetaObject::invokeMethod(parent(), "GetAllItemInfos", Q_RETURN_ARG(LauncherItemInfoList, itemInfoList)); + return itemInfoList; +} + +QStringList LauncherAdaptor::GetAllNewInstalledApps() +{ + // handle method call com.deepin.dde.daemon.Launcher.GetAllNewInstalledApps + QStringList apps; + QMetaObject::invokeMethod(parent(), "GetAllNewInstalledApps", Q_RETURN_ARG(QStringList, apps)); + return apps; +} + +bool LauncherAdaptor::GetDisableScaling(const QString &id) +{ + // handle method call com.deepin.dde.daemon.Launcher.GetDisableScaling + bool value; + QMetaObject::invokeMethod(parent(), "GetDisableScaling", Q_RETURN_ARG(bool, value), Q_ARG(QString, id)); + return value; +} + +LauncherItemInfo LauncherAdaptor::GetItemInfo(const QString &id) +{ + // handle method call com.deepin.dde.daemon.Launcher.GetItemInfo + LauncherItemInfo itemInfo; + QMetaObject::invokeMethod(parent(), "GetItemInfo", Q_RETURN_ARG(LauncherItemInfo, itemInfo), Q_ARG(QString, id)); + return itemInfo; +} + +bool LauncherAdaptor::GetUseProxy(const QString &id) +{ + // handle method call com.deepin.dde.daemon.Launcher.GetUseProxy + bool value; + QMetaObject::invokeMethod(parent(), "GetUseProxy", Q_RETURN_ARG(bool, value), Q_ARG(QString, id)); + return value; +} + +bool LauncherAdaptor::IsItemOnDesktop(const QString &id) +{ + // handle method call com.deepin.dde.daemon.Launcher.IsItemOnDesktop + bool result; + QMetaObject::invokeMethod(parent(), "IsItemOnDesktop", Q_RETURN_ARG(bool, result), Q_ARG(QString, id)); + return result; +} + +void LauncherAdaptor::MarkLaunched(const QString &id) +{ + // handle method call com.deepin.dde.daemon.Launcher.MarkLaunched + QMetaObject::invokeMethod(parent(), "MarkLaunched", Q_ARG(QString, id)); +} + +bool LauncherAdaptor::RequestRemoveFromDesktop(const QString &id) +{ + // handle method call com.deepin.dde.daemon.Launcher.RequestRemoveFromDesktop + bool ok; + QMetaObject::invokeMethod(parent(), "RequestRemoveFromDesktop", Q_RETURN_ARG(bool, ok), Q_ARG(QString, id)); + return ok; +} + +bool LauncherAdaptor::RequestSendToDesktop(const QString &id) +{ + // handle method call com.deepin.dde.daemon.Launcher.RequestSendToDesktop + bool ok; + QMetaObject::invokeMethod(parent(), "RequestSendToDesktop", Q_RETURN_ARG(bool, ok), Q_ARG(QString, id)); + return ok; +} + +void LauncherAdaptor::RequestUninstall(const QString &id, bool purge) +{ + // handle method call com.deepin.dde.daemon.Launcher.RequestUninstall + QMetaObject::invokeMethod(parent(), "RequestUninstall", Q_ARG(QString, id), Q_ARG(bool, purge)); +} + +void LauncherAdaptor::Search(const QString &key) +{ + // handle method call com.deepin.dde.daemon.Launcher.Search + QMetaObject::invokeMethod(parent(), "Search", Q_ARG(QString, key)); +} + +void LauncherAdaptor::SetDisableScaling(const QString &id, bool value) +{ + // handle method call com.deepin.dde.daemon.Launcher.SetDisableScaling + QMetaObject::invokeMethod(parent(), "SetDisableScaling", Q_ARG(QString, id), Q_ARG(bool, value)); +} + +void LauncherAdaptor::SetUseProxy(const QString &id, bool value) +{ + // handle method call com.deepin.dde.daemon.Launcher.SetUseProxy + QMetaObject::invokeMethod(parent(), "SetUseProxy", Q_ARG(QString, id), Q_ARG(bool, value)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.h new file mode 100644 index 0000000..41c5f01 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor.h @@ -0,0 +1,144 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.daemon.Launcher.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.LauncherAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Launcher.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_DAEMON_LAUNCHERADAPTOR_H +#define COM_DEEPIN_DDE_DAEMON_LAUNCHERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.daemon.Launcher.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.daemon.Launcher + */ +class LauncherAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.daemon.Launcher") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + LauncherAdaptor(QObject *parent); + virtual ~LauncherAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode) + int displayMode() const; + void setDisplayMode(int value); + + Q_PROPERTY(bool Fullscreen READ fullscreen WRITE setFullscreen) + bool fullscreen() const; + void setFullscreen(bool value); + +public Q_SLOTS: // METHODS + LauncherItemInfoList GetAllItemInfos(); + QStringList GetAllNewInstalledApps(); + bool GetDisableScaling(const QString &id); + LauncherItemInfo GetItemInfo(const QString &id); + bool GetUseProxy(const QString &id); + bool IsItemOnDesktop(const QString &id); + void MarkLaunched(const QString &id); + bool RequestRemoveFromDesktop(const QString &id); + bool RequestSendToDesktop(const QString &id); + void RequestUninstall(const QString &id, bool purge); + void Search(const QString &key); + void SetDisableScaling(const QString &id, bool value); + void SetUseProxy(const QString &id, bool value); +Q_SIGNALS: // SIGNALS + void ItemChanged(const QString &status, LauncherItemInfo itemInfo, qlonglong categoryID); + void NewAppLaunched(const QString &appID); + void SearchDone(const QStringList &apps); + void UninstallFailed(const QString &appId, const QString &errMsg); + void UninstallSuccess(const QString &appID); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.cpp new file mode 100644 index 0000000..81de5b6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.cpp @@ -0,0 +1,71 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.lockFront.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFront.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LockFrontAdaptor + */ + +LockFrontAdaptor::LockFrontAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LockFrontAdaptor::~LockFrontAdaptor() +{ + // destructor +} + +bool LockFrontAdaptor::visible() const +{ + // get the value of property Visible + return qvariant_cast< bool >(parent()->property("Visible")); +} + +void LockFrontAdaptor::Hibernate(bool enable) +{ + // handle method call com.deepin.dde.lockFront.Hibernate + QMetaObject::invokeMethod(parent(), "Hibernate", Q_ARG(bool, enable)); +} + +void LockFrontAdaptor::Show() +{ + // handle method call com.deepin.dde.lockFront.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void LockFrontAdaptor::ShowAuth(bool active) +{ + // handle method call com.deepin.dde.lockFront.ShowAuth + QMetaObject::invokeMethod(parent(), "ShowAuth", Q_ARG(bool, active)); +} + +void LockFrontAdaptor::ShowUserList() +{ + // handle method call com.deepin.dde.lockFront.ShowUserList + QMetaObject::invokeMethod(parent(), "ShowUserList"); +} + +void LockFrontAdaptor::Suspend(bool enable) +{ + // handle method call com.deepin.dde.lockFront.Suspend + QMetaObject::invokeMethod(parent(), "Suspend", Q_ARG(bool, enable)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.h new file mode 100644 index 0000000..e52337c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor.h @@ -0,0 +1,71 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.lockFront.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFrontAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFront.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_LOCKFRONTADAPTOR_H +#define COM_DEEPIN_DDE_LOCKFRONTADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.lockFront.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.lockFront + */ +class LockFrontAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.lockFront") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + LockFrontAdaptor(QObject *parent); + virtual ~LockFrontAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Visible READ visible) + bool visible() const; + +public Q_SLOTS: // METHODS + void Hibernate(bool enable); + void Show(); + void ShowAuth(bool active); + void ShowUserList(); + void Suspend(bool enable); +Q_SIGNALS: // SIGNALS + void ChangKey(const QString &keyEvent); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.cpp new file mode 100644 index 0000000..c4ffc1d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.cpp @@ -0,0 +1,41 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.osd.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.osd.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class OsdAdaptor + */ + +OsdAdaptor::OsdAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +OsdAdaptor::~OsdAdaptor() +{ + // destructor +} + +void OsdAdaptor::ShowOSD(const QString &osd) +{ + // handle method call com.deepin.dde.osd.ShowOSD + QMetaObject::invokeMethod(parent(), "ShowOSD", Q_ARG(QString, osd)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.h new file mode 100644 index 0000000..d7b0ce0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor.h @@ -0,0 +1,51 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.osd.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.osdAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.osd.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_OSDADAPTOR_H +#define COM_DEEPIN_DDE_OSDADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.osd.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.osd + */ +class OsdAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.osd") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + OsdAdaptor(QObject *parent); + virtual ~OsdAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void ShowOSD(const QString &osd); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.cpp new file mode 100644 index 0000000..5848c86 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.cpp @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.shutdownFront.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFront.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ShutdownFrontAdaptor + */ + +ShutdownFrontAdaptor::ShutdownFrontAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ShutdownFrontAdaptor::~ShutdownFrontAdaptor() +{ + // destructor +} + +void ShutdownFrontAdaptor::Hibernate() +{ + // handle method call com.deepin.dde.shutdownFront.Hibernate + QMetaObject::invokeMethod(parent(), "Hibernate"); +} + +void ShutdownFrontAdaptor::Lock() +{ + // handle method call com.deepin.dde.shutdownFront.Lock + QMetaObject::invokeMethod(parent(), "Lock"); +} + +void ShutdownFrontAdaptor::Logout() +{ + // handle method call com.deepin.dde.shutdownFront.Logout + QMetaObject::invokeMethod(parent(), "Logout"); +} + +void ShutdownFrontAdaptor::Restart() +{ + // handle method call com.deepin.dde.shutdownFront.Restart + QMetaObject::invokeMethod(parent(), "Restart"); +} + +void ShutdownFrontAdaptor::Show() +{ + // handle method call com.deepin.dde.shutdownFront.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void ShutdownFrontAdaptor::Shutdown() +{ + // handle method call com.deepin.dde.shutdownFront.Shutdown + QMetaObject::invokeMethod(parent(), "Shutdown"); +} + +void ShutdownFrontAdaptor::Suspend() +{ + // handle method call com.deepin.dde.shutdownFront.Suspend + QMetaObject::invokeMethod(parent(), "Suspend"); +} + +void ShutdownFrontAdaptor::SwitchUser() +{ + // handle method call com.deepin.dde.shutdownFront.SwitchUser + QMetaObject::invokeMethod(parent(), "SwitchUser"); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.h new file mode 100644 index 0000000..f6b2e41 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor.h @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.dde.shutdownFront.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFrontAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFront.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_SHUTDOWNFRONTADAPTOR_H +#define COM_DEEPIN_DDE_SHUTDOWNFRONTADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.dde.shutdownFront.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.shutdownFront + */ +class ShutdownFrontAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.shutdownFront") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ShutdownFrontAdaptor(QObject *parent); + virtual ~ShutdownFrontAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void Hibernate(); + void Lock(); + void Logout(); + void Restart(); + void Show(); + void Shutdown(); + void Suspend(); + void SwitchUser(); +Q_SIGNALS: // SIGNALS + void ChangKey(const QString &keyEvent); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.cpp new file mode 100644 index 0000000..116f498 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.cpp @@ -0,0 +1,197 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.lastore.Manager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.Manager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ManagerAdaptor + */ + +ManagerAdaptor::ManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ManagerAdaptor::~ManagerAdaptor() +{ + // destructor +} + +bool ManagerAdaptor::autoClean() const +{ + // get the value of property AutoClean + return qvariant_cast< bool >(parent()->property("AutoClean")); +} + +QList ManagerAdaptor::jobList() const +{ + // get the value of property JobList + return qvariant_cast< QList >(parent()->property("JobList")); +} + +QStringList ManagerAdaptor::systemArchitectures() const +{ + // get the value of property SystemArchitectures + return qvariant_cast< QStringList >(parent()->property("SystemArchitectures")); +} + +bool ManagerAdaptor::systemOnChanging() const +{ + // get the value of property SystemOnChanging + return qvariant_cast< bool >(parent()->property("SystemOnChanging")); +} + +QStringList ManagerAdaptor::upgradableApps() const +{ + // get the value of property UpgradableApps + return qvariant_cast< QStringList >(parent()->property("UpgradableApps")); +} + +QDBusObjectPath ManagerAdaptor::CleanArchives() +{ + // handle method call com.deepin.lastore.Manager.CleanArchives + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "CleanArchives", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + +void ManagerAdaptor::CleanJob(const QString &jobId) +{ + // handle method call com.deepin.lastore.Manager.CleanJob + QMetaObject::invokeMethod(parent(), "CleanJob", Q_ARG(QString, jobId)); +} + +QDBusObjectPath ManagerAdaptor::DistUpgrade() +{ + // handle method call com.deepin.lastore.Manager.DistUpgrade + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "DistUpgrade", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + +QDBusObjectPath ManagerAdaptor::FixError(const QString &errType) +{ + // handle method call com.deepin.lastore.Manager.FixError + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "FixError", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, errType)); + return job; +} + +QDBusObjectPath ManagerAdaptor::InstallPackage(const QString &jobName, const QString &packages) +{ + // handle method call com.deepin.lastore.Manager.InstallPackage + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "InstallPackage", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, jobName), Q_ARG(QString, packages)); + return job; +} + +QString ManagerAdaptor::PackageDesktopPath(const QString &pkgId) +{ + // handle method call com.deepin.lastore.Manager.PackageDesktopPath + QString desktopPath; + QMetaObject::invokeMethod(parent(), "PackageDesktopPath", Q_RETURN_ARG(QString, desktopPath), Q_ARG(QString, pkgId)); + return desktopPath; +} + +bool ManagerAdaptor::PackageExists(const QString &pkgId) +{ + // handle method call com.deepin.lastore.Manager.PackageExists + bool exist; + QMetaObject::invokeMethod(parent(), "PackageExists", Q_RETURN_ARG(bool, exist), Q_ARG(QString, pkgId)); + return exist; +} + +bool ManagerAdaptor::PackageInstallable(const QString &pkgId) +{ + // handle method call com.deepin.lastore.Manager.PackageInstallable + bool installable; + QMetaObject::invokeMethod(parent(), "PackageInstallable", Q_RETURN_ARG(bool, installable), Q_ARG(QString, pkgId)); + return installable; +} + +qlonglong ManagerAdaptor::PackagesDownloadSize(const QStringList &packages) +{ + // handle method call com.deepin.lastore.Manager.PackagesDownloadSize + qlonglong size; + QMetaObject::invokeMethod(parent(), "PackagesDownloadSize", Q_RETURN_ARG(qlonglong, size), Q_ARG(QStringList, packages)); + return size; +} + +void ManagerAdaptor::PauseJob(const QString &jobId) +{ + // handle method call com.deepin.lastore.Manager.PauseJob + QMetaObject::invokeMethod(parent(), "PauseJob", Q_ARG(QString, jobId)); +} + +QDBusObjectPath ManagerAdaptor::PrepareDistUpgrade() +{ + // handle method call com.deepin.lastore.Manager.PrepareDistUpgrade + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "PrepareDistUpgrade", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + +QDBusObjectPath ManagerAdaptor::RemovePackage(const QString &jobName, const QString &packages) +{ + // handle method call com.deepin.lastore.Manager.RemovePackage + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "RemovePackage", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, jobName), Q_ARG(QString, packages)); + return job; +} + +void ManagerAdaptor::SetAutoClean(bool enable) +{ + // handle method call com.deepin.lastore.Manager.SetAutoClean + QMetaObject::invokeMethod(parent(), "SetAutoClean", Q_ARG(bool, enable)); +} + +void ManagerAdaptor::SetLogger(const QString &levels, const QString &format, const QString &output) +{ + // handle method call com.deepin.lastore.Manager.SetLogger + QMetaObject::invokeMethod(parent(), "SetLogger", Q_ARG(QString, levels), Q_ARG(QString, format), Q_ARG(QString, output)); +} + +void ManagerAdaptor::SetRegion(const QString ®ion) +{ + // handle method call com.deepin.lastore.Manager.SetRegion + QMetaObject::invokeMethod(parent(), "SetRegion", Q_ARG(QString, region)); +} + +void ManagerAdaptor::StartJob(const QString &jobId) +{ + // handle method call com.deepin.lastore.Manager.StartJob + QMetaObject::invokeMethod(parent(), "StartJob", Q_ARG(QString, jobId)); +} + +QDBusObjectPath ManagerAdaptor::UpdatePackage(const QString &jobName, const QString &packages) +{ + // handle method call com.deepin.lastore.Manager.UpdatePackage + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "UpdatePackage", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, jobName), Q_ARG(QString, packages)); + return job; +} + +QDBusObjectPath ManagerAdaptor::UpdateSource() +{ + // handle method call com.deepin.lastore.Manager.UpdateSource + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "UpdateSource", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.h new file mode 100644 index 0000000..3f00b8b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor.h @@ -0,0 +1,152 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.lastore.Manager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.ManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.Manager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_LASTORE_MANAGERADAPTOR_H +#define COM_DEEPIN_LASTORE_MANAGERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.Manager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.lastore.Manager + */ +class ManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.lastore.Manager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ManagerAdaptor(QObject *parent); + virtual ~ManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AutoClean READ autoClean) + bool autoClean() const; + + Q_PROPERTY(QList JobList READ jobList) + QList jobList() const; + + Q_PROPERTY(QStringList SystemArchitectures READ systemArchitectures) + QStringList systemArchitectures() const; + + Q_PROPERTY(bool SystemOnChanging READ systemOnChanging) + bool systemOnChanging() const; + + Q_PROPERTY(QStringList UpgradableApps READ upgradableApps) + QStringList upgradableApps() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath CleanArchives(); + void CleanJob(const QString &jobId); + QDBusObjectPath DistUpgrade(); + QDBusObjectPath FixError(const QString &errType); + QDBusObjectPath InstallPackage(const QString &jobName, const QString &packages); + QString PackageDesktopPath(const QString &pkgId); + bool PackageExists(const QString &pkgId); + bool PackageInstallable(const QString &pkgId); + qlonglong PackagesDownloadSize(const QStringList &packages); + void PauseJob(const QString &jobId); + QDBusObjectPath PrepareDistUpgrade(); + QDBusObjectPath RemovePackage(const QString &jobName, const QString &packages); + void SetAutoClean(bool enable); + void SetLogger(const QString &levels, const QString &format, const QString &output); + void SetRegion(const QString ®ion); + void StartJob(const QString &jobId); + QDBusObjectPath UpdatePackage(const QString &jobName, const QString &packages); + QDBusObjectPath UpdateSource(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.cpp new file mode 100644 index 0000000..f75af5e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.cpp @@ -0,0 +1,89 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.lastore.Updater.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.Updater.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class UpdaterAdaptor + */ + +UpdaterAdaptor::UpdaterAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +UpdaterAdaptor::~UpdaterAdaptor() +{ + // destructor +} + +bool UpdaterAdaptor::autoCheckUpdates() const +{ + // get the value of property AutoCheckUpdates + return qvariant_cast< bool >(parent()->property("AutoCheckUpdates")); +} + +bool UpdaterAdaptor::autoDownloadUpdates() const +{ + // get the value of property AutoDownloadUpdates + return qvariant_cast< bool >(parent()->property("AutoDownloadUpdates")); +} + +QString UpdaterAdaptor::mirrorSource() const +{ + // get the value of property MirrorSource + return qvariant_cast< QString >(parent()->property("MirrorSource")); +} + +QStringList UpdaterAdaptor::updatableApps() const +{ + // get the value of property UpdatableApps + return qvariant_cast< QStringList >(parent()->property("UpdatableApps")); +} + +QStringList UpdaterAdaptor::updatablePackages() const +{ + // get the value of property UpdatablePackages + return qvariant_cast< QStringList >(parent()->property("UpdatablePackages")); +} + +void UpdaterAdaptor::RestoreSystemSource() +{ + // handle method call com.deepin.lastore.Updater.RestoreSystemSource + QMetaObject::invokeMethod(parent(), "RestoreSystemSource"); +} + +void UpdaterAdaptor::SetAutoCheckUpdates(bool enable) +{ + // handle method call com.deepin.lastore.Updater.SetAutoCheckUpdates + QMetaObject::invokeMethod(parent(), "SetAutoCheckUpdates", Q_ARG(bool, enable)); +} + +void UpdaterAdaptor::SetAutoDownloadUpdates(bool enable) +{ + // handle method call com.deepin.lastore.Updater.SetAutoDownloadUpdates + QMetaObject::invokeMethod(parent(), "SetAutoDownloadUpdates", Q_ARG(bool, enable)); +} + +void UpdaterAdaptor::SetMirrorSource(const QString &id) +{ + // handle method call com.deepin.lastore.Updater.SetMirrorSource + QMetaObject::invokeMethod(parent(), "SetMirrorSource", Q_ARG(QString, id)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.h new file mode 100644 index 0000000..9f30b66 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor.h @@ -0,0 +1,81 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.lastore.Updater.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.UpdaterAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.Updater.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_LASTORE_UPDATERADAPTOR_H +#define COM_DEEPIN_LASTORE_UPDATERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.lastore.Updater.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.lastore.Updater + */ +class UpdaterAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.lastore.Updater") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + UpdaterAdaptor(QObject *parent); + virtual ~UpdaterAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AutoCheckUpdates READ autoCheckUpdates) + bool autoCheckUpdates() const; + + Q_PROPERTY(bool AutoDownloadUpdates READ autoDownloadUpdates) + bool autoDownloadUpdates() const; + + Q_PROPERTY(QString MirrorSource READ mirrorSource) + QString mirrorSource() const; + + Q_PROPERTY(QStringList UpdatableApps READ updatableApps) + QStringList updatableApps() const; + + Q_PROPERTY(QStringList UpdatablePackages READ updatablePackages) + QStringList updatablePackages() const; + +public Q_SLOTS: // METHODS + void RestoreSystemSource(); + void SetAutoCheckUpdates(bool enable); + void SetAutoDownloadUpdates(bool enable); + void SetMirrorSource(const QString &id); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.cpp new file mode 100644 index 0000000..96f213c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.cpp @@ -0,0 +1,49 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.Display.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Display.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class DisplayAdaptor + */ + +DisplayAdaptor::DisplayAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +DisplayAdaptor::~DisplayAdaptor() +{ + // destructor +} + +QString DisplayAdaptor::GetConfig() +{ + // handle method call com.deepin.system.Display.GetConfig + QString out0; + QMetaObject::invokeMethod(parent(), "GetConfig", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void DisplayAdaptor::SetConfig(const QString &in0) +{ + // handle method call com.deepin.system.Display.SetConfig + QMetaObject::invokeMethod(parent(), "SetConfig", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.h new file mode 100644 index 0000000..c309a31 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.Display.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.DisplayAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Display.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_SYSTEM_DISPLAYADAPTOR_H +#define COM_DEEPIN_SYSTEM_DISPLAYADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Display.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.system.Display + */ +class DisplayAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.system.Display") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + DisplayAdaptor(QObject *parent); + virtual ~DisplayAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString GetConfig(); + void SetConfig(const QString &in0); +Q_SIGNALS: // SIGNALS + void ConfigUpdated(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.cpp new file mode 100644 index 0000000..3020a51 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.cpp @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.Network.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Network.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class NetworkAdaptor + */ + +NetworkAdaptor::NetworkAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +NetworkAdaptor::~NetworkAdaptor() +{ + // destructor +} + +bool NetworkAdaptor::vpnEnabled() const +{ + // get the value of property VpnEnabled + return qvariant_cast< bool >(parent()->property("VpnEnabled")); +} + +void NetworkAdaptor::setVpnEnabled(bool value) +{ + // set the value of property VpnEnabled + parent()->setProperty("VpnEnabled", QVariant::fromValue(value)); +} + +QDBusObjectPath NetworkAdaptor::EnableDevice(const QString &pathOrIface, bool enabled) +{ + // handle method call com.deepin.system.Network.EnableDevice + QDBusObjectPath cpath; + QMetaObject::invokeMethod(parent(), "EnableDevice", Q_RETURN_ARG(QDBusObjectPath, cpath), Q_ARG(QString, pathOrIface), Q_ARG(bool, enabled)); + return cpath; +} + +bool NetworkAdaptor::IsDeviceEnabled(const QString &pathOrIface) +{ + // handle method call com.deepin.system.Network.IsDeviceEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "IsDeviceEnabled", Q_RETURN_ARG(bool, enabled), Q_ARG(QString, pathOrIface)); + return enabled; +} + +void NetworkAdaptor::Ping(const QString &host) +{ + // handle method call com.deepin.system.Network.Ping + QMetaObject::invokeMethod(parent(), "Ping", Q_ARG(QString, host)); +} + +bool NetworkAdaptor::ToggleWirelessEnabled() +{ + // handle method call com.deepin.system.Network.ToggleWirelessEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "ToggleWirelessEnabled", Q_RETURN_ARG(bool, enabled)); + return enabled; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.h new file mode 100644 index 0000000..0559f8d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.Network.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.NetworkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Network.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_SYSTEM_NETWORKADAPTOR_H +#define COM_DEEPIN_SYSTEM_NETWORKADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Network.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.system.Network + */ +class NetworkAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.system.Network") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + NetworkAdaptor(QObject *parent); + virtual ~NetworkAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool VpnEnabled READ vpnEnabled WRITE setVpnEnabled) + bool vpnEnabled() const; + void setVpnEnabled(bool value); + +public Q_SLOTS: // METHODS + QDBusObjectPath EnableDevice(const QString &pathOrIface, bool enabled); + bool IsDeviceEnabled(const QString &pathOrIface); + void Ping(const QString &host); + bool ToggleWirelessEnabled(); +Q_SIGNALS: // SIGNALS + void DeviceEnabled(const QDBusObjectPath &devPath, bool enabled); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.cpp new file mode 100644 index 0000000..72c5c47 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.cpp @@ -0,0 +1,181 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.Power.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Power.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PowerAdaptor + */ + +PowerAdaptor::PowerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PowerAdaptor::~PowerAdaptor() +{ + // destructor +} + +double PowerAdaptor::batteryPercentage() const +{ + // get the value of property BatteryPercentage + return qvariant_cast< double >(parent()->property("BatteryPercentage")); +} + +uint PowerAdaptor::batteryStatus() const +{ + // get the value of property BatteryStatus + return qvariant_cast< uint >(parent()->property("BatteryStatus")); +} + +qulonglong PowerAdaptor::batteryTimeToEmpty() const +{ + // get the value of property BatteryTimeToEmpty + return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToEmpty")); +} + +qulonglong PowerAdaptor::batteryTimeToFull() const +{ + // get the value of property BatteryTimeToFull + return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToFull")); +} + +bool PowerAdaptor::hasBattery() const +{ + // get the value of property HasBattery + return qvariant_cast< bool >(parent()->property("HasBattery")); +} + +bool PowerAdaptor::hasLidSwitch() const +{ + // get the value of property HasLidSwitch + return qvariant_cast< bool >(parent()->property("HasLidSwitch")); +} + +bool PowerAdaptor::isHighPerformanceSupported() const +{ + // get the value of property IsHighPerformanceSupported + return qvariant_cast< bool >(parent()->property("IsHighPerformanceSupported")); +} + +QString PowerAdaptor::mode() const +{ + // get the value of property Mode + return qvariant_cast< QString >(parent()->property("Mode")); +} + +bool PowerAdaptor::onBattery() const +{ + // get the value of property OnBattery + return qvariant_cast< bool >(parent()->property("OnBattery")); +} + +bool PowerAdaptor::powerSavingModeAuto() const +{ + // get the value of property PowerSavingModeAuto + return qvariant_cast< bool >(parent()->property("PowerSavingModeAuto")); +} + +void PowerAdaptor::setPowerSavingModeAuto(bool value) +{ + // set the value of property PowerSavingModeAuto + parent()->setProperty("PowerSavingModeAuto", QVariant::fromValue(value)); +} + +bool PowerAdaptor::powerSavingModeAutoWhenBatteryLow() const +{ + // get the value of property PowerSavingModeAutoWhenBatteryLow + return qvariant_cast< bool >(parent()->property("PowerSavingModeAutoWhenBatteryLow")); +} + +void PowerAdaptor::setPowerSavingModeAutoWhenBatteryLow(bool value) +{ + // set the value of property PowerSavingModeAutoWhenBatteryLow + parent()->setProperty("PowerSavingModeAutoWhenBatteryLow", QVariant::fromValue(value)); +} + +uint PowerAdaptor::powerSavingModeBrightnessDropPercent() const +{ + // get the value of property PowerSavingModeBrightnessDropPercent + return qvariant_cast< uint >(parent()->property("PowerSavingModeBrightnessDropPercent")); +} + +void PowerAdaptor::setPowerSavingModeBrightnessDropPercent(uint value) +{ + // set the value of property PowerSavingModeBrightnessDropPercent + parent()->setProperty("PowerSavingModeBrightnessDropPercent", QVariant::fromValue(value)); +} + +bool PowerAdaptor::powerSavingModeEnabled() const +{ + // get the value of property PowerSavingModeEnabled + return qvariant_cast< bool >(parent()->property("PowerSavingModeEnabled")); +} + +void PowerAdaptor::setPowerSavingModeEnabled(bool value) +{ + // set the value of property PowerSavingModeEnabled + parent()->setProperty("PowerSavingModeEnabled", QVariant::fromValue(value)); +} + +bool PowerAdaptor::powerSystemAutoToSleepWhenFree() const +{ + // get the value of property PowerSystemAutoToSleepWhenFree + return qvariant_cast< bool >(parent()->property("PowerSystemAutoToSleepWhenFree")); +} + +void PowerAdaptor::setPowerSystemAutoToSleepWhenFree(bool value) +{ + // set the value of property PowerSystemAutoToSleepWhenFree + parent()->setProperty("PowerSystemAutoToSleepWhenFree", QVariant::fromValue(value)); +} + +QList PowerAdaptor::GetBatteries() +{ + // handle method call com.deepin.system.Power.GetBatteries + QList batteries; + QMetaObject::invokeMethod(parent(), "GetBatteries", Q_RETURN_ARG(QList, batteries)); + return batteries; +} + +void PowerAdaptor::Refresh() +{ + // handle method call com.deepin.system.Power.Refresh + QMetaObject::invokeMethod(parent(), "Refresh"); +} + +void PowerAdaptor::RefreshBatteries() +{ + // handle method call com.deepin.system.Power.RefreshBatteries + QMetaObject::invokeMethod(parent(), "RefreshBatteries"); +} + +void PowerAdaptor::RefreshMains() +{ + // handle method call com.deepin.system.Power.RefreshMains + QMetaObject::invokeMethod(parent(), "RefreshMains"); +} + +void PowerAdaptor::SetMode(const QString &mode) +{ + // handle method call com.deepin.system.Power.SetMode + QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(QString, mode)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.h new file mode 100644 index 0000000..4386c4f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor.h @@ -0,0 +1,138 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.Power.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.PowerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Power.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_SYSTEM_POWERADAPTOR_H +#define COM_DEEPIN_SYSTEM_POWERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.Power.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.system.Power + */ +class PowerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.system.Power") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PowerAdaptor(QObject *parent); + virtual ~PowerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(double BatteryPercentage READ batteryPercentage) + double batteryPercentage() const; + + Q_PROPERTY(uint BatteryStatus READ batteryStatus) + uint batteryStatus() const; + + Q_PROPERTY(qulonglong BatteryTimeToEmpty READ batteryTimeToEmpty) + qulonglong batteryTimeToEmpty() const; + + Q_PROPERTY(qulonglong BatteryTimeToFull READ batteryTimeToFull) + qulonglong batteryTimeToFull() const; + + Q_PROPERTY(bool HasBattery READ hasBattery) + bool hasBattery() const; + + Q_PROPERTY(bool HasLidSwitch READ hasLidSwitch) + bool hasLidSwitch() const; + + Q_PROPERTY(bool IsHighPerformanceSupported READ isHighPerformanceSupported) + bool isHighPerformanceSupported() const; + + Q_PROPERTY(QString Mode READ mode) + QString mode() const; + + Q_PROPERTY(bool OnBattery READ onBattery) + bool onBattery() const; + + Q_PROPERTY(bool PowerSavingModeAuto READ powerSavingModeAuto WRITE setPowerSavingModeAuto) + bool powerSavingModeAuto() const; + void setPowerSavingModeAuto(bool value); + + Q_PROPERTY(bool PowerSavingModeAutoWhenBatteryLow READ powerSavingModeAutoWhenBatteryLow WRITE setPowerSavingModeAutoWhenBatteryLow) + bool powerSavingModeAutoWhenBatteryLow() const; + void setPowerSavingModeAutoWhenBatteryLow(bool value); + + Q_PROPERTY(uint PowerSavingModeBrightnessDropPercent READ powerSavingModeBrightnessDropPercent WRITE setPowerSavingModeBrightnessDropPercent) + uint powerSavingModeBrightnessDropPercent() const; + void setPowerSavingModeBrightnessDropPercent(uint value); + + Q_PROPERTY(bool PowerSavingModeEnabled READ powerSavingModeEnabled WRITE setPowerSavingModeEnabled) + bool powerSavingModeEnabled() const; + void setPowerSavingModeEnabled(bool value); + + Q_PROPERTY(bool PowerSystemAutoToSleepWhenFree READ powerSystemAutoToSleepWhenFree WRITE setPowerSystemAutoToSleepWhenFree) + bool powerSystemAutoToSleepWhenFree() const; + void setPowerSystemAutoToSleepWhenFree(bool value); + +public Q_SLOTS: // METHODS + QList GetBatteries(); + void Refresh(); + void RefreshBatteries(); + void RefreshMains(); + void SetMode(const QString &mode); +Q_SIGNALS: // SIGNALS + void BatteryAdded(const QDBusObjectPath &objpath); + void BatteryDisplayUpdate(qlonglong timestamp); + void BatteryRemoved(const QDBusObjectPath &objpath); + void LidClosed(); + void LidOpened(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.cpp new file mode 100644 index 0000000..c1486c7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.SystemInfo.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfo.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SystemInfoAdaptor + */ + +SystemInfoAdaptor::SystemInfoAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SystemInfoAdaptor::~SystemInfoAdaptor() +{ + // destructor +} + +qulonglong SystemInfoAdaptor::currentSpeed() const +{ + // get the value of property CurrentSpeed + return qvariant_cast< qulonglong >(parent()->property("CurrentSpeed")); +} + +qulonglong SystemInfoAdaptor::memorySize() const +{ + // get the value of property MemorySize + return qvariant_cast< qulonglong >(parent()->property("MemorySize")); +} + +QString SystemInfoAdaptor::memorySizeHuman() const +{ + // get the value of property MemorySizeHuman + return qvariant_cast< QString >(parent()->property("MemorySizeHuman")); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.h new file mode 100644 index 0000000..8f15670 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.system.SystemInfo.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfoAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfo.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_SYSTEM_SYSTEMINFOADAPTOR_H +#define COM_DEEPIN_SYSTEM_SYSTEMINFOADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemInfo.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.system.SystemInfo + */ +class SystemInfoAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.system.SystemInfo") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SystemInfoAdaptor(QObject *parent); + virtual ~SystemInfoAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(qulonglong CurrentSpeed READ currentSpeed) + qulonglong currentSpeed() const; + + Q_PROPERTY(qulonglong MemorySize READ memorySize) + qulonglong memorySize() const; + + Q_PROPERTY(QString MemorySizeHuman READ memorySizeHuman) + QString memorySizeHuman() const; + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp new file mode 100644 index 0000000..2d7d32d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.cpp @@ -0,0 +1,373 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Accounts1.User.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class UserAdaptor + */ + +UserAdaptor::UserAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +UserAdaptor::~UserAdaptor() +{ + // destructor +} + +int UserAdaptor::accountType() const +{ + // get the value of property AccountType + return qvariant_cast< int >(parent()->property("AccountType")); +} + +bool UserAdaptor::automaticLogin() const +{ + // get the value of property AutomaticLogin + return qvariant_cast< bool >(parent()->property("AutomaticLogin")); +} + +qulonglong UserAdaptor::createdTime() const +{ + // get the value of property CreatedTime + return qvariant_cast< qulonglong >(parent()->property("CreatedTime")); +} + +QStringList UserAdaptor::desktopBackgrounds() const +{ + // get the value of property DesktopBackgrounds + return qvariant_cast< QStringList >(parent()->property("DesktopBackgrounds")); +} + +QString UserAdaptor::fullName() const +{ + // get the value of property FullName + return qvariant_cast< QString >(parent()->property("FullName")); +} + +QString UserAdaptor::gid() const +{ + // get the value of property Gid + return qvariant_cast< QString >(parent()->property("Gid")); +} + +QString UserAdaptor::greeterBackground() const +{ + // get the value of property GreeterBackground + return qvariant_cast< QString >(parent()->property("GreeterBackground")); +} + +QStringList UserAdaptor::groups() const +{ + // get the value of property Groups + return qvariant_cast< QStringList >(parent()->property("Groups")); +} + +QStringList UserAdaptor::historyLayout() const +{ + // get the value of property HistoryLayout + return qvariant_cast< QStringList >(parent()->property("HistoryLayout")); +} + +QString UserAdaptor::homeDir() const +{ + // get the value of property HomeDir + return qvariant_cast< QString >(parent()->property("HomeDir")); +} + +QString UserAdaptor::iconFile() const +{ + // get the value of property IconFile + return qvariant_cast< QString >(parent()->property("IconFile")); +} + +QStringList UserAdaptor::iconList() const +{ + // get the value of property IconList + return qvariant_cast< QStringList >(parent()->property("IconList")); +} + +QString UserAdaptor::layout() const +{ + // get the value of property Layout + return qvariant_cast< QString >(parent()->property("Layout")); +} + +QString UserAdaptor::locale() const +{ + // get the value of property Locale + return qvariant_cast< QString >(parent()->property("Locale")); +} + +bool UserAdaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +qulonglong UserAdaptor::loginTime() const +{ + // get the value of property LoginTime + return qvariant_cast< qulonglong >(parent()->property("LoginTime")); +} + +int UserAdaptor::longDateFormat() const +{ + // get the value of property LongDateFormat + return qvariant_cast< int >(parent()->property("LongDateFormat")); +} + +int UserAdaptor::longTimeFormat() const +{ + // get the value of property LongTimeFormat + return qvariant_cast< int >(parent()->property("LongTimeFormat")); +} + +int UserAdaptor::maxPasswordAge() const +{ + // get the value of property MaxPasswordAge + return qvariant_cast< int >(parent()->property("MaxPasswordAge")); +} + +bool UserAdaptor::noPasswdLogin() const +{ + // get the value of property NoPasswdLogin + return qvariant_cast< bool >(parent()->property("NoPasswdLogin")); +} + +QString UserAdaptor::passwordHint() const +{ + // get the value of property PasswordHint + return qvariant_cast< QString >(parent()->property("PasswordHint")); +} + +int UserAdaptor::passwordLastChange() const +{ + // get the value of property PasswordLastChange + return qvariant_cast< int >(parent()->property("PasswordLastChange")); +} + +QString UserAdaptor::passwordStatus() const +{ + // get the value of property PasswordStatus + return qvariant_cast< QString >(parent()->property("PasswordStatus")); +} + +QString UserAdaptor::shell() const +{ + // get the value of property Shell + return qvariant_cast< QString >(parent()->property("Shell")); +} + +int UserAdaptor::shortDateFormat() const +{ + // get the value of property ShortDateFormat + return qvariant_cast< int >(parent()->property("ShortDateFormat")); +} + +int UserAdaptor::shortTimeFormat() const +{ + // get the value of property ShortTimeFormat + return qvariant_cast< int >(parent()->property("ShortTimeFormat")); +} + +bool UserAdaptor::systemAccount() const +{ + // get the value of property SystemAccount + return qvariant_cast< bool >(parent()->property("SystemAccount")); +} + +QString UserAdaptor::uUID() const +{ + // get the value of property UUID + return qvariant_cast< QString >(parent()->property("UUID")); +} + +QString UserAdaptor::uid() const +{ + // get the value of property Uid + return qvariant_cast< QString >(parent()->property("Uid")); +} + +bool UserAdaptor::use24HourFormat() const +{ + // get the value of property Use24HourFormat + return qvariant_cast< bool >(parent()->property("Use24HourFormat")); +} + +QString UserAdaptor::userName() const +{ + // get the value of property UserName + return qvariant_cast< QString >(parent()->property("UserName")); +} + +int UserAdaptor::weekBegins() const +{ + // get the value of property WeekBegins + return qvariant_cast< int >(parent()->property("WeekBegins")); +} + +int UserAdaptor::weekdayFormat() const +{ + // get the value of property WeekdayFormat + return qvariant_cast< int >(parent()->property("WeekdayFormat")); +} + +int UserAdaptor::workspace() const +{ + // get the value of property Workspace + return qvariant_cast< int >(parent()->property("Workspace")); +} + +QString UserAdaptor::xSession() const +{ + // get the value of property XSession + return qvariant_cast< QString >(parent()->property("XSession")); +} + +void UserAdaptor::AddGroup(const QString &group) +{ + // handle method call org.deepin.dde.Accounts1.User.AddGroup + QMetaObject::invokeMethod(parent(), "AddGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteGroup(const QString &group) +{ + // handle method call org.deepin.dde.Accounts1.User.DeleteGroup + QMetaObject::invokeMethod(parent(), "DeleteGroup", Q_ARG(QString, group)); +} + +void UserAdaptor::DeleteIconFile(const QString &iconFile) +{ + // handle method call org.deepin.dde.Accounts1.User.DeleteIconFile + QMetaObject::invokeMethod(parent(), "DeleteIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::EnableNoPasswdLogin(bool enabled) +{ + // handle method call org.deepin.dde.Accounts1.User.EnableNoPasswdLogin + QMetaObject::invokeMethod(parent(), "EnableNoPasswdLogin", Q_ARG(bool, enabled)); +} + +bool UserAdaptor::IsPasswordExpired() +{ + // handle method call org.deepin.dde.Accounts1.User.IsPasswordExpired + bool out0; + QMetaObject::invokeMethod(parent(), "IsPasswordExpired", Q_RETURN_ARG(bool, out0)); + return out0; +} + +int UserAdaptor::PasswordExpiredInfo(int &dayLeft) +{ + // handle method call org.deepin.dde.Accounts1.User.PasswordExpiredInfo + //return static_cast(parent())->PasswordExpiredInfo(dayLeft); +} + +void UserAdaptor::SetAutomaticLogin(bool enabled) +{ + // handle method call org.deepin.dde.Accounts1.User.SetAutomaticLogin + QMetaObject::invokeMethod(parent(), "SetAutomaticLogin", Q_ARG(bool, enabled)); +} + +void UserAdaptor::SetDesktopBackgrounds(const QStringList &backgrounds) +{ + // handle method call org.deepin.dde.Accounts1.User.SetDesktopBackgrounds + QMetaObject::invokeMethod(parent(), "SetDesktopBackgrounds", Q_ARG(QStringList, backgrounds)); +} + +void UserAdaptor::SetFullName(const QString &name) +{ + // handle method call org.deepin.dde.Accounts1.User.SetFullName + QMetaObject::invokeMethod(parent(), "SetFullName", Q_ARG(QString, name)); +} + +void UserAdaptor::SetGreeterBackground(const QString &background) +{ + // handle method call org.deepin.dde.Accounts1.User.SetGreeterBackground + QMetaObject::invokeMethod(parent(), "SetGreeterBackground", Q_ARG(QString, background)); +} + +void UserAdaptor::SetGroups(const QStringList &groups) +{ + // handle method call org.deepin.dde.Accounts1.User.SetGroups + QMetaObject::invokeMethod(parent(), "SetGroups", Q_ARG(QStringList, groups)); +} + +void UserAdaptor::SetHistoryLayout(const QStringList &layouts) +{ + // handle method call org.deepin.dde.Accounts1.User.SetHistoryLayout + QMetaObject::invokeMethod(parent(), "SetHistoryLayout", Q_ARG(QStringList, layouts)); +} + +void UserAdaptor::SetHomeDir(const QString &home) +{ + // handle method call org.deepin.dde.Accounts1.User.SetHomeDir + QMetaObject::invokeMethod(parent(), "SetHomeDir", Q_ARG(QString, home)); +} + +void UserAdaptor::SetIconFile(const QString &iconFile) +{ + // handle method call org.deepin.dde.Accounts1.User.SetIconFile + QMetaObject::invokeMethod(parent(), "SetIconFile", Q_ARG(QString, iconFile)); +} + +void UserAdaptor::SetLayout(const QString &layout) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLayout + QMetaObject::invokeMethod(parent(), "SetLayout", Q_ARG(QString, layout)); +} + +void UserAdaptor::SetLocale(const QString &locale) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLocale + QMetaObject::invokeMethod(parent(), "SetLocale", Q_ARG(QString, locale)); +} + +void UserAdaptor::SetLocked(bool locked) +{ + // handle method call org.deepin.dde.Accounts1.User.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, locked)); +} + +void UserAdaptor::SetMaxPasswordAge(int nDays) +{ + // handle method call org.deepin.dde.Accounts1.User.SetMaxPasswordAge + QMetaObject::invokeMethod(parent(), "SetMaxPasswordAge", Q_ARG(int, nDays)); +} + +void UserAdaptor::SetPassword(const QString &password) +{ + // handle method call org.deepin.dde.Accounts1.User.SetPassword + QMetaObject::invokeMethod(parent(), "SetPassword", Q_ARG(QString, password)); +} + +void UserAdaptor::SetPasswordHint(const QString &hint) +{ + // handle method call org.deepin.dde.Accounts1.User.SetPasswordHint + QMetaObject::invokeMethod(parent(), "SetPasswordHint", Q_ARG(QString, hint)); +} + +void UserAdaptor::SetShell(const QString &shell) +{ + // handle method call org.deepin.dde.Accounts1.User.SetShell + QMetaObject::invokeMethod(parent(), "SetShell", Q_ARG(QString, shell)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h new file mode 100644 index 0000000..e96cceb --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor.h @@ -0,0 +1,272 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Accounts1.User.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.UserAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_ACCOUNTS1_USERADAPTOR_H +#define ORG_DEEPIN_DDE_ACCOUNTS1_USERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.User.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Accounts1.User + */ +class UserAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Accounts1.User") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + UserAdaptor(QObject *parent); + virtual ~UserAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int AccountType READ accountType) + int accountType() const; + + Q_PROPERTY(bool AutomaticLogin READ automaticLogin) + bool automaticLogin() const; + + Q_PROPERTY(qulonglong CreatedTime READ createdTime) + qulonglong createdTime() const; + + Q_PROPERTY(QStringList DesktopBackgrounds READ desktopBackgrounds) + QStringList desktopBackgrounds() const; + + Q_PROPERTY(QString FullName READ fullName) + QString fullName() const; + + Q_PROPERTY(QString Gid READ gid) + QString gid() const; + + Q_PROPERTY(QString GreeterBackground READ greeterBackground) + QString greeterBackground() const; + + Q_PROPERTY(QStringList Groups READ groups) + QStringList groups() const; + + Q_PROPERTY(QStringList HistoryLayout READ historyLayout) + QStringList historyLayout() const; + + Q_PROPERTY(QString HomeDir READ homeDir) + QString homeDir() const; + + Q_PROPERTY(QString IconFile READ iconFile) + QString iconFile() const; + + Q_PROPERTY(QStringList IconList READ iconList) + QStringList iconList() const; + + Q_PROPERTY(QString Layout READ layout) + QString layout() const; + + Q_PROPERTY(QString Locale READ locale) + QString locale() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(qulonglong LoginTime READ loginTime) + qulonglong loginTime() const; + + Q_PROPERTY(int LongDateFormat READ longDateFormat) + int longDateFormat() const; + + Q_PROPERTY(int LongTimeFormat READ longTimeFormat) + int longTimeFormat() const; + + Q_PROPERTY(int MaxPasswordAge READ maxPasswordAge) + int maxPasswordAge() const; + + Q_PROPERTY(bool NoPasswdLogin READ noPasswdLogin) + bool noPasswdLogin() const; + + Q_PROPERTY(QString PasswordHint READ passwordHint) + QString passwordHint() const; + + Q_PROPERTY(int PasswordLastChange READ passwordLastChange) + int passwordLastChange() const; + + Q_PROPERTY(QString PasswordStatus READ passwordStatus) + QString passwordStatus() const; + + Q_PROPERTY(QString Shell READ shell) + QString shell() const; + + Q_PROPERTY(int ShortDateFormat READ shortDateFormat) + int shortDateFormat() const; + + Q_PROPERTY(int ShortTimeFormat READ shortTimeFormat) + int shortTimeFormat() const; + + Q_PROPERTY(bool SystemAccount READ systemAccount) + bool systemAccount() const; + + Q_PROPERTY(QString UUID READ uUID) + QString uUID() const; + + Q_PROPERTY(QString Uid READ uid) + QString uid() const; + + Q_PROPERTY(bool Use24HourFormat READ use24HourFormat) + bool use24HourFormat() const; + + Q_PROPERTY(QString UserName READ userName) + QString userName() const; + + Q_PROPERTY(int WeekBegins READ weekBegins) + int weekBegins() const; + + Q_PROPERTY(int WeekdayFormat READ weekdayFormat) + int weekdayFormat() const; + + Q_PROPERTY(int Workspace READ workspace) + int workspace() const; + + Q_PROPERTY(QString XSession READ xSession) + QString xSession() const; + +public Q_SLOTS: // METHODS + void AddGroup(const QString &group); + void DeleteGroup(const QString &group); + void DeleteIconFile(const QString &iconFile); + void EnableNoPasswdLogin(bool enabled); + bool IsPasswordExpired(); + int PasswordExpiredInfo(int &dayLeft); + void SetAutomaticLogin(bool enabled); + void SetDesktopBackgrounds(const QStringList &backgrounds); + void SetFullName(const QString &name); + void SetGreeterBackground(const QString &background); + void SetGroups(const QStringList &groups); + void SetHistoryLayout(const QStringList &layouts); + void SetHomeDir(const QString &home); + void SetIconFile(const QString &iconFile); + void SetLayout(const QString &layout); + void SetLocale(const QString &locale); + void SetLocked(bool locked); + void SetMaxPasswordAge(int nDays); + void SetPassword(const QString &password); + void SetPasswordHint(const QString &hint); + void SetShell(const QString &shell); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp new file mode 100644 index 0000000..166fe8c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.cpp @@ -0,0 +1,133 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Accounts1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Accounts1Adaptor + */ + +Accounts1Adaptor::Accounts1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Accounts1Adaptor::~Accounts1Adaptor() +{ + // destructor +} + +bool Accounts1Adaptor::allowGuest() const +{ + // get the value of property AllowGuest + return qvariant_cast< bool >(parent()->property("AllowGuest")); +} + +QString Accounts1Adaptor::guestIcon() const +{ + // get the value of property GuestIcon + return qvariant_cast< QString >(parent()->property("GuestIcon")); +} + +QStringList Accounts1Adaptor::userList() const +{ + // get the value of property UserList + return qvariant_cast< QStringList >(parent()->property("UserList")); +} + +void Accounts1Adaptor::AllowGuestAccount(bool in0) +{ + // handle method call org.deepin.dde.Accounts1.AllowGuestAccount + QMetaObject::invokeMethod(parent(), "AllowGuestAccount", Q_ARG(bool, in0)); +} + +QString Accounts1Adaptor::CreateGuestAccount() +{ + // handle method call org.deepin.dde.Accounts1.CreateGuestAccount + QString out0; + QMetaObject::invokeMethod(parent(), "CreateGuestAccount", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusObjectPath Accounts1Adaptor::CreateUser(const QString &in0, const QString &in1, int in2) +{ + // handle method call org.deepin.dde.Accounts1.CreateUser + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "CreateUser", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); + return out0; +} + +void Accounts1Adaptor::DeleteUser(const QString &in0, bool in1) +{ + // handle method call org.deepin.dde.Accounts1.DeleteUser + QMetaObject::invokeMethod(parent(), "DeleteUser", Q_ARG(QString, in0), Q_ARG(bool, in1)); +} + +QString Accounts1Adaptor::FindUserById(const QString &in0) +{ + // handle method call org.deepin.dde.Accounts1.FindUserById + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserById", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString Accounts1Adaptor::FindUserByName(const QString &in0) +{ + // handle method call org.deepin.dde.Accounts1.FindUserByName + QString out0; + QMetaObject::invokeMethod(parent(), "FindUserByName", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList Accounts1Adaptor::GetGroups() +{ + // handle method call org.deepin.dde.Accounts1.GetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetGroups", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList Accounts1Adaptor::GetPresetGroups(int in0) +{ + // handle method call org.deepin.dde.Accounts1.GetPresetGroups + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetPresetGroups", Q_RETURN_ARG(QStringList, out0), Q_ARG(int, in0)); + return out0; +} + +bool Accounts1Adaptor::IsPasswordValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call org.deepin.dde.Accounts1.IsPasswordValid + //return static_cast(parent())->IsPasswordValid(in0, out1, out2); +} + +bool Accounts1Adaptor::IsUsernameValid(const QString &in0, QString &out1, int &out2) +{ + // handle method call org.deepin.dde.Accounts1.IsUsernameValid + //return static_cast(parent())->IsUsernameValid(in0, out1, out2); +} + +QString Accounts1Adaptor::RandUserIcon() +{ + // handle method call org.deepin.dde.Accounts1.RandUserIcon + QString out0; + QMetaObject::invokeMethod(parent(), "RandUserIcon", Q_RETURN_ARG(QString, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h new file mode 100644 index 0000000..f22978b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor.h @@ -0,0 +1,124 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Accounts1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_ACCOUNTS1ADAPTOR_H +#define ORG_DEEPIN_DDE_ACCOUNTS1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Accounts1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Accounts1 + */ +class Accounts1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Accounts1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Accounts1Adaptor(QObject *parent); + virtual ~Accounts1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AllowGuest READ allowGuest) + bool allowGuest() const; + + Q_PROPERTY(QString GuestIcon READ guestIcon) + QString guestIcon() const; + + Q_PROPERTY(QStringList UserList READ userList) + QStringList userList() const; + +public Q_SLOTS: // METHODS + void AllowGuestAccount(bool in0); + QString CreateGuestAccount(); + QDBusObjectPath CreateUser(const QString &in0, const QString &in1, int in2); + void DeleteUser(const QString &in0, bool in1); + QString FindUserById(const QString &in0); + QString FindUserByName(const QString &in0); + QStringList GetGroups(); + QStringList GetPresetGroups(int in0); + bool IsPasswordValid(const QString &in0, QString &out1, int &out2); + bool IsUsernameValid(const QString &in0, QString &out1, int &out2); + QString RandUserIcon(); +Q_SIGNALS: // SIGNALS + void UserAdded(const QString &in0); + void UserDeleted(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.cpp new file mode 100644 index 0000000..0862f3f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.cpp @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.AirplaneMode1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class AirplaneMode1Adaptor + */ + +AirplaneMode1Adaptor::AirplaneMode1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +AirplaneMode1Adaptor::~AirplaneMode1Adaptor() +{ + // destructor +} + +bool AirplaneMode1Adaptor::bluetoothEnabled() const +{ + // get the value of property BluetoothEnabled + return qvariant_cast< bool >(parent()->property("BluetoothEnabled")); +} + +bool AirplaneMode1Adaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +bool AirplaneMode1Adaptor::hasAirplaneMode() const +{ + // get the value of property HasAirplaneMode + return qvariant_cast< bool >(parent()->property("HasAirplaneMode")); +} + +bool AirplaneMode1Adaptor::wifiEnabled() const +{ + // get the value of property WifiEnabled + return qvariant_cast< bool >(parent()->property("WifiEnabled")); +} + +void AirplaneMode1Adaptor::DumpState() +{ + // handle method call org.deepin.dde.AirplaneMode1.DumpState + QMetaObject::invokeMethod(parent(), "DumpState"); +} + +void AirplaneMode1Adaptor::Enable(bool in0) +{ + // handle method call org.deepin.dde.AirplaneMode1.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, in0)); +} + +void AirplaneMode1Adaptor::EnableBluetooth(bool in0) +{ + // handle method call org.deepin.dde.AirplaneMode1.EnableBluetooth + QMetaObject::invokeMethod(parent(), "EnableBluetooth", Q_ARG(bool, in0)); +} + +void AirplaneMode1Adaptor::EnableWifi(bool in0) +{ + // handle method call org.deepin.dde.AirplaneMode1.EnableWifi + QMetaObject::invokeMethod(parent(), "EnableWifi", Q_ARG(bool, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h new file mode 100644 index 0000000..c136aeb --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor.h @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.AirplaneMode1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_AIRPLANEMODE1ADAPTOR_H +#define ORG_DEEPIN_DDE_AIRPLANEMODE1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.AirplaneMode1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.AirplaneMode1 + */ +class AirplaneMode1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.AirplaneMode1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + AirplaneMode1Adaptor(QObject *parent); + virtual ~AirplaneMode1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool BluetoothEnabled READ bluetoothEnabled) + bool bluetoothEnabled() const; + + Q_PROPERTY(bool Enabled READ enabled) + bool enabled() const; + + Q_PROPERTY(bool HasAirplaneMode READ hasAirplaneMode) + bool hasAirplaneMode() const; + + Q_PROPERTY(bool WifiEnabled READ wifiEnabled) + bool wifiEnabled() const; + +public Q_SLOTS: // METHODS + void DumpState(); + void Enable(bool in0); + void EnableBluetooth(bool in0); + void EnableWifi(bool in0); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp new file mode 100644 index 0000000..d0d4105 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.cpp @@ -0,0 +1,261 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Appearance1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Appearance1Adaptor + */ + +Appearance1Adaptor::Appearance1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Appearance1Adaptor::~Appearance1Adaptor() +{ + // destructor +} + +QString Appearance1Adaptor::background() const +{ + // get the value of property Background + return qvariant_cast< QString >(parent()->property("Background")); +} + +QString Appearance1Adaptor::cursorTheme() const +{ + // get the value of property CursorTheme + return qvariant_cast< QString >(parent()->property("CursorTheme")); +} + +double Appearance1Adaptor::fontSize() const +{ + // get the value of property FontSize + return qvariant_cast< double >(parent()->property("FontSize")); +} + +void Appearance1Adaptor::setFontSize(double value) +{ + // set the value of property FontSize + parent()->setProperty("FontSize", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::globalTheme() const +{ + // get the value of property GlobalTheme + return qvariant_cast< QString >(parent()->property("GlobalTheme")); +} + +QString Appearance1Adaptor::gtkTheme() const +{ + // get the value of property GtkTheme + return qvariant_cast< QString >(parent()->property("GtkTheme")); +} + +QString Appearance1Adaptor::iconTheme() const +{ + // get the value of property IconTheme + return qvariant_cast< QString >(parent()->property("IconTheme")); +} + +QString Appearance1Adaptor::monospaceFont() const +{ + // get the value of property MonospaceFont + return qvariant_cast< QString >(parent()->property("MonospaceFont")); +} + +double Appearance1Adaptor::opacity() const +{ + // get the value of property Opacity + return qvariant_cast< double >(parent()->property("Opacity")); +} + +void Appearance1Adaptor::setOpacity(double value) +{ + // set the value of property Opacity + parent()->setProperty("Opacity", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::qtActiveColor() const +{ + // get the value of property QtActiveColor + return qvariant_cast< QString >(parent()->property("QtActiveColor")); +} + +void Appearance1Adaptor::setQtActiveColor(const QString &value) +{ + // set the value of property QtActiveColor + parent()->setProperty("QtActiveColor", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::standardFont() const +{ + // get the value of property StandardFont + return qvariant_cast< QString >(parent()->property("StandardFont")); +} + +QString Appearance1Adaptor::wallpaperSlideShow() const +{ + // get the value of property WallpaperSlideShow + return qvariant_cast< QString >(parent()->property("WallpaperSlideShow")); +} + +void Appearance1Adaptor::setWallpaperSlideShow(const QString &value) +{ + // set the value of property WallpaperSlideShow + parent()->setProperty("WallpaperSlideShow", QVariant::fromValue(value)); +} + +QString Appearance1Adaptor::wallpaperURls() const +{ + // get the value of property WallpaperURls + return qvariant_cast< QString >(parent()->property("WallpaperURls")); +} + +int Appearance1Adaptor::windowRadius() const +{ + // get the value of property WindowRadius + return qvariant_cast< int >(parent()->property("WindowRadius")); +} + +void Appearance1Adaptor::setWindowRadius(int value) +{ + // set the value of property WindowRadius + parent()->setProperty("WindowRadius", QVariant::fromValue(value)); +} + +void Appearance1Adaptor::Delete(const QString &ty, const QString &name) +{ + // handle method call org.deepin.dde.Appearance1.Delete + QMetaObject::invokeMethod(parent(), "Delete", Q_ARG(QString, ty), Q_ARG(QString, name)); +} + +QString Appearance1Adaptor::GetCurrentWorkspaceBackground() +{ + // handle method call org.deepin.dde.Appearance1.GetCurrentWorkspaceBackground + QString uri; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackground", Q_RETURN_ARG(QString, uri)); + return uri; +} + +QString Appearance1Adaptor::GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName) +{ + // handle method call org.deepin.dde.Appearance1.GetCurrentWorkspaceBackgroundForMonitor + QString uri; + QMetaObject::invokeMethod(parent(), "GetCurrentWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, uri), Q_ARG(QString, strMonitorName)); + return uri; +} + +double Appearance1Adaptor::GetScaleFactor() +{ + // handle method call org.deepin.dde.Appearance1.GetScaleFactor + double scaleFactor; + QMetaObject::invokeMethod(parent(), "GetScaleFactor", Q_RETURN_ARG(double, scaleFactor)); + return scaleFactor; +} + +QString Appearance1Adaptor::GetWallpaperSlideShow(const QString &monitorName) +{ + // handle method call org.deepin.dde.Appearance1.GetWallpaperSlideShow + QString slideShow; + QMetaObject::invokeMethod(parent(), "GetWallpaperSlideShow", Q_RETURN_ARG(QString, slideShow), Q_ARG(QString, monitorName)); + return slideShow; +} + +QString Appearance1Adaptor::GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName) +{ + // handle method call org.deepin.dde.Appearance1.GetWorkspaceBackgroundForMonitor + QString uri; + QMetaObject::invokeMethod(parent(), "GetWorkspaceBackgroundForMonitor", Q_RETURN_ARG(QString, uri), Q_ARG(int, index), Q_ARG(QString, strMonitorName)); + return uri; +} + +QString Appearance1Adaptor::List(const QString &ty) +{ + // handle method call org.deepin.dde.Appearance1.List + QString list; + QMetaObject::invokeMethod(parent(), "List", Q_RETURN_ARG(QString, list), Q_ARG(QString, ty)); + return list; +} + +void Appearance1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Appearance1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Appearance1Adaptor::Set(const QString &ty, const QString &value) +{ + // handle method call org.deepin.dde.Appearance1.Set + QMetaObject::invokeMethod(parent(), "Set", Q_ARG(QString, ty), Q_ARG(QString, value)); +} + +void Appearance1Adaptor::SetCurrentWorkspaceBackground(const QString &uri) +{ + // handle method call org.deepin.dde.Appearance1.SetCurrentWorkspaceBackground + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackground", Q_ARG(QString, uri)); +} + +void Appearance1Adaptor::SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName) +{ + // handle method call org.deepin.dde.Appearance1.SetCurrentWorkspaceBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetCurrentWorkspaceBackgroundForMonitor", Q_ARG(QString, uri), Q_ARG(QString, strMonitorName)); +} + +void Appearance1Adaptor::SetMonitorBackground(const QString &monitorName, const QString &imageGile) +{ + // handle method call org.deepin.dde.Appearance1.SetMonitorBackground + QMetaObject::invokeMethod(parent(), "SetMonitorBackground", Q_ARG(QString, monitorName), Q_ARG(QString, imageGile)); +} + +void Appearance1Adaptor::SetScaleFactor(double scale) +{ + // handle method call org.deepin.dde.Appearance1.SetScaleFactor + QMetaObject::invokeMethod(parent(), "SetScaleFactor", Q_ARG(double, scale)); +} + +void Appearance1Adaptor::SetWallpaperSlideShow(const QString &monitorName, const QString &slideShow) +{ + // handle method call org.deepin.dde.Appearance1.SetWallpaperSlideShow + QMetaObject::invokeMethod(parent(), "SetWallpaperSlideShow", Q_ARG(QString, monitorName), Q_ARG(QString, slideShow)); +} + +void Appearance1Adaptor::SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri) +{ + // handle method call org.deepin.dde.Appearance1.SetWorkspaceBackgroundForMonitor + QMetaObject::invokeMethod(parent(), "SetWorkspaceBackgroundForMonitor", Q_ARG(int, index), Q_ARG(QString, strMonitorName), Q_ARG(QString, uri)); +} + +QString Appearance1Adaptor::Show(const QString &ty, const QStringList &names) +{ + // handle method call org.deepin.dde.Appearance1.Show + QString detail; + QMetaObject::invokeMethod(parent(), "Show", Q_RETURN_ARG(QString, detail), Q_ARG(QString, ty), Q_ARG(QStringList, names)); + return detail; +} + +QString Appearance1Adaptor::Thumbnail(const QString &ty, const QString &name) +{ + // handle method call org.deepin.dde.Appearance1.Thumbnail + QString file; + QMetaObject::invokeMethod(parent(), "Thumbnail", Q_RETURN_ARG(QString, file), Q_ARG(QString, ty), Q_ARG(QString, name)); + return file; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h new file mode 100644 index 0000000..e5d5a03 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor.h @@ -0,0 +1,195 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Appearance1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_APPEARANCE1ADAPTOR_H +#define ORG_DEEPIN_DDE_APPEARANCE1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Appearance1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Appearance1 + */ +class Appearance1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Appearance1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Appearance1Adaptor(QObject *parent); + virtual ~Appearance1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString Background READ background) + QString background() const; + + Q_PROPERTY(QString CursorTheme READ cursorTheme) + QString cursorTheme() const; + + Q_PROPERTY(double FontSize READ fontSize WRITE setFontSize) + double fontSize() const; + void setFontSize(double value); + + Q_PROPERTY(QString GlobalTheme READ globalTheme) + QString globalTheme() const; + + Q_PROPERTY(QString GtkTheme READ gtkTheme) + QString gtkTheme() const; + + Q_PROPERTY(QString IconTheme READ iconTheme) + QString iconTheme() const; + + Q_PROPERTY(QString MonospaceFont READ monospaceFont) + QString monospaceFont() const; + + Q_PROPERTY(double Opacity READ opacity WRITE setOpacity) + double opacity() const; + void setOpacity(double value); + + Q_PROPERTY(QString QtActiveColor READ qtActiveColor WRITE setQtActiveColor) + QString qtActiveColor() const; + void setQtActiveColor(const QString &value); + + Q_PROPERTY(QString StandardFont READ standardFont) + QString standardFont() const; + + Q_PROPERTY(QString WallpaperSlideShow READ wallpaperSlideShow WRITE setWallpaperSlideShow) + QString wallpaperSlideShow() const; + void setWallpaperSlideShow(const QString &value); + + Q_PROPERTY(QString WallpaperURls READ wallpaperURls) + QString wallpaperURls() const; + + Q_PROPERTY(int WindowRadius READ windowRadius WRITE setWindowRadius) + int windowRadius() const; + void setWindowRadius(int value); + +public Q_SLOTS: // METHODS + void Delete(const QString &ty, const QString &name); + QString GetCurrentWorkspaceBackground(); + QString GetCurrentWorkspaceBackgroundForMonitor(const QString &strMonitorName); + double GetScaleFactor(); + QString GetWallpaperSlideShow(const QString &monitorName); + QString GetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName); + QString List(const QString &ty); + void Reset(); + void Set(const QString &ty, const QString &value); + void SetCurrentWorkspaceBackground(const QString &uri); + void SetCurrentWorkspaceBackgroundForMonitor(const QString &uri, const QString &strMonitorName); + void SetMonitorBackground(const QString &monitorName, const QString &imageGile); + void SetScaleFactor(double scale); + void SetWallpaperSlideShow(const QString &monitorName, const QString &slideShow); + void SetWorkspaceBackgroundForMonitor(int index, const QString &strMonitorName, const QString &uri); + QString Show(const QString &ty, const QStringList &names); + QString Thumbnail(const QString &ty, const QString &name); +Q_SIGNALS: // SIGNALS + void Changed(const QString &ty, const QString &value); + void Refreshed(const QString &type); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp new file mode 100644 index 0000000..ce53801 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.cpp @@ -0,0 +1,145 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Audio1.Sink.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SinkAdaptor + */ + +SinkAdaptor::SinkAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SinkAdaptor::~SinkAdaptor() +{ + // destructor +} + +AudioPort SinkAdaptor::activePort() const +{ + // get the value of property ActivePort + return qvariant_cast< AudioPort >(parent()->property("ActivePort")); +} + +double SinkAdaptor::balance() const +{ + // get the value of property Balance + return qvariant_cast< double >(parent()->property("Balance")); +} + +double SinkAdaptor::baseVolume() const +{ + // get the value of property BaseVolume + return qvariant_cast< double >(parent()->property("BaseVolume")); +} + +uint SinkAdaptor::card() const +{ + // get the value of property Card + return qvariant_cast< uint >(parent()->property("Card")); +} + +QString SinkAdaptor::description() const +{ + // get the value of property Description + return qvariant_cast< QString >(parent()->property("Description")); +} + +double SinkAdaptor::fade() const +{ + // get the value of property Fade + return qvariant_cast< double >(parent()->property("Fade")); +} + +bool SinkAdaptor::mute() const +{ + // get the value of property Mute + return qvariant_cast< bool >(parent()->property("Mute")); +} + +QString SinkAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +AudioPortList SinkAdaptor::ports() const +{ + // get the value of property Ports + return qvariant_cast< AudioPortList >(parent()->property("Ports")); +} + +bool SinkAdaptor::supportBalance() const +{ + // get the value of property SupportBalance + return qvariant_cast< bool >(parent()->property("SupportBalance")); +} + +bool SinkAdaptor::supportFade() const +{ + // get the value of property SupportFade + return qvariant_cast< bool >(parent()->property("SupportFade")); +} + +double SinkAdaptor::volume() const +{ + // get the value of property Volume + return qvariant_cast< double >(parent()->property("Volume")); +} + +QDBusObjectPath SinkAdaptor::GetMeter() +{ + // handle method call org.deepin.dde.Audio1.Sink.GetMeter + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetMeter", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +void SinkAdaptor::SetBalance(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetBalance + QMetaObject::invokeMethod(parent(), "SetBalance", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + +void SinkAdaptor::SetFade(double in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetFade + QMetaObject::invokeMethod(parent(), "SetFade", Q_ARG(double, in0)); +} + +void SinkAdaptor::SetMute(bool in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetMute + QMetaObject::invokeMethod(parent(), "SetMute", Q_ARG(bool, in0)); +} + +void SinkAdaptor::SetPort(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(QString, in0)); +} + +void SinkAdaptor::SetVolume(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Sink.SetVolume + QMetaObject::invokeMethod(parent(), "SetVolume", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h new file mode 100644 index 0000000..80f7124 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor.h @@ -0,0 +1,125 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Audio1.Sink.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SinkAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_AUDIO1_SINKADAPTOR_H +#define ORG_DEEPIN_DDE_AUDIO1_SINKADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Sink.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Audio1.Sink + */ +class SinkAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1.Sink") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SinkAdaptor(QObject *parent); + virtual ~SinkAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(AudioPort ActivePort READ activePort) + AudioPort activePort() const; + + Q_PROPERTY(double Balance READ balance) + double balance() const; + + Q_PROPERTY(double BaseVolume READ baseVolume) + double baseVolume() const; + + Q_PROPERTY(uint Card READ card) + uint card() const; + + Q_PROPERTY(QString Description READ description) + QString description() const; + + Q_PROPERTY(double Fade READ fade) + double fade() const; + + Q_PROPERTY(bool Mute READ mute) + bool mute() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(AudioPortList Ports READ ports) + AudioPortList ports() const; + + Q_PROPERTY(bool SupportBalance READ supportBalance) + bool supportBalance() const; + + Q_PROPERTY(bool SupportFade READ supportFade) + bool supportFade() const; + + Q_PROPERTY(double Volume READ volume) + double volume() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath GetMeter(); + void SetBalance(double in0, bool in1); + void SetFade(double in0); + void SetMute(bool in0); + void SetPort(const QString &in0); + void SetVolume(double in0, bool in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.cpp new file mode 100644 index 0000000..58295b7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.cpp @@ -0,0 +1,145 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Audio1.Source.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Source.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SourceAdaptor + */ + +SourceAdaptor::SourceAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SourceAdaptor::~SourceAdaptor() +{ + // destructor +} + +AudioPort SourceAdaptor::activePort() const +{ + // get the value of property ActivePort + return qvariant_cast< AudioPort >(parent()->property("ActivePort")); +} + +double SourceAdaptor::balance() const +{ + // get the value of property Balance + return qvariant_cast< double >(parent()->property("Balance")); +} + +double SourceAdaptor::baseVolume() const +{ + // get the value of property BaseVolume + return qvariant_cast< double >(parent()->property("BaseVolume")); +} + +uint SourceAdaptor::card() const +{ + // get the value of property Card + return qvariant_cast< uint >(parent()->property("Card")); +} + +QString SourceAdaptor::description() const +{ + // get the value of property Description + return qvariant_cast< QString >(parent()->property("Description")); +} + +double SourceAdaptor::fade() const +{ + // get the value of property Fade + return qvariant_cast< double >(parent()->property("Fade")); +} + +bool SourceAdaptor::mute() const +{ + // get the value of property Mute + return qvariant_cast< bool >(parent()->property("Mute")); +} + +QString SourceAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +AudioPortList SourceAdaptor::ports() const +{ + // get the value of property Ports + return qvariant_cast< AudioPortList >(parent()->property("Ports")); +} + +bool SourceAdaptor::supportBalance() const +{ + // get the value of property SupportBalance + return qvariant_cast< bool >(parent()->property("SupportBalance")); +} + +bool SourceAdaptor::supportFade() const +{ + // get the value of property SupportFade + return qvariant_cast< bool >(parent()->property("SupportFade")); +} + +double SourceAdaptor::volume() const +{ + // get the value of property Volume + return qvariant_cast< double >(parent()->property("Volume")); +} + +QDBusObjectPath SourceAdaptor::GetMeter() +{ + // handle method call org.deepin.dde.Audio1.Source.GetMeter + QDBusObjectPath out0; + QMetaObject::invokeMethod(parent(), "GetMeter", Q_RETURN_ARG(QDBusObjectPath, out0)); + return out0; +} + +void SourceAdaptor::SetBalance(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Source.SetBalance + QMetaObject::invokeMethod(parent(), "SetBalance", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + +void SourceAdaptor::SetFade(double in0) +{ + // handle method call org.deepin.dde.Audio1.Source.SetFade + QMetaObject::invokeMethod(parent(), "SetFade", Q_ARG(double, in0)); +} + +void SourceAdaptor::SetMute(bool in0) +{ + // handle method call org.deepin.dde.Audio1.Source.SetMute + QMetaObject::invokeMethod(parent(), "SetMute", Q_ARG(bool, in0)); +} + +void SourceAdaptor::SetPort(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.Source.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(QString, in0)); +} + +void SourceAdaptor::SetVolume(double in0, bool in1) +{ + // handle method call org.deepin.dde.Audio1.Source.SetVolume + QMetaObject::invokeMethod(parent(), "SetVolume", Q_ARG(double, in0), Q_ARG(bool, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.h new file mode 100644 index 0000000..78d6524 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor.h @@ -0,0 +1,125 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Audio1.Source.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.SourceAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Source.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_AUDIO1_SOURCEADAPTOR_H +#define ORG_DEEPIN_DDE_AUDIO1_SOURCEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.Source.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Audio1.Source + */ +class SourceAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1.Source") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SourceAdaptor(QObject *parent); + virtual ~SourceAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(AudioPort ActivePort READ activePort) + AudioPort activePort() const; + + Q_PROPERTY(double Balance READ balance) + double balance() const; + + Q_PROPERTY(double BaseVolume READ baseVolume) + double baseVolume() const; + + Q_PROPERTY(uint Card READ card) + uint card() const; + + Q_PROPERTY(QString Description READ description) + QString description() const; + + Q_PROPERTY(double Fade READ fade) + double fade() const; + + Q_PROPERTY(bool Mute READ mute) + bool mute() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(AudioPortList Ports READ ports) + AudioPortList ports() const; + + Q_PROPERTY(bool SupportBalance READ supportBalance) + bool supportBalance() const; + + Q_PROPERTY(bool SupportFade READ supportFade) + bool supportFade() const; + + Q_PROPERTY(double Volume READ volume) + double volume() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath GetMeter(); + void SetBalance(double in0, bool in1); + void SetFade(double in0); + void SetMute(bool in0); + void SetPort(const QString &in0); + void SetVolume(double in0, bool in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp new file mode 100644 index 0000000..eb14d60 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.cpp @@ -0,0 +1,187 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Audio1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Audio1Adaptor + */ + +Audio1Adaptor::Audio1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Audio1Adaptor::~Audio1Adaptor() +{ + // destructor +} + +bool Audio1Adaptor::audioServerState() const +{ + // get the value of property AudioServerState + return qvariant_cast< bool >(parent()->property("AudioServerState")); +} + +QString Audio1Adaptor::bluetoothAudioMode() const +{ + // get the value of property BluetoothAudioMode + return qvariant_cast< QString >(parent()->property("BluetoothAudioMode")); +} + +QStringList Audio1Adaptor::bluetoothAudioModeOpts() const +{ + // get the value of property BluetoothAudioModeOpts + return qvariant_cast< QStringList >(parent()->property("BluetoothAudioModeOpts")); +} + +QString Audio1Adaptor::cards() const +{ + // get the value of property Cards + return qvariant_cast< QString >(parent()->property("Cards")); +} + +QString Audio1Adaptor::cardsWithoutUnavailable() const +{ + // get the value of property CardsWithoutUnavailable + return qvariant_cast< QString >(parent()->property("CardsWithoutUnavailable")); +} + +QString Audio1Adaptor::currentAudioServer() const +{ + // get the value of property CurrentAudioServer + return qvariant_cast< QString >(parent()->property("CurrentAudioServer")); +} + +QDBusObjectPath Audio1Adaptor::defaultSink() const +{ + // get the value of property DefaultSink + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSink")); +} + +QDBusObjectPath Audio1Adaptor::defaultSource() const +{ + // get the value of property DefaultSource + return qvariant_cast< QDBusObjectPath >(parent()->property("DefaultSource")); +} + +bool Audio1Adaptor::increaseVolume() const +{ + // get the value of property IncreaseVolume + return qvariant_cast< bool >(parent()->property("IncreaseVolume")); +} + +void Audio1Adaptor::setIncreaseVolume(bool value) +{ + // set the value of property IncreaseVolume + parent()->setProperty("IncreaseVolume", QVariant::fromValue(value)); +} + +double Audio1Adaptor::maxUIVolume() const +{ + // get the value of property MaxUIVolume + return qvariant_cast< double >(parent()->property("MaxUIVolume")); +} + +bool Audio1Adaptor::pausePlayer() const +{ + // get the value of property PausePlayer + return qvariant_cast< bool >(parent()->property("PausePlayer")); +} + +void Audio1Adaptor::setPausePlayer(bool value) +{ + // set the value of property PausePlayer + parent()->setProperty("PausePlayer", QVariant::fromValue(value)); +} + +bool Audio1Adaptor::reduceNoise() const +{ + // get the value of property ReduceNoise + return qvariant_cast< bool >(parent()->property("ReduceNoise")); +} + +void Audio1Adaptor::setReduceNoise(bool value) +{ + // set the value of property ReduceNoise + parent()->setProperty("ReduceNoise", QVariant::fromValue(value)); +} + +QList Audio1Adaptor::sinkInputs() const +{ + // get the value of property SinkInputs + return qvariant_cast< QList >(parent()->property("SinkInputs")); +} + +QList Audio1Adaptor::sinks() const +{ + // get the value of property Sinks + return qvariant_cast< QList >(parent()->property("Sinks")); +} + +QList Audio1Adaptor::sources() const +{ + // get the value of property Sources + return qvariant_cast< QList >(parent()->property("Sources")); +} + +bool Audio1Adaptor::IsPortEnabled(uint in0, const QString &in1) +{ + // handle method call org.deepin.dde.Audio1.IsPortEnabled + bool out0; + QMetaObject::invokeMethod(parent(), "IsPortEnabled", Q_RETURN_ARG(bool, out0), Q_ARG(uint, in0), Q_ARG(QString, in1)); + return out0; +} + +void Audio1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Audio1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Audio1Adaptor::SetBluetoothAudioMode(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetBluetoothAudioMode + QMetaObject::invokeMethod(parent(), "SetBluetoothAudioMode", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetDefaultSink(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetDefaultSink + QMetaObject::invokeMethod(parent(), "SetDefaultSink", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetDefaultSource(const QString &in0) +{ + // handle method call org.deepin.dde.Audio1.SetDefaultSource + QMetaObject::invokeMethod(parent(), "SetDefaultSource", Q_ARG(QString, in0)); +} + +void Audio1Adaptor::SetPort(uint in0, const QString &in1, int in2) +{ + // handle method call org.deepin.dde.Audio1.SetPort + QMetaObject::invokeMethod(parent(), "SetPort", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(int, in2)); +} + +void Audio1Adaptor::SetPortEnabled(uint in0, const QString &in1, bool in2) +{ + // handle method call org.deepin.dde.Audio1.SetPortEnabled + QMetaObject::invokeMethod(parent(), "SetPortEnabled", Q_ARG(uint, in0), Q_ARG(QString, in1), Q_ARG(bool, in2)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h new file mode 100644 index 0000000..a8e7147 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor.h @@ -0,0 +1,150 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Audio1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_AUDIO1ADAPTOR_H +#define ORG_DEEPIN_DDE_AUDIO1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Audio1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Audio1 + */ +class Audio1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Audio1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Audio1Adaptor(QObject *parent); + virtual ~Audio1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AudioServerState READ audioServerState) + bool audioServerState() const; + + Q_PROPERTY(QString BluetoothAudioMode READ bluetoothAudioMode) + QString bluetoothAudioMode() const; + + Q_PROPERTY(QStringList BluetoothAudioModeOpts READ bluetoothAudioModeOpts) + QStringList bluetoothAudioModeOpts() const; + + Q_PROPERTY(QString Cards READ cards) + QString cards() const; + + Q_PROPERTY(QString CardsWithoutUnavailable READ cardsWithoutUnavailable) + QString cardsWithoutUnavailable() const; + + Q_PROPERTY(QString CurrentAudioServer READ currentAudioServer) + QString currentAudioServer() const; + + Q_PROPERTY(QDBusObjectPath DefaultSink READ defaultSink) + QDBusObjectPath defaultSink() const; + + Q_PROPERTY(QDBusObjectPath DefaultSource READ defaultSource) + QDBusObjectPath defaultSource() const; + + Q_PROPERTY(bool IncreaseVolume READ increaseVolume WRITE setIncreaseVolume) + bool increaseVolume() const; + void setIncreaseVolume(bool value); + + Q_PROPERTY(double MaxUIVolume READ maxUIVolume) + double maxUIVolume() const; + + Q_PROPERTY(bool PausePlayer READ pausePlayer WRITE setPausePlayer) + bool pausePlayer() const; + void setPausePlayer(bool value); + + Q_PROPERTY(bool ReduceNoise READ reduceNoise WRITE setReduceNoise) + bool reduceNoise() const; + void setReduceNoise(bool value); + + Q_PROPERTY(QList SinkInputs READ sinkInputs) + QList sinkInputs() const; + + Q_PROPERTY(QList Sinks READ sinks) + QList sinks() const; + + Q_PROPERTY(QList Sources READ sources) + QList sources() const; + +public Q_SLOTS: // METHODS + bool IsPortEnabled(uint in0, const QString &in1); + void Reset(); + void SetBluetoothAudioMode(const QString &in0); + void SetDefaultSink(const QString &in0); + void SetDefaultSource(const QString &in0); + void SetPort(uint in0, const QString &in1, int in2); + void SetPortEnabled(uint in0, const QString &in1, bool in2); +Q_SIGNALS: // SIGNALS + void PortEnabledChanged(uint in0, const QString &in1, bool in2); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp new file mode 100644 index 0000000..318a920 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.cpp @@ -0,0 +1,193 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Bluetooth1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Bluetooth1Adaptor + */ + +Bluetooth1Adaptor::Bluetooth1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Bluetooth1Adaptor::~Bluetooth1Adaptor() +{ + // destructor +} + +bool Bluetooth1Adaptor::canSendFile() const +{ + // get the value of property CanSendFile + return qvariant_cast< bool >(parent()->property("CanSendFile")); +} + +bool Bluetooth1Adaptor::displaySwitch() const +{ + // get the value of property DisplaySwitch + return qvariant_cast< bool >(parent()->property("DisplaySwitch")); +} + +void Bluetooth1Adaptor::setDisplaySwitch(bool value) +{ + // set the value of property DisplaySwitch + parent()->setProperty("DisplaySwitch", QVariant::fromValue(value)); +} + +uint Bluetooth1Adaptor::state() const +{ + // get the value of property State + return qvariant_cast< uint >(parent()->property("State")); +} + +bool Bluetooth1Adaptor::transportable() const +{ + // get the value of property Transportable + return qvariant_cast< bool >(parent()->property("Transportable")); +} + +void Bluetooth1Adaptor::CancelTransferSession(const QDBusObjectPath &sessionPath) +{ + // handle method call org.deepin.dde.Bluetooth1.CancelTransferSession + QMetaObject::invokeMethod(parent(), "CancelTransferSession", Q_ARG(QDBusObjectPath, sessionPath)); +} + +void Bluetooth1Adaptor::ClearUnpairedDevice() +{ + // handle method call org.deepin.dde.Bluetooth1.ClearUnpairedDevice + QMetaObject::invokeMethod(parent(), "ClearUnpairedDevice"); +} + +void Bluetooth1Adaptor::Confirm(const QDBusObjectPath &device, bool accept) +{ + // handle method call org.deepin.dde.Bluetooth1.Confirm + QMetaObject::invokeMethod(parent(), "Confirm", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept)); +} + +void Bluetooth1Adaptor::ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.ConnectDevice + QMetaObject::invokeMethod(parent(), "ConnectDevice", Q_ARG(QDBusObjectPath, device), Q_ARG(QDBusObjectPath, adapter)); +} + +QString Bluetooth1Adaptor::DebugInfo() +{ + // handle method call org.deepin.dde.Bluetooth1.DebugInfo + QString info; + QMetaObject::invokeMethod(parent(), "DebugInfo", Q_RETURN_ARG(QString, info)); + return info; +} + +void Bluetooth1Adaptor::DisconnectDevice(const QDBusObjectPath &device) +{ + // handle method call org.deepin.dde.Bluetooth1.DisconnectDevice + QMetaObject::invokeMethod(parent(), "DisconnectDevice", Q_ARG(QDBusObjectPath, device)); +} + +void Bluetooth1Adaptor::FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey) +{ + // handle method call org.deepin.dde.Bluetooth1.FeedPasskey + QMetaObject::invokeMethod(parent(), "FeedPasskey", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(uint, passkey)); +} + +void Bluetooth1Adaptor::FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode) +{ + // handle method call org.deepin.dde.Bluetooth1.FeedPinCode + QMetaObject::invokeMethod(parent(), "FeedPinCode", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, accept), Q_ARG(QString, pinCode)); +} + +QString Bluetooth1Adaptor::GetAdapters() +{ + // handle method call org.deepin.dde.Bluetooth1.GetAdapters + QString adaptersJSON; + QMetaObject::invokeMethod(parent(), "GetAdapters", Q_RETURN_ARG(QString, adaptersJSON)); + return adaptersJSON; +} + +QString Bluetooth1Adaptor::GetDevices(const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.GetDevices + QString devicesJSON; + QMetaObject::invokeMethod(parent(), "GetDevices", Q_RETURN_ARG(QString, devicesJSON), Q_ARG(QDBusObjectPath, adapter)); + return devicesJSON; +} + +void Bluetooth1Adaptor::RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device) +{ + // handle method call org.deepin.dde.Bluetooth1.RemoveDevice + QMetaObject::invokeMethod(parent(), "RemoveDevice", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QDBusObjectPath, device)); +} + +void Bluetooth1Adaptor::RequestDiscovery(const QDBusObjectPath &adapter) +{ + // handle method call org.deepin.dde.Bluetooth1.RequestDiscovery + QMetaObject::invokeMethod(parent(), "RequestDiscovery", Q_ARG(QDBusObjectPath, adapter)); +} + +QDBusObjectPath Bluetooth1Adaptor::SendFiles(const QString &device, const QStringList &files) +{ + // handle method call org.deepin.dde.Bluetooth1.SendFiles + QDBusObjectPath sessionPath; + QMetaObject::invokeMethod(parent(), "SendFiles", Q_RETURN_ARG(QDBusObjectPath, sessionPath), Q_ARG(QString, device), Q_ARG(QStringList, files)); + return sessionPath; +} + +void Bluetooth1Adaptor::SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterAlias + QMetaObject::invokeMethod(parent(), "SetAdapterAlias", Q_ARG(QDBusObjectPath, adapter), Q_ARG(QString, alias)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverable + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverable", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discoverable)); +} + +void Bluetooth1Adaptor::SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscoverableTimeout + QMetaObject::invokeMethod(parent(), "SetAdapterDiscoverableTimeout", Q_ARG(QDBusObjectPath, adapter), Q_ARG(uint, timeout)); +} + +void Bluetooth1Adaptor::SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterDiscovering + QMetaObject::invokeMethod(parent(), "SetAdapterDiscovering", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, discovering)); +} + +void Bluetooth1Adaptor::SetAdapterPowered(const QDBusObjectPath &adapter, bool powered) +{ + // handle method call org.deepin.dde.Bluetooth1.SetAdapterPowered + QMetaObject::invokeMethod(parent(), "SetAdapterPowered", Q_ARG(QDBusObjectPath, adapter), Q_ARG(bool, powered)); +} + +void Bluetooth1Adaptor::SetDeviceAlias(const QDBusObjectPath &device, const QString &alias) +{ + // handle method call org.deepin.dde.Bluetooth1.SetDeviceAlias + QMetaObject::invokeMethod(parent(), "SetDeviceAlias", Q_ARG(QDBusObjectPath, device), Q_ARG(QString, alias)); +} + +void Bluetooth1Adaptor::SetDeviceTrusted(const QDBusObjectPath &device, bool trusted) +{ + // handle method call org.deepin.dde.Bluetooth1.SetDeviceTrusted + QMetaObject::invokeMethod(parent(), "SetDeviceTrusted", Q_ARG(QDBusObjectPath, device), Q_ARG(bool, trusted)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h new file mode 100644 index 0000000..dcf6cf3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor.h @@ -0,0 +1,253 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Bluetooth1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_BLUETOOTH1ADAPTOR_H +#define ORG_DEEPIN_DDE_BLUETOOTH1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Bluetooth1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Bluetooth1 + */ +class Bluetooth1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Bluetooth1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Bluetooth1Adaptor(QObject *parent); + virtual ~Bluetooth1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CanSendFile READ canSendFile) + bool canSendFile() const; + + Q_PROPERTY(bool DisplaySwitch READ displaySwitch WRITE setDisplaySwitch) + bool displaySwitch() const; + void setDisplaySwitch(bool value); + + Q_PROPERTY(uint State READ state) + uint state() const; + + Q_PROPERTY(bool Transportable READ transportable) + bool transportable() const; + +public Q_SLOTS: // METHODS + void CancelTransferSession(const QDBusObjectPath &sessionPath); + void ClearUnpairedDevice(); + void Confirm(const QDBusObjectPath &device, bool accept); + void ConnectDevice(const QDBusObjectPath &device, const QDBusObjectPath &adapter); + QString DebugInfo(); + void DisconnectDevice(const QDBusObjectPath &device); + void FeedPasskey(const QDBusObjectPath &device, bool accept, uint passkey); + void FeedPinCode(const QDBusObjectPath &device, bool accept, const QString &pinCode); + QString GetAdapters(); + QString GetDevices(const QDBusObjectPath &adapter); + void RemoveDevice(const QDBusObjectPath &adapter, const QDBusObjectPath &device); + void RequestDiscovery(const QDBusObjectPath &adapter); + QDBusObjectPath SendFiles(const QString &device, const QStringList &files); + void SetAdapterAlias(const QDBusObjectPath &adapter, const QString &alias); + void SetAdapterDiscoverable(const QDBusObjectPath &adapter, bool discoverable); + void SetAdapterDiscoverableTimeout(const QDBusObjectPath &adapter, uint timeout); + void SetAdapterDiscovering(const QDBusObjectPath &adapter, bool discovering); + void SetAdapterPowered(const QDBusObjectPath &adapter, bool powered); + void SetDeviceAlias(const QDBusObjectPath &device, const QString &alias); + void SetDeviceTrusted(const QDBusObjectPath &device, bool trusted); +Q_SIGNALS: // SIGNALS + void AdapterAdded(const QString &adapterJSON); + void AdapterPropertiesChanged(const QString &adapterJSON); + void AdapterRemoved(const QString &adapterJSON); + void Cancelled(const QDBusObjectPath &device); + void ConnectFailed(const QDBusObjectPath &device); + void DeviceAdded(const QString &devJSON); + void DevicePropertiesChanged(const QString &devJSON); + void DeviceRemoved(const QString &devJSON); + void DisplayPasskey(const QDBusObjectPath &device, uint passkey, uint entered); + void DisplayPinCode(const QDBusObjectPath &device, const QString &pinCode); + void ObexSessionCreated(const QDBusObjectPath &sessionPath); + void ObexSessionProgress(const QDBusObjectPath &sessionPath, qulonglong totalSize, qulonglong transferred, int currentIdx); + void ObexSessionRemoved(const QDBusObjectPath &sessionPath); + void RequestAuthorization(const QDBusObjectPath &device); + void RequestConfirmation(const QDBusObjectPath &device, const QString &passkey); + void RequestPasskey(const QDBusObjectPath &device); + void RequestPinCode(const QDBusObjectPath &device); + void TransferCreated(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath); + void TransferFailed(const QString &file, const QDBusObjectPath &sessionPath, const QString &errInfo); + void TransferRemoved(const QString &file, const QDBusObjectPath &transferPath, const QDBusObjectPath &sessionPath, bool done); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.cpp new file mode 100644 index 0000000..06ad364 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.ControlCenter1.GrandSearch.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearch.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class GrandSearchAdaptor + */ + +GrandSearchAdaptor::GrandSearchAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +GrandSearchAdaptor::~GrandSearchAdaptor() +{ + // destructor +} + +bool GrandSearchAdaptor::Action(const QString &json) +{ + // handle method call org.deepin.dde.ControlCenter1.GrandSearch.Action + bool out0; + QMetaObject::invokeMethod(parent(), "Action", Q_RETURN_ARG(bool, out0), Q_ARG(QString, json)); + return out0; +} + +QString GrandSearchAdaptor::Search(const QString &json) +{ + // handle method call org.deepin.dde.ControlCenter1.GrandSearch.Search + QString out0; + QMetaObject::invokeMethod(parent(), "Search", Q_RETURN_ARG(QString, out0), Q_ARG(QString, json)); + return out0; +} + +bool GrandSearchAdaptor::Stop(const QString &json) +{ + // handle method call org.deepin.dde.ControlCenter1.GrandSearch.Stop + bool out0; + QMetaObject::invokeMethod(parent(), "Stop", Q_RETURN_ARG(bool, out0), Q_ARG(QString, json)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.h new file mode 100644 index 0000000..e45d1b4 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor.h @@ -0,0 +1,62 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.ControlCenter1.GrandSearch.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearchAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearch.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_CONTROLCENTER1_GRANDSEARCHADAPTOR_H +#define ORG_DEEPIN_DDE_CONTROLCENTER1_GRANDSEARCHADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.GrandSearch.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.ControlCenter1.GrandSearch + */ +class GrandSearchAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.ControlCenter1.GrandSearch") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + GrandSearchAdaptor(QObject *parent); + virtual ~GrandSearchAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool Action(const QString &json); + QString Search(const QString &json); + bool Stop(const QString &json); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.cpp new file mode 100644 index 0000000..84ec3dd --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.cpp @@ -0,0 +1,123 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.ControlCenter1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ControlCenter1Adaptor + */ + +ControlCenter1Adaptor::ControlCenter1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ControlCenter1Adaptor::~ControlCenter1Adaptor() +{ + // destructor +} + +ControlCenterRect ControlCenter1Adaptor::rect() const +{ + // get the value of property Rect + return qvariant_cast< ControlCenterRect >(parent()->property("Rect")); +} + +bool ControlCenter1Adaptor::showInRight() const +{ + // get the value of property ShowInRight + return qvariant_cast< bool >(parent()->property("ShowInRight")); +} + +void ControlCenter1Adaptor::Hide() +{ + // handle method call org.deepin.dde.ControlCenter1.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +void ControlCenter1Adaptor::HideImmediately() +{ + // handle method call org.deepin.dde.ControlCenter1.HideImmediately + QMetaObject::invokeMethod(parent(), "HideImmediately"); +} + +void ControlCenter1Adaptor::SetAutoHide(bool autoHide) +{ + // handle method call org.deepin.dde.ControlCenter1.SetAutoHide + QMetaObject::invokeMethod(parent(), "SetAutoHide", Q_ARG(bool, autoHide)); +} + +void ControlCenter1Adaptor::Show() +{ + // handle method call org.deepin.dde.ControlCenter1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void ControlCenter1Adaptor::ShowHome() +{ + // handle method call org.deepin.dde.ControlCenter1.ShowHome + QMetaObject::invokeMethod(parent(), "ShowHome"); +} + +void ControlCenter1Adaptor::ShowImmediately() +{ + // handle method call org.deepin.dde.ControlCenter1.ShowImmediately + QMetaObject::invokeMethod(parent(), "ShowImmediately"); +} + +void ControlCenter1Adaptor::ShowModule(const QString &module) +{ + // handle method call org.deepin.dde.ControlCenter1.ShowModule + QMetaObject::invokeMethod(parent(), "ShowModule", Q_ARG(QString, module)); +} + +void ControlCenter1Adaptor::ShowPage(const QString &module, const QString &page) +{ + // handle method call org.deepin.dde.ControlCenter1.ShowPage + QMetaObject::invokeMethod(parent(), "ShowPage", Q_ARG(QString, module), Q_ARG(QString, page)); +} + +void ControlCenter1Adaptor::Toggle() +{ + // handle method call org.deepin.dde.ControlCenter1.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +void ControlCenter1Adaptor::ToggleInLeft() +{ + // handle method call org.deepin.dde.ControlCenter1.ToggleInLeft + QMetaObject::invokeMethod(parent(), "ToggleInLeft"); +} + +bool ControlCenter1Adaptor::isModuleAvailable(const QString &m) +{ + // handle method call org.deepin.dde.ControlCenter1.isModuleAvailable + bool out0; + QMetaObject::invokeMethod(parent(), "isModuleAvailable", Q_RETURN_ARG(bool, out0), Q_ARG(QString, m)); + return out0; +} + +bool ControlCenter1Adaptor::isNetworkCanShowPassword() +{ + // handle method call org.deepin.dde.ControlCenter1.isNetworkCanShowPassword + bool out0; + QMetaObject::invokeMethod(parent(), "isNetworkCanShowPassword", Q_RETURN_ARG(bool, out0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.h new file mode 100644 index 0000000..34d80ee --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor.h @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.ControlCenter1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_CONTROLCENTER1ADAPTOR_H +#define ORG_DEEPIN_DDE_CONTROLCENTER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ControlCenter1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.ControlCenter1 + */ +class ControlCenter1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.ControlCenter1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ControlCenter1Adaptor(QObject *parent); + virtual ~ControlCenter1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(ControlCenterRect Rect READ rect) + ControlCenterRect rect() const; + + Q_PROPERTY(bool ShowInRight READ showInRight) + bool showInRight() const; + +public Q_SLOTS: // METHODS + void Hide(); + void HideImmediately(); + void SetAutoHide(bool autoHide); + void Show(); + void ShowHome(); + void ShowImmediately(); + void ShowModule(const QString &module); + void ShowPage(const QString &module, const QString &page); + void Toggle(); + void ToggleInLeft(); + bool isModuleAvailable(const QString &m); + bool isNetworkCanShowPassword(); +Q_SIGNALS: // SIGNALS + void destRectChanged(); + void rectChanged(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp new file mode 100644 index 0000000..6b1e263 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.cpp @@ -0,0 +1,209 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Display1.Monitor.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MonitorAdaptor + */ + +MonitorAdaptor::MonitorAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MonitorAdaptor::~MonitorAdaptor() +{ + // destructor +} + +QStringList MonitorAdaptor::availableFillModes() const +{ + // get the value of property AvailableFillModes + return qvariant_cast< QStringList >(parent()->property("AvailableFillModes")); +} + +Resolution MonitorAdaptor::bestMode() const +{ + // get the value of property BestMode + return qvariant_cast< Resolution >(parent()->property("BestMode")); +} + +bool MonitorAdaptor::connected() const +{ + // get the value of property Connected + return qvariant_cast< bool >(parent()->property("Connected")); +} + +QString MonitorAdaptor::currentFillMode() const +{ + // get the value of property CurrentFillMode + return qvariant_cast< QString >(parent()->property("CurrentFillMode")); +} + +void MonitorAdaptor::setCurrentFillMode(const QString &value) +{ + // set the value of property CurrentFillMode + parent()->setProperty("CurrentFillMode", QVariant::fromValue(value)); +} + +Resolution MonitorAdaptor::currentMode() const +{ + // get the value of property CurrentMode + return qvariant_cast< Resolution >(parent()->property("CurrentMode")); +} + +uchar MonitorAdaptor::currentRotateMode() const +{ + // get the value of property CurrentRotateMode + return qvariant_cast< uchar >(parent()->property("CurrentRotateMode")); +} + +bool MonitorAdaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +ushort MonitorAdaptor::height() const +{ + // get the value of property Height + return qvariant_cast< ushort >(parent()->property("Height")); +} + +QString MonitorAdaptor::manufacturer() const +{ + // get the value of property Manufacturer + return qvariant_cast< QString >(parent()->property("Manufacturer")); +} + +uint MonitorAdaptor::mmHeight() const +{ + // get the value of property MmHeight + return qvariant_cast< uint >(parent()->property("MmHeight")); +} + +uint MonitorAdaptor::mmWidth() const +{ + // get the value of property MmWidth + return qvariant_cast< uint >(parent()->property("MmWidth")); +} + +QString MonitorAdaptor::model() const +{ + // get the value of property Model + return qvariant_cast< QString >(parent()->property("Model")); +} + +ResolutionList MonitorAdaptor::modes() const +{ + // get the value of property Modes + return qvariant_cast< ResolutionList >(parent()->property("Modes")); +} + +QString MonitorAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +ushort MonitorAdaptor::reflect() const +{ + // get the value of property Reflect + return qvariant_cast< ushort >(parent()->property("Reflect")); +} + +ReflectList MonitorAdaptor::reflects() const +{ + // get the value of property Reflects + return qvariant_cast< ReflectList >(parent()->property("Reflects")); +} + +double MonitorAdaptor::refreshRate() const +{ + // get the value of property RefreshRate + return qvariant_cast< double >(parent()->property("RefreshRate")); +} + +ushort MonitorAdaptor::rotation() const +{ + // get the value of property Rotation + return qvariant_cast< ushort >(parent()->property("Rotation")); +} + +RotationList MonitorAdaptor::rotations() const +{ + // get the value of property Rotations + return qvariant_cast< RotationList >(parent()->property("Rotations")); +} + +ushort MonitorAdaptor::width() const +{ + // get the value of property Width + return qvariant_cast< ushort >(parent()->property("Width")); +} + +short MonitorAdaptor::x() const +{ + // get the value of property X + return qvariant_cast< short >(parent()->property("X")); +} + +short MonitorAdaptor::y() const +{ + // get the value of property Y + return qvariant_cast< short >(parent()->property("Y")); +} + +void MonitorAdaptor::Enable(bool in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, in0)); +} + +void MonitorAdaptor::SetMode(uint in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetMode + QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(uint, in0)); +} + +void MonitorAdaptor::SetModeBySize(ushort in0, ushort in1) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetModeBySize + QMetaObject::invokeMethod(parent(), "SetModeBySize", Q_ARG(ushort, in0), Q_ARG(ushort, in1)); +} + +void MonitorAdaptor::SetPosition(short in0, short in1) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetPosition + QMetaObject::invokeMethod(parent(), "SetPosition", Q_ARG(short, in0), Q_ARG(short, in1)); +} + +void MonitorAdaptor::SetReflect(ushort in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetReflect + QMetaObject::invokeMethod(parent(), "SetReflect", Q_ARG(ushort, in0)); +} + +void MonitorAdaptor::SetRotation(ushort in0) +{ + // handle method call org.deepin.dde.Display1.Monitor.SetRotation + QMetaObject::invokeMethod(parent(), "SetRotation", Q_ARG(ushort, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h new file mode 100644 index 0000000..368b658 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor.h @@ -0,0 +1,172 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Display1.Monitor.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.MonitorAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DISPLAY1_MONITORADAPTOR_H +#define ORG_DEEPIN_DDE_DISPLAY1_MONITORADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.Monitor.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Display1.Monitor + */ +class MonitorAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1.Monitor") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MonitorAdaptor(QObject *parent); + virtual ~MonitorAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QStringList AvailableFillModes READ availableFillModes) + QStringList availableFillModes() const; + + Q_PROPERTY(Resolution BestMode READ bestMode) + Resolution bestMode() const; + + Q_PROPERTY(bool Connected READ connected) + bool connected() const; + + Q_PROPERTY(QString CurrentFillMode READ currentFillMode WRITE setCurrentFillMode) + QString currentFillMode() const; + void setCurrentFillMode(const QString &value); + + Q_PROPERTY(Resolution CurrentMode READ currentMode) + Resolution currentMode() const; + + Q_PROPERTY(uchar CurrentRotateMode READ currentRotateMode) + uchar currentRotateMode() const; + + Q_PROPERTY(bool Enabled READ enabled) + bool enabled() const; + + Q_PROPERTY(ushort Height READ height) + ushort height() const; + + Q_PROPERTY(QString Manufacturer READ manufacturer) + QString manufacturer() const; + + Q_PROPERTY(uint MmHeight READ mmHeight) + uint mmHeight() const; + + Q_PROPERTY(uint MmWidth READ mmWidth) + uint mmWidth() const; + + Q_PROPERTY(QString Model READ model) + QString model() const; + + Q_PROPERTY(ResolutionList Modes READ modes) + ResolutionList modes() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(ushort Reflect READ reflect) + ushort reflect() const; + + Q_PROPERTY(ReflectList Reflects READ reflects) + ReflectList reflects() const; + + Q_PROPERTY(double RefreshRate READ refreshRate) + double refreshRate() const; + + Q_PROPERTY(ushort Rotation READ rotation) + ushort rotation() const; + + Q_PROPERTY(RotationList Rotations READ rotations) + RotationList rotations() const; + + Q_PROPERTY(ushort Width READ width) + ushort width() const; + + Q_PROPERTY(short X READ x) + short x() const; + + Q_PROPERTY(short Y READ y) + short y() const; + +public Q_SLOTS: // METHODS + void Enable(bool in0); + void SetMode(uint in0); + void SetModeBySize(ushort in0, ushort in1); + void SetPosition(short in0, short in1); + void SetReflect(ushort in0); + void SetRotation(ushort in0); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp new file mode 100644 index 0000000..c2cda60 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.cpp @@ -0,0 +1,49 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Display1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Display1Adaptor + */ + +Display1Adaptor::Display1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Display1Adaptor::~Display1Adaptor() +{ + // destructor +} + +QString Display1Adaptor::GetConfig() +{ + // handle method call org.deepin.dde.Display1.GetConfig + QString out0; + QMetaObject::invokeMethod(parent(), "GetConfig", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void Display1Adaptor::SetConfig(const QString &in0) +{ + // handle method call org.deepin.dde.Display1.SetConfig + QMetaObject::invokeMethod(parent(), "SetConfig", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h new file mode 100644 index 0000000..74c1e6d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Display1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H +#define ORG_DEEPIN_DDE_DISPLAY1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Display1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Display1 + */ +class Display1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Display1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Display1Adaptor(QObject *parent); + virtual ~Display1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString GetConfig(); + void SetConfig(const QString &in0); +Q_SIGNALS: // SIGNALS + void ConfigUpdated(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.cpp new file mode 100644 index 0000000..9f2c6c8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.cpp @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Dock1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Dock1Adaptor + */ + +Dock1Adaptor::Dock1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Dock1Adaptor::~Dock1Adaptor() +{ + // destructor +} + +DockGeometry Dock1Adaptor::geometry() const +{ + // get the value of property geometry + return qvariant_cast< DockGeometry >(parent()->property("geometry")); +} + +bool Dock1Adaptor::showInPrimary() const +{ + // get the value of property showInPrimary + return qvariant_cast< bool >(parent()->property("showInPrimary")); +} + +void Dock1Adaptor::setShowInPrimary(bool value) +{ + // set the value of property showInPrimary + parent()->setProperty("showInPrimary", QVariant::fromValue(value)); +} + +QStringList Dock1Adaptor::GetLoadedPlugins() +{ + // handle method call org.deepin.dde.Dock1.GetLoadedPlugins + QStringList list; + QMetaObject::invokeMethod(parent(), "GetLoadedPlugins", Q_RETURN_ARG(QStringList, list)); + return list; +} + +void Dock1Adaptor::ReloadPlugins() +{ + // handle method call org.deepin.dde.Dock1.ReloadPlugins + QMetaObject::invokeMethod(parent(), "ReloadPlugins"); +} + +void Dock1Adaptor::callShow() +{ + // handle method call org.deepin.dde.Dock1.callShow + QMetaObject::invokeMethod(parent(), "callShow"); +} + +QString Dock1Adaptor::getPluginKey(const QString &pluginName) +{ + // handle method call org.deepin.dde.Dock1.getPluginKey + QString key; + QMetaObject::invokeMethod(parent(), "getPluginKey", Q_RETURN_ARG(QString, key), Q_ARG(QString, pluginName)); + return key; +} + +bool Dock1Adaptor::getPluginVisible(const QString &pluginName) +{ + // handle method call org.deepin.dde.Dock1.getPluginVisible + bool visible; + QMetaObject::invokeMethod(parent(), "getPluginVisible", Q_RETURN_ARG(bool, visible), Q_ARG(QString, pluginName)); + return visible; +} + +void Dock1Adaptor::resizeDock(int offset, bool dragging) +{ + // handle method call org.deepin.dde.Dock1.resizeDock + QMetaObject::invokeMethod(parent(), "resizeDock", Q_ARG(int, offset), Q_ARG(bool, dragging)); +} + +void Dock1Adaptor::setPluginVisible(const QString &pluginName, bool visible) +{ + // handle method call org.deepin.dde.Dock1.setPluginVisible + QMetaObject::invokeMethod(parent(), "setPluginVisible", Q_ARG(QString, pluginName), Q_ARG(bool, visible)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.h new file mode 100644 index 0000000..663de2f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor.h @@ -0,0 +1,91 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Dock1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DOCK1ADAPTOR_H +#define ORG_DEEPIN_DDE_DOCK1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Dock1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Dock1 + */ +class Dock1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Dock1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Dock1Adaptor(QObject *parent); + virtual ~Dock1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(DockGeometry geometry READ geometry) + DockGeometry geometry() const; + + Q_PROPERTY(bool showInPrimary READ showInPrimary WRITE setShowInPrimary) + bool showInPrimary() const; + void setShowInPrimary(bool value); + +public Q_SLOTS: // METHODS + QStringList GetLoadedPlugins(); + void ReloadPlugins(); + void callShow(); + QString getPluginKey(const QString &pluginName); + bool getPluginVisible(const QString &pluginName); + void resizeDock(int offset, bool dragging); + void setPluginVisible(const QString &pluginName, bool visible); +Q_SIGNALS: // SIGNALS + void pluginVisibleChanged(const QString &in0, bool in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp new file mode 100644 index 0000000..05dfe93 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Gesture1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Gesture1Adaptor + */ + +Gesture1Adaptor::Gesture1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Gesture1Adaptor::~Gesture1Adaptor() +{ + // destructor +} + +void Gesture1Adaptor::SetEdgeMoveStopDuration(uint duration) +{ + // handle method call org.deepin.dde.Gesture1.SetEdgeMoveStopDuration + QMetaObject::invokeMethod(parent(), "SetEdgeMoveStopDuration", Q_ARG(uint, duration)); +} + +void Gesture1Adaptor::SetInputIgnore(const QString &node, bool ignore) +{ + // handle method call org.deepin.dde.Gesture1.SetInputIgnore + QMetaObject::invokeMethod(parent(), "SetInputIgnore", Q_ARG(QString, node), Q_ARG(bool, ignore)); +} + +void Gesture1Adaptor::SetShortPressDuration(uint duration) +{ + // handle method call org.deepin.dde.Gesture1.SetShortPressDuration + QMetaObject::invokeMethod(parent(), "SetShortPressDuration", Q_ARG(uint, duration)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h new file mode 100644 index 0000000..1e97803 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor.h @@ -0,0 +1,132 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Gesture1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_GESTURE1ADAPTOR_H +#define ORG_DEEPIN_DDE_GESTURE1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Gesture1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Gesture1 + */ +class Gesture1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Gesture1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Gesture1Adaptor(QObject *parent); + virtual ~Gesture1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void SetEdgeMoveStopDuration(uint duration); + void SetInputIgnore(const QString &node, bool ignore); + void SetShortPressDuration(uint duration); +Q_SIGNALS: // SIGNALS + void DbclickDown(int fingers); + void Event(const QString &name, const QString &direction, int fingers); + void SwipeMoving(int fingers, double accelX, double accely); + void SwipeStop(int fingers); + void TouchEdgeEvent(const QString &direction, double scalex, double scaley); + void TouchEdgeMoveStop(const QString &direction, double scalex, double scaley, int duration); + void TouchEdgeMoveStopLeave(const QString &direction, double scalex, double scaley, int duration); + void TouchMovementEvent(const QString &duration, int fingers, double startScalex, double startScaley, double endScalex, double endScaley); + void TouchMoving(double scalex, double scaley); + void TouchPressTimeout(int fingers, int time, double scalex, double scaley); + void TouchSinglePressTimeout(int time, double scalex, double scaley); + void TouchUpOrCancel(double scalex, double scaley); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.cpp new file mode 100644 index 0000000..18524b5 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Grub2.EditAuthentication.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthentication.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class EditAuthenticationAdaptor + */ + +EditAuthenticationAdaptor::EditAuthenticationAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +EditAuthenticationAdaptor::~EditAuthenticationAdaptor() +{ + // destructor +} + +QStringList EditAuthenticationAdaptor::enabledUsers() const +{ + // get the value of property EnabledUsers + return qvariant_cast< QStringList >(parent()->property("EnabledUsers")); +} + +void EditAuthenticationAdaptor::Disable(const QString &username) +{ + // handle method call org.deepin.dde.Grub2.EditAuthentication.Disable + QMetaObject::invokeMethod(parent(), "Disable", Q_ARG(QString, username)); +} + +void EditAuthenticationAdaptor::Enable(const QString &username, const QString &password) +{ + // handle method call org.deepin.dde.Grub2.EditAuthentication.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(QString, username), Q_ARG(QString, password)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.h new file mode 100644 index 0000000..d0d7d26 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.h @@ -0,0 +1,60 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Grub2.EditAuthentication.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthentication.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_GRUB2_EDITAUTHENTICATIONADAPTOR_H +#define ORG_DEEPIN_DDE_GRUB2_EDITAUTHENTICATIONADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthentication.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Grub2.EditAuthentication + */ +class EditAuthenticationAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Grub2.EditAuthentication") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + EditAuthenticationAdaptor(QObject *parent); + virtual ~EditAuthenticationAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QStringList EnabledUsers READ enabledUsers) + QStringList enabledUsers() const; + +public Q_SLOTS: // METHODS + void Disable(const QString &username); + void Enable(const QString &username, const QString &password); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.cpp new file mode 100644 index 0000000..25f16cd --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.cpp @@ -0,0 +1,79 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Grub2.Theme.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.Theme.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ThemeAdaptor + */ + +ThemeAdaptor::ThemeAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ThemeAdaptor::~ThemeAdaptor() +{ + // destructor +} + +QString ThemeAdaptor::itemColor() const +{ + // get the value of property ItemColor + return qvariant_cast< QString >(parent()->property("ItemColor")); +} + +QString ThemeAdaptor::selectedItemColor() const +{ + // get the value of property SelectedItemColor + return qvariant_cast< QString >(parent()->property("SelectedItemColor")); +} + +bool ThemeAdaptor::updating() const +{ + // get the value of property Updating + return qvariant_cast< bool >(parent()->property("Updating")); +} + +QString ThemeAdaptor::GetBackground() +{ + // handle method call org.deepin.dde.Grub2.Theme.GetBackground + QString out0; + QMetaObject::invokeMethod(parent(), "GetBackground", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void ThemeAdaptor::SetBackgroundSourceFile(const QString &in0) +{ + // handle method call org.deepin.dde.Grub2.Theme.SetBackgroundSourceFile + QMetaObject::invokeMethod(parent(), "SetBackgroundSourceFile", Q_ARG(QString, in0)); +} + +void ThemeAdaptor::SetItemColor(const QString &in0) +{ + // handle method call org.deepin.dde.Grub2.Theme.SetItemColor + QMetaObject::invokeMethod(parent(), "SetItemColor", Q_ARG(QString, in0)); +} + +void ThemeAdaptor::SetSelectedItemColor(const QString &in0) +{ + // handle method call org.deepin.dde.Grub2.Theme.SetSelectedItemColor + QMetaObject::invokeMethod(parent(), "SetSelectedItemColor", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.h new file mode 100644 index 0000000..b42b3f7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor.h @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Grub2.Theme.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.ThemeAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.Theme.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_GRUB2_THEMEADAPTOR_H +#define ORG_DEEPIN_DDE_GRUB2_THEMEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.Theme.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Grub2.Theme + */ +class ThemeAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Grub2.Theme") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ThemeAdaptor(QObject *parent); + virtual ~ThemeAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString ItemColor READ itemColor) + QString itemColor() const; + + Q_PROPERTY(QString SelectedItemColor READ selectedItemColor) + QString selectedItemColor() const; + + Q_PROPERTY(bool Updating READ updating) + bool updating() const; + +public Q_SLOTS: // METHODS + QString GetBackground(); + void SetBackgroundSourceFile(const QString &in0); + void SetItemColor(const QString &in0); + void SetSelectedItemColor(const QString &in0); +Q_SIGNALS: // SIGNALS + void BackgroundChanged(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.cpp new file mode 100644 index 0000000..f0d29ef --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.cpp @@ -0,0 +1,131 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Grub2.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Grub2Adaptor + */ + +Grub2Adaptor::Grub2Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Grub2Adaptor::~Grub2Adaptor() +{ + // destructor +} + +QString Grub2Adaptor::defaultEntry() const +{ + // get the value of property DefaultEntry + return qvariant_cast< QString >(parent()->property("DefaultEntry")); +} + +bool Grub2Adaptor::enableTheme() const +{ + // get the value of property EnableTheme + return qvariant_cast< bool >(parent()->property("EnableTheme")); +} + +QString Grub2Adaptor::resolution() const +{ + // get the value of property Resolution + return qvariant_cast< QString >(parent()->property("Resolution")); +} + +QString Grub2Adaptor::theme() const +{ + // get the value of property Theme + return qvariant_cast< QString >(parent()->property("Theme")); +} + +uint Grub2Adaptor::timeout() const +{ + // get the value of property Timeout + return qvariant_cast< uint >(parent()->property("Timeout")); +} + +bool Grub2Adaptor::updating() const +{ + // get the value of property Updating + return qvariant_cast< bool >(parent()->property("Updating")); +} + +QString Grub2Adaptor::GetAvailableResolutions() +{ + // handle method call org.deepin.dde.Grub2.GetAvailableResolutions + QString modeJSON; + QMetaObject::invokeMethod(parent(), "GetAvailableResolutions", Q_RETURN_ARG(QString, modeJSON)); + return modeJSON; +} + +QStringList Grub2Adaptor::GetSimpleEntryTitles() +{ + // handle method call org.deepin.dde.Grub2.GetSimpleEntryTitles + QStringList titles; + QMetaObject::invokeMethod(parent(), "GetSimpleEntryTitles", Q_RETURN_ARG(QStringList, titles)); + return titles; +} + +QString Grub2Adaptor::GetThemes() +{ + // handle method call org.deepin.dde.Grub2.GetThemes + QString themes; + QMetaObject::invokeMethod(parent(), "GetThemes", Q_RETURN_ARG(QString, themes)); + return themes; +} + +void Grub2Adaptor::Reset() +{ + // handle method call org.deepin.dde.Grub2.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void Grub2Adaptor::SetDefaultEntry(const QString &entry) +{ + // handle method call org.deepin.dde.Grub2.SetDefaultEntry + QMetaObject::invokeMethod(parent(), "SetDefaultEntry", Q_ARG(QString, entry)); +} + +void Grub2Adaptor::SetEnableTheme(bool enabled) +{ + // handle method call org.deepin.dde.Grub2.SetEnableTheme + QMetaObject::invokeMethod(parent(), "SetEnableTheme", Q_ARG(bool, enabled)); +} + +void Grub2Adaptor::SetResolution(const QString &resolution) +{ + // handle method call org.deepin.dde.Grub2.SetResolution + QMetaObject::invokeMethod(parent(), "SetResolution", Q_ARG(QString, resolution)); +} + +void Grub2Adaptor::SetTheme(const QString &themeId) +{ + // handle method call org.deepin.dde.Grub2.SetTheme + QMetaObject::invokeMethod(parent(), "SetTheme", Q_ARG(QString, themeId)); +} + +void Grub2Adaptor::SetTimeout(uint timeout) +{ + // handle method call org.deepin.dde.Grub2.SetTimeout + QMetaObject::invokeMethod(parent(), "SetTimeout", Q_ARG(uint, timeout)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.h new file mode 100644 index 0000000..0bb28e3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor.h @@ -0,0 +1,105 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Grub2.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_GRUB2ADAPTOR_H +#define ORG_DEEPIN_DDE_GRUB2ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Grub2 + */ +class Grub2Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Grub2") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Grub2Adaptor(QObject *parent); + virtual ~Grub2Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString DefaultEntry READ defaultEntry) + QString defaultEntry() const; + + Q_PROPERTY(bool EnableTheme READ enableTheme) + bool enableTheme() const; + + Q_PROPERTY(QString Resolution READ resolution) + QString resolution() const; + + Q_PROPERTY(QString Theme READ theme) + QString theme() const; + + Q_PROPERTY(uint Timeout READ timeout) + uint timeout() const; + + Q_PROPERTY(bool Updating READ updating) + bool updating() const; + +public Q_SLOTS: // METHODS + QString GetAvailableResolutions(); + QStringList GetSimpleEntryTitles(); + QString GetThemes(); + void Reset(); + void SetDefaultEntry(const QString &entry); + void SetEnableTheme(bool enabled); + void SetResolution(const QString &resolution); + void SetTheme(const QString &themeId); + void SetTimeout(uint timeout); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp new file mode 100644 index 0000000..a45c8aa --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.cpp @@ -0,0 +1,183 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class KeyboardAdaptor + */ + +KeyboardAdaptor::KeyboardAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +KeyboardAdaptor::~KeyboardAdaptor() +{ + // destructor +} + +bool KeyboardAdaptor::capslockToggle() const +{ + // get the value of property CapslockToggle + return qvariant_cast< bool >(parent()->property("CapslockToggle")); +} + +void KeyboardAdaptor::setCapslockToggle(bool value) +{ + // set the value of property CapslockToggle + parent()->setProperty("CapslockToggle", QVariant::fromValue(value)); +} + +QString KeyboardAdaptor::currentLayout() const +{ + // get the value of property CurrentLayout + return qvariant_cast< QString >(parent()->property("CurrentLayout")); +} + +void KeyboardAdaptor::setCurrentLayout(const QString &value) +{ + // set the value of property CurrentLayout + parent()->setProperty("CurrentLayout", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::cursorBlink() const +{ + // get the value of property CursorBlink + return qvariant_cast< int >(parent()->property("CursorBlink")); +} + +void KeyboardAdaptor::setCursorBlink(int value) +{ + // set the value of property CursorBlink + parent()->setProperty("CursorBlink", QVariant::fromValue(value)); +} + +int KeyboardAdaptor::layoutScope() const +{ + // get the value of property LayoutScope + return qvariant_cast< int >(parent()->property("LayoutScope")); +} + +void KeyboardAdaptor::setLayoutScope(int value) +{ + // set the value of property LayoutScope + parent()->setProperty("LayoutScope", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatDelay() const +{ + // get the value of property RepeatDelay + return qvariant_cast< uint >(parent()->property("RepeatDelay")); +} + +void KeyboardAdaptor::setRepeatDelay(uint value) +{ + // set the value of property RepeatDelay + parent()->setProperty("RepeatDelay", QVariant::fromValue(value)); +} + +bool KeyboardAdaptor::repeatEnabled() const +{ + // get the value of property RepeatEnabled + return qvariant_cast< bool >(parent()->property("RepeatEnabled")); +} + +void KeyboardAdaptor::setRepeatEnabled(bool value) +{ + // set the value of property RepeatEnabled + parent()->setProperty("RepeatEnabled", QVariant::fromValue(value)); +} + +uint KeyboardAdaptor::repeatInterval() const +{ + // get the value of property RepeatInterval + return qvariant_cast< uint >(parent()->property("RepeatInterval")); +} + +void KeyboardAdaptor::setRepeatInterval(uint value) +{ + // set the value of property RepeatInterval + parent()->setProperty("RepeatInterval", QVariant::fromValue(value)); +} + +QStringList KeyboardAdaptor::userLayoutList() const +{ + // get the value of property UserLayoutList + return qvariant_cast< QStringList >(parent()->property("UserLayoutList")); +} + +QStringList KeyboardAdaptor::userOptionList() const +{ + // get the value of property UserOptionList + return qvariant_cast< QStringList >(parent()->property("UserOptionList")); +} + +void KeyboardAdaptor::AddLayoutOption(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.AddLayoutOption + QMetaObject::invokeMethod(parent(), "AddLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::AddUserLayout(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.AddUserLayout + QMetaObject::invokeMethod(parent(), "AddUserLayout", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::ClearLayoutOption() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.ClearLayoutOption + QMetaObject::invokeMethod(parent(), "ClearLayoutOption"); +} + +void KeyboardAdaptor::DeleteLayoutOption(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteLayoutOption + QMetaObject::invokeMethod(parent(), "DeleteLayoutOption", Q_ARG(QString, in0)); +} + +void KeyboardAdaptor::DeleteUserLayout(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.DeleteUserLayout + QMetaObject::invokeMethod(parent(), "DeleteUserLayout", Q_ARG(QString, in0)); +} + +QString KeyboardAdaptor::GetLayoutDesc(const QString &in0) +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.GetLayoutDesc + QString out0; + QMetaObject::invokeMethod(parent(), "GetLayoutDesc", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +KeyboardLayoutList KeyboardAdaptor::LayoutList() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.LayoutList + KeyboardLayoutList out0; + QMetaObject::invokeMethod(parent(), "LayoutList", Q_RETURN_ARG(KeyboardLayoutList, out0)); + return out0; +} + +void KeyboardAdaptor::Reset() +{ + // handle method call org.deepin.dde.InputDevice1.Keyboard.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h new file mode 100644 index 0000000..e240c9b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor.h @@ -0,0 +1,120 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.Keyboard.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.KeyboardAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_INPUTDEVICE1_KEYBOARDADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICE1_KEYBOARDADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Keyboard.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.InputDevice1.Keyboard + */ +class KeyboardAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.Keyboard") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + KeyboardAdaptor(QObject *parent); + virtual ~KeyboardAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool CapslockToggle READ capslockToggle WRITE setCapslockToggle) + bool capslockToggle() const; + void setCapslockToggle(bool value); + + Q_PROPERTY(QString CurrentLayout READ currentLayout WRITE setCurrentLayout) + QString currentLayout() const; + void setCurrentLayout(const QString &value); + + Q_PROPERTY(int CursorBlink READ cursorBlink WRITE setCursorBlink) + int cursorBlink() const; + void setCursorBlink(int value); + + Q_PROPERTY(int LayoutScope READ layoutScope WRITE setLayoutScope) + int layoutScope() const; + void setLayoutScope(int value); + + Q_PROPERTY(uint RepeatDelay READ repeatDelay WRITE setRepeatDelay) + uint repeatDelay() const; + void setRepeatDelay(uint value); + + Q_PROPERTY(bool RepeatEnabled READ repeatEnabled WRITE setRepeatEnabled) + bool repeatEnabled() const; + void setRepeatEnabled(bool value); + + Q_PROPERTY(uint RepeatInterval READ repeatInterval WRITE setRepeatInterval) + uint repeatInterval() const; + void setRepeatInterval(uint value); + + Q_PROPERTY(QStringList UserLayoutList READ userLayoutList) + QStringList userLayoutList() const; + + Q_PROPERTY(QStringList UserOptionList READ userOptionList) + QStringList userOptionList() const; + +public Q_SLOTS: // METHODS + void AddLayoutOption(const QString &in0); + void AddUserLayout(const QString &in0); + void ClearLayoutOption(); + void DeleteLayoutOption(const QString &in0); + void DeleteUserLayout(const QString &in0); + QString GetLayoutDesc(const QString &in0); + KeyboardLayoutList LayoutList(); + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.cpp new file mode 100644 index 0000000..84c94cc --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.cpp @@ -0,0 +1,191 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.Mouse.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Mouse.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MouseAdaptor + */ + +MouseAdaptor::MouseAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MouseAdaptor::~MouseAdaptor() +{ + // destructor +} + +bool MouseAdaptor::adaptiveAccelProfile() const +{ + // get the value of property AdaptiveAccelProfile + return qvariant_cast< bool >(parent()->property("AdaptiveAccelProfile")); +} + +void MouseAdaptor::setAdaptiveAccelProfile(bool value) +{ + // set the value of property AdaptiveAccelProfile + parent()->setProperty("AdaptiveAccelProfile", QVariant::fromValue(value)); +} + +QString MouseAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +bool MouseAdaptor::disableTpad() const +{ + // get the value of property DisableTpad + return qvariant_cast< bool >(parent()->property("DisableTpad")); +} + +void MouseAdaptor::setDisableTpad(bool value) +{ + // set the value of property DisableTpad + parent()->setProperty("DisableTpad", QVariant::fromValue(value)); +} + +int MouseAdaptor::doubleClick() const +{ + // get the value of property DoubleClick + return qvariant_cast< int >(parent()->property("DoubleClick")); +} + +void MouseAdaptor::setDoubleClick(int value) +{ + // set the value of property DoubleClick + parent()->setProperty("DoubleClick", QVariant::fromValue(value)); +} + +int MouseAdaptor::dragThreshold() const +{ + // get the value of property DragThreshold + return qvariant_cast< int >(parent()->property("DragThreshold")); +} + +void MouseAdaptor::setDragThreshold(int value) +{ + // set the value of property DragThreshold + parent()->setProperty("DragThreshold", QVariant::fromValue(value)); +} + +bool MouseAdaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +void MouseAdaptor::setEnabled(bool value) +{ + // set the value of property Enabled + parent()->setProperty("Enabled", QVariant::fromValue(value)); +} + +bool MouseAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +bool MouseAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void MouseAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +bool MouseAdaptor::middleButtonEmulation() const +{ + // get the value of property MiddleButtonEmulation + return qvariant_cast< bool >(parent()->property("MiddleButtonEmulation")); +} + +void MouseAdaptor::setMiddleButtonEmulation(bool value) +{ + // set the value of property MiddleButtonEmulation + parent()->setProperty("MiddleButtonEmulation", QVariant::fromValue(value)); +} + +double MouseAdaptor::motionAcceleration() const +{ + // get the value of property MotionAcceleration + return qvariant_cast< double >(parent()->property("MotionAcceleration")); +} + +void MouseAdaptor::setMotionAcceleration(double value) +{ + // set the value of property MotionAcceleration + parent()->setProperty("MotionAcceleration", QVariant::fromValue(value)); +} + +double MouseAdaptor::motionScaling() const +{ + // get the value of property MotionScaling + return qvariant_cast< double >(parent()->property("MotionScaling")); +} + +void MouseAdaptor::setMotionScaling(double value) +{ + // set the value of property MotionScaling + parent()->setProperty("MotionScaling", QVariant::fromValue(value)); +} + +double MouseAdaptor::motionThreshold() const +{ + // get the value of property MotionThreshold + return qvariant_cast< double >(parent()->property("MotionThreshold")); +} + +void MouseAdaptor::setMotionThreshold(double value) +{ + // set the value of property MotionThreshold + parent()->setProperty("MotionThreshold", QVariant::fromValue(value)); +} + +bool MouseAdaptor::naturalScroll() const +{ + // get the value of property NaturalScroll + return qvariant_cast< bool >(parent()->property("NaturalScroll")); +} + +void MouseAdaptor::setNaturalScroll(bool value) +{ + // set the value of property NaturalScroll + parent()->setProperty("NaturalScroll", QVariant::fromValue(value)); +} + +void MouseAdaptor::Enable(bool in0) +{ + // handle method call org.deepin.dde.InputDevice1.Mouse.Enable + QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, in0)); +} + +void MouseAdaptor::Reset() +{ + // handle method call org.deepin.dde.InputDevice1.Mouse.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.h new file mode 100644 index 0000000..4fe0fc2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor.h @@ -0,0 +1,116 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.Mouse.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.MouseAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Mouse.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_INPUTDEVICE1_MOUSEADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICE1_MOUSEADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Mouse.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.InputDevice1.Mouse + */ +class MouseAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.Mouse") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MouseAdaptor(QObject *parent); + virtual ~MouseAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AdaptiveAccelProfile READ adaptiveAccelProfile WRITE setAdaptiveAccelProfile) + bool adaptiveAccelProfile() const; + void setAdaptiveAccelProfile(bool value); + + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(bool DisableTpad READ disableTpad WRITE setDisableTpad) + bool disableTpad() const; + void setDisableTpad(bool value); + + Q_PROPERTY(int DoubleClick READ doubleClick WRITE setDoubleClick) + int doubleClick() const; + void setDoubleClick(int value); + + Q_PROPERTY(int DragThreshold READ dragThreshold WRITE setDragThreshold) + int dragThreshold() const; + void setDragThreshold(int value); + + Q_PROPERTY(bool Enabled READ enabled WRITE setEnabled) + bool enabled() const; + void setEnabled(bool value); + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(bool MiddleButtonEmulation READ middleButtonEmulation WRITE setMiddleButtonEmulation) + bool middleButtonEmulation() const; + void setMiddleButtonEmulation(bool value); + + Q_PROPERTY(double MotionAcceleration READ motionAcceleration WRITE setMotionAcceleration) + double motionAcceleration() const; + void setMotionAcceleration(double value); + + Q_PROPERTY(double MotionScaling READ motionScaling WRITE setMotionScaling) + double motionScaling() const; + void setMotionScaling(double value); + + Q_PROPERTY(double MotionThreshold READ motionThreshold WRITE setMotionThreshold) + double motionThreshold() const; + void setMotionThreshold(double value); + + Q_PROPERTY(bool NaturalScroll READ naturalScroll WRITE setNaturalScroll) + bool naturalScroll() const; + void setNaturalScroll(bool value); + +public Q_SLOTS: // METHODS + void Enable(bool in0); + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.cpp new file mode 100644 index 0000000..a7b618b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.cpp @@ -0,0 +1,257 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.TouchPad.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPad.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TouchPadAdaptor + */ + +TouchPadAdaptor::TouchPadAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TouchPadAdaptor::~TouchPadAdaptor() +{ + // destructor +} + +int TouchPadAdaptor::deltaScroll() const +{ + // get the value of property DeltaScroll + return qvariant_cast< int >(parent()->property("DeltaScroll")); +} + +void TouchPadAdaptor::setDeltaScroll(int value) +{ + // set the value of property DeltaScroll + parent()->setProperty("DeltaScroll", QVariant::fromValue(value)); +} + +QString TouchPadAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +bool TouchPadAdaptor::disableIfTyping() const +{ + // get the value of property DisableIfTyping + return qvariant_cast< bool >(parent()->property("DisableIfTyping")); +} + +void TouchPadAdaptor::setDisableIfTyping(bool value) +{ + // set the value of property DisableIfTyping + parent()->setProperty("DisableIfTyping", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::doubleClick() const +{ + // get the value of property DoubleClick + return qvariant_cast< int >(parent()->property("DoubleClick")); +} + +void TouchPadAdaptor::setDoubleClick(int value) +{ + // set the value of property DoubleClick + parent()->setProperty("DoubleClick", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::dragThreshold() const +{ + // get the value of property DragThreshold + return qvariant_cast< int >(parent()->property("DragThreshold")); +} + +void TouchPadAdaptor::setDragThreshold(int value) +{ + // set the value of property DragThreshold + parent()->setProperty("DragThreshold", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::edgeScroll() const +{ + // get the value of property EdgeScroll + return qvariant_cast< bool >(parent()->property("EdgeScroll")); +} + +void TouchPadAdaptor::setEdgeScroll(bool value) +{ + // set the value of property EdgeScroll + parent()->setProperty("EdgeScroll", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +bool TouchPadAdaptor::horizScroll() const +{ + // get the value of property HorizScroll + return qvariant_cast< bool >(parent()->property("HorizScroll")); +} + +void TouchPadAdaptor::setHorizScroll(bool value) +{ + // set the value of property HorizScroll + parent()->setProperty("HorizScroll", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void TouchPadAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +double TouchPadAdaptor::motionAcceleration() const +{ + // get the value of property MotionAcceleration + return qvariant_cast< double >(parent()->property("MotionAcceleration")); +} + +void TouchPadAdaptor::setMotionAcceleration(double value) +{ + // set the value of property MotionAcceleration + parent()->setProperty("MotionAcceleration", QVariant::fromValue(value)); +} + +double TouchPadAdaptor::motionScaling() const +{ + // get the value of property MotionScaling + return qvariant_cast< double >(parent()->property("MotionScaling")); +} + +void TouchPadAdaptor::setMotionScaling(double value) +{ + // set the value of property MotionScaling + parent()->setProperty("MotionScaling", QVariant::fromValue(value)); +} + +double TouchPadAdaptor::motionThreshold() const +{ + // get the value of property MotionThreshold + return qvariant_cast< double >(parent()->property("MotionThreshold")); +} + +void TouchPadAdaptor::setMotionThreshold(double value) +{ + // set the value of property MotionThreshold + parent()->setProperty("MotionThreshold", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::naturalScroll() const +{ + // get the value of property NaturalScroll + return qvariant_cast< bool >(parent()->property("NaturalScroll")); +} + +void TouchPadAdaptor::setNaturalScroll(bool value) +{ + // set the value of property NaturalScroll + parent()->setProperty("NaturalScroll", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::palmDetect() const +{ + // get the value of property PalmDetect + return qvariant_cast< bool >(parent()->property("PalmDetect")); +} + +void TouchPadAdaptor::setPalmDetect(bool value) +{ + // set the value of property PalmDetect + parent()->setProperty("PalmDetect", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::palmMinWidth() const +{ + // get the value of property PalmMinWidth + return qvariant_cast< int >(parent()->property("PalmMinWidth")); +} + +void TouchPadAdaptor::setPalmMinWidth(int value) +{ + // set the value of property PalmMinWidth + parent()->setProperty("PalmMinWidth", QVariant::fromValue(value)); +} + +int TouchPadAdaptor::palmMinZ() const +{ + // get the value of property PalmMinZ + return qvariant_cast< int >(parent()->property("PalmMinZ")); +} + +void TouchPadAdaptor::setPalmMinZ(int value) +{ + // set the value of property PalmMinZ + parent()->setProperty("PalmMinZ", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::tPadEnable() const +{ + // get the value of property TPadEnable + return qvariant_cast< bool >(parent()->property("TPadEnable")); +} + +void TouchPadAdaptor::setTPadEnable(bool value) +{ + // set the value of property TPadEnable + parent()->setProperty("TPadEnable", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::tapClick() const +{ + // get the value of property TapClick + return qvariant_cast< bool >(parent()->property("TapClick")); +} + +void TouchPadAdaptor::setTapClick(bool value) +{ + // set the value of property TapClick + parent()->setProperty("TapClick", QVariant::fromValue(value)); +} + +bool TouchPadAdaptor::vertScroll() const +{ + // get the value of property VertScroll + return qvariant_cast< bool >(parent()->property("VertScroll")); +} + +void TouchPadAdaptor::setVertScroll(bool value) +{ + // set the value of property VertScroll + parent()->setProperty("VertScroll", QVariant::fromValue(value)); +} + +void TouchPadAdaptor::Reset() +{ + // handle method call org.deepin.dde.InputDevice1.TouchPad.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.h new file mode 100644 index 0000000..8eb15b4 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor.h @@ -0,0 +1,142 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.TouchPad.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPadAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPad.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_INPUTDEVICE1_TOUCHPADADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICE1_TOUCHPADADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TouchPad.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.InputDevice1.TouchPad + */ +class TouchPadAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.TouchPad") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TouchPadAdaptor(QObject *parent); + virtual ~TouchPadAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DeltaScroll READ deltaScroll WRITE setDeltaScroll) + int deltaScroll() const; + void setDeltaScroll(int value); + + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(bool DisableIfTyping READ disableIfTyping WRITE setDisableIfTyping) + bool disableIfTyping() const; + void setDisableIfTyping(bool value); + + Q_PROPERTY(int DoubleClick READ doubleClick WRITE setDoubleClick) + int doubleClick() const; + void setDoubleClick(int value); + + Q_PROPERTY(int DragThreshold READ dragThreshold WRITE setDragThreshold) + int dragThreshold() const; + void setDragThreshold(int value); + + Q_PROPERTY(bool EdgeScroll READ edgeScroll WRITE setEdgeScroll) + bool edgeScroll() const; + void setEdgeScroll(bool value); + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(bool HorizScroll READ horizScroll WRITE setHorizScroll) + bool horizScroll() const; + void setHorizScroll(bool value); + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(double MotionAcceleration READ motionAcceleration WRITE setMotionAcceleration) + double motionAcceleration() const; + void setMotionAcceleration(double value); + + Q_PROPERTY(double MotionScaling READ motionScaling WRITE setMotionScaling) + double motionScaling() const; + void setMotionScaling(double value); + + Q_PROPERTY(double MotionThreshold READ motionThreshold WRITE setMotionThreshold) + double motionThreshold() const; + void setMotionThreshold(double value); + + Q_PROPERTY(bool NaturalScroll READ naturalScroll WRITE setNaturalScroll) + bool naturalScroll() const; + void setNaturalScroll(bool value); + + Q_PROPERTY(bool PalmDetect READ palmDetect WRITE setPalmDetect) + bool palmDetect() const; + void setPalmDetect(bool value); + + Q_PROPERTY(int PalmMinWidth READ palmMinWidth WRITE setPalmMinWidth) + int palmMinWidth() const; + void setPalmMinWidth(int value); + + Q_PROPERTY(int PalmMinZ READ palmMinZ WRITE setPalmMinZ) + int palmMinZ() const; + void setPalmMinZ(int value); + + Q_PROPERTY(bool TPadEnable READ tPadEnable WRITE setTPadEnable) + bool tPadEnable() const; + void setTPadEnable(bool value); + + Q_PROPERTY(bool TapClick READ tapClick WRITE setTapClick) + bool tapClick() const; + void setTapClick(bool value); + + Q_PROPERTY(bool VertScroll READ vertScroll WRITE setVertScroll) + bool vertScroll() const; + void setVertScroll(bool value); + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.cpp new file mode 100644 index 0000000..8c30044 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.cpp @@ -0,0 +1,173 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.TrackPoint.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPoint.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TrackPointAdaptor + */ + +TrackPointAdaptor::TrackPointAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TrackPointAdaptor::~TrackPointAdaptor() +{ + // destructor +} + +QString TrackPointAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +bool TrackPointAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +bool TrackPointAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void TrackPointAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +bool TrackPointAdaptor::middleButtonEnabled() const +{ + // get the value of property MiddleButtonEnabled + return qvariant_cast< bool >(parent()->property("MiddleButtonEnabled")); +} + +void TrackPointAdaptor::setMiddleButtonEnabled(bool value) +{ + // set the value of property MiddleButtonEnabled + parent()->setProperty("MiddleButtonEnabled", QVariant::fromValue(value)); +} + +int TrackPointAdaptor::middleButtonTimeout() const +{ + // get the value of property MiddleButtonTimeout + return qvariant_cast< int >(parent()->property("MiddleButtonTimeout")); +} + +void TrackPointAdaptor::setMiddleButtonTimeout(int value) +{ + // set the value of property MiddleButtonTimeout + parent()->setProperty("MiddleButtonTimeout", QVariant::fromValue(value)); +} + +double TrackPointAdaptor::motionAcceleration() const +{ + // get the value of property MotionAcceleration + return qvariant_cast< double >(parent()->property("MotionAcceleration")); +} + +void TrackPointAdaptor::setMotionAcceleration(double value) +{ + // set the value of property MotionAcceleration + parent()->setProperty("MotionAcceleration", QVariant::fromValue(value)); +} + +double TrackPointAdaptor::motionScaling() const +{ + // get the value of property MotionScaling + return qvariant_cast< double >(parent()->property("MotionScaling")); +} + +void TrackPointAdaptor::setMotionScaling(double value) +{ + // set the value of property MotionScaling + parent()->setProperty("MotionScaling", QVariant::fromValue(value)); +} + +double TrackPointAdaptor::motionThreshold() const +{ + // get the value of property MotionThreshold + return qvariant_cast< double >(parent()->property("MotionThreshold")); +} + +void TrackPointAdaptor::setMotionThreshold(double value) +{ + // set the value of property MotionThreshold + parent()->setProperty("MotionThreshold", QVariant::fromValue(value)); +} + +bool TrackPointAdaptor::wheelEmulation() const +{ + // get the value of property WheelEmulation + return qvariant_cast< bool >(parent()->property("WheelEmulation")); +} + +void TrackPointAdaptor::setWheelEmulation(bool value) +{ + // set the value of property WheelEmulation + parent()->setProperty("WheelEmulation", QVariant::fromValue(value)); +} + +int TrackPointAdaptor::wheelEmulationButton() const +{ + // get the value of property WheelEmulationButton + return qvariant_cast< int >(parent()->property("WheelEmulationButton")); +} + +void TrackPointAdaptor::setWheelEmulationButton(int value) +{ + // set the value of property WheelEmulationButton + parent()->setProperty("WheelEmulationButton", QVariant::fromValue(value)); +} + +int TrackPointAdaptor::wheelEmulationTimeout() const +{ + // get the value of property WheelEmulationTimeout + return qvariant_cast< int >(parent()->property("WheelEmulationTimeout")); +} + +void TrackPointAdaptor::setWheelEmulationTimeout(int value) +{ + // set the value of property WheelEmulationTimeout + parent()->setProperty("WheelEmulationTimeout", QVariant::fromValue(value)); +} + +bool TrackPointAdaptor::wheelHorizScroll() const +{ + // get the value of property WheelHorizScroll + return qvariant_cast< bool >(parent()->property("WheelHorizScroll")); +} + +void TrackPointAdaptor::setWheelHorizScroll(bool value) +{ + // set the value of property WheelHorizScroll + parent()->setProperty("WheelHorizScroll", QVariant::fromValue(value)); +} + +void TrackPointAdaptor::Reset() +{ + // handle method call org.deepin.dde.InputDevice1.TrackPoint.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.h new file mode 100644 index 0000000..ecffde3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor.h @@ -0,0 +1,107 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.TrackPoint.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPointAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPoint.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_INPUTDEVICE1_TRACKPOINTADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICE1_TRACKPOINTADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.TrackPoint.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.InputDevice1.TrackPoint + */ +class TrackPointAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.TrackPoint") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TrackPointAdaptor(QObject *parent); + virtual ~TrackPointAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(bool MiddleButtonEnabled READ middleButtonEnabled WRITE setMiddleButtonEnabled) + bool middleButtonEnabled() const; + void setMiddleButtonEnabled(bool value); + + Q_PROPERTY(int MiddleButtonTimeout READ middleButtonTimeout WRITE setMiddleButtonTimeout) + int middleButtonTimeout() const; + void setMiddleButtonTimeout(int value); + + Q_PROPERTY(double MotionAcceleration READ motionAcceleration WRITE setMotionAcceleration) + double motionAcceleration() const; + void setMotionAcceleration(double value); + + Q_PROPERTY(double MotionScaling READ motionScaling WRITE setMotionScaling) + double motionScaling() const; + void setMotionScaling(double value); + + Q_PROPERTY(double MotionThreshold READ motionThreshold WRITE setMotionThreshold) + double motionThreshold() const; + void setMotionThreshold(double value); + + Q_PROPERTY(bool WheelEmulation READ wheelEmulation WRITE setWheelEmulation) + bool wheelEmulation() const; + void setWheelEmulation(bool value); + + Q_PROPERTY(int WheelEmulationButton READ wheelEmulationButton WRITE setWheelEmulationButton) + int wheelEmulationButton() const; + void setWheelEmulationButton(int value); + + Q_PROPERTY(int WheelEmulationTimeout READ wheelEmulationTimeout WRITE setWheelEmulationTimeout) + int wheelEmulationTimeout() const; + void setWheelEmulationTimeout(int value); + + Q_PROPERTY(bool WheelHorizScroll READ wheelHorizScroll WRITE setWheelHorizScroll) + bool wheelHorizScroll() const; + void setWheelHorizScroll(bool value); + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.cpp new file mode 100644 index 0000000..7aac984 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.cpp @@ -0,0 +1,203 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.Wacom.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Wacom.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WacomAdaptor + */ + +WacomAdaptor::WacomAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WacomAdaptor::~WacomAdaptor() +{ + // destructor +} + +WacomDeviceList WacomAdaptor::actionInfos() const +{ + // get the value of property ActionInfos + return qvariant_cast< WacomDeviceList >(parent()->property("ActionInfos")); +} + +bool WacomAdaptor::cursorMode() const +{ + // get the value of property CursorMode + return qvariant_cast< bool >(parent()->property("CursorMode")); +} + +void WacomAdaptor::setCursorMode(bool value) +{ + // set the value of property CursorMode + parent()->setProperty("CursorMode", QVariant::fromValue(value)); +} + +QString WacomAdaptor::deviceList() const +{ + // get the value of property DeviceList + return qvariant_cast< QString >(parent()->property("DeviceList")); +} + +uint WacomAdaptor::eraserPressureSensitive() const +{ + // get the value of property EraserPressureSensitive + return qvariant_cast< uint >(parent()->property("EraserPressureSensitive")); +} + +void WacomAdaptor::setEraserPressureSensitive(uint value) +{ + // set the value of property EraserPressureSensitive + parent()->setProperty("EraserPressureSensitive", QVariant::fromValue(value)); +} + +uint WacomAdaptor::eraserRawSample() const +{ + // get the value of property EraserRawSample + return qvariant_cast< uint >(parent()->property("EraserRawSample")); +} + +void WacomAdaptor::setEraserRawSample(uint value) +{ + // set the value of property EraserRawSample + parent()->setProperty("EraserRawSample", QVariant::fromValue(value)); +} + +uint WacomAdaptor::eraserThreshold() const +{ + // get the value of property EraserThreshold + return qvariant_cast< uint >(parent()->property("EraserThreshold")); +} + +void WacomAdaptor::setEraserThreshold(uint value) +{ + // set the value of property EraserThreshold + parent()->setProperty("EraserThreshold", QVariant::fromValue(value)); +} + +bool WacomAdaptor::exist() const +{ + // get the value of property Exist + return qvariant_cast< bool >(parent()->property("Exist")); +} + +QString WacomAdaptor::keyDownAction() const +{ + // get the value of property KeyDownAction + return qvariant_cast< QString >(parent()->property("KeyDownAction")); +} + +void WacomAdaptor::setKeyDownAction(const QString &value) +{ + // set the value of property KeyDownAction + parent()->setProperty("KeyDownAction", QVariant::fromValue(value)); +} + +QString WacomAdaptor::keyUpAction() const +{ + // get the value of property KeyUpAction + return qvariant_cast< QString >(parent()->property("KeyUpAction")); +} + +void WacomAdaptor::setKeyUpAction(const QString &value) +{ + // set the value of property KeyUpAction + parent()->setProperty("KeyUpAction", QVariant::fromValue(value)); +} + +bool WacomAdaptor::leftHanded() const +{ + // get the value of property LeftHanded + return qvariant_cast< bool >(parent()->property("LeftHanded")); +} + +void WacomAdaptor::setLeftHanded(bool value) +{ + // set the value of property LeftHanded + parent()->setProperty("LeftHanded", QVariant::fromValue(value)); +} + +QString WacomAdaptor::mapOutput() const +{ + // get the value of property MapOutput + return qvariant_cast< QString >(parent()->property("MapOutput")); +} + +void WacomAdaptor::setMapOutput(const QString &value) +{ + // set the value of property MapOutput + parent()->setProperty("MapOutput", QVariant::fromValue(value)); +} + +uint WacomAdaptor::stylusPressureSensitive() const +{ + // get the value of property StylusPressureSensitive + return qvariant_cast< uint >(parent()->property("StylusPressureSensitive")); +} + +void WacomAdaptor::setStylusPressureSensitive(uint value) +{ + // set the value of property StylusPressureSensitive + parent()->setProperty("StylusPressureSensitive", QVariant::fromValue(value)); +} + +uint WacomAdaptor::stylusRawSample() const +{ + // get the value of property StylusRawSample + return qvariant_cast< uint >(parent()->property("StylusRawSample")); +} + +void WacomAdaptor::setStylusRawSample(uint value) +{ + // set the value of property StylusRawSample + parent()->setProperty("StylusRawSample", QVariant::fromValue(value)); +} + +uint WacomAdaptor::stylusThreshold() const +{ + // get the value of property StylusThreshold + return qvariant_cast< uint >(parent()->property("StylusThreshold")); +} + +void WacomAdaptor::setStylusThreshold(uint value) +{ + // set the value of property StylusThreshold + parent()->setProperty("StylusThreshold", QVariant::fromValue(value)); +} + +uint WacomAdaptor::suppress() const +{ + // get the value of property Suppress + return qvariant_cast< uint >(parent()->property("Suppress")); +} + +void WacomAdaptor::setSuppress(uint value) +{ + // set the value of property Suppress + parent()->setProperty("Suppress", QVariant::fromValue(value)); +} + +void WacomAdaptor::Reset() +{ + // handle method call org.deepin.dde.InputDevice1.Wacom.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.h new file mode 100644 index 0000000..e278277 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor.h @@ -0,0 +1,123 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevice1.Wacom.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.WacomAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Wacom.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_INPUTDEVICE1_WACOMADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICE1_WACOMADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevice1.Wacom.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.InputDevice1.Wacom + */ +class WacomAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevice1.Wacom") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WacomAdaptor(QObject *parent); + virtual ~WacomAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(WacomDeviceList ActionInfos READ actionInfos) + WacomDeviceList actionInfos() const; + + Q_PROPERTY(bool CursorMode READ cursorMode WRITE setCursorMode) + bool cursorMode() const; + void setCursorMode(bool value); + + Q_PROPERTY(QString DeviceList READ deviceList) + QString deviceList() const; + + Q_PROPERTY(uint EraserPressureSensitive READ eraserPressureSensitive WRITE setEraserPressureSensitive) + uint eraserPressureSensitive() const; + void setEraserPressureSensitive(uint value); + + Q_PROPERTY(uint EraserRawSample READ eraserRawSample WRITE setEraserRawSample) + uint eraserRawSample() const; + void setEraserRawSample(uint value); + + Q_PROPERTY(uint EraserThreshold READ eraserThreshold WRITE setEraserThreshold) + uint eraserThreshold() const; + void setEraserThreshold(uint value); + + Q_PROPERTY(bool Exist READ exist) + bool exist() const; + + Q_PROPERTY(QString KeyDownAction READ keyDownAction WRITE setKeyDownAction) + QString keyDownAction() const; + void setKeyDownAction(const QString &value); + + Q_PROPERTY(QString KeyUpAction READ keyUpAction WRITE setKeyUpAction) + QString keyUpAction() const; + void setKeyUpAction(const QString &value); + + Q_PROPERTY(bool LeftHanded READ leftHanded WRITE setLeftHanded) + bool leftHanded() const; + void setLeftHanded(bool value); + + Q_PROPERTY(QString MapOutput READ mapOutput WRITE setMapOutput) + QString mapOutput() const; + void setMapOutput(const QString &value); + + Q_PROPERTY(uint StylusPressureSensitive READ stylusPressureSensitive WRITE setStylusPressureSensitive) + uint stylusPressureSensitive() const; + void setStylusPressureSensitive(uint value); + + Q_PROPERTY(uint StylusRawSample READ stylusRawSample WRITE setStylusRawSample) + uint stylusRawSample() const; + void setStylusRawSample(uint value); + + Q_PROPERTY(uint StylusThreshold READ stylusThreshold WRITE setStylusThreshold) + uint stylusThreshold() const; + void setStylusThreshold(uint value); + + Q_PROPERTY(uint Suppress READ suppress WRITE setSuppress) + uint suppress() const; + void setSuppress(uint value); + +public Q_SLOTS: // METHODS + void Reset(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.cpp new file mode 100644 index 0000000..6337bac --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevices1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class InputDevices1Adaptor + */ + +InputDevices1Adaptor::InputDevices1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +InputDevices1Adaptor::~InputDevices1Adaptor() +{ + // destructor +} + +InputDeviceList InputDevices1Adaptor::infos() const +{ + // get the value of property Infos + return qvariant_cast< InputDeviceList >(parent()->property("Infos")); +} + +uint InputDevices1Adaptor::wheelSpeed() const +{ + // get the value of property WheelSpeed + return qvariant_cast< uint >(parent()->property("WheelSpeed")); +} + +void InputDevices1Adaptor::setWheelSpeed(uint value) +{ + // set the value of property WheelSpeed + parent()->setProperty("WheelSpeed", QVariant::fromValue(value)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.h new file mode 100644 index 0000000..499c513 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor.h @@ -0,0 +1,58 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.InputDevices1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_INPUTDEVICES1ADAPTOR_H +#define ORG_DEEPIN_DDE_INPUTDEVICES1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.InputDevices1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.InputDevices1 + */ +class InputDevices1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.InputDevices1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + InputDevices1Adaptor(QObject *parent); + virtual ~InputDevices1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(InputDeviceList Infos READ infos) + InputDeviceList infos() const; + + Q_PROPERTY(uint WheelSpeed READ wheelSpeed WRITE setWheelSpeed) + uint wheelSpeed() const; + void setWheelSpeed(uint value); + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.cpp new file mode 100644 index 0000000..ede3974 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.cpp @@ -0,0 +1,199 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Keybinding1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Keybinding1Adaptor + */ + +Keybinding1Adaptor::Keybinding1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Keybinding1Adaptor::~Keybinding1Adaptor() +{ + // destructor +} + +int Keybinding1Adaptor::numLockState() const +{ + // get the value of property NumLockState + return qvariant_cast< int >(parent()->property("NumLockState")); +} + +uint Keybinding1Adaptor::shortcutSwitchLayout() const +{ + // get the value of property ShortcutSwitchLayout + return qvariant_cast< uint >(parent()->property("ShortcutSwitchLayout")); +} + +void Keybinding1Adaptor::setShortcutSwitchLayout(uint value) +{ + // set the value of property ShortcutSwitchLayout + parent()->setProperty("ShortcutSwitchLayout", QVariant::fromValue(value)); +} + +QString Keybinding1Adaptor::Add(const QString &in0, const QString &in1, const QString &in2, bool &out1) +{ + // handle method call org.deepin.dde.Keybinding1.Add + //return static_cast(parent())->Add(in0, in1, in2, out1); +} + +void Keybinding1Adaptor::AddCustomShortcut(const QString &in0, const QString &in1, const QString &in2) +{ + // handle method call org.deepin.dde.Keybinding1.AddCustomShortcut + QMetaObject::invokeMethod(parent(), "AddCustomShortcut", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2)); +} + +void Keybinding1Adaptor::AddShortcutKeystroke(const QString &in0, int in1, const QString &in2) +{ + // handle method call org.deepin.dde.Keybinding1.AddShortcutKeystroke + QMetaObject::invokeMethod(parent(), "AddShortcutKeystroke", Q_ARG(QString, in0), Q_ARG(int, in1), Q_ARG(QString, in2)); +} + +bool Keybinding1Adaptor::CheckAvaliable(const QString &in0, QString &out1) +{ + // handle method call org.deepin.dde.Keybinding1.CheckAvaliable + //return static_cast(parent())->CheckAvaliable(in0, out1); +} + +void Keybinding1Adaptor::ClearShortcutKeystrokes(const QString &in0, int in1) +{ + // handle method call org.deepin.dde.Keybinding1.ClearShortcutKeystrokes + QMetaObject::invokeMethod(parent(), "ClearShortcutKeystrokes", Q_ARG(QString, in0), Q_ARG(int, in1)); +} + +void Keybinding1Adaptor::Delete(const QString &in0, int in1) +{ + // handle method call org.deepin.dde.Keybinding1.Delete + QMetaObject::invokeMethod(parent(), "Delete", Q_ARG(QString, in0), Q_ARG(int, in1)); +} + +void Keybinding1Adaptor::DeleteCustomShortcut(const QString &in0) +{ + // handle method call org.deepin.dde.Keybinding1.DeleteCustomShortcut + QMetaObject::invokeMethod(parent(), "DeleteCustomShortcut", Q_ARG(QString, in0)); +} + +void Keybinding1Adaptor::DeleteShortcutKeystroke(const QString &in0, int in1, const QString &in2) +{ + // handle method call org.deepin.dde.Keybinding1.DeleteShortcutKeystroke + QMetaObject::invokeMethod(parent(), "DeleteShortcutKeystroke", Q_ARG(QString, in0), Q_ARG(int, in1), Q_ARG(QString, in2)); +} + +void Keybinding1Adaptor::Disable(const QString &in0, int in1) +{ + // handle method call org.deepin.dde.Keybinding1.Disable + QMetaObject::invokeMethod(parent(), "Disable", Q_ARG(QString, in0), Q_ARG(int, in1)); +} + +QString Keybinding1Adaptor::GetShortcut(const QString &in0, int in1) +{ + // handle method call org.deepin.dde.Keybinding1.GetShortcut + QString out0; + QMetaObject::invokeMethod(parent(), "GetShortcut", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(int, in1)); + return out0; +} + +void Keybinding1Adaptor::GrabScreen() +{ + // handle method call org.deepin.dde.Keybinding1.GrabScreen + QMetaObject::invokeMethod(parent(), "GrabScreen"); +} + +QString Keybinding1Adaptor::List() +{ + // handle method call org.deepin.dde.Keybinding1.List + QString out0; + QMetaObject::invokeMethod(parent(), "List", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString Keybinding1Adaptor::ListAllShortcuts() +{ + // handle method call org.deepin.dde.Keybinding1.ListAllShortcuts + QString out0; + QMetaObject::invokeMethod(parent(), "ListAllShortcuts", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QString Keybinding1Adaptor::ListShortcutsByType(int in0) +{ + // handle method call org.deepin.dde.Keybinding1.ListShortcutsByType + QString out0; + QMetaObject::invokeMethod(parent(), "ListShortcutsByType", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0)); + return out0; +} + +QString Keybinding1Adaptor::LookupConflictingShortcut(const QString &in0) +{ + // handle method call org.deepin.dde.Keybinding1.LookupConflictingShortcut + QString out0; + QMetaObject::invokeMethod(parent(), "LookupConflictingShortcut", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +bool Keybinding1Adaptor::ModifiedAccel(const QString &in0, int in1, const QString &in2, bool in3, QString &out1) +{ + // handle method call org.deepin.dde.Keybinding1.ModifiedAccel + //return static_cast(parent())->ModifiedAccel(in0, in1, in2, in3, out1); +} + +void Keybinding1Adaptor::ModifyCustomShortcut(const QString &in0, const QString &in1, const QString &in2, const QString &in3) +{ + // handle method call org.deepin.dde.Keybinding1.ModifyCustomShortcut + QMetaObject::invokeMethod(parent(), "ModifyCustomShortcut", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(QString, in2), Q_ARG(QString, in3)); +} + +QString Keybinding1Adaptor::Query(const QString &in0, int in1) +{ + // handle method call org.deepin.dde.Keybinding1.Query + QString out0; + QMetaObject::invokeMethod(parent(), "Query", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0), Q_ARG(int, in1)); + return out0; +} + +void Keybinding1Adaptor::Reset() +{ + // handle method call org.deepin.dde.Keybinding1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +QString Keybinding1Adaptor::SearchShortcuts(const QString &in0) +{ + // handle method call org.deepin.dde.Keybinding1.SearchShortcuts + QString out0; + QMetaObject::invokeMethod(parent(), "SearchShortcuts", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +void Keybinding1Adaptor::SelectKeystroke() +{ + // handle method call org.deepin.dde.Keybinding1.SelectKeystroke + QMetaObject::invokeMethod(parent(), "SelectKeystroke"); +} + +void Keybinding1Adaptor::SetNumLockState(int in0) +{ + // handle method call org.deepin.dde.Keybinding1.SetNumLockState + QMetaObject::invokeMethod(parent(), "SetNumLockState", Q_ARG(int, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.h new file mode 100644 index 0000000..c3902b6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor.h @@ -0,0 +1,188 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Keybinding1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_KEYBINDING1ADAPTOR_H +#define ORG_DEEPIN_DDE_KEYBINDING1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Keybinding1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Keybinding1 + */ +class Keybinding1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Keybinding1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Keybinding1Adaptor(QObject *parent); + virtual ~Keybinding1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(int NumLockState READ numLockState) + int numLockState() const; + + Q_PROPERTY(uint ShortcutSwitchLayout READ shortcutSwitchLayout WRITE setShortcutSwitchLayout) + uint shortcutSwitchLayout() const; + void setShortcutSwitchLayout(uint value); + +public Q_SLOTS: // METHODS + QString Add(const QString &in0, const QString &in1, const QString &in2, bool &out1); + void AddCustomShortcut(const QString &in0, const QString &in1, const QString &in2); + void AddShortcutKeystroke(const QString &in0, int in1, const QString &in2); + bool CheckAvaliable(const QString &in0, QString &out1); + void ClearShortcutKeystrokes(const QString &in0, int in1); + void Delete(const QString &in0, int in1); + void DeleteCustomShortcut(const QString &in0); + void DeleteShortcutKeystroke(const QString &in0, int in1, const QString &in2); + void Disable(const QString &in0, int in1); + QString GetShortcut(const QString &in0, int in1); + void GrabScreen(); + QString List(); + QString ListAllShortcuts(); + QString ListShortcutsByType(int in0); + QString LookupConflictingShortcut(const QString &in0); + bool ModifiedAccel(const QString &in0, int in1, const QString &in2, bool in3, QString &out1); + void ModifyCustomShortcut(const QString &in0, const QString &in1, const QString &in2, const QString &in3); + QString Query(const QString &in0, int in1); + void Reset(); + QString SearchShortcuts(const QString &in0); + void SelectKeystroke(); + void SetNumLockState(int in0); +Q_SIGNALS: // SIGNALS + void Added(const QString &in0, int in1); + void Changed(const QString &in0, int in1); + void Deleted(const QString &in0, int in1); + void KeyEvent(bool in0, const QString &in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.cpp new file mode 100644 index 0000000..14e2c96 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.cpp @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.LangSelector1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LangSelector1Adaptor + */ + +LangSelector1Adaptor::LangSelector1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LangSelector1Adaptor::~LangSelector1Adaptor() +{ + // destructor +} + +QString LangSelector1Adaptor::currentLocale() const +{ + // get the value of property CurrentLocale + return qvariant_cast< QString >(parent()->property("CurrentLocale")); +} + +int LangSelector1Adaptor::localeState() const +{ + // get the value of property LocaleState + return qvariant_cast< int >(parent()->property("LocaleState")); +} + +QStringList LangSelector1Adaptor::locales() const +{ + // get the value of property Locales + return qvariant_cast< QStringList >(parent()->property("Locales")); +} + +void LangSelector1Adaptor::AddLocale(const QString &in0) +{ + // handle method call org.deepin.dde.LangSelector1.AddLocale + QMetaObject::invokeMethod(parent(), "AddLocale", Q_ARG(QString, in0)); +} + +void LangSelector1Adaptor::DeleteLocale(const QString &in0) +{ + // handle method call org.deepin.dde.LangSelector1.DeleteLocale + QMetaObject::invokeMethod(parent(), "DeleteLocale", Q_ARG(QString, in0)); +} + +QStringList LangSelector1Adaptor::GetLanguageSupportPackages(const QString &in0) +{ + // handle method call org.deepin.dde.LangSelector1.GetLanguageSupportPackages + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetLanguageSupportPackages", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, in0)); + return out0; +} + +QString LangSelector1Adaptor::GetLocaleDescription(const QString &in0) +{ + // handle method call org.deepin.dde.LangSelector1.GetLocaleDescription + QString out0; + QMetaObject::invokeMethod(parent(), "GetLocaleDescription", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +LocaleList LangSelector1Adaptor::GetLocaleList() +{ + // handle method call org.deepin.dde.LangSelector1.GetLocaleList + LocaleList out0; + QMetaObject::invokeMethod(parent(), "GetLocaleList", Q_RETURN_ARG(LocaleList, out0)); + return out0; +} + +void LangSelector1Adaptor::Reset() +{ + // handle method call org.deepin.dde.LangSelector1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void LangSelector1Adaptor::SetLocale(const QString &in0) +{ + // handle method call org.deepin.dde.LangSelector1.SetLocale + QMetaObject::invokeMethod(parent(), "SetLocale", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.h new file mode 100644 index 0000000..7022b0c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor.h @@ -0,0 +1,92 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.LangSelector1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_LANGSELECTOR1ADAPTOR_H +#define ORG_DEEPIN_DDE_LANGSELECTOR1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LangSelector1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.LangSelector1 + */ +class LangSelector1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.LangSelector1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + LangSelector1Adaptor(QObject *parent); + virtual ~LangSelector1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString CurrentLocale READ currentLocale) + QString currentLocale() const; + + Q_PROPERTY(int LocaleState READ localeState) + int localeState() const; + + Q_PROPERTY(QStringList Locales READ locales) + QStringList locales() const; + +public Q_SLOTS: // METHODS + void AddLocale(const QString &in0); + void DeleteLocale(const QString &in0); + QStringList GetLanguageSupportPackages(const QString &in0); + QString GetLocaleDescription(const QString &in0); + LocaleList GetLocaleList(); + void Reset(); + void SetLocale(const QString &in0); +Q_SIGNALS: // SIGNALS + void Changed(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.cpp new file mode 100644 index 0000000..d6eb7e0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.cpp @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Lastore1.Job.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Job.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class JobAdaptor + */ + +JobAdaptor::JobAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +JobAdaptor::~JobAdaptor() +{ + // destructor +} + +bool JobAdaptor::cancelable() const +{ + // get the value of property Cancelable + return qvariant_cast< bool >(parent()->property("Cancelable")); +} + +qlonglong JobAdaptor::createTime() const +{ + // get the value of property CreateTime + return qvariant_cast< qlonglong >(parent()->property("CreateTime")); +} + +QString JobAdaptor::description() const +{ + // get the value of property Description + return qvariant_cast< QString >(parent()->property("Description")); +} + +qlonglong JobAdaptor::downloadSize() const +{ + // get the value of property DownloadSize + return qvariant_cast< qlonglong >(parent()->property("DownloadSize")); +} + +QString JobAdaptor::id() const +{ + // get the value of property Id + return qvariant_cast< QString >(parent()->property("Id")); +} + +QString JobAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +QStringList JobAdaptor::packages() const +{ + // get the value of property Packages + return qvariant_cast< QStringList >(parent()->property("Packages")); +} + +double JobAdaptor::progress() const +{ + // get the value of property Progress + return qvariant_cast< double >(parent()->property("Progress")); +} + +qlonglong JobAdaptor::speed() const +{ + // get the value of property Speed + return qvariant_cast< qlonglong >(parent()->property("Speed")); +} + +QString JobAdaptor::status() const +{ + // get the value of property Status + return qvariant_cast< QString >(parent()->property("Status")); +} + +QString JobAdaptor::type() const +{ + // get the value of property Type + return qvariant_cast< QString >(parent()->property("Type")); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.h new file mode 100644 index 0000000..0d0fd45 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor.h @@ -0,0 +1,91 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Lastore1.Job.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.JobAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Job.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_LASTORE1_JOBADAPTOR_H +#define ORG_DEEPIN_DDE_LASTORE1_JOBADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Job.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Lastore1.Job + */ +class JobAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Lastore1.Job") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + JobAdaptor(QObject *parent); + virtual ~JobAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Cancelable READ cancelable) + bool cancelable() const; + + Q_PROPERTY(qlonglong CreateTime READ createTime) + qlonglong createTime() const; + + Q_PROPERTY(QString Description READ description) + QString description() const; + + Q_PROPERTY(qlonglong DownloadSize READ downloadSize) + qlonglong downloadSize() const; + + Q_PROPERTY(QString Id READ id) + QString id() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(QStringList Packages READ packages) + QStringList packages() const; + + Q_PROPERTY(double Progress READ progress) + double progress() const; + + Q_PROPERTY(qlonglong Speed READ speed) + qlonglong speed() const; + + Q_PROPERTY(QString Status READ status) + QString status() const; + + Q_PROPERTY(QString Type READ type) + QString type() const; + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.cpp new file mode 100644 index 0000000..6e0ed96 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.cpp @@ -0,0 +1,197 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Lastore1.Manager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Manager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ManagerAdaptor + */ + +ManagerAdaptor::ManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ManagerAdaptor::~ManagerAdaptor() +{ + // destructor +} + +bool ManagerAdaptor::autoClean() const +{ + // get the value of property AutoClean + return qvariant_cast< bool >(parent()->property("AutoClean")); +} + +QList ManagerAdaptor::jobList() const +{ + // get the value of property JobList + return qvariant_cast< QList >(parent()->property("JobList")); +} + +QStringList ManagerAdaptor::systemArchitectures() const +{ + // get the value of property SystemArchitectures + return qvariant_cast< QStringList >(parent()->property("SystemArchitectures")); +} + +bool ManagerAdaptor::systemOnChanging() const +{ + // get the value of property SystemOnChanging + return qvariant_cast< bool >(parent()->property("SystemOnChanging")); +} + +QStringList ManagerAdaptor::upgradableApps() const +{ + // get the value of property UpgradableApps + return qvariant_cast< QStringList >(parent()->property("UpgradableApps")); +} + +QDBusObjectPath ManagerAdaptor::CleanArchives() +{ + // handle method call org.deepin.dde.Lastore1.Manager.CleanArchives + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "CleanArchives", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + +void ManagerAdaptor::CleanJob(const QString &jobId) +{ + // handle method call org.deepin.dde.Lastore1.Manager.CleanJob + QMetaObject::invokeMethod(parent(), "CleanJob", Q_ARG(QString, jobId)); +} + +QDBusObjectPath ManagerAdaptor::DistUpgrade() +{ + // handle method call org.deepin.dde.Lastore1.Manager.DistUpgrade + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "DistUpgrade", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + +QDBusObjectPath ManagerAdaptor::FixError(const QString &errType) +{ + // handle method call org.deepin.dde.Lastore1.Manager.FixError + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "FixError", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, errType)); + return job; +} + +QDBusObjectPath ManagerAdaptor::InstallPackage(const QString &jobName, const QString &packages) +{ + // handle method call org.deepin.dde.Lastore1.Manager.InstallPackage + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "InstallPackage", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, jobName), Q_ARG(QString, packages)); + return job; +} + +QString ManagerAdaptor::PackageDesktopPath(const QString &pkgId) +{ + // handle method call org.deepin.dde.Lastore1.Manager.PackageDesktopPath + QString desktopPath; + QMetaObject::invokeMethod(parent(), "PackageDesktopPath", Q_RETURN_ARG(QString, desktopPath), Q_ARG(QString, pkgId)); + return desktopPath; +} + +bool ManagerAdaptor::PackageExists(const QString &pkgId) +{ + // handle method call org.deepin.dde.Lastore1.Manager.PackageExists + bool exist; + QMetaObject::invokeMethod(parent(), "PackageExists", Q_RETURN_ARG(bool, exist), Q_ARG(QString, pkgId)); + return exist; +} + +bool ManagerAdaptor::PackageInstallable(const QString &pkgId) +{ + // handle method call org.deepin.dde.Lastore1.Manager.PackageInstallable + bool installable; + QMetaObject::invokeMethod(parent(), "PackageInstallable", Q_RETURN_ARG(bool, installable), Q_ARG(QString, pkgId)); + return installable; +} + +qlonglong ManagerAdaptor::PackagesDownloadSize(const QStringList &packages) +{ + // handle method call org.deepin.dde.Lastore1.Manager.PackagesDownloadSize + qlonglong size; + QMetaObject::invokeMethod(parent(), "PackagesDownloadSize", Q_RETURN_ARG(qlonglong, size), Q_ARG(QStringList, packages)); + return size; +} + +void ManagerAdaptor::PauseJob(const QString &jobId) +{ + // handle method call org.deepin.dde.Lastore1.Manager.PauseJob + QMetaObject::invokeMethod(parent(), "PauseJob", Q_ARG(QString, jobId)); +} + +QDBusObjectPath ManagerAdaptor::PrepareDistUpgrade() +{ + // handle method call org.deepin.dde.Lastore1.Manager.PrepareDistUpgrade + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "PrepareDistUpgrade", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + +QDBusObjectPath ManagerAdaptor::RemovePackage(const QString &jobName, const QString &packages) +{ + // handle method call org.deepin.dde.Lastore1.Manager.RemovePackage + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "RemovePackage", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, jobName), Q_ARG(QString, packages)); + return job; +} + +void ManagerAdaptor::SetAutoClean(bool enable) +{ + // handle method call org.deepin.dde.Lastore1.Manager.SetAutoClean + QMetaObject::invokeMethod(parent(), "SetAutoClean", Q_ARG(bool, enable)); +} + +void ManagerAdaptor::SetLogger(const QString &levels, const QString &format, const QString &output) +{ + // handle method call org.deepin.dde.Lastore1.Manager.SetLogger + QMetaObject::invokeMethod(parent(), "SetLogger", Q_ARG(QString, levels), Q_ARG(QString, format), Q_ARG(QString, output)); +} + +void ManagerAdaptor::SetRegion(const QString ®ion) +{ + // handle method call org.deepin.dde.Lastore1.Manager.SetRegion + QMetaObject::invokeMethod(parent(), "SetRegion", Q_ARG(QString, region)); +} + +void ManagerAdaptor::StartJob(const QString &jobId) +{ + // handle method call org.deepin.dde.Lastore1.Manager.StartJob + QMetaObject::invokeMethod(parent(), "StartJob", Q_ARG(QString, jobId)); +} + +QDBusObjectPath ManagerAdaptor::UpdatePackage(const QString &jobName, const QString &packages) +{ + // handle method call org.deepin.dde.Lastore1.Manager.UpdatePackage + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "UpdatePackage", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, jobName), Q_ARG(QString, packages)); + return job; +} + +QDBusObjectPath ManagerAdaptor::UpdateSource() +{ + // handle method call org.deepin.dde.Lastore1.Manager.UpdateSource + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "UpdateSource", Q_RETURN_ARG(QDBusObjectPath, job)); + return job; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.h new file mode 100644 index 0000000..fe17310 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor.h @@ -0,0 +1,152 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Lastore1.Manager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.ManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Manager.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_LASTORE1_MANAGERADAPTOR_H +#define ORG_DEEPIN_DDE_LASTORE1_MANAGERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Manager.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Lastore1.Manager + */ +class ManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Lastore1.Manager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ManagerAdaptor(QObject *parent); + virtual ~ManagerAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AutoClean READ autoClean) + bool autoClean() const; + + Q_PROPERTY(QList JobList READ jobList) + QList jobList() const; + + Q_PROPERTY(QStringList SystemArchitectures READ systemArchitectures) + QStringList systemArchitectures() const; + + Q_PROPERTY(bool SystemOnChanging READ systemOnChanging) + bool systemOnChanging() const; + + Q_PROPERTY(QStringList UpgradableApps READ upgradableApps) + QStringList upgradableApps() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath CleanArchives(); + void CleanJob(const QString &jobId); + QDBusObjectPath DistUpgrade(); + QDBusObjectPath FixError(const QString &errType); + QDBusObjectPath InstallPackage(const QString &jobName, const QString &packages); + QString PackageDesktopPath(const QString &pkgId); + bool PackageExists(const QString &pkgId); + bool PackageInstallable(const QString &pkgId); + qlonglong PackagesDownloadSize(const QStringList &packages); + void PauseJob(const QString &jobId); + QDBusObjectPath PrepareDistUpgrade(); + QDBusObjectPath RemovePackage(const QString &jobName, const QString &packages); + void SetAutoClean(bool enable); + void SetLogger(const QString &levels, const QString &format, const QString &output); + void SetRegion(const QString ®ion); + void StartJob(const QString &jobId); + QDBusObjectPath UpdatePackage(const QString &jobName, const QString &packages); + QDBusObjectPath UpdateSource(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.cpp new file mode 100644 index 0000000..b48fd5f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.cpp @@ -0,0 +1,89 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Lastore1.Updater.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Updater.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class UpdaterAdaptor + */ + +UpdaterAdaptor::UpdaterAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +UpdaterAdaptor::~UpdaterAdaptor() +{ + // destructor +} + +bool UpdaterAdaptor::autoCheckUpdates() const +{ + // get the value of property AutoCheckUpdates + return qvariant_cast< bool >(parent()->property("AutoCheckUpdates")); +} + +bool UpdaterAdaptor::autoDownloadUpdates() const +{ + // get the value of property AutoDownloadUpdates + return qvariant_cast< bool >(parent()->property("AutoDownloadUpdates")); +} + +QString UpdaterAdaptor::mirrorSource() const +{ + // get the value of property MirrorSource + return qvariant_cast< QString >(parent()->property("MirrorSource")); +} + +QStringList UpdaterAdaptor::updatableApps() const +{ + // get the value of property UpdatableApps + return qvariant_cast< QStringList >(parent()->property("UpdatableApps")); +} + +QStringList UpdaterAdaptor::updatablePackages() const +{ + // get the value of property UpdatablePackages + return qvariant_cast< QStringList >(parent()->property("UpdatablePackages")); +} + +void UpdaterAdaptor::RestoreSystemSource() +{ + // handle method call org.deepin.dde.Lastore1.Updater.RestoreSystemSource + QMetaObject::invokeMethod(parent(), "RestoreSystemSource"); +} + +void UpdaterAdaptor::SetAutoCheckUpdates(bool enable) +{ + // handle method call org.deepin.dde.Lastore1.Updater.SetAutoCheckUpdates + QMetaObject::invokeMethod(parent(), "SetAutoCheckUpdates", Q_ARG(bool, enable)); +} + +void UpdaterAdaptor::SetAutoDownloadUpdates(bool enable) +{ + // handle method call org.deepin.dde.Lastore1.Updater.SetAutoDownloadUpdates + QMetaObject::invokeMethod(parent(), "SetAutoDownloadUpdates", Q_ARG(bool, enable)); +} + +void UpdaterAdaptor::SetMirrorSource(const QString &id) +{ + // handle method call org.deepin.dde.Lastore1.Updater.SetMirrorSource + QMetaObject::invokeMethod(parent(), "SetMirrorSource", Q_ARG(QString, id)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.h new file mode 100644 index 0000000..5a4ed6d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor.h @@ -0,0 +1,81 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Lastore1.Updater.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.UpdaterAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Updater.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_LASTORE1_UPDATERADAPTOR_H +#define ORG_DEEPIN_DDE_LASTORE1_UPDATERADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Lastore1.Updater.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Lastore1.Updater + */ +class UpdaterAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Lastore1.Updater") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + UpdaterAdaptor(QObject *parent); + virtual ~UpdaterAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool AutoCheckUpdates READ autoCheckUpdates) + bool autoCheckUpdates() const; + + Q_PROPERTY(bool AutoDownloadUpdates READ autoDownloadUpdates) + bool autoDownloadUpdates() const; + + Q_PROPERTY(QString MirrorSource READ mirrorSource) + QString mirrorSource() const; + + Q_PROPERTY(QStringList UpdatableApps READ updatableApps) + QStringList updatableApps() const; + + Q_PROPERTY(QStringList UpdatablePackages READ updatablePackages) + QStringList updatablePackages() const; + +public Q_SLOTS: // METHODS + void RestoreSystemSource(); + void SetAutoCheckUpdates(bool enable); + void SetAutoDownloadUpdates(bool enable); + void SetMirrorSource(const QString &id); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.cpp new file mode 100644 index 0000000..f905733 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.cpp @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Launcher1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Launcher1Adaptor + */ + +Launcher1Adaptor::Launcher1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Launcher1Adaptor::~Launcher1Adaptor() +{ + // destructor +} + +bool Launcher1Adaptor::visible() const +{ + // get the value of property Visible + return qvariant_cast< bool >(parent()->property("Visible")); +} + +void Launcher1Adaptor::Exit() +{ + // handle method call org.deepin.dde.Launcher1.Exit + QMetaObject::invokeMethod(parent(), "Exit"); +} + +void Launcher1Adaptor::Hide() +{ + // handle method call org.deepin.dde.Launcher1.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +bool Launcher1Adaptor::IsVisible() +{ + // handle method call org.deepin.dde.Launcher1.IsVisible + bool out0; + QMetaObject::invokeMethod(parent(), "IsVisible", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void Launcher1Adaptor::Show() +{ + // handle method call org.deepin.dde.Launcher1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void Launcher1Adaptor::ShowByMode(qlonglong in0) +{ + // handle method call org.deepin.dde.Launcher1.ShowByMode + QMetaObject::invokeMethod(parent(), "ShowByMode", Q_ARG(qlonglong, in0)); +} + +void Launcher1Adaptor::Toggle() +{ + // handle method call org.deepin.dde.Launcher1.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +void Launcher1Adaptor::UninstallApp(const QString &appKey) +{ + // handle method call org.deepin.dde.Launcher1.UninstallApp + QMetaObject::invokeMethod(parent(), "UninstallApp", Q_ARG(QString, appKey)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h new file mode 100644 index 0000000..8747dc4 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor.h @@ -0,0 +1,79 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Launcher1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_LAUNCHER1ADAPTOR_H +#define ORG_DEEPIN_DDE_LAUNCHER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Launcher1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Launcher1 + */ +class Launcher1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Launcher1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Launcher1Adaptor(QObject *parent); + virtual ~Launcher1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Visible READ visible) + bool visible() const; + +public Q_SLOTS: // METHODS + void Exit(); + void Hide(); + bool IsVisible(); + void Show(); + void ShowByMode(qlonglong in0); + void Toggle(); + void UninstallApp(const QString &appKey); +Q_SIGNALS: // SIGNALS + void Closed(); + void Shown(); + void VisibleChanged(bool visible); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.cpp new file mode 100644 index 0000000..4f9085c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.cpp @@ -0,0 +1,71 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.LockFront1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LockFront1Adaptor + */ + +LockFront1Adaptor::LockFront1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LockFront1Adaptor::~LockFront1Adaptor() +{ + // destructor +} + +bool LockFront1Adaptor::visible() const +{ + // get the value of property Visible + return qvariant_cast< bool >(parent()->property("Visible")); +} + +void LockFront1Adaptor::Hibernate(bool enable) +{ + // handle method call org.deepin.dde.LockFront1.Hibernate + QMetaObject::invokeMethod(parent(), "Hibernate", Q_ARG(bool, enable)); +} + +void LockFront1Adaptor::Show() +{ + // handle method call org.deepin.dde.LockFront1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void LockFront1Adaptor::ShowAuth(bool active) +{ + // handle method call org.deepin.dde.LockFront1.ShowAuth + QMetaObject::invokeMethod(parent(), "ShowAuth", Q_ARG(bool, active)); +} + +void LockFront1Adaptor::ShowUserList() +{ + // handle method call org.deepin.dde.LockFront1.ShowUserList + QMetaObject::invokeMethod(parent(), "ShowUserList"); +} + +void LockFront1Adaptor::Suspend(bool enable) +{ + // handle method call org.deepin.dde.LockFront1.Suspend + QMetaObject::invokeMethod(parent(), "Suspend", Q_ARG(bool, enable)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.h new file mode 100644 index 0000000..9d8deb0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor.h @@ -0,0 +1,75 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.LockFront1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_LOCKFRONT1ADAPTOR_H +#define ORG_DEEPIN_DDE_LOCKFRONT1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockFront1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.LockFront1 + */ +class LockFront1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.LockFront1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + LockFront1Adaptor(QObject *parent); + virtual ~LockFront1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Visible READ visible) + bool visible() const; + +public Q_SLOTS: // METHODS + void Hibernate(bool enable); + void Show(); + void ShowAuth(bool active); + void ShowUserList(); + void Suspend(bool enable); +Q_SIGNALS: // SIGNALS + void ChangKey(const QString &keyEvent); + void Visible(bool enable); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.cpp new file mode 100644 index 0000000..b111cf8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.cpp @@ -0,0 +1,69 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.LockService1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class LockService1Adaptor + */ + +LockService1Adaptor::LockService1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +LockService1Adaptor::~LockService1Adaptor() +{ + // destructor +} + +void LockService1Adaptor::AuthenticateUser(const QString &username) +{ + // handle method call org.deepin.dde.LockService1.AuthenticateUser + QMetaObject::invokeMethod(parent(), "AuthenticateUser", Q_ARG(QString, username)); +} + +QString LockService1Adaptor::CurrentUser() +{ + // handle method call org.deepin.dde.LockService1.CurrentUser + QString username; + QMetaObject::invokeMethod(parent(), "CurrentUser", Q_RETURN_ARG(QString, username)); + return username; +} + +bool LockService1Adaptor::IsLiveCD(const QString &username) +{ + // handle method call org.deepin.dde.LockService1.IsLiveCD + bool result; + QMetaObject::invokeMethod(parent(), "IsLiveCD", Q_RETURN_ARG(bool, result), Q_ARG(QString, username)); + return result; +} + +void LockService1Adaptor::SwitchToUser(const QString &username) +{ + // handle method call org.deepin.dde.LockService1.SwitchToUser + QMetaObject::invokeMethod(parent(), "SwitchToUser", Q_ARG(QString, username)); +} + +void LockService1Adaptor::UnlockCheck(const QString &username, const QString &password) +{ + // handle method call org.deepin.dde.LockService1.UnlockCheck + QMetaObject::invokeMethod(parent(), "UnlockCheck", Q_ARG(QString, username), Q_ARG(QString, password)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.h new file mode 100644 index 0000000..bc2dd07 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor.h @@ -0,0 +1,80 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.LockService1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_LOCKSERVICE1ADAPTOR_H +#define ORG_DEEPIN_DDE_LOCKSERVICE1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.LockService1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.LockService1 + */ +class LockService1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.LockService1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + LockService1Adaptor(QObject *parent); + virtual ~LockService1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void AuthenticateUser(const QString &username); + QString CurrentUser(); + bool IsLiveCD(const QString &username); + void SwitchToUser(const QString &username); + void UnlockCheck(const QString &username, const QString &password); +Q_SIGNALS: // SIGNALS + void Event(uint eventType, uint pid, const QString &username, const QString &message); + void UserChanged(const QString &username); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.cpp new file mode 100644 index 0000000..ab60cb0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.cpp @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Mime1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Mime1Adaptor + */ + +Mime1Adaptor::Mime1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Mime1Adaptor::~Mime1Adaptor() +{ + // destructor +} + +void Mime1Adaptor::AddUserApp(const QStringList &mimeTypes, const QString &desktopId) +{ + // handle method call org.deepin.dde.Mime1.AddUserApp + QMetaObject::invokeMethod(parent(), "AddUserApp", Q_ARG(QStringList, mimeTypes), Q_ARG(QString, desktopId)); +} + +void Mime1Adaptor::DeleteApp(const QStringList &mimeTypes, const QString &desktopId) +{ + // handle method call org.deepin.dde.Mime1.DeleteApp + QMetaObject::invokeMethod(parent(), "DeleteApp", Q_ARG(QStringList, mimeTypes), Q_ARG(QString, desktopId)); +} + +void Mime1Adaptor::DeleteUserApp(const QString &desktopId) +{ + // handle method call org.deepin.dde.Mime1.DeleteUserApp + QMetaObject::invokeMethod(parent(), "DeleteUserApp", Q_ARG(QString, desktopId)); +} + +QString Mime1Adaptor::GetDefaultApp(const QString &mimeType) +{ + // handle method call org.deepin.dde.Mime1.GetDefaultApp + QString defaultApp; + QMetaObject::invokeMethod(parent(), "GetDefaultApp", Q_RETURN_ARG(QString, defaultApp), Q_ARG(QString, mimeType)); + return defaultApp; +} + +QString Mime1Adaptor::ListApps(const QString &mimeType) +{ + // handle method call org.deepin.dde.Mime1.ListApps + QString apps; + QMetaObject::invokeMethod(parent(), "ListApps", Q_RETURN_ARG(QString, apps), Q_ARG(QString, mimeType)); + return apps; +} + +QString Mime1Adaptor::ListUserApps(const QString &mimeType) +{ + // handle method call org.deepin.dde.Mime1.ListUserApps + QString userApps; + QMetaObject::invokeMethod(parent(), "ListUserApps", Q_RETURN_ARG(QString, userApps), Q_ARG(QString, mimeType)); + return userApps; +} + +void Mime1Adaptor::SetDefaultApp(const QStringList &mimeTypes, const QString &desktopId) +{ + // handle method call org.deepin.dde.Mime1.SetDefaultApp + QMetaObject::invokeMethod(parent(), "SetDefaultApp", Q_ARG(QStringList, mimeTypes), Q_ARG(QString, desktopId)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.h new file mode 100644 index 0000000..331171d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor.h @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Mime1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_MIME1ADAPTOR_H +#define ORG_DEEPIN_DDE_MIME1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Mime1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Mime1 + */ +class Mime1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Mime1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Mime1Adaptor(QObject *parent); + virtual ~Mime1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void AddUserApp(const QStringList &mimeTypes, const QString &desktopId); + void DeleteApp(const QStringList &mimeTypes, const QString &desktopId); + void DeleteUserApp(const QString &desktopId); + QString GetDefaultApp(const QString &mimeType); + QString ListApps(const QString &mimeType); + QString ListUserApps(const QString &mimeType); + void SetDefaultApp(const QStringList &mimeTypes, const QString &desktopId); +Q_SIGNALS: // SIGNALS + void Change(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.cpp new file mode 100644 index 0000000..d894914 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.cpp @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Network1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Network1Adaptor + */ + +Network1Adaptor::Network1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Network1Adaptor::~Network1Adaptor() +{ + // destructor +} + +bool Network1Adaptor::vpnEnabled() const +{ + // get the value of property VpnEnabled + return qvariant_cast< bool >(parent()->property("VpnEnabled")); +} + +void Network1Adaptor::setVpnEnabled(bool value) +{ + // set the value of property VpnEnabled + parent()->setProperty("VpnEnabled", QVariant::fromValue(value)); +} + +QDBusObjectPath Network1Adaptor::EnableDevice(const QString &pathOrIface, bool enabled) +{ + // handle method call org.deepin.dde.Network1.EnableDevice + QDBusObjectPath cpath; + QMetaObject::invokeMethod(parent(), "EnableDevice", Q_RETURN_ARG(QDBusObjectPath, cpath), Q_ARG(QString, pathOrIface), Q_ARG(bool, enabled)); + return cpath; +} + +bool Network1Adaptor::IsDeviceEnabled(const QString &pathOrIface) +{ + // handle method call org.deepin.dde.Network1.IsDeviceEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "IsDeviceEnabled", Q_RETURN_ARG(bool, enabled), Q_ARG(QString, pathOrIface)); + return enabled; +} + +void Network1Adaptor::Ping(const QString &host) +{ + // handle method call org.deepin.dde.Network1.Ping + QMetaObject::invokeMethod(parent(), "Ping", Q_ARG(QString, host)); +} + +bool Network1Adaptor::ToggleWirelessEnabled() +{ + // handle method call org.deepin.dde.Network1.ToggleWirelessEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "ToggleWirelessEnabled", Q_RETURN_ARG(bool, enabled)); + return enabled; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.h new file mode 100644 index 0000000..35b1a31 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Network1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_NETWORK1ADAPTOR_H +#define ORG_DEEPIN_DDE_NETWORK1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Network1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Network1 + */ +class Network1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Network1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Network1Adaptor(QObject *parent); + virtual ~Network1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool VpnEnabled READ vpnEnabled WRITE setVpnEnabled) + bool vpnEnabled() const; + void setVpnEnabled(bool value); + +public Q_SLOTS: // METHODS + QDBusObjectPath EnableDevice(const QString &pathOrIface, bool enabled); + bool IsDeviceEnabled(const QString &pathOrIface); + void Ping(const QString &host); + bool ToggleWirelessEnabled(); +Q_SIGNALS: // SIGNALS + void DeviceEnabled(const QDBusObjectPath &devPath, bool enabled); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.cpp new file mode 100644 index 0000000..d8e204d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.cpp @@ -0,0 +1,197 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Notification1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Notification1Adaptor + */ + +Notification1Adaptor::Notification1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Notification1Adaptor::~Notification1Adaptor() +{ + // destructor +} + +QString Notification1Adaptor::allSetting() const +{ + // get the value of property allSetting + return qvariant_cast< QString >(parent()->property("allSetting")); +} + +void Notification1Adaptor::setAllSetting(const QString &value) +{ + // set the value of property allSetting + parent()->setProperty("allSetting", QVariant::fromValue(value)); +} + +uint Notification1Adaptor::recordCount() const +{ + // get the value of property recordCount + return qvariant_cast< uint >(parent()->property("recordCount")); +} + +QString Notification1Adaptor::systemSetting() const +{ + // get the value of property systemSetting + return qvariant_cast< QString >(parent()->property("systemSetting")); +} + +void Notification1Adaptor::setSystemSetting(const QString &value) +{ + // set the value of property systemSetting + parent()->setProperty("systemSetting", QVariant::fromValue(value)); +} + +void Notification1Adaptor::ClearRecords() +{ + // handle method call org.deepin.dde.Notification1.ClearRecords + QMetaObject::invokeMethod(parent(), "ClearRecords"); +} + +void Notification1Adaptor::CloseNotification(uint in0) +{ + // handle method call org.deepin.dde.Notification1.CloseNotification + QMetaObject::invokeMethod(parent(), "CloseNotification", Q_ARG(uint, in0)); +} + +QString Notification1Adaptor::GetAllRecords() +{ + // handle method call org.deepin.dde.Notification1.GetAllRecords + QString out0; + QMetaObject::invokeMethod(parent(), "GetAllRecords", Q_RETURN_ARG(QString, out0)); + return out0; +} + +QDBusVariant Notification1Adaptor::GetAppInfo(const QString &in0, uint in1) +{ + // handle method call org.deepin.dde.Notification1.GetAppInfo + QDBusVariant out0; + QMetaObject::invokeMethod(parent(), "GetAppInfo", Q_RETURN_ARG(QDBusVariant, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +QStringList Notification1Adaptor::GetAppList() +{ + // handle method call org.deepin.dde.Notification1.GetAppList + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetAppList", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList Notification1Adaptor::GetCapbilities() +{ + // handle method call org.deepin.dde.Notification1.GetCapbilities + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetCapbilities", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString Notification1Adaptor::GetRecordById(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.GetRecordById + QString out0; + QMetaObject::invokeMethod(parent(), "GetRecordById", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +QString Notification1Adaptor::GetRecordsFromId(int in0, const QString &in1) +{ + // handle method call org.deepin.dde.Notification1.GetRecordsFromId + QString out0; + QMetaObject::invokeMethod(parent(), "GetRecordsFromId", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0), Q_ARG(QString, in1)); + return out0; +} + +QString Notification1Adaptor::GetServerInformation(QString &out1, QString &out2, QString &out3) +{ + // handle method call org.deepin.dde.Notification1.GetServerInformation + //return static_cast(parent())->GetServerInformation(out1, out2, out3); +} + +QDBusVariant Notification1Adaptor::GetSystemInfo(uint in0) +{ + // handle method call org.deepin.dde.Notification1.GetSystemInfo + QDBusVariant out0; + QMetaObject::invokeMethod(parent(), "GetSystemInfo", Q_RETURN_ARG(QDBusVariant, out0), Q_ARG(uint, in0)); + return out0; +} + +void Notification1Adaptor::Hide() +{ + // handle method call org.deepin.dde.Notification1.Hide + QMetaObject::invokeMethod(parent(), "Hide"); +} + +uint Notification1Adaptor::Notify(const QString &in0, uint in1, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7) +{ + // handle method call org.deepin.dde.Notification1.Notify + uint out0; + QMetaObject::invokeMethod(parent(), "Notify", Q_RETURN_ARG(uint, out0), Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QString, in2), Q_ARG(QString, in3), Q_ARG(QString, in4), Q_ARG(QStringList, in5), Q_ARG(QVariantMap, in6), Q_ARG(int, in7)); + return out0; +} + +void Notification1Adaptor::RemoveRecord(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.RemoveRecord + QMetaObject::invokeMethod(parent(), "RemoveRecord", Q_ARG(QString, in0)); +} + +void Notification1Adaptor::SetAppInfo(const QString &in0, uint in1, const QDBusVariant &in2) +{ + // handle method call org.deepin.dde.Notification1.SetAppInfo + QMetaObject::invokeMethod(parent(), "SetAppInfo", Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QDBusVariant, in2)); +} + +void Notification1Adaptor::SetSystemInfo(uint in0, const QDBusVariant &in1) +{ + // handle method call org.deepin.dde.Notification1.SetSystemInfo + QMetaObject::invokeMethod(parent(), "SetSystemInfo", Q_ARG(uint, in0), Q_ARG(QDBusVariant, in1)); +} + +void Notification1Adaptor::Show() +{ + // handle method call org.deepin.dde.Notification1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void Notification1Adaptor::Toggle() +{ + // handle method call org.deepin.dde.Notification1.Toggle + QMetaObject::invokeMethod(parent(), "Toggle"); +} + +QString Notification1Adaptor::getAppSetting(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.getAppSetting + QString out0; + QMetaObject::invokeMethod(parent(), "getAppSetting", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); + return out0; +} + +void Notification1Adaptor::setAppSetting(const QString &in0) +{ + // handle method call org.deepin.dde.Notification1.setAppSetting + QMetaObject::invokeMethod(parent(), "setAppSetting", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h new file mode 100644 index 0000000..dc7dc86 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor.h @@ -0,0 +1,200 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Notification1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_NOTIFICATION1ADAPTOR_H +#define ORG_DEEPIN_DDE_NOTIFICATION1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Notification1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Notification1 + */ +class Notification1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Notification1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Notification1Adaptor(QObject *parent); + virtual ~Notification1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString allSetting READ allSetting WRITE setAllSetting) + QString allSetting() const; + void setAllSetting(const QString &value); + + Q_PROPERTY(uint recordCount READ recordCount) + uint recordCount() const; + + Q_PROPERTY(QString systemSetting READ systemSetting WRITE setSystemSetting) + QString systemSetting() const; + void setSystemSetting(const QString &value); + +public Q_SLOTS: // METHODS + void ClearRecords(); + void CloseNotification(uint in0); + QString GetAllRecords(); + QDBusVariant GetAppInfo(const QString &in0, uint in1); + QStringList GetAppList(); + QStringList GetCapbilities(); + QString GetRecordById(const QString &in0); + QString GetRecordsFromId(int in0, const QString &in1); + QString GetServerInformation(QString &out1, QString &out2, QString &out3); + QDBusVariant GetSystemInfo(uint in0); + void Hide(); + uint Notify(const QString &in0, uint in1, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7); + void RemoveRecord(const QString &in0); + void SetAppInfo(const QString &in0, uint in1, const QDBusVariant &in2); + void SetSystemInfo(uint in0, const QDBusVariant &in1); + void Show(); + void Toggle(); + QString getAppSetting(const QString &in0); + void setAppSetting(const QString &in0); +Q_SIGNALS: // SIGNALS + void ActionInvoked(uint in0, const QString &in1); + void AppAddedSignal(const QString &in0); + void AppInfoChanged(const QString &in0, uint in1, const QDBusVariant &in2); + void AppRemovedSignal(const QString &in0); + void NotificationClosed(uint in0, uint in1); + void RecordAdded(const QString &in0); + void SystemInfoChanged(uint in0, const QDBusVariant &in1); + void appAdded(const QString &in0); + void appRemoved(const QString &in0); + void appSettingChanged(const QString &in0); + void systemSettingChanged(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.cpp new file mode 100644 index 0000000..d74e4e9 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.cpp @@ -0,0 +1,41 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Osd1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Osd1Adaptor + */ + +Osd1Adaptor::Osd1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Osd1Adaptor::~Osd1Adaptor() +{ + // destructor +} + +void Osd1Adaptor::ShowOSD(const QString &osd) +{ + // handle method call org.deepin.dde.Osd1.ShowOSD + QMetaObject::invokeMethod(parent(), "ShowOSD", Q_ARG(QString, osd)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.h new file mode 100644 index 0000000..fc42bed --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor.h @@ -0,0 +1,51 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Osd1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_OSD1ADAPTOR_H +#define ORG_DEEPIN_DDE_OSD1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Osd1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Osd1 + */ +class Osd1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Osd1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Osd1Adaptor(QObject *parent); + virtual ~Osd1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void ShowOSD(const QString &osd); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.cpp new file mode 100644 index 0000000..cd21126 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.cpp @@ -0,0 +1,129 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.PasswdConf1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PasswdConf1Adaptor + */ + +PasswdConf1Adaptor::PasswdConf1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PasswdConf1Adaptor::~PasswdConf1Adaptor() +{ + // destructor +} + +void PasswdConf1Adaptor::Backup() +{ + // handle method call org.deepin.dde.PasswdConf1.Backup + QMetaObject::invokeMethod(parent(), "Backup"); +} + +bool PasswdConf1Adaptor::GetEnabled() +{ + // handle method call org.deepin.dde.PasswdConf1.GetEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "GetEnabled", Q_RETURN_ARG(bool, enabled)); + return enabled; +} + +bool PasswdConf1Adaptor::GetFirstLetterUpper() +{ + // handle method call org.deepin.dde.PasswdConf1.GetFirstLetterUpper + bool enabled; + QMetaObject::invokeMethod(parent(), "GetFirstLetterUpper", Q_RETURN_ARG(bool, enabled)); + return enabled; +} + +int PasswdConf1Adaptor::GetLengthLimit(int &maxLength) +{ + // handle method call org.deepin.dde.PasswdConf1.GetLengthLimit + //return static_cast(parent())->GetLengthLimit(maxLength); +} + +QString PasswdConf1Adaptor::GetValidatePolicy() +{ + // handle method call org.deepin.dde.PasswdConf1.GetValidatePolicy + QString validatePolicy; + QMetaObject::invokeMethod(parent(), "GetValidatePolicy", Q_RETURN_ARG(QString, validatePolicy)); + return validatePolicy; +} + +int PasswdConf1Adaptor::GetValidateRequired() +{ + // handle method call org.deepin.dde.PasswdConf1.GetValidateRequired + int validateRequired; + QMetaObject::invokeMethod(parent(), "GetValidateRequired", Q_RETURN_ARG(int, validateRequired)); + return validateRequired; +} + +QString PasswdConf1Adaptor::ReadConfig() +{ + // handle method call org.deepin.dde.PasswdConf1.ReadConfig + QString data; + QMetaObject::invokeMethod(parent(), "ReadConfig", Q_RETURN_ARG(QString, data)); + return data; +} + +void PasswdConf1Adaptor::Reset() +{ + // handle method call org.deepin.dde.PasswdConf1.Reset + QMetaObject::invokeMethod(parent(), "Reset"); +} + +void PasswdConf1Adaptor::SetEnabled(bool enabled) +{ + // handle method call org.deepin.dde.PasswdConf1.SetEnabled + QMetaObject::invokeMethod(parent(), "SetEnabled", Q_ARG(bool, enabled)); +} + +void PasswdConf1Adaptor::SetFirstLetterUpper(bool enabled) +{ + // handle method call org.deepin.dde.PasswdConf1.SetFirstLetterUpper + QMetaObject::invokeMethod(parent(), "SetFirstLetterUpper", Q_ARG(bool, enabled)); +} + +void PasswdConf1Adaptor::SetLengthLimit(int minLength, int maxLength) +{ + // handle method call org.deepin.dde.PasswdConf1.SetLengthLimit + QMetaObject::invokeMethod(parent(), "SetLengthLimit", Q_ARG(int, minLength), Q_ARG(int, maxLength)); +} + +void PasswdConf1Adaptor::SetValidatePolicy(const QString &validatePolicy) +{ + // handle method call org.deepin.dde.PasswdConf1.SetValidatePolicy + QMetaObject::invokeMethod(parent(), "SetValidatePolicy", Q_ARG(QString, validatePolicy)); +} + +void PasswdConf1Adaptor::SetValidateRequired(int validateRequired) +{ + // handle method call org.deepin.dde.PasswdConf1.SetValidateRequired + QMetaObject::invokeMethod(parent(), "SetValidateRequired", Q_ARG(int, validateRequired)); +} + +void PasswdConf1Adaptor::WriteConfig(const QString &data) +{ + // handle method call org.deepin.dde.PasswdConf1.WriteConfig + QMetaObject::invokeMethod(parent(), "WriteConfig", Q_ARG(QString, data)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.h new file mode 100644 index 0000000..d5aa830 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor.h @@ -0,0 +1,101 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.PasswdConf1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_PASSWDCONF1ADAPTOR_H +#define ORG_DEEPIN_DDE_PASSWDCONF1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PasswdConf1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.PasswdConf1 + */ +class PasswdConf1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.PasswdConf1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PasswdConf1Adaptor(QObject *parent); + virtual ~PasswdConf1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void Backup(); + bool GetEnabled(); + bool GetFirstLetterUpper(); + int GetLengthLimit(int &maxLength); + QString GetValidatePolicy(); + int GetValidateRequired(); + QString ReadConfig(); + void Reset(); + void SetEnabled(bool enabled); + void SetFirstLetterUpper(bool enabled); + void SetLengthLimit(int minLength, int maxLength); + void SetValidatePolicy(const QString &validatePolicy); + void SetValidateRequired(int validateRequired); + void WriteConfig(const QString &data); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.cpp new file mode 100644 index 0000000..b35f155 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.cpp @@ -0,0 +1,131 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Permission1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Permission1Adaptor + */ + +Permission1Adaptor::Permission1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Permission1Adaptor::~Permission1Adaptor() +{ + // destructor +} + +bool Permission1Adaptor::GetPermissionEnable(const QString &permissionGroup, const QString &permissionId) +{ + // handle method call org.deepin.dde.Permission1.GetPermissionEnable + bool enable; + QMetaObject::invokeMethod(parent(), "GetPermissionEnable", Q_RETURN_ARG(bool, enable), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId)); + return enable; +} + +QString Permission1Adaptor::GetPermissionInfo() +{ + // handle method call org.deepin.dde.Permission1.GetPermissionInfo + QString permissionInfo; + QMetaObject::invokeMethod(parent(), "GetPermissionInfo", Q_RETURN_ARG(QString, permissionInfo)); + return permissionInfo; +} + +QStringList Permission1Adaptor::GetRegisterAppPermissionIds(const QString &appId, const QString &permissionGroup) +{ + // handle method call org.deepin.dde.Permission1.GetRegisterAppPermissionIds + QStringList result; + QMetaObject::invokeMethod(parent(), "GetRegisterAppPermissionIds", Q_RETURN_ARG(QStringList, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup)); + return result; +} + +QStringList Permission1Adaptor::PermissionList(const QString &permissionGroup) +{ + // handle method call org.deepin.dde.Permission1.PermissionList + QStringList results; + QMetaObject::invokeMethod(parent(), "PermissionList", Q_RETURN_ARG(QStringList, results), Q_ARG(QString, permissionGroup)); + return results; +} + +void Permission1Adaptor::RegistAppPermissions(const QString &appId, const QString &permissionGroup, PermissionsInfo permissionsInfo) +{ + // handle method call org.deepin.dde.Permission1.RegistAppPermissions + QMetaObject::invokeMethod(parent(), "RegistAppPermissions", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(PermissionsInfo, permissionsInfo)); +} + +QString Permission1Adaptor::Request(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &title, const QString &description) +{ + // handle method call org.deepin.dde.Permission1.Request + QString result; + QMetaObject::invokeMethod(parent(), "Request", Q_RETURN_ARG(QString, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(QString, title), Q_ARG(QString, description)); + return result; +} + +QString Permission1Adaptor::Request(const QString &appId, const QString &permissionGroup, const QString &permissionId) +{ + // handle method call org.deepin.dde.Permission1.Request + QString result; + QMetaObject::invokeMethod(parent(), "Request", Q_RETURN_ARG(QString, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId)); + return result; +} + +QStringList Permission1Adaptor::Request(const QString &appId, const QString &permissionGroup, const QStringList &permissionId) +{ + // handle method call org.deepin.dde.Permission1.Request + QStringList results; + QMetaObject::invokeMethod(parent(), "Request", Q_RETURN_ARG(QStringList, results), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QStringList, permissionId)); + return results; +} + +void Permission1Adaptor::Reset(const QString &appId, const QString &permissionGroup) +{ + // handle method call org.deepin.dde.Permission1.Reset + QMetaObject::invokeMethod(parent(), "Reset", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup)); +} + +void Permission1Adaptor::Set(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value) +{ + // handle method call org.deepin.dde.Permission1.Set + QMetaObject::invokeMethod(parent(), "Set", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(QString, value)); +} + +bool Permission1Adaptor::SetPermissionEnable(const QString &permissionGroup, const QString &permissionId, bool enable) +{ + // handle method call org.deepin.dde.Permission1.SetPermissionEnable + bool result; + QMetaObject::invokeMethod(parent(), "SetPermissionEnable", Q_RETURN_ARG(bool, result), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(bool, enable)); + return result; +} + +bool Permission1Adaptor::SetPermissionInfo(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value) +{ + // handle method call org.deepin.dde.Permission1.SetPermissionInfo + bool result; + QMetaObject::invokeMethod(parent(), "SetPermissionInfo", Q_RETURN_ARG(bool, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(QString, value)); + return result; +} + +void Permission1Adaptor::ShowDisablePermissionDialog(const QString &appId, const QString &permissionGroup, const QString &permissionId) +{ + // handle method call org.deepin.dde.Permission1.ShowDisablePermissionDialog + QMetaObject::invokeMethod(parent(), "ShowDisablePermissionDialog", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.h new file mode 100644 index 0000000..0408889 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor.h @@ -0,0 +1,139 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.Permission1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_PERMISSION1ADAPTOR_H +#define ORG_DEEPIN_DDE_PERMISSION1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Permission1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Permission1 + */ +class Permission1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Permission1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Permission1Adaptor(QObject *parent); + virtual ~Permission1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool GetPermissionEnable(const QString &permissionGroup, const QString &permissionId); + QString GetPermissionInfo(); + QStringList GetRegisterAppPermissionIds(const QString &appId, const QString &permissionGroup); + QStringList PermissionList(const QString &permissionGroup); + void RegistAppPermissions(const QString &appId, const QString &permissionGroup, PermissionsInfo permissionsInfo); + QString Request(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &title, const QString &description); + QString Request(const QString &appId, const QString &permissionGroup, const QString &permissionId); + QStringList Request(const QString &appId, const QString &permissionGroup, const QStringList &permissionId); + void Reset(const QString &appId, const QString &permissionGroup); + void Set(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value); + bool SetPermissionEnable(const QString &permissionGroup, const QString &permissionId, bool enable); + bool SetPermissionInfo(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value); + void ShowDisablePermissionDialog(const QString &appId, const QString &permissionGroup, const QString &permissionId); +Q_SIGNALS: // SIGNALS + void PermissionEnableChanged(const QString &permissionGroup, const QString &permissionId, bool enable); + void PermissionInfoChanged(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.cpp new file mode 100644 index 0000000..c2dee02 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.cpp @@ -0,0 +1,229 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Power1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Power1Adaptor + */ + +Power1Adaptor::Power1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Power1Adaptor::~Power1Adaptor() +{ + // destructor +} + +double Power1Adaptor::batteryCapacity() const +{ + // get the value of property BatteryCapacity + return qvariant_cast< double >(parent()->property("BatteryCapacity")); +} + +double Power1Adaptor::batteryPercentage() const +{ + // get the value of property BatteryPercentage + return qvariant_cast< double >(parent()->property("BatteryPercentage")); +} + +uint Power1Adaptor::batteryStatus() const +{ + // get the value of property BatteryStatus + return qvariant_cast< uint >(parent()->property("BatteryStatus")); +} + +qulonglong Power1Adaptor::batteryTimeToEmpty() const +{ + // get the value of property BatteryTimeToEmpty + return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToEmpty")); +} + +qulonglong Power1Adaptor::batteryTimeToFull() const +{ + // get the value of property BatteryTimeToFull + return qvariant_cast< qulonglong >(parent()->property("BatteryTimeToFull")); +} + +bool Power1Adaptor::cpuBoost() const +{ + // get the value of property CpuBoost + return qvariant_cast< bool >(parent()->property("CpuBoost")); +} + +QString Power1Adaptor::cpuGovernor() const +{ + // get the value of property CpuGovernor + return qvariant_cast< QString >(parent()->property("CpuGovernor")); +} + +bool Power1Adaptor::hasBattery() const +{ + // get the value of property HasBattery + return qvariant_cast< bool >(parent()->property("HasBattery")); +} + +bool Power1Adaptor::hasLidSwitch() const +{ + // get the value of property HasLidSwitch + return qvariant_cast< bool >(parent()->property("HasLidSwitch")); +} + +bool Power1Adaptor::isBalancePerformanceSupported() const +{ + // get the value of property IsBalancePerformanceSupported + return qvariant_cast< bool >(parent()->property("IsBalancePerformanceSupported")); +} + +bool Power1Adaptor::isBalanceSupported() const +{ + // get the value of property IsBalanceSupported + return qvariant_cast< bool >(parent()->property("IsBalanceSupported")); +} + +bool Power1Adaptor::isHighPerformanceSupported() const +{ + // get the value of property IsHighPerformanceSupported + return qvariant_cast< bool >(parent()->property("IsHighPerformanceSupported")); +} + +bool Power1Adaptor::isPowerSaveSupported() const +{ + // get the value of property IsPowerSaveSupported + return qvariant_cast< bool >(parent()->property("IsPowerSaveSupported")); +} + +QString Power1Adaptor::mode() const +{ + // get the value of property Mode + return qvariant_cast< QString >(parent()->property("Mode")); +} + +bool Power1Adaptor::onBattery() const +{ + // get the value of property OnBattery + return qvariant_cast< bool >(parent()->property("OnBattery")); +} + +bool Power1Adaptor::powerSavingModeAuto() const +{ + // get the value of property PowerSavingModeAuto + return qvariant_cast< bool >(parent()->property("PowerSavingModeAuto")); +} + +void Power1Adaptor::setPowerSavingModeAuto(bool value) +{ + // set the value of property PowerSavingModeAuto + parent()->setProperty("PowerSavingModeAuto", QVariant::fromValue(value)); +} + +uint Power1Adaptor::powerSavingModeAutoBatteryPercent() const +{ + // get the value of property PowerSavingModeAutoBatteryPercent + return qvariant_cast< uint >(parent()->property("PowerSavingModeAutoBatteryPercent")); +} + +bool Power1Adaptor::powerSavingModeAutoWhenBatteryLow() const +{ + // get the value of property PowerSavingModeAutoWhenBatteryLow + return qvariant_cast< bool >(parent()->property("PowerSavingModeAutoWhenBatteryLow")); +} + +void Power1Adaptor::setPowerSavingModeAutoWhenBatteryLow(bool value) +{ + // set the value of property PowerSavingModeAutoWhenBatteryLow + parent()->setProperty("PowerSavingModeAutoWhenBatteryLow", QVariant::fromValue(value)); +} + +QString Power1Adaptor::powerSavingModeBrightnessData() const +{ + // get the value of property PowerSavingModeBrightnessData + return qvariant_cast< QString >(parent()->property("PowerSavingModeBrightnessData")); +} + +uint Power1Adaptor::powerSavingModeBrightnessDropPercent() const +{ + // get the value of property PowerSavingModeBrightnessDropPercent + return qvariant_cast< uint >(parent()->property("PowerSavingModeBrightnessDropPercent")); +} + +void Power1Adaptor::setPowerSavingModeBrightnessDropPercent(uint value) +{ + // set the value of property PowerSavingModeBrightnessDropPercent + parent()->setProperty("PowerSavingModeBrightnessDropPercent", QVariant::fromValue(value)); +} + +bool Power1Adaptor::powerSavingModeEnabled() const +{ + // get the value of property PowerSavingModeEnabled + return qvariant_cast< bool >(parent()->property("PowerSavingModeEnabled")); +} + +void Power1Adaptor::setPowerSavingModeEnabled(bool value) +{ + // set the value of property PowerSavingModeEnabled + parent()->setProperty("PowerSavingModeEnabled", QVariant::fromValue(value)); +} + +bool Power1Adaptor::powerSystemAutoToSleepWhenFree() const +{ + // get the value of property PowerSystemAutoToSleepWhenFree + return qvariant_cast< bool >(parent()->property("PowerSystemAutoToSleepWhenFree")); +} + +void Power1Adaptor::setPowerSystemAutoToSleepWhenFree(bool value) +{ + // set the value of property PowerSystemAutoToSleepWhenFree + parent()->setProperty("PowerSystemAutoToSleepWhenFree", QVariant::fromValue(value)); +} + +QList Power1Adaptor::GetBatteries() +{ + // handle method call org.deepin.dde.Power1.GetBatteries + QList batteries; + QMetaObject::invokeMethod(parent(), "GetBatteries", Q_RETURN_ARG(QList, batteries)); + return batteries; +} + +void Power1Adaptor::Refresh() +{ + // handle method call org.deepin.dde.Power1.Refresh + QMetaObject::invokeMethod(parent(), "Refresh"); +} + +void Power1Adaptor::RefreshBatteries() +{ + // handle method call org.deepin.dde.Power1.RefreshBatteries + QMetaObject::invokeMethod(parent(), "RefreshBatteries"); +} + +void Power1Adaptor::RefreshMains() +{ + // handle method call org.deepin.dde.Power1.RefreshMains + QMetaObject::invokeMethod(parent(), "RefreshMains"); +} + +void Power1Adaptor::SetMode(const QString &mode) +{ + // handle method call org.deepin.dde.Power1.SetMode + QMetaObject::invokeMethod(parent(), "SetMode", Q_ARG(QString, mode)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h new file mode 100644 index 0000000..fdfccfb --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor.h @@ -0,0 +1,170 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Power1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_POWER1ADAPTOR_H +#define ORG_DEEPIN_DDE_POWER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Power1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Power1 + */ +class Power1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Power1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Power1Adaptor(QObject *parent); + virtual ~Power1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(double BatteryCapacity READ batteryCapacity) + double batteryCapacity() const; + + Q_PROPERTY(double BatteryPercentage READ batteryPercentage) + double batteryPercentage() const; + + Q_PROPERTY(uint BatteryStatus READ batteryStatus) + uint batteryStatus() const; + + Q_PROPERTY(qulonglong BatteryTimeToEmpty READ batteryTimeToEmpty) + qulonglong batteryTimeToEmpty() const; + + Q_PROPERTY(qulonglong BatteryTimeToFull READ batteryTimeToFull) + qulonglong batteryTimeToFull() const; + + Q_PROPERTY(bool CpuBoost READ cpuBoost) + bool cpuBoost() const; + + Q_PROPERTY(QString CpuGovernor READ cpuGovernor) + QString cpuGovernor() const; + + Q_PROPERTY(bool HasBattery READ hasBattery) + bool hasBattery() const; + + Q_PROPERTY(bool HasLidSwitch READ hasLidSwitch) + bool hasLidSwitch() const; + + Q_PROPERTY(bool IsBalancePerformanceSupported READ isBalancePerformanceSupported) + bool isBalancePerformanceSupported() const; + + Q_PROPERTY(bool IsBalanceSupported READ isBalanceSupported) + bool isBalanceSupported() const; + + Q_PROPERTY(bool IsHighPerformanceSupported READ isHighPerformanceSupported) + bool isHighPerformanceSupported() const; + + Q_PROPERTY(bool IsPowerSaveSupported READ isPowerSaveSupported) + bool isPowerSaveSupported() const; + + Q_PROPERTY(QString Mode READ mode) + QString mode() const; + + Q_PROPERTY(bool OnBattery READ onBattery) + bool onBattery() const; + + Q_PROPERTY(bool PowerSavingModeAuto READ powerSavingModeAuto WRITE setPowerSavingModeAuto) + bool powerSavingModeAuto() const; + void setPowerSavingModeAuto(bool value); + + Q_PROPERTY(uint PowerSavingModeAutoBatteryPercent READ powerSavingModeAutoBatteryPercent) + uint powerSavingModeAutoBatteryPercent() const; + + Q_PROPERTY(bool PowerSavingModeAutoWhenBatteryLow READ powerSavingModeAutoWhenBatteryLow WRITE setPowerSavingModeAutoWhenBatteryLow) + bool powerSavingModeAutoWhenBatteryLow() const; + void setPowerSavingModeAutoWhenBatteryLow(bool value); + + Q_PROPERTY(QString PowerSavingModeBrightnessData READ powerSavingModeBrightnessData) + QString powerSavingModeBrightnessData() const; + + Q_PROPERTY(uint PowerSavingModeBrightnessDropPercent READ powerSavingModeBrightnessDropPercent WRITE setPowerSavingModeBrightnessDropPercent) + uint powerSavingModeBrightnessDropPercent() const; + void setPowerSavingModeBrightnessDropPercent(uint value); + + Q_PROPERTY(bool PowerSavingModeEnabled READ powerSavingModeEnabled WRITE setPowerSavingModeEnabled) + bool powerSavingModeEnabled() const; + void setPowerSavingModeEnabled(bool value); + + Q_PROPERTY(bool PowerSystemAutoToSleepWhenFree READ powerSystemAutoToSleepWhenFree WRITE setPowerSystemAutoToSleepWhenFree) + bool powerSystemAutoToSleepWhenFree() const; + void setPowerSystemAutoToSleepWhenFree(bool value); + +public Q_SLOTS: // METHODS + QList GetBatteries(); + void Refresh(); + void RefreshBatteries(); + void RefreshMains(); + void SetMode(const QString &mode); +Q_SIGNALS: // SIGNALS + void BatteryAdded(const QDBusObjectPath &objpath); + void BatteryDisplayUpdate(qlonglong timestamp); + void BatteryRemoved(const QDBusObjectPath &objpath); + void LidClosed(); + void LidOpened(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp new file mode 100644 index 0000000..3df0621 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.cpp @@ -0,0 +1,73 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.PowerManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PowerManager1Adaptor + */ + +PowerManager1Adaptor::PowerManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PowerManager1Adaptor::~PowerManager1Adaptor() +{ + // destructor +} + +QString PowerManager1Adaptor::virtualMachineName() const +{ + // get the value of property VirtualMachineName + return qvariant_cast< QString >(parent()->property("VirtualMachineName")); +} + +bool PowerManager1Adaptor::CanHibernate() +{ + // handle method call org.deepin.dde.PowerManager1.CanHibernate + bool can; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, can)); + return can; +} + +bool PowerManager1Adaptor::CanReboot() +{ + // handle method call org.deepin.dde.PowerManager1.CanReboot + bool can; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, can)); + return can; +} + +bool PowerManager1Adaptor::CanShutdown() +{ + // handle method call org.deepin.dde.PowerManager1.CanShutdown + bool can; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, can)); + return can; +} + +bool PowerManager1Adaptor::CanSuspend() +{ + // handle method call org.deepin.dde.PowerManager1.CanSuspend + bool can; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, can)); + return can; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h new file mode 100644 index 0000000..95f85b3 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.PowerManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_POWERMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_POWERMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.PowerManager1 + */ +class PowerManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.PowerManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PowerManager1Adaptor(QObject *parent); + virtual ~PowerManager1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString VirtualMachineName READ virtualMachineName) + QString virtualMachineName() const; + +public Q_SLOTS: // METHODS + bool CanHibernate(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp new file mode 100644 index 0000000..5683c72 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.cpp @@ -0,0 +1,199 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.SessionManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SessionManager1Adaptor + */ + +SessionManager1Adaptor::SessionManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SessionManager1Adaptor::~SessionManager1Adaptor() +{ + // destructor +} + +QString SessionManager1Adaptor::currentUid() const +{ + // get the value of property CurrentUid + return qvariant_cast< QString >(parent()->property("CurrentUid")); +} + +bool SessionManager1Adaptor::locked() const +{ + // get the value of property Locked + return qvariant_cast< bool >(parent()->property("Locked")); +} + +int SessionManager1Adaptor::stage() const +{ + // get the value of property Stage + return qvariant_cast< int >(parent()->property("Stage")); +} + +bool SessionManager1Adaptor::AllowSessionDaemonRun() +{ + // handle method call org.deepin.dde.SessionManager1.AllowSessionDaemonRun + bool out0; + QMetaObject::invokeMethod(parent(), "AllowSessionDaemonRun", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanHibernate() +{ + // handle method call org.deepin.dde.SessionManager1.CanHibernate + bool out0; + QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanLogout() +{ + // handle method call org.deepin.dde.SessionManager1.CanLogout + bool out0; + QMetaObject::invokeMethod(parent(), "CanLogout", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanReboot() +{ + // handle method call org.deepin.dde.SessionManager1.CanReboot + bool out0; + QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.CanShutdown + bool out0; + QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool SessionManager1Adaptor::CanSuspend() +{ + // handle method call org.deepin.dde.SessionManager1.CanSuspend + bool out0; + QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void SessionManager1Adaptor::ForceLogout() +{ + // handle method call org.deepin.dde.SessionManager1.ForceLogout + QMetaObject::invokeMethod(parent(), "ForceLogout"); +} + +void SessionManager1Adaptor::ForceReboot() +{ + // handle method call org.deepin.dde.SessionManager1.ForceReboot + QMetaObject::invokeMethod(parent(), "ForceReboot"); +} + +void SessionManager1Adaptor::ForceShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.ForceShutdown + QMetaObject::invokeMethod(parent(), "ForceShutdown"); +} + +void SessionManager1Adaptor::Logout() +{ + // handle method call org.deepin.dde.SessionManager1.Logout + QMetaObject::invokeMethod(parent(), "Logout"); +} + +void SessionManager1Adaptor::PowerOffChoose() +{ + // handle method call org.deepin.dde.SessionManager1.PowerOffChoose + QMetaObject::invokeMethod(parent(), "PowerOffChoose"); +} + +void SessionManager1Adaptor::Reboot() +{ + // handle method call org.deepin.dde.SessionManager1.Reboot + QMetaObject::invokeMethod(parent(), "Reboot"); +} + +bool SessionManager1Adaptor::Register(const QString &in0) +{ + // handle method call org.deepin.dde.SessionManager1.Register + bool out0; + QMetaObject::invokeMethod(parent(), "Register", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void SessionManager1Adaptor::RequestHibernate() +{ + // handle method call org.deepin.dde.SessionManager1.RequestHibernate + QMetaObject::invokeMethod(parent(), "RequestHibernate"); +} + +void SessionManager1Adaptor::RequestLock() +{ + // handle method call org.deepin.dde.SessionManager1.RequestLock + QMetaObject::invokeMethod(parent(), "RequestLock"); +} + +void SessionManager1Adaptor::RequestLogout() +{ + // handle method call org.deepin.dde.SessionManager1.RequestLogout + QMetaObject::invokeMethod(parent(), "RequestLogout"); +} + +void SessionManager1Adaptor::RequestReboot() +{ + // handle method call org.deepin.dde.SessionManager1.RequestReboot + QMetaObject::invokeMethod(parent(), "RequestReboot"); +} + +void SessionManager1Adaptor::RequestShutdown() +{ + // handle method call org.deepin.dde.SessionManager1.RequestShutdown + QMetaObject::invokeMethod(parent(), "RequestShutdown"); +} + +void SessionManager1Adaptor::RequestSuspend() +{ + // handle method call org.deepin.dde.SessionManager1.RequestSuspend + QMetaObject::invokeMethod(parent(), "RequestSuspend"); +} + +void SessionManager1Adaptor::SetLocked(bool in0) +{ + // handle method call org.deepin.dde.SessionManager1.SetLocked + QMetaObject::invokeMethod(parent(), "SetLocked", Q_ARG(bool, in0)); +} + +void SessionManager1Adaptor::Shutdown() +{ + // handle method call org.deepin.dde.SessionManager1.Shutdown + QMetaObject::invokeMethod(parent(), "Shutdown"); +} + +void SessionManager1Adaptor::ToggleDebug() +{ + // handle method call org.deepin.dde.SessionManager1.ToggleDebug + QMetaObject::invokeMethod(parent(), "ToggleDebug"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h new file mode 100644 index 0000000..1f5928a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor.h @@ -0,0 +1,122 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.SessionManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_SESSIONMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_SESSIONMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SessionManager1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.SessionManager1 + */ +class SessionManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SessionManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SessionManager1Adaptor(QObject *parent); + virtual ~SessionManager1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString CurrentUid READ currentUid) + QString currentUid() const; + + Q_PROPERTY(bool Locked READ locked) + bool locked() const; + + Q_PROPERTY(int Stage READ stage) + int stage() const; + +public Q_SLOTS: // METHODS + bool AllowSessionDaemonRun(); + bool CanHibernate(); + bool CanLogout(); + bool CanReboot(); + bool CanShutdown(); + bool CanSuspend(); + void ForceLogout(); + void ForceReboot(); + void ForceShutdown(); + void Logout(); + void PowerOffChoose(); + void Reboot(); + bool Register(const QString &in0); + void RequestHibernate(); + void RequestLock(); + void RequestLogout(); + void RequestReboot(); + void RequestShutdown(); + void RequestSuspend(); + void SetLocked(bool in0); + void Shutdown(); + void ToggleDebug(); +Q_SIGNALS: // SIGNALS + void Unlock(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.cpp new file mode 100644 index 0000000..ac2ce99 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.cpp @@ -0,0 +1,83 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.ShutdownFront1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ShutdownFront1Adaptor + */ + +ShutdownFront1Adaptor::ShutdownFront1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ShutdownFront1Adaptor::~ShutdownFront1Adaptor() +{ + // destructor +} + +void ShutdownFront1Adaptor::Hibernate() +{ + // handle method call org.deepin.dde.ShutdownFront1.Hibernate + QMetaObject::invokeMethod(parent(), "Hibernate"); +} + +void ShutdownFront1Adaptor::Lock() +{ + // handle method call org.deepin.dde.ShutdownFront1.Lock + QMetaObject::invokeMethod(parent(), "Lock"); +} + +void ShutdownFront1Adaptor::Logout() +{ + // handle method call org.deepin.dde.ShutdownFront1.Logout + QMetaObject::invokeMethod(parent(), "Logout"); +} + +void ShutdownFront1Adaptor::Restart() +{ + // handle method call org.deepin.dde.ShutdownFront1.Restart + QMetaObject::invokeMethod(parent(), "Restart"); +} + +void ShutdownFront1Adaptor::Show() +{ + // handle method call org.deepin.dde.ShutdownFront1.Show + QMetaObject::invokeMethod(parent(), "Show"); +} + +void ShutdownFront1Adaptor::Shutdown() +{ + // handle method call org.deepin.dde.ShutdownFront1.Shutdown + QMetaObject::invokeMethod(parent(), "Shutdown"); +} + +void ShutdownFront1Adaptor::Suspend() +{ + // handle method call org.deepin.dde.ShutdownFront1.Suspend + QMetaObject::invokeMethod(parent(), "Suspend"); +} + +void ShutdownFront1Adaptor::SwitchUser() +{ + // handle method call org.deepin.dde.ShutdownFront1.SwitchUser + QMetaObject::invokeMethod(parent(), "SwitchUser"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.h new file mode 100644 index 0000000..bcb9fdc --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor.h @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.ShutdownFront1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_SHUTDOWNFRONT1ADAPTOR_H +#define ORG_DEEPIN_DDE_SHUTDOWNFRONT1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.ShutdownFront1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.ShutdownFront1 + */ +class ShutdownFront1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.ShutdownFront1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ShutdownFront1Adaptor(QObject *parent); + virtual ~ShutdownFront1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void Hibernate(); + void Lock(); + void Logout(); + void Restart(); + void Show(); + void Shutdown(); + void Suspend(); + void SwitchUser(); +Q_SIGNALS: // SIGNALS + void ChangKey(const QString &keyEvent); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.cpp new file mode 100644 index 0000000..e7cbb48 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.cpp @@ -0,0 +1,97 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.SoundEffect1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SoundEffect1Adaptor + */ + +SoundEffect1Adaptor::SoundEffect1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SoundEffect1Adaptor::~SoundEffect1Adaptor() +{ + // destructor +} + +bool SoundEffect1Adaptor::enabled() const +{ + // get the value of property Enabled + return qvariant_cast< bool >(parent()->property("Enabled")); +} + +void SoundEffect1Adaptor::setEnabled(bool value) +{ + // set the value of property Enabled + parent()->setProperty("Enabled", QVariant::fromValue(value)); +} + +void SoundEffect1Adaptor::EnableSound(const QString &name, bool enabled) +{ + // handle method call org.deepin.dde.SoundEffect1.EnableSound + QMetaObject::invokeMethod(parent(), "EnableSound", Q_ARG(QString, name), Q_ARG(bool, enabled)); +} + +QMap SoundEffect1Adaptor::GetSoundEnabledMap() +{ + // handle method call org.deepin.dde.SoundEffect1.GetSoundEnabledMap + QMap result; + QMetaObject::invokeMethod(parent(), "GetSoundEnabledMap", Q_RETURN_ARG(QMap, result)); + return result; +} + +QString SoundEffect1Adaptor::GetSoundFile(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.GetSoundFile + QString file; + QMetaObject::invokeMethod(parent(), "GetSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name)); + return file; +} + +QString SoundEffect1Adaptor::GetSystemSoundFile(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.GetSystemSoundFile + QString file; + QMetaObject::invokeMethod(parent(), "GetSystemSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name)); + return file; +} + +bool SoundEffect1Adaptor::IsSoundEnabled(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.IsSoundEnabled + bool enabled; + QMetaObject::invokeMethod(parent(), "IsSoundEnabled", Q_RETURN_ARG(bool, enabled), Q_ARG(QString, name)); + return enabled; +} + +void SoundEffect1Adaptor::PlaySound(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.PlaySound + QMetaObject::invokeMethod(parent(), "PlaySound", Q_ARG(QString, name)); +} + +void SoundEffect1Adaptor::PlaySystemSound(const QString &name) +{ + // handle method call org.deepin.dde.SoundEffect1.PlaySystemSound + QMetaObject::invokeMethod(parent(), "PlaySystemSound", Q_ARG(QString, name)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h new file mode 100644 index 0000000..57d08e9 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor.h @@ -0,0 +1,85 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.SoundEffect1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_SOUNDEFFECT1ADAPTOR_H +#define ORG_DEEPIN_DDE_SOUNDEFFECT1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SoundEffect1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.SoundEffect1 + */ +class SoundEffect1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SoundEffect1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SoundEffect1Adaptor(QObject *parent); + virtual ~SoundEffect1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool Enabled READ enabled WRITE setEnabled) + bool enabled() const; + void setEnabled(bool value); + +public Q_SLOTS: // METHODS + void EnableSound(const QString &name, bool enabled); + QMap GetSoundEnabledMap(); + QString GetSoundFile(const QString &name); + QString GetSystemSoundFile(const QString &name); + bool IsSoundEnabled(const QString &name); + void PlaySound(const QString &name); + void PlaySystemSound(const QString &name); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.cpp new file mode 100644 index 0000000..3c93222 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.cpp @@ -0,0 +1,129 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.StartManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class StartManager1Adaptor + */ + +StartManager1Adaptor::StartManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +StartManager1Adaptor::~StartManager1Adaptor() +{ + // destructor +} + +qulonglong StartManager1Adaptor::neededMemory() const +{ + // get the value of property NeededMemory + return qvariant_cast< qulonglong >(parent()->property("NeededMemory")); +} + +bool StartManager1Adaptor::AddAutostart(const QString &in0) +{ + // handle method call org.deepin.dde.StartManager1.AddAutostart + bool out0; + QMetaObject::invokeMethod(parent(), "AddAutostart", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +QStringList StartManager1Adaptor::AutostartList() +{ + // handle method call org.deepin.dde.StartManager1.AutostartList + QStringList out0; + QMetaObject::invokeMethod(parent(), "AutostartList", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +AppsCGroupInfo StartManager1Adaptor::GetApps() +{ + // handle method call org.deepin.dde.StartManager1.GetApps + AppsCGroupInfo out0; + QMetaObject::invokeMethod(parent(), "GetApps", Q_RETURN_ARG(AppsCGroupInfo, out0)); + return out0; +} + +bool StartManager1Adaptor::IsAutostart(const QString &in0) +{ + // handle method call org.deepin.dde.StartManager1.IsAutostart + bool out0; + QMetaObject::invokeMethod(parent(), "IsAutostart", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +bool StartManager1Adaptor::IsMemSufficient() +{ + // handle method call org.deepin.dde.StartManager1.IsMemSufficient + bool out0; + QMetaObject::invokeMethod(parent(), "IsMemSufficient", Q_RETURN_ARG(bool, out0)); + return out0; +} + +bool StartManager1Adaptor::Launch(const QString &in0) +{ + // handle method call org.deepin.dde.StartManager1.Launch + bool out0; + QMetaObject::invokeMethod(parent(), "Launch", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void StartManager1Adaptor::LaunchApp(const QString &in0, uint in1, const QStringList &in2) +{ + // handle method call org.deepin.dde.StartManager1.LaunchApp + QMetaObject::invokeMethod(parent(), "LaunchApp", Q_ARG(QString, in0), Q_ARG(uint, in1), Q_ARG(QStringList, in2)); +} + +void StartManager1Adaptor::LaunchAppAction(const QString &in0, const QString &in1, uint in2) +{ + // handle method call org.deepin.dde.StartManager1.LaunchAppAction + QMetaObject::invokeMethod(parent(), "LaunchAppAction", Q_ARG(QString, in0), Q_ARG(QString, in1), Q_ARG(uint, in2)); +} + +bool StartManager1Adaptor::LaunchWithTimestamp(const QString &in0, uint in1) +{ + // handle method call org.deepin.dde.StartManager1.LaunchWithTimestamp + bool out0; + QMetaObject::invokeMethod(parent(), "LaunchWithTimestamp", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0), Q_ARG(uint, in1)); + return out0; +} + +bool StartManager1Adaptor::RemoveAutostart(const QString &in0) +{ + // handle method call org.deepin.dde.StartManager1.RemoveAutostart + bool out0; + QMetaObject::invokeMethod(parent(), "RemoveAutostart", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void StartManager1Adaptor::RunCommand(const QString &in0, const QStringList &in1) +{ + // handle method call org.deepin.dde.StartManager1.RunCommand + QMetaObject::invokeMethod(parent(), "RunCommand", Q_ARG(QString, in0), Q_ARG(QStringList, in1)); +} + +void StartManager1Adaptor::TryAgain(bool in0) +{ + // handle method call org.deepin.dde.StartManager1.TryAgain + QMetaObject::invokeMethod(parent(), "TryAgain", Q_ARG(bool, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.h new file mode 100644 index 0000000..a3280f5 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor.h @@ -0,0 +1,116 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.StartManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_STARTMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_STARTMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.StartManager1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.StartManager1 + */ +class StartManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.StartManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + StartManager1Adaptor(QObject *parent); + virtual ~StartManager1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(qulonglong NeededMemory READ neededMemory) + qulonglong neededMemory() const; + +public Q_SLOTS: // METHODS + bool AddAutostart(const QString &in0); + QStringList AutostartList(); + AppsCGroupInfo GetApps(); + bool IsAutostart(const QString &in0); + bool IsMemSufficient(); + bool Launch(const QString &in0); + void LaunchApp(const QString &in0, uint in1, const QStringList &in2); + void LaunchAppAction(const QString &in0, const QString &in1, uint in2); + bool LaunchWithTimestamp(const QString &in0, uint in1); + bool RemoveAutostart(const QString &in0); + void RunCommand(const QString &in0, const QStringList &in1); + void TryAgain(bool in0); +Q_SIGNALS: // SIGNALS + void AutostartChanged(const QString &in0, const QString &in1); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.cpp new file mode 100644 index 0000000..595d13a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.cpp @@ -0,0 +1,53 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.SystemInfo1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SystemInfo1Adaptor + */ + +SystemInfo1Adaptor::SystemInfo1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SystemInfo1Adaptor::~SystemInfo1Adaptor() +{ + // destructor +} + +qulonglong SystemInfo1Adaptor::currentSpeed() const +{ + // get the value of property CurrentSpeed + return qvariant_cast< qulonglong >(parent()->property("CurrentSpeed")); +} + +qulonglong SystemInfo1Adaptor::memorySize() const +{ + // get the value of property MemorySize + return qvariant_cast< qulonglong >(parent()->property("MemorySize")); +} + +QString SystemInfo1Adaptor::memorySizeHuman() const +{ + // get the value of property MemorySizeHuman + return qvariant_cast< QString >(parent()->property("MemorySizeHuman")); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.h new file mode 100644 index 0000000..d9fc200 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.SystemInfo1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_SYSTEMINFO1ADAPTOR_H +#define ORG_DEEPIN_DDE_SYSTEMINFO1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.SystemInfo1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.SystemInfo1 + */ +class SystemInfo1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.SystemInfo1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SystemInfo1Adaptor(QObject *parent); + virtual ~SystemInfo1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(qulonglong CurrentSpeed READ currentSpeed) + qulonglong currentSpeed() const; + + Q_PROPERTY(qulonglong MemorySize READ memorySize) + qulonglong memorySize() const; + + Q_PROPERTY(QString MemorySizeHuman READ memorySizeHuman) + QString memorySizeHuman() const; + +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.cpp new file mode 100644 index 0000000..b06be09 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.cpp @@ -0,0 +1,71 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Timedate1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Timedate1Adaptor + */ + +Timedate1Adaptor::Timedate1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Timedate1Adaptor::~Timedate1Adaptor() +{ + // destructor +} + +QString Timedate1Adaptor::nTPServer() const +{ + // get the value of property NTPServer + return qvariant_cast< QString >(parent()->property("NTPServer")); +} + +void Timedate1Adaptor::SetLocalRTC(bool in0, bool in1, const QString &in2) +{ + // handle method call org.deepin.dde.Timedate1.SetLocalRTC + QMetaObject::invokeMethod(parent(), "SetLocalRTC", Q_ARG(bool, in0), Q_ARG(bool, in1), Q_ARG(QString, in2)); +} + +void Timedate1Adaptor::SetNTP(bool in0, const QString &in1) +{ + // handle method call org.deepin.dde.Timedate1.SetNTP + QMetaObject::invokeMethod(parent(), "SetNTP", Q_ARG(bool, in0), Q_ARG(QString, in1)); +} + +void Timedate1Adaptor::SetNTPServer(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Timedate1.SetNTPServer + QMetaObject::invokeMethod(parent(), "SetNTPServer", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + +void Timedate1Adaptor::SetTime(qlonglong in0, bool in1, const QString &in2) +{ + // handle method call org.deepin.dde.Timedate1.SetTime + QMetaObject::invokeMethod(parent(), "SetTime", Q_ARG(qlonglong, in0), Q_ARG(bool, in1), Q_ARG(QString, in2)); +} + +void Timedate1Adaptor::SetTimezone(const QString &in0, const QString &in1) +{ + // handle method call org.deepin.dde.Timedate1.SetTimezone + QMetaObject::invokeMethod(parent(), "SetTimezone", Q_ARG(QString, in0), Q_ARG(QString, in1)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h new file mode 100644 index 0000000..8c4bb40 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor.h @@ -0,0 +1,78 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Timedate1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_TIMEDATE1ADAPTOR_H +#define ORG_DEEPIN_DDE_TIMEDATE1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Timedate1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.Timedate1 + */ +class Timedate1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.Timedate1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Timedate1Adaptor(QObject *parent); + virtual ~Timedate1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString NTPServer READ nTPServer) + QString nTPServer() const; + +public Q_SLOTS: // METHODS + void SetLocalRTC(bool in0, bool in1, const QString &in2); + void SetNTP(bool in0, const QString &in1); + void SetNTPServer(const QString &in0, const QString &in1); + void SetTime(qlonglong in0, bool in1, const QString &in2); + void SetTimezone(const QString &in0, const QString &in1); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.cpp new file mode 100644 index 0000000..072f636 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.cpp @@ -0,0 +1,63 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.TrayManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class TrayManager1Adaptor + */ + +TrayManager1Adaptor::TrayManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +TrayManager1Adaptor::~TrayManager1Adaptor() +{ + // destructor +} + +QList TrayManager1Adaptor::trayIcons() const +{ + // get the value of property TrayIcons + return qvariant_cast< QList >(parent()->property("TrayIcons")); +} + +void TrayManager1Adaptor::EnableNotification(uint win, bool enabled) +{ + // handle method call org.deepin.dde.TrayManager1.EnableNotification + QMetaObject::invokeMethod(parent(), "EnableNotification", Q_ARG(uint, win), Q_ARG(bool, enabled)); +} + +QString TrayManager1Adaptor::GetName(uint win) +{ + // handle method call org.deepin.dde.TrayManager1.GetName + QString name; + QMetaObject::invokeMethod(parent(), "GetName", Q_RETURN_ARG(QString, name), Q_ARG(uint, win)); + return name; +} + +bool TrayManager1Adaptor::Manage() +{ + // handle method call org.deepin.dde.TrayManager1.Manage + bool ok; + QMetaObject::invokeMethod(parent(), "Manage", Q_RETURN_ARG(bool, ok)); + return ok; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.h new file mode 100644 index 0000000..e5380fa --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor.h @@ -0,0 +1,81 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.TrayManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_TRAYMANAGER1ADAPTOR_H +#define ORG_DEEPIN_DDE_TRAYMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.TrayManager1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.TrayManager1 + */ +class TrayManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.TrayManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + TrayManager1Adaptor(QObject *parent); + virtual ~TrayManager1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QList TrayIcons READ trayIcons) + QList trayIcons() const; + +public Q_SLOTS: // METHODS + void EnableNotification(uint win, bool enabled); + QString GetName(uint win); + bool Manage(); +Q_SIGNALS: // SIGNALS + void Added(uint id); + void Changed(uint id); + void Inited(); + void Removed(uint id); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp new file mode 100644 index 0000000..a9b897b --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.cpp @@ -0,0 +1,69 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.WMSwitcher1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class WMSwitcher1Adaptor + */ + +WMSwitcher1Adaptor::WMSwitcher1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +WMSwitcher1Adaptor::~WMSwitcher1Adaptor() +{ + // destructor +} + +bool WMSwitcher1Adaptor::AllowSwitch() +{ + // handle method call org.deepin.dde.WMSwitcher1.AllowSwitch + bool out0; + QMetaObject::invokeMethod(parent(), "AllowSwitch", Q_RETURN_ARG(bool, out0)); + return out0; +} + +QString WMSwitcher1Adaptor::CurrentWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.CurrentWM + QString out0; + QMetaObject::invokeMethod(parent(), "CurrentWM", Q_RETURN_ARG(QString, out0)); + return out0; +} + +void WMSwitcher1Adaptor::RequestSwitchWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.RequestSwitchWM + QMetaObject::invokeMethod(parent(), "RequestSwitchWM"); +} + +void WMSwitcher1Adaptor::RestartWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.RestartWM + QMetaObject::invokeMethod(parent(), "RestartWM"); +} + +void WMSwitcher1Adaptor::Start2DWM() +{ + // handle method call org.deepin.dde.WMSwitcher1.Start2DWM + QMetaObject::invokeMethod(parent(), "Start2DWM"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h new file mode 100644 index 0000000..6336fd6 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor.h @@ -0,0 +1,65 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.WMSwitcher1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_WMSWITCHER1ADAPTOR_H +#define ORG_DEEPIN_DDE_WMSWITCHER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.WMSwitcher1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.WMSwitcher1 + */ +class WMSwitcher1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.WMSwitcher1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + WMSwitcher1Adaptor(QObject *parent); + virtual ~WMSwitcher1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool AllowSwitch(); + QString CurrentWM(); + void RequestSwitchWM(); + void RestartWM(); + void Start2DWM(); +Q_SIGNALS: // SIGNALS + void WMChanged(const QString &in0); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.cpp new file mode 100644 index 0000000..7b32531 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.cpp @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.XEventMonitor1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class XEventMonitor1Adaptor + */ + +XEventMonitor1Adaptor::XEventMonitor1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +XEventMonitor1Adaptor::~XEventMonitor1Adaptor() +{ + // destructor +} + +QString XEventMonitor1Adaptor::RegisterArea(int in0, int in1, int in2, int in3, int in4) +{ + // handle method call org.deepin.dde.XEventMonitor1.RegisterArea + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterArea", Q_RETURN_ARG(QString, out0), Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(int, in2), Q_ARG(int, in3), Q_ARG(int, in4)); + return out0; +} + +QString XEventMonitor1Adaptor::RegisterAreas(AreaList in0, int in1) +{ + // handle method call org.deepin.dde.XEventMonitor1.RegisterAreas + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterAreas", Q_RETURN_ARG(QString, out0), Q_ARG(AreaList, in0), Q_ARG(int, in1)); + return out0; +} + +QString XEventMonitor1Adaptor::RegisterFullScreen() +{ + // handle method call org.deepin.dde.XEventMonitor1.RegisterFullScreen + QString out0; + QMetaObject::invokeMethod(parent(), "RegisterFullScreen", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool XEventMonitor1Adaptor::UnregisterArea(const QString &in0) +{ + // handle method call org.deepin.dde.XEventMonitor1.UnregisterArea + bool out0; + QMetaObject::invokeMethod(parent(), "UnregisterArea", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h new file mode 100644 index 0000000..33bdd78 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor.h @@ -0,0 +1,120 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.XEventMonitor1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_XEVENTMONITOR1ADAPTOR_H +#define ORG_DEEPIN_DDE_XEVENTMONITOR1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.XEventMonitor1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.XEventMonitor1 + */ +class XEventMonitor1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.XEventMonitor1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + XEventMonitor1Adaptor(QObject *parent); + virtual ~XEventMonitor1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QString RegisterArea(int in0, int in1, int in2, int in3, int in4); + QString RegisterAreas(AreaList in0, int in1); + QString RegisterFullScreen(); + bool UnregisterArea(const QString &in0); +Q_SIGNALS: // SIGNALS + void ButtonPress(int in0, int in1, int in2, const QString &in3); + void ButtonRelease(int in0, int in1, int in2, const QString &in3); + void CancelAllArea(); + void CursorInto(int in0, int in1, const QString &in2); + void CursorMove(int in0, int in1, const QString &in2); + void CursorOut(int in0, int in1, const QString &in2); + void KeyPress(const QString &in0, int in1, int in2, const QString &in3); + void KeyRelease(const QString &in0, int in1, int in2, const QString &in3); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.cpp new file mode 100644 index 0000000..402e0e0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.cpp @@ -0,0 +1,143 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.daemon.Dock1.Entry.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.Entry.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class EntryAdaptor + */ + +EntryAdaptor::EntryAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +EntryAdaptor::~EntryAdaptor() +{ + // destructor +} + +uint EntryAdaptor::currentWindow() const +{ + // get the value of property CurrentWindow + return qvariant_cast< uint >(parent()->property("CurrentWindow")); +} + +QString EntryAdaptor::desktopFile() const +{ + // get the value of property DesktopFile + return qvariant_cast< QString >(parent()->property("DesktopFile")); +} + +QString EntryAdaptor::icon() const +{ + // get the value of property Icon + return qvariant_cast< QString >(parent()->property("Icon")); +} + +QString EntryAdaptor::id() const +{ + // get the value of property Id + return qvariant_cast< QString >(parent()->property("Id")); +} + +bool EntryAdaptor::isActive() const +{ + // get the value of property IsActive + return qvariant_cast< bool >(parent()->property("IsActive")); +} + +bool EntryAdaptor::isDocked() const +{ + // get the value of property IsDocked + return qvariant_cast< bool >(parent()->property("IsDocked")); +} + +QString EntryAdaptor::menu() const +{ + // get the value of property Menu + return qvariant_cast< QString >(parent()->property("Menu")); +} + +QString EntryAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QString >(parent()->property("Name")); +} + +WindowInfoMap EntryAdaptor::windowInfos() const +{ + // get the value of property WindowInfos + return qvariant_cast< WindowInfoMap >(parent()->property("WindowInfos")); +} + +void EntryAdaptor::Activate(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.Activate + QMetaObject::invokeMethod(parent(), "Activate", Q_ARG(uint, in0)); +} + +void EntryAdaptor::Check() +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.Check + QMetaObject::invokeMethod(parent(), "Check"); +} + +void EntryAdaptor::ForceQuit() +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.ForceQuit + QMetaObject::invokeMethod(parent(), "ForceQuit"); +} + +void EntryAdaptor::HandleDragDrop(uint in0, const QStringList &in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.HandleDragDrop + QMetaObject::invokeMethod(parent(), "HandleDragDrop", Q_ARG(uint, in0), Q_ARG(QStringList, in1)); +} + +void EntryAdaptor::HandleMenuItem(uint in0, const QString &in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.HandleMenuItem + QMetaObject::invokeMethod(parent(), "HandleMenuItem", Q_ARG(uint, in0), Q_ARG(QString, in1)); +} + +void EntryAdaptor::NewInstance(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.NewInstance + QMetaObject::invokeMethod(parent(), "NewInstance", Q_ARG(uint, in0)); +} + +void EntryAdaptor::PresentWindows() +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.PresentWindows + QMetaObject::invokeMethod(parent(), "PresentWindows"); +} + +void EntryAdaptor::RequestDock() +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.RequestDock + QMetaObject::invokeMethod(parent(), "RequestDock"); +} + +void EntryAdaptor::RequestUndock() +{ + // handle method call org.deepin.dde.daemon.Dock1.Entry.RequestUndock + QMetaObject::invokeMethod(parent(), "RequestUndock"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.h new file mode 100644 index 0000000..9c0328a --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor.h @@ -0,0 +1,113 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.daemon.Dock1.Entry.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.EntryAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.Entry.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DAEMON_DOCK1_ENTRYADAPTOR_H +#define ORG_DEEPIN_DDE_DAEMON_DOCK1_ENTRYADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.Entry.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.daemon.Dock1.Entry + */ +class EntryAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.daemon.Dock1.Entry") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + EntryAdaptor(QObject *parent); + virtual ~EntryAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(uint CurrentWindow READ currentWindow) + uint currentWindow() const; + + Q_PROPERTY(QString DesktopFile READ desktopFile) + QString desktopFile() const; + + Q_PROPERTY(QString Icon READ icon) + QString icon() const; + + Q_PROPERTY(QString Id READ id) + QString id() const; + + Q_PROPERTY(bool IsActive READ isActive) + bool isActive() const; + + Q_PROPERTY(bool IsDocked READ isDocked) + bool isDocked() const; + + Q_PROPERTY(QString Menu READ menu) + QString menu() const; + + Q_PROPERTY(QString Name READ name) + QString name() const; + + Q_PROPERTY(WindowInfoMap WindowInfos READ windowInfos) + WindowInfoMap windowInfos() const; + +public Q_SLOTS: // METHODS + void Activate(uint in0); + void Check(); + void ForceQuit(); + void HandleDragDrop(uint in0, const QStringList &in1); + void HandleMenuItem(uint in0, const QString &in1); + void NewInstance(uint in0); + void PresentWindows(); + void RequestDock(); + void RequestUndock(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp new file mode 100644 index 0000000..8540353 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.cpp @@ -0,0 +1,321 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.daemon.Dock1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Dock1Adaptor + */ + +Dock1Adaptor::Dock1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Dock1Adaptor::~Dock1Adaptor() +{ + // destructor +} + +int Dock1Adaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< int >(parent()->property("DisplayMode")); +} + +void Dock1Adaptor::setDisplayMode(int value) +{ + // set the value of property DisplayMode + parent()->setProperty("DisplayMode", QVariant::fromValue(value)); +} + +QStringList Dock1Adaptor::dockedApps() const +{ + // get the value of property DockedApps + return qvariant_cast< QStringList >(parent()->property("DockedApps")); +} + +QList Dock1Adaptor::entries() const +{ + // get the value of property Entries + return qvariant_cast< QList >(parent()->property("Entries")); +} + +DockRect Dock1Adaptor::frontendWindowRect() const +{ + // get the value of property FrontendWindowRect + return qvariant_cast< DockRect >(parent()->property("FrontendWindowRect")); +} + +int Dock1Adaptor::hideMode() const +{ + // get the value of property HideMode + return qvariant_cast< int >(parent()->property("HideMode")); +} + +void Dock1Adaptor::setHideMode(int value) +{ + // set the value of property HideMode + parent()->setProperty("HideMode", QVariant::fromValue(value)); +} + +int Dock1Adaptor::hideState() const +{ + // get the value of property HideState + return qvariant_cast< int >(parent()->property("HideState")); +} + +uint Dock1Adaptor::hideTimeout() const +{ + // get the value of property HideTimeout + return qvariant_cast< uint >(parent()->property("HideTimeout")); +} + +void Dock1Adaptor::setHideTimeout(uint value) +{ + // set the value of property HideTimeout + parent()->setProperty("HideTimeout", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::iconSize() const +{ + // get the value of property IconSize + return qvariant_cast< uint >(parent()->property("IconSize")); +} + +void Dock1Adaptor::setIconSize(uint value) +{ + // set the value of property IconSize + parent()->setProperty("IconSize", QVariant::fromValue(value)); +} + +double Dock1Adaptor::opacity() const +{ + // get the value of property Opacity + return qvariant_cast< double >(parent()->property("Opacity")); +} + +void Dock1Adaptor::setOpacity(double value) +{ + // set the value of property Opacity + parent()->setProperty("Opacity", QVariant::fromValue(value)); +} + +int Dock1Adaptor::position() const +{ + // get the value of property Position + return qvariant_cast< int >(parent()->property("Position")); +} + +void Dock1Adaptor::setPosition(int value) +{ + // set the value of property Position + parent()->setProperty("Position", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::showTimeout() const +{ + // get the value of property ShowTimeout + return qvariant_cast< uint >(parent()->property("ShowTimeout")); +} + +void Dock1Adaptor::setShowTimeout(uint value) +{ + // set the value of property ShowTimeout + parent()->setProperty("ShowTimeout", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSize() const +{ + // get the value of property WindowSize + return qvariant_cast< uint >(parent()->property("WindowSize")); +} + +void Dock1Adaptor::setWindowSize(uint value) +{ + // set the value of property WindowSize + parent()->setProperty("WindowSize", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSizeEfficient() const +{ + // get the value of property WindowSizeEfficient + return qvariant_cast< uint >(parent()->property("WindowSizeEfficient")); +} + +void Dock1Adaptor::setWindowSizeEfficient(uint value) +{ + // set the value of property WindowSizeEfficient + parent()->setProperty("WindowSizeEfficient", QVariant::fromValue(value)); +} + +uint Dock1Adaptor::windowSizeFashion() const +{ + // get the value of property WindowSizeFashion + return qvariant_cast< uint >(parent()->property("WindowSizeFashion")); +} + +void Dock1Adaptor::setWindowSizeFashion(uint value) +{ + // set the value of property WindowSizeFashion + parent()->setProperty("WindowSizeFashion", QVariant::fromValue(value)); +} + +void Dock1Adaptor::ActivateWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.ActivateWindow + QMetaObject::invokeMethod(parent(), "ActivateWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::CancelPreviewWindow() +{ + // handle method call org.deepin.dde.daemon.Dock1.CancelPreviewWindow + QMetaObject::invokeMethod(parent(), "CancelPreviewWindow"); +} + +void Dock1Adaptor::CloseWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.CloseWindow + QMetaObject::invokeMethod(parent(), "CloseWindow", Q_ARG(uint, in0)); +} + +QStringList Dock1Adaptor::GetDockedAppsDesktopFiles() +{ + // handle method call org.deepin.dde.daemon.Dock1.GetDockedAppsDesktopFiles + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetDockedAppsDesktopFiles", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QStringList Dock1Adaptor::GetEntryIDs() +{ + // handle method call org.deepin.dde.daemon.Dock1.GetEntryIDs + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetEntryIDs", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString Dock1Adaptor::GetPluginSettings() +{ + // handle method call org.deepin.dde.daemon.Dock1.GetPluginSettings + QString out0; + QMetaObject::invokeMethod(parent(), "GetPluginSettings", Q_RETURN_ARG(QString, out0)); + return out0; +} + +bool Dock1Adaptor::IsDocked(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.IsDocked + bool out0; + QMetaObject::invokeMethod(parent(), "IsDocked", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +bool Dock1Adaptor::IsOnDock(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.IsOnDock + bool out0; + QMetaObject::invokeMethod(parent(), "IsOnDock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void Dock1Adaptor::MakeWindowAbove(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MakeWindowAbove + QMetaObject::invokeMethod(parent(), "MakeWindowAbove", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::MaximizeWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MaximizeWindow + QMetaObject::invokeMethod(parent(), "MaximizeWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::MergePluginSettings(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MergePluginSettings + QMetaObject::invokeMethod(parent(), "MergePluginSettings", Q_ARG(QString, in0)); +} + +void Dock1Adaptor::MinimizeWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MinimizeWindow + QMetaObject::invokeMethod(parent(), "MinimizeWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::MoveEntry(int in0, int in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.MoveEntry + QMetaObject::invokeMethod(parent(), "MoveEntry", Q_ARG(int, in0), Q_ARG(int, in1)); +} + +void Dock1Adaptor::MoveWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.MoveWindow + QMetaObject::invokeMethod(parent(), "MoveWindow", Q_ARG(uint, in0)); +} + +void Dock1Adaptor::PreviewWindow(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.PreviewWindow + QMetaObject::invokeMethod(parent(), "PreviewWindow", Q_ARG(uint, in0)); +} + +QString Dock1Adaptor::QueryWindowIdentifyMethod(uint in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.QueryWindowIdentifyMethod + QString out0; + QMetaObject::invokeMethod(parent(), "QueryWindowIdentifyMethod", Q_RETURN_ARG(QString, out0), Q_ARG(uint, in0)); + return out0; +} + +void Dock1Adaptor::RemovePluginSettings(const QString &in0, const QStringList &in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.RemovePluginSettings + QMetaObject::invokeMethod(parent(), "RemovePluginSettings", Q_ARG(QString, in0), Q_ARG(QStringList, in1)); +} + +bool Dock1Adaptor::RequestDock(const QString &in0, int in1) +{ + // handle method call org.deepin.dde.daemon.Dock1.RequestDock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestDock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0), Q_ARG(int, in1)); + return out0; +} + +bool Dock1Adaptor::RequestUndock(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.RequestUndock + bool out0; + QMetaObject::invokeMethod(parent(), "RequestUndock", Q_RETURN_ARG(bool, out0), Q_ARG(QString, in0)); + return out0; +} + +void Dock1Adaptor::SetFrontendWindowRect(int in0, int in1, uint in2, uint in3) +{ + // handle method call org.deepin.dde.daemon.Dock1.SetFrontendWindowRect + QMetaObject::invokeMethod(parent(), "SetFrontendWindowRect", Q_ARG(int, in0), Q_ARG(int, in1), Q_ARG(uint, in2), Q_ARG(uint, in3)); +} + +void Dock1Adaptor::SetPluginSettings(const QString &in0) +{ + // handle method call org.deepin.dde.daemon.Dock1.SetPluginSettings + QMetaObject::invokeMethod(parent(), "SetPluginSettings", Q_ARG(QString, in0)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h new file mode 100644 index 0000000..5a1f3eb --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor.h @@ -0,0 +1,223 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.daemon.Dock1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DAEMON_DOCK1ADAPTOR_H +#define ORG_DEEPIN_DDE_DAEMON_DOCK1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Dock1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.daemon.Dock1 + */ +class Dock1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.daemon.Dock1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Dock1Adaptor(QObject *parent); + virtual ~Dock1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode) + int displayMode() const; + void setDisplayMode(int value); + + Q_PROPERTY(QStringList DockedApps READ dockedApps) + QStringList dockedApps() const; + + Q_PROPERTY(QList Entries READ entries) + QList entries() const; + + Q_PROPERTY(DockRect FrontendWindowRect READ frontendWindowRect) + DockRect frontendWindowRect() const; + + Q_PROPERTY(int HideMode READ hideMode WRITE setHideMode) + int hideMode() const; + void setHideMode(int value); + + Q_PROPERTY(int HideState READ hideState) + int hideState() const; + + Q_PROPERTY(uint HideTimeout READ hideTimeout WRITE setHideTimeout) + uint hideTimeout() const; + void setHideTimeout(uint value); + + Q_PROPERTY(uint IconSize READ iconSize WRITE setIconSize) + uint iconSize() const; + void setIconSize(uint value); + + Q_PROPERTY(double Opacity READ opacity WRITE setOpacity) + double opacity() const; + void setOpacity(double value); + + Q_PROPERTY(int Position READ position WRITE setPosition) + int position() const; + void setPosition(int value); + + Q_PROPERTY(uint ShowTimeout READ showTimeout WRITE setShowTimeout) + uint showTimeout() const; + void setShowTimeout(uint value); + + Q_PROPERTY(uint WindowSize READ windowSize WRITE setWindowSize) + uint windowSize() const; + void setWindowSize(uint value); + + Q_PROPERTY(uint WindowSizeEfficient READ windowSizeEfficient WRITE setWindowSizeEfficient) + uint windowSizeEfficient() const; + void setWindowSizeEfficient(uint value); + + Q_PROPERTY(uint WindowSizeFashion READ windowSizeFashion WRITE setWindowSizeFashion) + uint windowSizeFashion() const; + void setWindowSizeFashion(uint value); + +public Q_SLOTS: // METHODS + void ActivateWindow(uint in0); + void CancelPreviewWindow(); + void CloseWindow(uint in0); + QStringList GetDockedAppsDesktopFiles(); + QStringList GetEntryIDs(); + QString GetPluginSettings(); + bool IsDocked(const QString &in0); + bool IsOnDock(const QString &in0); + void MakeWindowAbove(uint in0); + void MaximizeWindow(uint in0); + void MergePluginSettings(const QString &in0); + void MinimizeWindow(uint in0); + void MoveEntry(int in0, int in1); + void MoveWindow(uint in0); + void PreviewWindow(uint in0); + QString QueryWindowIdentifyMethod(uint in0); + void RemovePluginSettings(const QString &in0, const QStringList &in1); + bool RequestDock(const QString &in0, int in1); + bool RequestUndock(const QString &in0); + void SetFrontendWindowRect(int in0, int in1, uint in2, uint in3); + void SetPluginSettings(const QString &in0); +Q_SIGNALS: // SIGNALS + void DockAppSettingsSynced(); + void EntryAdded(const QDBusObjectPath &in0, int in1); + void EntryRemoved(const QString &in0); + void PluginSettingsSynced(); + void ServiceRestarted(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.cpp new file mode 100644 index 0000000..e702e1d --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.cpp @@ -0,0 +1,153 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.daemon.Launcher1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class Launcher1Adaptor + */ + +Launcher1Adaptor::Launcher1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +Launcher1Adaptor::~Launcher1Adaptor() +{ + // destructor +} + +int Launcher1Adaptor::displayMode() const +{ + // get the value of property DisplayMode + return qvariant_cast< int >(parent()->property("DisplayMode")); +} + +void Launcher1Adaptor::setDisplayMode(int value) +{ + // set the value of property DisplayMode + parent()->setProperty("DisplayMode", QVariant::fromValue(value)); +} + +bool Launcher1Adaptor::fullscreen() const +{ + // get the value of property Fullscreen + return qvariant_cast< bool >(parent()->property("Fullscreen")); +} + +void Launcher1Adaptor::setFullscreen(bool value) +{ + // set the value of property Fullscreen + parent()->setProperty("Fullscreen", QVariant::fromValue(value)); +} + +LauncherItemInfoList Launcher1Adaptor::GetAllItemInfos() +{ + // handle method call org.deepin.dde.daemon.Launcher1.GetAllItemInfos + LauncherItemInfoList itemInfoList; + QMetaObject::invokeMethod(parent(), "GetAllItemInfos", Q_RETURN_ARG(LauncherItemInfoList, itemInfoList)); + return itemInfoList; +} + +QStringList Launcher1Adaptor::GetAllNewInstalledApps() +{ + // handle method call org.deepin.dde.daemon.Launcher1.GetAllNewInstalledApps + QStringList apps; + QMetaObject::invokeMethod(parent(), "GetAllNewInstalledApps", Q_RETURN_ARG(QStringList, apps)); + return apps; +} + +bool Launcher1Adaptor::GetDisableScaling(const QString &id) +{ + // handle method call org.deepin.dde.daemon.Launcher1.GetDisableScaling + bool value; + QMetaObject::invokeMethod(parent(), "GetDisableScaling", Q_RETURN_ARG(bool, value), Q_ARG(QString, id)); + return value; +} + +LauncherItemInfo Launcher1Adaptor::GetItemInfo(const QString &id) +{ + // handle method call org.deepin.dde.daemon.Launcher1.GetItemInfo + LauncherItemInfo itemInfo; + QMetaObject::invokeMethod(parent(), "GetItemInfo", Q_RETURN_ARG(LauncherItemInfo, itemInfo), Q_ARG(QString, id)); + return itemInfo; +} + +bool Launcher1Adaptor::GetUseProxy(const QString &id) +{ + // handle method call org.deepin.dde.daemon.Launcher1.GetUseProxy + bool value; + QMetaObject::invokeMethod(parent(), "GetUseProxy", Q_RETURN_ARG(bool, value), Q_ARG(QString, id)); + return value; +} + +bool Launcher1Adaptor::IsItemOnDesktop(const QString &id) +{ + // handle method call org.deepin.dde.daemon.Launcher1.IsItemOnDesktop + bool result; + QMetaObject::invokeMethod(parent(), "IsItemOnDesktop", Q_RETURN_ARG(bool, result), Q_ARG(QString, id)); + return result; +} + +void Launcher1Adaptor::MarkLaunched(const QString &id) +{ + // handle method call org.deepin.dde.daemon.Launcher1.MarkLaunched + QMetaObject::invokeMethod(parent(), "MarkLaunched", Q_ARG(QString, id)); +} + +bool Launcher1Adaptor::RequestRemoveFromDesktop(const QString &id) +{ + // handle method call org.deepin.dde.daemon.Launcher1.RequestRemoveFromDesktop + bool ok; + QMetaObject::invokeMethod(parent(), "RequestRemoveFromDesktop", Q_RETURN_ARG(bool, ok), Q_ARG(QString, id)); + return ok; +} + +bool Launcher1Adaptor::RequestSendToDesktop(const QString &id) +{ + // handle method call org.deepin.dde.daemon.Launcher1.RequestSendToDesktop + bool ok; + QMetaObject::invokeMethod(parent(), "RequestSendToDesktop", Q_RETURN_ARG(bool, ok), Q_ARG(QString, id)); + return ok; +} + +void Launcher1Adaptor::RequestUninstall(const QString &id, bool purge) +{ + // handle method call org.deepin.dde.daemon.Launcher1.RequestUninstall + QMetaObject::invokeMethod(parent(), "RequestUninstall", Q_ARG(QString, id), Q_ARG(bool, purge)); +} + +void Launcher1Adaptor::Search(const QString &key) +{ + // handle method call org.deepin.dde.daemon.Launcher1.Search + QMetaObject::invokeMethod(parent(), "Search", Q_ARG(QString, key)); +} + +void Launcher1Adaptor::SetDisableScaling(const QString &id, bool value) +{ + // handle method call org.deepin.dde.daemon.Launcher1.SetDisableScaling + QMetaObject::invokeMethod(parent(), "SetDisableScaling", Q_ARG(QString, id), Q_ARG(bool, value)); +} + +void Launcher1Adaptor::SetUseProxy(const QString &id, bool value) +{ + // handle method call org.deepin.dde.daemon.Launcher1.SetUseProxy + QMetaObject::invokeMethod(parent(), "SetUseProxy", Q_ARG(QString, id), Q_ARG(bool, value)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.h new file mode 100644 index 0000000..c12a4e1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor.h @@ -0,0 +1,144 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.deepin.dde.daemon.Launcher1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_DAEMON_LAUNCHER1ADAPTOR_H +#define ORG_DEEPIN_DDE_DAEMON_LAUNCHER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.daemon.Launcher1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.daemon.Launcher1 + */ +class Launcher1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.daemon.Launcher1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + Launcher1Adaptor(QObject *parent); + virtual ~Launcher1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode) + int displayMode() const; + void setDisplayMode(int value); + + Q_PROPERTY(bool Fullscreen READ fullscreen WRITE setFullscreen) + bool fullscreen() const; + void setFullscreen(bool value); + +public Q_SLOTS: // METHODS + LauncherItemInfoList GetAllItemInfos(); + QStringList GetAllNewInstalledApps(); + bool GetDisableScaling(const QString &id); + LauncherItemInfo GetItemInfo(const QString &id); + bool GetUseProxy(const QString &id); + bool IsItemOnDesktop(const QString &id); + void MarkLaunched(const QString &id); + bool RequestRemoveFromDesktop(const QString &id); + bool RequestSendToDesktop(const QString &id); + void RequestUninstall(const QString &id, bool purge); + void Search(const QString &key); + void SetDisableScaling(const QString &id, bool value); + void SetUseProxy(const QString &id, bool value); +Q_SIGNALS: // SIGNALS + void ItemChanged(const QString &status, LauncherItemInfo itemInfo, qlonglong categoryID); + void NewAppLaunched(const QString &appID); + void SearchDone(const QStringList &apps); + void UninstallFailed(const QString &appId, const QString &errMsg); + void UninstallSuccess(const QString &appID); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.cpp new file mode 100644 index 0000000..30e9d26 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.cpp @@ -0,0 +1,61 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.desktopspec.MimeManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MimeManager1Adaptor + */ + +MimeManager1Adaptor::MimeManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MimeManager1Adaptor::~MimeManager1Adaptor() +{ + // destructor +} + +ObjectMap MimeManager1Adaptor::listApplications(const QString &mimeType) +{ + // handle method call org.desktopspec.MimeManager1.listApplications + ObjectMap applications_and_properties; + QMetaObject::invokeMethod(parent(), "listApplications", Q_RETURN_ARG(ObjectMap, applications_and_properties), Q_ARG(QString, mimeType)); + return applications_and_properties; +} + +QString MimeManager1Adaptor::queryDefaultApplication(const QString &content, QDBusObjectPath &application) +{ + // handle method call org.desktopspec.MimeManager1.queryDefaultApplication + //return static_cast(parent())->queryDefaultApplication(content, application); +} + +void MimeManager1Adaptor::setDefaultApplication(const QMap &defaultApps) +{ + // handle method call org.desktopspec.MimeManager1.setDefaultApplication + QMetaObject::invokeMethod(parent(), "setDefaultApplication", Q_ARG(QMap, defaultApps)); +} + +void MimeManager1Adaptor::unsetDefaultApplication(const QStringList &mimeTypes) +{ + // handle method call org.desktopspec.MimeManager1.unsetDefaultApplication + QMetaObject::invokeMethod(parent(), "unsetDefaultApplication", Q_ARG(QStringList, mimeTypes)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h new file mode 100644 index 0000000..1b43247 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h @@ -0,0 +1,69 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/session/org.desktopspec.MimeManager1.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DESKTOPSPEC_MIMEMANAGER1ADAPTOR_H +#define ORG_DESKTOPSPEC_MIMEMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.desktopspec.MimeManager1 + */ +class MimeManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.MimeManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + MimeManager1Adaptor(QObject *parent); + virtual ~MimeManager1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + ObjectMap listApplications(const QString &mimeType); + QString queryDefaultApplication(const QString &content, QDBusObjectPath &application); + void setDefaultApplication(const QMap &defaultApps); + void unsetDefaultApplication(const QStringList &mimeTypes); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.cpp new file mode 100644 index 0000000..4be14cb --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.cpp @@ -0,0 +1,131 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0.5/session/org.desktopspec.permission.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.permission.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class PermissionAdaptor + */ + +PermissionAdaptor::PermissionAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +PermissionAdaptor::~PermissionAdaptor() +{ + // destructor +} + +bool PermissionAdaptor::GetPermissionEnable(const QString &permissionGroup, const QString &permissionId) +{ + // handle method call org.desktopspec.permission.GetPermissionEnable + bool enable; + QMetaObject::invokeMethod(parent(), "GetPermissionEnable", Q_RETURN_ARG(bool, enable), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId)); + return enable; +} + +QString PermissionAdaptor::GetPermissionInfo() +{ + // handle method call org.desktopspec.permission.GetPermissionInfo + QString permissionInfo; + QMetaObject::invokeMethod(parent(), "GetPermissionInfo", Q_RETURN_ARG(QString, permissionInfo)); + return permissionInfo; +} + +QStringList PermissionAdaptor::GetRegisterAppPermissionIds(const QString &appId, const QString &permissionGroup) +{ + // handle method call org.desktopspec.permission.GetRegisterAppPermissionIds + QStringList result; + QMetaObject::invokeMethod(parent(), "GetRegisterAppPermissionIds", Q_RETURN_ARG(QStringList, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup)); + return result; +} + +QStringList PermissionAdaptor::PermissionList(const QString &permissionGroup) +{ + // handle method call org.desktopspec.permission.PermissionList + QStringList results; + QMetaObject::invokeMethod(parent(), "PermissionList", Q_RETURN_ARG(QStringList, results), Q_ARG(QString, permissionGroup)); + return results; +} + +void PermissionAdaptor::RegistAppPermissions(const QString &appId, const QString &permissionGroup, PermissionsInfo permissionsInfo) +{ + // handle method call org.desktopspec.permission.RegistAppPermissions + QMetaObject::invokeMethod(parent(), "RegistAppPermissions", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(PermissionsInfo, permissionsInfo)); +} + +QString PermissionAdaptor::Request(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &title, const QString &description) +{ + // handle method call org.desktopspec.permission.Request + QString result; + QMetaObject::invokeMethod(parent(), "Request", Q_RETURN_ARG(QString, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(QString, title), Q_ARG(QString, description)); + return result; +} + +QString PermissionAdaptor::Request(const QString &appId, const QString &permissionGroup, const QString &permissionId) +{ + // handle method call org.desktopspec.permission.Request + QString result; + QMetaObject::invokeMethod(parent(), "Request", Q_RETURN_ARG(QString, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId)); + return result; +} + +QStringList PermissionAdaptor::Request(const QString &appId, const QString &permissionGroup, const QStringList &permissionId) +{ + // handle method call org.desktopspec.permission.Request + QStringList results; + QMetaObject::invokeMethod(parent(), "Request", Q_RETURN_ARG(QStringList, results), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QStringList, permissionId)); + return results; +} + +void PermissionAdaptor::Reset(const QString &appId, const QString &permissionGroup) +{ + // handle method call org.desktopspec.permission.Reset + QMetaObject::invokeMethod(parent(), "Reset", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup)); +} + +void PermissionAdaptor::Set(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value) +{ + // handle method call org.desktopspec.permission.Set + QMetaObject::invokeMethod(parent(), "Set", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(QString, value)); +} + +bool PermissionAdaptor::SetPermissionEnable(const QString &permissionGroup, const QString &permissionId, bool enable) +{ + // handle method call org.desktopspec.permission.SetPermissionEnable + bool result; + QMetaObject::invokeMethod(parent(), "SetPermissionEnable", Q_RETURN_ARG(bool, result), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(bool, enable)); + return result; +} + +bool PermissionAdaptor::SetPermissionInfo(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value) +{ + // handle method call org.desktopspec.permission.SetPermissionInfo + bool result; + QMetaObject::invokeMethod(parent(), "SetPermissionInfo", Q_RETURN_ARG(bool, result), Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId), Q_ARG(QString, value)); + return result; +} + +void PermissionAdaptor::ShowDisablePermissionDialog(const QString &appId, const QString &permissionGroup, const QString &permissionId) +{ + // handle method call org.desktopspec.permission.ShowDisablePermissionDialog + QMetaObject::invokeMethod(parent(), "ShowDisablePermissionDialog", Q_ARG(QString, appId), Q_ARG(QString, permissionGroup), Q_ARG(QString, permissionId)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.h new file mode 100644 index 0000000..6924b5c --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor.h @@ -0,0 +1,139 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0.5/session/org.desktopspec.permission.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.permissionAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.permission.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DESKTOPSPEC_PERMISSIONADAPTOR_H +#define ORG_DESKTOPSPEC_PERMISSIONADAPTOR_H + +#include +#include +#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.desktopspec.permission.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.desktopspec.permission + */ +class PermissionAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.permission") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + PermissionAdaptor(QObject *parent); + virtual ~PermissionAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool GetPermissionEnable(const QString &permissionGroup, const QString &permissionId); + QString GetPermissionInfo(); + QStringList GetRegisterAppPermissionIds(const QString &appId, const QString &permissionGroup); + QStringList PermissionList(const QString &permissionGroup); + void RegistAppPermissions(const QString &appId, const QString &permissionGroup, PermissionsInfo permissionsInfo); + QString Request(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &title, const QString &description); + QString Request(const QString &appId, const QString &permissionGroup, const QString &permissionId); + QStringList Request(const QString &appId, const QString &permissionGroup, const QStringList &permissionId); + void Reset(const QString &appId, const QString &permissionGroup); + void Set(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value); + bool SetPermissionEnable(const QString &permissionGroup, const QString &permissionId, bool enable); + bool SetPermissionInfo(const QString &appId, const QString &permissionGroup, const QString &permissionId, const QString &value); + void ShowDisablePermissionDialog(const QString &appId, const QString &permissionGroup, const QString &permissionId); +Q_SIGNALS: // SIGNALS + void PermissionEnableChanged(const QString &permissionGroup, const QString &permissionId, bool enable); + void PermissionInfoChanged(); +}; + +#endif