├── .clog.toml ├── .github └── workflows │ ├── backup-to-gitlab.yml │ ├── call-auto-tag.yml │ ├── call-build-distribution.yml │ ├── call-chatOps.yml │ ├── call-clacheck.yml │ ├── call-commitlint.yml │ ├── call-license-check.yml │ └── cppcheck.yml ├── .gitignore ├── .gitlab-ci.yml ├── .obs └── workflows.yml ├── .packit.yaml ├── .project ├── .reuse └── dep5 ├── CHANGELOG.md ├── LICENSE ├── LICENSES ├── CC-BY-4.0.txt ├── CC0-1.0.txt ├── GPL-3.0-or-later.txt └── LGPL-2.1-or-later.txt ├── README.md ├── README.zh_CN.md ├── archlinux └── PKGBUILD ├── dde-qt-dbus-factory.pro ├── debian ├── changelog ├── compat ├── control ├── copyright ├── libdframeworkdbus-dev.install ├── libdframeworkdbus2.install ├── rules └── source │ └── format ├── libdframeworkdbus ├── DFrameworkdbusConfig.in ├── generate_code.py ├── libdframeworkdbus.pro ├── qtdbusextended │ ├── DBusExtended │ ├── DBusExtendedAbstractInterface │ ├── dbusextended.h │ ├── dbusextendedabstractinterface.cpp │ ├── dbusextendedabstractinterface.h │ ├── dbusextendedpendingcallwatcher.cpp │ ├── dbusextendedpendingcallwatcher_p.h │ └── qtdbusextended.pri └── types │ ├── appscgroupinfo.h │ ├── appscgroupinfolist.cpp │ ├── appscgroupinfolist.h │ ├── appupdateinfolist.cpp │ ├── appupdateinfolist.h │ ├── arealist.cpp │ ├── arealist.h │ ├── arrayint.cpp │ ├── arrayint.h │ ├── audioport.cpp │ ├── audioport.h │ ├── audioportlist.cpp │ ├── audioportlist.h │ ├── batterypercentageinfo.cpp │ ├── batterypercentageinfo.h │ ├── batterypresentinfo.cpp │ ├── batterypresentinfo.h │ ├── batterystateinfo.cpp │ ├── batterystateinfo.h │ ├── brightnessmap.cpp │ ├── brightnessmap.h │ ├── chrometablist.cpp │ ├── chrometablist.h │ ├── controlcenterrect.cpp │ ├── controlcenterrect.h │ ├── dbusimagelist.cpp │ ├── dbusimagelist.h │ ├── dbusobjectpathlist.cpp │ ├── dbusobjectpathlist.h │ ├── dbustooltip.cpp │ ├── dbustooltip.h │ ├── defenderappflow.cpp │ ├── defenderappflow.h │ ├── defenderdisplay.cpp │ ├── defenderdisplay.h │ ├── defenderdissection.cpp │ ├── defenderdissection.h │ ├── defenderfileinfo.cpp │ ├── defenderfileinfo.h │ ├── defenderprocessinfo.cpp │ ├── defenderprocessinfo.h │ ├── defenderprocesslist.cpp │ ├── defenderprocesslist.h │ ├── defenderprocinfo.cpp │ ├── defenderprocinfo.h │ ├── defenderprocinfolist.cpp │ ├── defenderprocinfolist.h │ ├── defenderupdatestate.cpp │ ├── defenderupdatestate.h │ ├── defenderversioninfo.cpp │ ├── defenderversioninfo.h │ ├── dockrect.cpp │ ├── dockrect.h │ ├── hardwareinfo.cpp │ ├── hardwareinfo.h │ ├── inputdevicelist.cpp │ ├── inputdevicelist.h │ ├── intstring.cpp │ ├── intstring.h │ ├── keyboardlayoutlist.cpp │ ├── keyboardlayoutlist.h │ ├── lastoreupdatepackagesinfo.cpp │ ├── lastoreupdatepackagesinfo.h │ ├── launcheriteminfo.cpp │ ├── launcheriteminfo.h │ ├── launcheriteminfolist.cpp │ ├── launcheriteminfolist.h │ ├── linkinfolist.cpp │ ├── linkinfolist.h │ ├── localelist.cpp │ ├── localelist.h │ ├── mfainfolist.cpp │ ├── mfainfolist.h │ ├── mirrorinfolist.cpp │ ├── mirrorinfolist.h │ ├── networkavailablekeys.cpp │ ├── networkavailablekeys.h │ ├── networkconnectiondata.cpp │ ├── networkconnectiondata.h │ ├── networkerrors.cpp │ ├── networkerrors.h │ ├── policydetails.cpp │ ├── policydetails.h │ ├── policyresult.cpp │ ├── policyresult.h │ ├── policysubject.cpp │ ├── policysubject.h │ ├── propertylist.cpp │ ├── propertylist.h │ ├── qvariantlist.cpp │ ├── qvariantlist.h │ ├── qvariantmap.cpp │ ├── qvariantmap.h │ ├── reflectlist.cpp │ ├── reflectlist.h │ ├── resolution.cpp │ ├── resolution.h │ ├── resolutionlist.cpp │ ├── resolutionlist.h │ ├── rotationlist.cpp │ ├── rotationlist.h │ ├── screenrect.cpp │ ├── screenrect.h │ ├── searchmap.cpp │ ├── searchmap.h │ ├── sinkinfolist.cpp │ ├── sinkinfolist.h │ ├── touchscreeninfolist.cpp │ ├── touchscreeninfolist.h │ ├── touchscreeninfolist_v2.cpp │ ├── touchscreeninfolist_v2.h │ ├── touchscreenmap.cpp │ ├── touchscreenmap.h │ ├── wacomdevicelist.cpp │ ├── wacomdevicelist.h │ ├── windowinfomap.cpp │ ├── windowinfomap.h │ ├── windowlist.cpp │ ├── windowlist.h │ ├── zoneinfo.cpp │ └── zoneinfo.h ├── rpm └── dde-qt-dbus-factory.spec ├── technology-overview.md ├── toolGenerate └── qdbusxml2cpp │ ├── com.deepin.ABRecoveryAdaptor.cpp │ ├── com.deepin.ABRecoveryAdaptor.h │ ├── com.deepin.AppStoreAdaptor.cpp │ ├── com.deepin.AppStoreAdaptor.h │ ├── com.deepin.LastoreSessionHelperAdaptor.cpp │ ├── com.deepin.LastoreSessionHelperAdaptor.h │ ├── com.deepin.SessionManagerAdaptor.cpp │ ├── com.deepin.SessionManagerAdaptor.h │ ├── com.deepin.StartManagerAdaptor.cpp │ ├── com.deepin.StartManagerAdaptor.h │ ├── com.deepin.WMSwitcherAdaptor.cpp │ ├── com.deepin.WMSwitcherAdaptor.h │ ├── com.deepin.ad.domainAdaptor.cpp │ ├── com.deepin.ad.domainAdaptor.h │ ├── com.deepin.anythingAdaptor.cpp │ ├── com.deepin.anythingAdaptor.h │ ├── com.deepin.api.SoundThemePlayerAdaptor.cpp │ ├── com.deepin.api.SoundThemePlayerAdaptor.h │ ├── com.deepin.api.XEventMonitorAdaptor.cpp │ ├── com.deepin.api.XEventMonitorAdaptor.h │ ├── com.deepin.appstore.MetadataAdaptor.cpp │ ├── com.deepin.appstore.MetadataAdaptor.h │ ├── com.deepin.chromeExtension.TabsLimitAdaptor.cpp │ ├── com.deepin.chromeExtension.TabsLimitAdaptor.h │ ├── com.deepin.daemon.ACLNetworkAdaptor.cpp │ ├── com.deepin.daemon.ACLNetworkAdaptor.h │ ├── com.deepin.daemon.Accounts.UserAdaptor.cpp │ ├── com.deepin.daemon.Accounts.UserAdaptor.h │ ├── com.deepin.daemon.AccountsAdaptor.cpp │ ├── com.deepin.daemon.AccountsAdaptor.h │ ├── com.deepin.daemon.AirplaneModeAdaptor.cpp │ ├── com.deepin.daemon.AirplaneModeAdaptor.h │ ├── com.deepin.daemon.AppearanceAdaptor.cpp │ ├── com.deepin.daemon.AppearanceAdaptor.h │ ├── com.deepin.daemon.Audio.MeterAdaptor.cpp │ ├── com.deepin.daemon.Audio.MeterAdaptor.h │ ├── com.deepin.daemon.Audio.SinkAdaptor.cpp │ ├── com.deepin.daemon.Audio.SinkAdaptor.h │ ├── com.deepin.daemon.Audio.SinkInputAdaptor.cpp │ ├── com.deepin.daemon.Audio.SinkInputAdaptor.h │ ├── com.deepin.daemon.Audio.SourceAdaptor.cpp │ ├── com.deepin.daemon.Audio.SourceAdaptor.h │ ├── com.deepin.daemon.AudioAdaptor.cpp │ ├── com.deepin.daemon.AudioAdaptor.h │ ├── com.deepin.daemon.Authenticate.CharaMangerAdaptor.cpp │ ├── com.deepin.daemon.Authenticate.CharaMangerAdaptor.h │ ├── com.deepin.daemon.Authenticate.FingerprintAdaptor.cpp │ ├── com.deepin.daemon.Authenticate.FingerprintAdaptor.h │ ├── com.deepin.daemon.Authenticate.Session2Adaptor.cpp │ ├── com.deepin.daemon.Authenticate.Session2Adaptor.h │ ├── com.deepin.daemon.AuthenticateAdaptor.cpp │ ├── com.deepin.daemon.AuthenticateAdaptor.h │ ├── com.deepin.daemon.BluetoothAdaptor.cpp │ ├── com.deepin.daemon.BluetoothAdaptor.h │ ├── com.deepin.daemon.Calendar.SchedulerAdaptor.cpp │ ├── com.deepin.daemon.Calendar.SchedulerAdaptor.h │ ├── com.deepin.daemon.Display.MonitorAdaptor.cpp │ ├── com.deepin.daemon.Display.MonitorAdaptor.h │ ├── com.deepin.daemon.DisplayAdaptor.cpp │ ├── com.deepin.daemon.DisplayAdaptor.h │ ├── com.deepin.daemon.Fprintd.DeviceAdaptor.cpp │ ├── com.deepin.daemon.Fprintd.DeviceAdaptor.h │ ├── com.deepin.daemon.FprintdAdaptor.cpp │ ├── com.deepin.daemon.FprintdAdaptor.h │ ├── com.deepin.daemon.GestureAdaptor.cpp │ ├── com.deepin.daemon.GestureAdaptor.h │ ├── com.deepin.daemon.Grub2.EditAuthenticationAdaptor.cpp │ ├── com.deepin.daemon.Grub2.EditAuthenticationAdaptor.h │ ├── com.deepin.daemon.Grub2.ThemeAdaptor.cpp │ ├── com.deepin.daemon.Grub2.ThemeAdaptor.h │ ├── com.deepin.daemon.Grub2Adaptor.cpp │ ├── com.deepin.daemon.Grub2Adaptor.h │ ├── com.deepin.daemon.ImageBlurAdaptor.cpp │ ├── com.deepin.daemon.ImageBlurAdaptor.h │ ├── com.deepin.daemon.ImageEffectAdaptor.cpp │ ├── com.deepin.daemon.ImageEffectAdaptor.h │ ├── com.deepin.daemon.InputDevice.KeyboardAdaptor.cpp │ ├── com.deepin.daemon.InputDevice.KeyboardAdaptor.h │ ├── com.deepin.daemon.InputDevice.MouseAdaptor.cpp │ ├── com.deepin.daemon.InputDevice.MouseAdaptor.h │ ├── com.deepin.daemon.InputDevice.TouchPadAdaptor.cpp │ ├── com.deepin.daemon.InputDevice.TouchPadAdaptor.h │ ├── com.deepin.daemon.InputDevice.TrackPointAdaptor.cpp │ ├── com.deepin.daemon.InputDevice.TrackPointAdaptor.h │ ├── com.deepin.daemon.InputDevice.WacomAdaptor.cpp │ ├── com.deepin.daemon.InputDevice.WacomAdaptor.h │ ├── com.deepin.daemon.InputDevicesAdaptor.cpp │ ├── com.deepin.daemon.InputDevicesAdaptor.h │ ├── com.deepin.daemon.KeybindingAdaptor.cpp │ ├── com.deepin.daemon.KeybindingAdaptor.h │ ├── com.deepin.daemon.LangSelectorAdaptor.cpp │ ├── com.deepin.daemon.LangSelectorAdaptor.h │ ├── com.deepin.daemon.LoginedAdaptor.cpp │ ├── com.deepin.daemon.LoginedAdaptor.h │ ├── com.deepin.daemon.Mime.MediaAdaptor.cpp │ ├── com.deepin.daemon.Mime.MediaAdaptor.h │ ├── com.deepin.daemon.MimeAdaptor.cpp │ ├── com.deepin.daemon.MimeAdaptor.h │ ├── com.deepin.daemon.MiracastAdaptor.cpp │ ├── com.deepin.daemon.MiracastAdaptor.h │ ├── com.deepin.daemon.Network.ConnectionSessionAdaptor.cpp │ ├── com.deepin.daemon.Network.ConnectionSessionAdaptor.h │ ├── com.deepin.daemon.Network.ProxyChainsAdaptor.cpp │ ├── com.deepin.daemon.Network.ProxyChainsAdaptor.h │ ├── com.deepin.daemon.NetworkAdaptor.cpp │ ├── com.deepin.daemon.NetworkAdaptor.h │ ├── com.deepin.daemon.PowerAdaptor.cpp │ ├── com.deepin.daemon.PowerAdaptor.h │ ├── com.deepin.daemon.PowerManagerAdaptor.cpp │ ├── com.deepin.daemon.PowerManagerAdaptor.h │ ├── com.deepin.daemon.ResourceManagerAdaptor.cpp │ ├── com.deepin.daemon.ResourceManagerAdaptor.h │ ├── com.deepin.daemon.SearchAdaptor.cpp │ ├── com.deepin.daemon.SearchAdaptor.h │ ├── com.deepin.daemon.SoundEffectAdaptor.cpp │ ├── com.deepin.daemon.SoundEffectAdaptor.h │ ├── com.deepin.daemon.SystemInfoAdaptor.cpp │ ├── com.deepin.daemon.SystemInfoAdaptor.h │ ├── com.deepin.daemon.TimedateAdaptor.cpp │ ├── com.deepin.daemon.TimedateAdaptor.h │ ├── com.deepin.daemon.TimedatedAdaptor.cpp │ ├── com.deepin.daemon.TimedatedAdaptor.h │ ├── com.deepin.dde.ClipboardAdaptor.cpp │ ├── com.deepin.dde.ClipboardAdaptor.h │ ├── com.deepin.dde.ControlCenterAdaptor.cpp │ ├── com.deepin.dde.ControlCenterAdaptor.h │ ├── com.deepin.dde.LauncherAdaptor.cpp │ ├── com.deepin.dde.LauncherAdaptor.h │ ├── com.deepin.dde.NotificationAdaptor.cpp │ ├── com.deepin.dde.NotificationAdaptor.h │ ├── com.deepin.dde.daemon.Dock.EntryAdaptor.cpp │ ├── com.deepin.dde.daemon.Dock.EntryAdaptor.h │ ├── com.deepin.dde.daemon.DockAdaptor.cpp │ ├── com.deepin.dde.daemon.DockAdaptor.h │ ├── com.deepin.dde.daemon.LauncherdAdaptor.cpp │ ├── com.deepin.dde.daemon.LauncherdAdaptor.h │ ├── com.deepin.deepinidAdaptor.cpp │ ├── com.deepin.deepinidAdaptor.h │ ├── com.deepin.defender.MonitorNetFlowAdaptor.cpp │ ├── com.deepin.defender.MonitorNetFlowAdaptor.h │ ├── com.deepin.defender.analysisappAdaptor.cpp │ ├── com.deepin.defender.analysisappAdaptor.h │ ├── com.deepin.defender.antiavAdaptor.cpp │ ├── com.deepin.defender.antiavAdaptor.h │ ├── com.deepin.defender.autostartAdaptor.cpp │ ├── com.deepin.defender.autostartAdaptor.h │ ├── com.deepin.defender.daemonserviceAdaptor.cpp │ ├── com.deepin.defender.daemonserviceAdaptor.h │ ├── com.deepin.defender.datainterfaceAdaptor.cpp │ ├── com.deepin.defender.datainterfaceAdaptor.h │ ├── com.deepin.defender.hmiscreenAdaptor.cpp │ ├── com.deepin.defender.hmiscreenAdaptor.h │ ├── com.deepin.defender.netcontrolAdaptor.cpp │ ├── com.deepin.defender.netcontrolAdaptor.h │ ├── com.deepin.defender.risantiavAdaptor.cpp │ ├── com.deepin.defender.risantiavAdaptor.h │ ├── com.deepin.defender.trafficdetailsAdaptor.cpp │ ├── com.deepin.defender.trafficdetailsAdaptor.h │ ├── com.deepin.lastore.JobAdaptor.cpp │ ├── com.deepin.lastore.JobAdaptor.h │ ├── com.deepin.lastore.JobManagerAdaptor.cpp │ ├── com.deepin.lastore.JobManagerAdaptor.h │ ├── com.deepin.lastore.SmartmirrorAdaptor.cpp │ ├── com.deepin.lastore.SmartmirrorAdaptor.h │ ├── com.deepin.lastore.UpdaterAdaptor.cpp │ ├── com.deepin.lastore.UpdaterAdaptor.h │ ├── com.deepin.sync.daemonAdaptor.cpp │ ├── com.deepin.sync.daemonAdaptor.h │ ├── com.deepin.system.SystemDisplayAdaptor.cpp │ ├── com.deepin.system.SystemDisplayAdaptor.h │ ├── com.deepin.system.SystemPowerAdaptor.cpp │ ├── com.deepin.system.SystemPowerAdaptor.h │ ├── com.deepin.system.userexperience.DaemonAdaptor.cpp │ ├── com.deepin.system.userexperience.DaemonAdaptor.h │ ├── com.deepin.wmAdaptor.cpp │ ├── com.deepin.wmAdaptor.h │ ├── com.iflytek.aiservice.asrAdaptor.cpp │ ├── com.iflytek.aiservice.asrAdaptor.h │ ├── com.iflytek.aiservice.iatAdaptor.cpp │ ├── com.iflytek.aiservice.iatAdaptor.h │ ├── com.iflytek.aiservice.ocrAdaptor.cpp │ ├── com.iflytek.aiservice.ocrAdaptor.h │ ├── com.iflytek.aiservice.sessionAdaptor.cpp │ ├── com.iflytek.aiservice.sessionAdaptor.h │ ├── com.iflytek.aiservice.transAdaptor.cpp │ ├── com.iflytek.aiservice.transAdaptor.h │ ├── com.iflytek.aiservice.ttsAdaptor.cpp │ ├── com.iflytek.aiservice.ttsAdaptor.h │ ├── org.ayatana.bamf.matcherAdaptor.cpp │ ├── org.ayatana.bamf.matcherAdaptor.h │ ├── org.ayatana.bamf.windowAdaptor.cpp │ ├── org.ayatana.bamf.windowAdaptor.h │ ├── org.bluez.obex.AgentManager1Adaptor.cpp │ ├── org.bluez.obex.AgentManager1Adaptor.h │ ├── org.bluez.obex.Client1Adaptor.cpp │ ├── org.bluez.obex.Client1Adaptor.h │ ├── org.bluez.obex.ObjectPush1Adaptor.cpp │ ├── org.bluez.obex.ObjectPush1Adaptor.h │ ├── org.bluez.obex.Session1Adaptor.cpp │ ├── org.bluez.obex.Session1Adaptor.h │ ├── org.bluez.obex.Transfer1Adaptor.cpp │ ├── org.bluez.obex.Transfer1Adaptor.h │ ├── org.freedesktop.DBusAdaptor.cpp │ ├── org.freedesktop.DBusAdaptor.h │ ├── org.freedesktop.DisplayManager.SeatAdaptor.cpp │ ├── org.freedesktop.DisplayManager.SeatAdaptor.h │ ├── org.freedesktop.DisplayManager.SessionAdaptor.cpp │ ├── org.freedesktop.DisplayManager.SessionAdaptor.h │ ├── org.freedesktop.DisplayManagerAdaptor.cpp │ ├── org.freedesktop.DisplayManagerAdaptor.h │ ├── org.freedesktop.FileManager1Adaptor.cpp │ ├── org.freedesktop.FileManager1Adaptor.h │ ├── org.freedesktop.Hostname1Adaptor.cpp │ ├── org.freedesktop.Hostname1Adaptor.h │ ├── org.freedesktop.Login1Adaptor.cpp │ ├── org.freedesktop.Login1Adaptor.h │ ├── org.freedesktop.NotificationsAdaptor.cpp │ ├── org.freedesktop.NotificationsAdaptor.h │ ├── org.freedesktop.PolicyKit1Adaptor.cpp │ ├── org.freedesktop.PolicyKit1Adaptor.h │ ├── org.freedesktop.login1.session.selfAdaptor.cpp │ ├── org.freedesktop.login1.session.selfAdaptor.h │ ├── org.kde.StatusNotifierItemAdaptor.cpp │ ├── org.kde.StatusNotifierItemAdaptor.h │ ├── org.kde.kwin.EffectsAdaptor.cpp │ └── org.kde.kwin.EffectsAdaptor.h ├── tools ├── qdbusxml2cpp │ ├── README │ ├── qdbusxml2cpp.cpp │ └── qdbusxml2cpp.pro └── tools.pro └── xml ├── com.deepin.ABRecovery.xml ├── com.deepin.AppStore.xml ├── com.deepin.ExportedInterface ├── com.deepin.LastoreSessionHelper.xml ├── com.deepin.SessionManager.xml ├── com.deepin.StartManager.xml ├── com.deepin.WMSwitcher.xml ├── com.deepin.ad.domain.xml ├── com.deepin.anything.xml ├── com.deepin.api.SoundThemePlayer.xml ├── com.deepin.api.XEventMonitor.xml ├── com.deepin.appstore.Metadata.xml ├── com.deepin.chromeExtension.TabsLimit.xml ├── com.deepin.daemon.ACLNetwork.xml ├── com.deepin.daemon.Accounts.User.xml ├── com.deepin.daemon.Accounts.xml ├── com.deepin.daemon.AirplaneMode.xml ├── com.deepin.daemon.Appearance.xml ├── com.deepin.daemon.Audio.Meter.xml ├── com.deepin.daemon.Audio.Sink.xml ├── com.deepin.daemon.Audio.SinkInput.xml ├── com.deepin.daemon.Audio.Source.xml ├── com.deepin.daemon.Audio.xml ├── com.deepin.daemon.Authenticate.CharaManger.xml ├── com.deepin.daemon.Authenticate.Fingerprint.xml ├── com.deepin.daemon.Authenticate.Session2.xml ├── com.deepin.daemon.Authenticate.xml ├── com.deepin.daemon.Bluetooth.xml ├── com.deepin.daemon.Calendar.Scheduler.xml ├── com.deepin.daemon.Display.Monitor.xml ├── com.deepin.daemon.Display.xml ├── com.deepin.daemon.Fprintd.Device.xml ├── com.deepin.daemon.Fprintd.xml ├── com.deepin.daemon.Gesture.xml ├── com.deepin.daemon.Grub2.EditAuthentication.xml ├── com.deepin.daemon.Grub2.Theme.xml ├── com.deepin.daemon.Grub2.xml ├── com.deepin.daemon.ImageBlur.xml ├── com.deepin.daemon.ImageEffect.xml ├── com.deepin.daemon.InputDevice.Keyboard.xml ├── com.deepin.daemon.InputDevice.Mouse.xml ├── com.deepin.daemon.InputDevice.TouchPad.xml ├── com.deepin.daemon.InputDevice.TrackPoint.xml ├── com.deepin.daemon.InputDevice.Wacom.xml ├── com.deepin.daemon.InputDevices.xml ├── com.deepin.daemon.Keybinding.xml ├── com.deepin.daemon.LangSelector.xml ├── com.deepin.daemon.Logined.xml ├── com.deepin.daemon.Mime.Media.xml ├── com.deepin.daemon.Mime.xml ├── com.deepin.daemon.Miracast.xml ├── com.deepin.daemon.Network.ConnectionSession.xml ├── com.deepin.daemon.Network.ProxyChains.xml ├── com.deepin.daemon.Network.xml ├── com.deepin.daemon.Power.xml ├── com.deepin.daemon.PowerManager.xml ├── com.deepin.daemon.ResourceManager.xml ├── com.deepin.daemon.Search.xml ├── com.deepin.daemon.SoundEffect.xml ├── com.deepin.daemon.SystemInfo.xml ├── com.deepin.daemon.Timedate.xml ├── com.deepin.daemon.Timedated.xml ├── com.deepin.dde.Clipboard.xml ├── com.deepin.dde.ControlCenter.xml ├── com.deepin.dde.Launcher.xml ├── com.deepin.dde.Notification.xml ├── com.deepin.dde.daemon.Dock.Entry.xml ├── com.deepin.dde.daemon.Dock.xml ├── com.deepin.dde.daemon.Launcherd.xml ├── com.deepin.deepinid.xml ├── com.deepin.defender.MonitorNetFlow.xml ├── com.deepin.defender.analysisapp.xml ├── com.deepin.defender.antiav.xml ├── com.deepin.defender.autostart.xml ├── com.deepin.defender.daemonservice.xml ├── com.deepin.defender.datainterface.xml ├── com.deepin.defender.hmiscreen.xml ├── com.deepin.defender.netcontrol.xml ├── com.deepin.defender.risantiav.xml ├── com.deepin.defender.trafficdetails.xml ├── com.deepin.lastore.Job.xml ├── com.deepin.lastore.JobManager.xml ├── com.deepin.lastore.Smartmirror.xml ├── com.deepin.lastore.Updater.xml ├── com.deepin.sync.daemon.xml ├── com.deepin.system.SystemDisplay.xml ├── com.deepin.system.SystemPower.xml ├── com.deepin.system.userexperience.Daemon.xml ├── com.deepin.wm.xml ├── com.iflytek.aiservice.asr.xml ├── com.iflytek.aiservice.iat.xml ├── com.iflytek.aiservice.ocr.xml ├── com.iflytek.aiservice.session.xml ├── com.iflytek.aiservice.trans.xml ├── com.iflytek.aiservice.tts.xml ├── org.ayatana.bamf.matcher.xml ├── org.ayatana.bamf.window.xml ├── org.bluez.obex.AgentManager1.xml ├── org.bluez.obex.Client1.xml ├── org.bluez.obex.ObjectPush1.xml ├── org.bluez.obex.Session1.xml ├── org.bluez.obex.Transfer1.xml ├── org.freedesktop.DBus.xml ├── org.freedesktop.DisplayManager.Seat.xml ├── org.freedesktop.DisplayManager.Session.xml ├── org.freedesktop.DisplayManager.xml ├── org.freedesktop.FileManager1.xml ├── org.freedesktop.Hostname1.xml ├── org.freedesktop.Login1.xml ├── org.freedesktop.Notifications.xml ├── org.freedesktop.PolicyKit1.xml ├── org.freedesktop.login1.session.self.xml ├── org.kde.StatusNotifierItem.xml └── org.kde.kwin.Effects.xml /.clog.toml: -------------------------------------------------------------------------------- 1 | [clog] 2 | repository = "https://github.com/linuxdeepin/dde-qt-dbus-factory" 3 | from-latest-tag = true 4 | 5 | changelog = "CHANGELOG.md" 6 | -------------------------------------------------------------------------------- /.github/workflows/backup-to-gitlab.yml: -------------------------------------------------------------------------------- 1 | name: backup to gitlab 2 | on: [push] 3 | 4 | concurrency: 5 | group: ${{ github.workflow }} 6 | cancel-in-progress: true 7 | 8 | jobs: 9 | backup-to-gitlabwh: 10 | uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master 11 | secrets: inherit 12 | 13 | backup-to-gitee: 14 | uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master 15 | secrets: inherit 16 | -------------------------------------------------------------------------------- /.github/workflows/call-auto-tag.yml: -------------------------------------------------------------------------------- 1 | name: auto tag 2 | 3 | on: 4 | pull_request_target: 5 | types: [opened, synchronize, closed] 6 | paths: 7 | - "debian/changelog" 8 | 9 | concurrency: 10 | group: ${{ github.workflow }}-pull/${{ github.event.number }} 11 | cancel-in-progress: true 12 | 13 | jobs: 14 | auto_tag: 15 | uses: linuxdeepin/.github/.github/workflows/auto-tag.yml@master 16 | secrets: inherit 17 | -------------------------------------------------------------------------------- /.github/workflows/call-build-distribution.yml: -------------------------------------------------------------------------------- 1 | name: Call build-distribution 2 | on: 3 | push: 4 | paths-ignore: 5 | - ".github/workflows/**" 6 | pull_request_target: 7 | paths-ignore: 8 | - ".github/workflows/**" 9 | 10 | jobs: 11 | check_job: 12 | uses: linuxdeepin/.github/.github/workflows/build-distribution.yml@master 13 | secrets: inherit 14 | -------------------------------------------------------------------------------- /.github/workflows/call-chatOps.yml: -------------------------------------------------------------------------------- 1 | name: chatOps 2 | on: 3 | issue_comment: 4 | types: [created] 5 | 6 | jobs: 7 | chatopt: 8 | uses: linuxdeepin/.github/.github/workflows/chatOps.yml@master 9 | secrets: inherit 10 | -------------------------------------------------------------------------------- /.github/workflows/call-clacheck.yml: -------------------------------------------------------------------------------- 1 | name: Call CLA check 2 | on: 3 | issue_comment: 4 | types: [created] 5 | pull_request_target: 6 | types: [opened, closed, synchronize] 7 | 8 | concurrency: 9 | group: ${{ github.workflow }}-pull/${{ github.event.number }} 10 | cancel-in-progress: true 11 | 12 | jobs: 13 | clacheck: 14 | uses: linuxdeepin/.github/.github/workflows/cla-check.yml@master 15 | secrets: inherit 16 | -------------------------------------------------------------------------------- /.github/workflows/call-commitlint.yml: -------------------------------------------------------------------------------- 1 | name: Call commitlint 2 | on: 3 | pull_request_target: 4 | 5 | concurrency: 6 | group: ${{ github.workflow }}-pull/${{ github.event.number }} 7 | cancel-in-progress: true 8 | 9 | jobs: 10 | check_job: 11 | uses: linuxdeepin/.github/.github/workflows/commitlint.yml@master 12 | -------------------------------------------------------------------------------- /.github/workflows/call-license-check.yml: -------------------------------------------------------------------------------- 1 | name: Call License and README Check 2 | on: 3 | pull_request_target: 4 | types: [opened, synchronize, reopened] 5 | 6 | permissions: 7 | pull-requests: write 8 | contents: read 9 | 10 | concurrency: 11 | group: ${{ github.workflow }}-pull/${{ github.event.number }} 12 | cancel-in-progress: true 13 | 14 | jobs: 15 | license-check: 16 | uses: linuxdeepin/.github/.github/workflows/license-check.yml@master 17 | -------------------------------------------------------------------------------- /.github/workflows/cppcheck.yml: -------------------------------------------------------------------------------- 1 | name: cppcheck 2 | on: 3 | pull_request_target: 4 | paths-ignore: 5 | - ".github/workflows/**" 6 | 7 | concurrency: 8 | group: ${{ github.workflow }}-pull/${{ github.event.number }} 9 | cancel-in-progress: true 10 | 11 | jobs: 12 | cppchceck: 13 | name: cppcheck 14 | runs-on: ubuntu-latest 15 | steps: 16 | - run: export 17 | - uses: actions/checkout@v3 18 | with: 19 | ref: ${{ github.event.pull_request.head.sha }} 20 | persist-credentials: false 21 | - uses: linuxdeepin/action-cppcheck@main 22 | with: 23 | github_token: ${{ secrets.GITHUB_TOKEN }} 24 | repository: ${{ github.repository }} 25 | pull_request_id: ${{ github.event.pull_request.number }} 26 | allow_approve: false 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build*/ 2 | *.pro.user* 3 | .vscode/* 4 | */generated/ 5 | bin/ 6 | 7 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | include: 2 | - remote: 'https://gitlab.deepin.io/dev-tools/letmeci/raw/master/gitlab-ci/dde.yml' 3 | 4 | variables: 5 | CPPCHECK: "true" 6 | CODESPELL: "true" 7 | -------------------------------------------------------------------------------- /.obs/workflows.yml: -------------------------------------------------------------------------------- 1 | test_build: 2 | steps: 3 | - link_package: 4 | source_project: deepin:Develop:dde 5 | source_package: %{SCM_REPOSITORY_NAME} 6 | target_project: deepin:CI 7 | 8 | - configure_repositories: 9 | project: deepin:CI 10 | repositories: 11 | - name: deepin_develop 12 | paths: 13 | - target_project: deepin:CI 14 | target_repository: deepin_develop 15 | architectures: 16 | - x86_64 17 | - aarch64 18 | 19 | - name: debian 20 | paths: 21 | - target_project: deepin:CI 22 | target_repository: debian_sid 23 | architectures: 24 | - x86_64 25 | 26 | - name: archlinux 27 | paths: 28 | - target_project: deepin:CI 29 | target_repository: archlinux 30 | architectures: 31 | - x86_64 32 | 33 | filters: 34 | event: pull_request 35 | 36 | tag_build: 37 | steps: 38 | - branch_package: 39 | source_project: deepin:Develop:dde 40 | source_package: %{SCM_REPOSITORY_NAME} 41 | target_project: deepin:Unstable:dde 42 | filters: 43 | event: tag_push 44 | 45 | commit_build: 46 | steps: 47 | - trigger_services: 48 | project: deepin:Develop:dde 49 | package: %{SCM_REPOSITORY_NAME} 50 | filters: 51 | event: push 52 | -------------------------------------------------------------------------------- /.packit.yaml: -------------------------------------------------------------------------------- 1 | # See the documentation for more information: 2 | # https://packit.dev/docs/configuration/ 3 | 4 | specfile_path: rpm/deepin-qt-dbus-factory.spec 5 | 6 | # add or remove files that should be synced 7 | synced_files: 8 | - rpm/deepin-qt-dbus-factory.spec 9 | - .packit.yaml 10 | 11 | upstream_package_name: dde-qt-dbus-factory 12 | # downstream (Fedora) RPM package name 13 | downstream_package_name: deepin-qt-dbus-factory 14 | 15 | actions: 16 | fix-spec-file: | 17 | bash -c "sed -i -r \"0,/Version:/ s/Version:(\s*)\S*/Version:\1${PACKIT_PROJECT_VERSION}/\" rpm/deepin-qt-dbus-factory.spec" 18 | post-upstream-clone: | 19 | cp rpm/dde-qt-dbus-factory.spec rpm/deepin-qt-dbus-factory.spec 20 | 21 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | { 2 | "importantFile": ["xml/*.xml"] 3 | } 4 | -------------------------------------------------------------------------------- /.reuse/dep5: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: dde-qt-dbus-factory 3 | Upstream-Contact: UnionTech Software Technology Co., Ltd. <> 4 | Source: https://github.com/linuxdeepin/dde-qt-dbus-factory 5 | 6 | # gitignore 7 | Files: .gitignore 8 | Copyright: None 9 | License: CC0-1.0 10 | 11 | # ci 12 | Files: .github/* .gitlab-ci.yml .obs/* 13 | Copyright: None 14 | License: CC0-1.0 15 | 16 | # debian rpm archlinux 17 | Files: debian/* rpm/* archlinux/* 18 | Copyright: None 19 | License: CC0-1.0 20 | 21 | # README 22 | Files: README.md README.zh_CN.md tools/qdbusxml2cpp/README CHANGELOG.md technology-overview.md 23 | Copyright: UnionTech Software Technology Co., Ltd. 24 | License: CC-BY-4.0 25 | 26 | # Project file 27 | Files: *.pro *.pri *.in 28 | Copyright: None 29 | License: CC0-1.0 30 | 31 | # xml yaml toml 32 | Files: xml/* .packit.yaml .clog.toml 33 | Copyright: UnionTech Software Technology Co., Ltd. 34 | License: GPL-3.0-or-later 35 | 36 | # py 37 | Files: libdframeworkdbus/generate_code.py 38 | Copyright: UnionTech Software Technology Co., Ltd. 39 | License: GPL-3.0-or-later 40 | 41 | # qtdbusextended 42 | Files: libdframeworkdbus/qtdbusextended/* 43 | Copyright: Jolla Ltd. 44 | License: LGPL-2.1-or-later 45 | 46 | Files: toolGenerate/**/* 47 | Copyright: None 48 | License: CC0-1.0 49 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # dde-qt-dbus-factory 2 | 3 | `dde-qt-dbus-factory` is used to uniformly store the automatically generated `Qt DBus` code used by `dde`, so that `dde` developers do not have to create the same `DBus` code repeatedly in their own projects, or copy files from other projects into their own projects. 4 | 5 | ## Dependencies 6 | You can also check the "Depends" provided in the `debian/control` file. 7 | 8 | ### Build dependencies 9 | You can also check the "Build-Depends" provided in the `debian/control` file. 10 | 11 | ## Installation 12 | 13 | ### Build from source code 14 | 15 | 1. Make sure you have installed all dependencies. 16 | ```bash 17 | sudo apt build-dep dde-qt-dbus-factory 18 | ``` 19 | 20 | 2. Build 21 | ```bash 22 | mkdir build 23 | cd build 24 | cmake .. 25 | make 26 | ``` 27 | 28 | 3. Install 29 | ```bash 30 | sudo make install 31 | ``` 32 | ## Getting help 33 | 34 | Any usage issues can ask for help via 35 | 36 | * [Matrix](https://matrix.to/#/#deepin-community:matrix.org) 37 | * [WiKi](https://wiki.deepin.org) 38 | * [Forum](https://bbs.deepin.org) 39 | * [Developer Center](https://github.com/linuxdeepin/developer-center/issues) 40 | 41 | ## Getting involved 42 | 43 | We encourage you to report issues and contribute changes 44 | 45 | - [**Contribution guide for developers**](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers-en) 46 | 47 | ## License 48 | dde-qt-dbus-factory is licensed under [GPL-3.0-or-later](LICENSE). 49 | -------------------------------------------------------------------------------- /README.zh_CN.md: -------------------------------------------------------------------------------- 1 | # dde-qt-dbus-factory 2 | 3 | `dde-qt-dbus-factory` 是用来统一存放 `dde` 使用到的自动生成的 `Qt DBus` 代码的仓库,这样 `dde` 开发者就不用在自己的项目中重复创建同样的 `DBus` 代码,或者从其它项目中拷贝文件到自己的项目里面。 4 | 5 | 生成代码的时候请使用 `qdbusxml2cpp-fix` 这个工具而不是 `Qt` 官方提供的 `qdbusxml2cpp`,这个工具的源码包含在本项目的 `tools` 目录下,之后也会提供相关包直接安装。 6 | 7 | 具体生成的规则如下: 8 | 9 | - 生成代码用的 `xml` 文件要存放到项目的 `xml` 目录下,这样以后需要更新接口的时候,代码审核可以清晰看到接口的变动; 10 | - 文件名统一为相应 `DBus Interface` 的全小写并用 `_` 替换 `.`; 11 | - 类名统一为 `DBus Interface` 的最后一个单词,使用过程中使用命名空间引用(或者自己起别名)。 12 | 13 | 举个简单的例子: 14 | 15 | 比如我需要生成 `org.freedesktop.Notifications` 的 `DBus` 代码,那么先要生成 `org.freedesktop.Notifications.xml` 文件,把接口相应的描述信息写入丢到 `xml` 目录下,然后使用命令: 16 | ```bash 17 | qdbusxml2cpp -c Notifications -p org_freedesktop_notifications xml/org.freedesktop.Notifications.xml 18 | ``` 19 | 生成相应的代码即可。 20 | 21 | **注:** 生成过程中遇到的复杂类型需要自定义类型的,统一放在相应的生成文件内以自包容。 22 | 23 | ## 依赖 24 | 请查看“debian/control”文件中提供的“Depends”。 25 | 26 | ### 编译依赖 27 | 请查看“debian/control”文件中提供的“Build-Depends”。 28 | 29 | ### 构建过程 30 | 31 | ```bash 32 | mkdir build 33 | cd build 34 | cmake .. 35 | make 36 | ``` 37 | 38 | ## 帮助 39 | 任何使用问题都可以通过以下方式寻求帮助: 40 | 41 | * [Matrix](https://matrix.to/#/#deepin-community:matrix.org) 42 | * [WiKi](https://wiki.deepin.org) 43 | * [官方论坛](https://bbs.deepin.org) 44 | * [开发者中心](https://github.com/linuxdeepin/developer-center/issues) 45 | 46 | ## 贡献指南 47 | 48 | 我们鼓励您报告问题并做出更改 49 | 50 | - [开发者代码贡献指南](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers) 51 | 52 | ## 开源许可证 53 | dde-qt-dbus-factory 在 [GPL-3.0-or-later](LICENSE) 下发布。 54 | -------------------------------------------------------------------------------- /archlinux/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: justforlxz 2 | # Contributor: DingYuan Zhang 3 | pkgname=deepin-qt-dbus-factory-git 4 | pkgver=5.5.22.r4.g1092bfe 5 | pkgrel=1 6 | sourcename=dde-qt-dbus-factory 7 | sourcetars=("$sourcename"_"$pkgver".tar.xz) 8 | sourcedir="$sourcename" 9 | pkgdesc='A repository stores auto-generated Qt5 dbus code (libdframeworkdbus)' 10 | arch=('x86_64' 'aarch64') 11 | url="https://github.com/linuxdeepin/dde-qt-dbus-factory" 12 | license=('GPL3') 13 | depends=('qt5-base') 14 | makedepends=('git' 'dtkcore-git' 'python') 15 | conflicts=('deepin-qt-dbus-factory') 16 | provides=('deepin-qt-dbus-factory') 17 | groups=('deepin-git') 18 | source=("${sourcetars[@]}") 19 | sha512sums=('SKIP') 20 | 21 | prepare() { 22 | cd $sourcedir 23 | } 24 | 25 | build() { 26 | cd $sourcedir 27 | qmake-qt5 PREFIX=/usr 28 | make 29 | } 30 | 31 | package() { 32 | cd $sourcedir 33 | make INSTALL_ROOT="$pkgdir" install 34 | } 35 | -------------------------------------------------------------------------------- /dde-qt-dbus-factory.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += tools \ 3 | libdframeworkdbus 4 | 5 | libdframeworkdbus.depends = tools 6 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | dde-qt-dbus-factory (6.0.1) unstable; urgency=medium 2 | 3 | * release 6.0.1 4 | 5 | -- Yingzhen zhao Mon, 22 Jul 2024 21:12:10 +0800 6 | 7 | dde-qt-dbus-factory (6.0.0) unstable; urgency=medium 8 | 9 | * release 6.0.0 10 | 11 | -- Tue, 14 Jun 2022 17:02:13 +0800 12 | 13 | dde-qt-dbus-factory (0.4.2-2) unstable; urgency=medium 14 | 15 | * Refresh symbols using build's buildlog. 16 | 17 | -- Boyuan Yang <073plan@gmail.com> Wed, 29 Nov 2017 02:16:16 +0800 18 | 19 | dde-qt-dbus-factory (0.4.2-1) unstable; urgency=medium 20 | 21 | * New upstream release. 22 | * Refresh symbols to fix FTBFS on arm64. 23 | 24 | -- Boyuan Yang <073plan@gmail.com> Wed, 29 Nov 2017 00:24:28 +0800 25 | 26 | dde-qt-dbus-factory (0.3.2-1) unstable; urgency=medium 27 | 28 | * Initial release. Closes: #880444 29 | 30 | -- Boyuan Yang <073plan@gmail.com> Tue, 31 Oct 2017 23:48:37 +0800 31 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: dde-qt-dbus-factory 2 | Section: devel 3 | Priority: optional 4 | Maintainer: Deepin Packages Builder 5 | Build-Depends: 6 | debhelper (>= 9), 7 | pkg-config, 8 | python3:any, 9 | qtbase5-dev, 10 | pkg-kde-tools, 11 | qtbase5-private-dev, 12 | libdtkcore-dev, 13 | libdtkcore5-bin 14 | Standards-Version: 4.1.1 15 | Homepage: https://github.com/linuxdeepin/dde-qt-dbus-factory 16 | 17 | Package: libdframeworkdbus2 18 | Architecture: any 19 | Section: libs 20 | Depends: 21 | ${misc:Depends}, 22 | ${shlibs:Depends}, 23 | Multi-Arch: same 24 | Description: Qt DBus interface library for Deepin software (shared library) 25 | Libdframeworkdbus provides Qt DBus interface for various Deepin software. 26 | It centralizes DBus-related code into single library for Deepin software 27 | written in Qt and get itself generated from handwritten XML DBus interface 28 | descriptions. 29 | . 30 | This package is part of DDE (Deepin Desktop Environment). 31 | 32 | Package: libdframeworkdbus-dev 33 | Architecture: any 34 | Section: libdevel 35 | Depends: 36 | libdframeworkdbus2( =${binary:Version}), 37 | ${misc:Depends}, 38 | Conflicts: libdframeworkdbus 39 | Description: Qt DBus interface library for Deepin software (development files) 40 | Libdframeworkdbus provides Qt DBus interface for various Deepin software. 41 | It centralizes DBus-related code into single library for Deepin software 42 | written in Qt and get itself generated from handwritten XML DBus interface 43 | descriptions. 44 | . 45 | This package is part of DDE (Deepin Desktop Environment). 46 | . 47 | This package provides development header files for libdframeworkdbus. 48 | -------------------------------------------------------------------------------- /debian/libdframeworkdbus-dev.install: -------------------------------------------------------------------------------- 1 | /usr/include 2 | usr/lib/*/libdframeworkdbus.so 3 | usr/lib/*/pkgconfig/dframeworkdbus.pc 4 | usr/lib/*/cmake/DFrameworkdbus/DFrameworkdbusConfig.cmake 5 | -------------------------------------------------------------------------------- /debian/libdframeworkdbus2.install: -------------------------------------------------------------------------------- 1 | /usr/lib/*/libdframeworkdbus.so.* 2 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | # Uncomment this to turn on verbose mode. 4 | # export DH_VERBOSE=1 5 | 6 | # see FEATURE AREAS in dpkg-buildflags(1) 7 | 8 | include /usr/share/dpkg/default.mk 9 | 10 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all 11 | export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 12 | export QT_SELECT = qt5 13 | 14 | DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) 15 | 16 | VERSION = $(DEB_VERSION_UPSTREAM) 17 | _PACK_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$1}') 18 | _BUILD_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$2}' | sed 's/[^0-9]//g') 19 | 20 | ifeq ($(_BUILD_VER),) 21 | CONFIG_VERSION = $(_PACK_VER) 22 | else 23 | CONFIG_VERSION = $(_PACK_VER).$(_BUILD_VER) 24 | endif 25 | 26 | %: 27 | dh $@ --with pkgkde_symbolshelper --parallel 28 | 29 | override_dh_auto_configure: 30 | dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) VERSION=$(CONFIG_VERSION) 31 | 32 | override_dh_missing: 33 | dh_missing --fail-missing 34 | 35 | override_dh_installchangelogs: 36 | dh_installchangelogs -k CHANGELOG.md 37 | 38 | override_dh_makeshlibs: 39 | dh_makeshlibs -V "libdframeworkdbus2 (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2,3))" 40 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /libdframeworkdbus/DFrameworkdbusConfig.in: -------------------------------------------------------------------------------- 1 | set(DFrameworkdbus_INCLUDE_DIR "/usr/include/libdframeworkdbus-$$VERSION") 2 | set(DFrameworkdbus_LIBRARIES dframeworkdbus) 3 | include_directories("${DFrameworkdbus_INCLUDE_DIR}") 4 | -------------------------------------------------------------------------------- /libdframeworkdbus/qtdbusextended/DBusExtended: -------------------------------------------------------------------------------- 1 | #include "dbusextended.h" 2 | -------------------------------------------------------------------------------- /libdframeworkdbus/qtdbusextended/DBusExtendedAbstractInterface: -------------------------------------------------------------------------------- 1 | #include "dbusextendedabstractinterface.h" 2 | -------------------------------------------------------------------------------- /libdframeworkdbus/qtdbusextended/dbusextended.h: -------------------------------------------------------------------------------- 1 | // -*- c++ -*- 2 | 3 | /*! 4 | * 5 | * Copyright (C) 2015 Jolla Ltd. 6 | * 7 | * Contact: Valerio Valerio 8 | * Author: Andres Gomez 9 | * 10 | * This library is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU Lesser General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2.1 of the License, or (at your option) any later version. 14 | * 15 | * This library is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * Lesser General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU Lesser General Public 21 | * License along with this library; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | 25 | 26 | #ifndef QT_DBUS_EXTENDED_H 27 | #define QT_DBUS_EXTENDED_H 28 | 29 | #if defined(QT_DBUS_EXTENDED_LIBRARY) 30 | # define QT_DBUS_EXTENDED_EXPORT Q_DECL_EXPORT 31 | #else 32 | # define QT_DBUS_EXTENDED_EXPORT Q_DECL_IMPORT 33 | #endif 34 | 35 | #endif /* QT_DBUS_EXTENDED_H */ 36 | -------------------------------------------------------------------------------- /libdframeworkdbus/qtdbusextended/dbusextendedpendingcallwatcher.cpp: -------------------------------------------------------------------------------- 1 | // -*- c++ -*- 2 | 3 | /*! 4 | * 5 | * Copyright (C) 2015 Jolla Ltd. 6 | * 7 | * Contact: Valerio Valerio 8 | * Author: Andres Gomez 9 | * 10 | * This library is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU Lesser General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2.1 of the License, or (at your option) any later version. 14 | * 15 | * This library is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * Lesser General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU Lesser General Public 21 | * License along with this library; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | 25 | 26 | #include "dbusextendedpendingcallwatcher_p.h" 27 | 28 | 29 | DBusExtendedPendingCallWatcher::DBusExtendedPendingCallWatcher(const QDBusPendingCall &call, const QString &asyncProperty, const QVariant &previousValue, QObject *parent) 30 | : QDBusPendingCallWatcher(call, parent) 31 | , m_asyncProperty(asyncProperty) 32 | , m_previousValue(previousValue) 33 | { 34 | } 35 | 36 | DBusExtendedPendingCallWatcher::~DBusExtendedPendingCallWatcher() 37 | { 38 | } 39 | -------------------------------------------------------------------------------- /libdframeworkdbus/qtdbusextended/qtdbusextended.pri: -------------------------------------------------------------------------------- 1 | 2 | QT += dbus 3 | 4 | HEADERS += \ 5 | $$PWD/DBusExtended \ 6 | $$PWD/dbusextended.h \ 7 | $$PWD/DBusExtendedAbstractInterface \ 8 | $$PWD/dbusextendedabstractinterface.h \ 9 | $$PWD/dbusextendedpendingcallwatcher_p.h 10 | 11 | SOURCES += \ 12 | $$PWD/dbusextendedabstractinterface.cpp \ 13 | $$PWD/dbusextendedpendingcallwatcher.cpp 14 | 15 | INCLUDEPATH += $$PWD 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/appscgroupinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "appscgroupinfolist.h" 6 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/appscgroupinfolist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "appscgroupinfolist.h" 6 | 7 | void registerAppsCGroupInfoMetaType() 8 | { 9 | qRegisterMetaType("AppsCGroupInfo"); 10 | qDBusRegisterMetaType(); 11 | } 12 | 13 | void registerAppsCGroupInfoListMetaType() 14 | { 15 | registerAppsCGroupInfoMetaType(); 16 | 17 | qRegisterMetaType("AppsCGroupInfoList"); 18 | qDBusRegisterMetaType(); 19 | } 20 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/appscgroupinfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef APPSCGROUPINFOLIST_H 6 | #define APPSCGROUPINFOLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | typedef QMap AppsCGroupInfo; 13 | Q_DECLARE_METATYPE(AppsCGroupInfo) 14 | typedef QList AppsCGroupInfoList; 15 | Q_DECLARE_METATYPE(AppsCGroupInfoList) 16 | 17 | void registerAppsCGroupInfoMetaType(); 18 | void registerAppsCGroupInfoListMetaType(); 19 | 20 | #endif // APPSCGROUPINFOLIST_H 21 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/appupdateinfolist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "appupdateinfolist.h" 6 | 7 | AppUpdateInfo::AppUpdateInfo() 8 | { 9 | 10 | } 11 | 12 | const QDBusArgument &operator>>(const QDBusArgument &argument, AppUpdateInfo &info) 13 | { 14 | argument.beginStructure(); 15 | argument >> info.m_packageId; 16 | argument >> info.m_name; 17 | argument >> info.m_icon; 18 | argument >> info.m_currentVersion; 19 | argument >> info.m_avilableVersion; 20 | argument.endStructure(); 21 | 22 | return argument; 23 | } 24 | 25 | QDBusArgument &operator<<(QDBusArgument &argument, const AppUpdateInfo &info) 26 | { 27 | argument.beginStructure(); 28 | argument << info.m_packageId; 29 | argument << info.m_name; 30 | argument << info.m_icon; 31 | argument << info.m_currentVersion; 32 | argument << info.m_avilableVersion; 33 | argument.endStructure(); 34 | 35 | return argument; 36 | } 37 | 38 | QDebug operator<<(QDebug argument, const AppUpdateInfo &info) 39 | { 40 | argument << "packageId: " << info.m_packageId; 41 | argument << "name: " << info.m_name; 42 | argument << "icon: " << info.m_icon; 43 | argument << "currentVer: " << info.m_currentVersion; 44 | argument << "avilableVer: " << info.m_avilableVersion; 45 | 46 | return argument; 47 | } 48 | 49 | void registerAppUpdateInfoListMetaType() 50 | { 51 | qRegisterMetaType(); 52 | qDBusRegisterMetaType(); 53 | qRegisterMetaType(); 54 | qDBusRegisterMetaType(); 55 | } 56 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/appupdateinfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef APPUPDATEINFO_H 6 | #define APPUPDATEINFO_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | class AppUpdateInfo 14 | { 15 | public: 16 | AppUpdateInfo(); 17 | 18 | friend QDebug operator<<(QDebug argument, const AppUpdateInfo &info); 19 | friend QDBusArgument &operator<<(QDBusArgument &argument, const AppUpdateInfo &info); 20 | friend const QDBusArgument &operator>>(const QDBusArgument &argument, AppUpdateInfo &info); 21 | 22 | public: 23 | QString m_packageId; 24 | QString m_name; 25 | QString m_icon; 26 | QString m_currentVersion; 27 | QString m_avilableVersion; 28 | QString m_changelog; 29 | }; 30 | 31 | typedef QList AppUpdateInfoList; 32 | Q_DECLARE_METATYPE(AppUpdateInfo) 33 | Q_DECLARE_METATYPE(AppUpdateInfoList) 34 | 35 | void registerAppUpdateInfoListMetaType(); 36 | 37 | #endif // APPUPDATEINFO_H 38 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/arealist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "arealist.h" 6 | 7 | bool MonitRect::operator ==(const MonitRect &rect) 8 | { 9 | return x1 == rect.x1 && y1 == rect.y1 && x2 == rect.x2 && y2 == rect.y2; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &arg, const MonitRect &rect) 13 | { 14 | arg.beginStructure(); 15 | arg << rect.x1 << rect.y1 << rect.x2 << rect.y2; 16 | arg.endStructure(); 17 | 18 | return arg; 19 | } 20 | 21 | const QDBusArgument &operator>>(const QDBusArgument &arg, MonitRect &rect) 22 | { 23 | arg.beginStructure(); 24 | arg >> rect.x1 >> rect.y1 >> rect.x2 >> rect.y2; 25 | arg.endStructure(); 26 | 27 | return arg; 28 | } 29 | 30 | void registerAreaListMetaType() 31 | { 32 | qRegisterMetaType("MonitRect"); 33 | qDBusRegisterMetaType(); 34 | 35 | qRegisterMetaType("AreaList"); 36 | qDBusRegisterMetaType(); 37 | } 38 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/arealist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef AREALIST_H 6 | #define AREALIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | struct MonitRect { 13 | int x1; 14 | int y1; 15 | int x2; 16 | int y2; 17 | 18 | bool operator ==(const MonitRect& rect); 19 | }; 20 | 21 | typedef QList AreaList; 22 | 23 | Q_DECLARE_METATYPE(MonitRect) 24 | Q_DECLARE_METATYPE(AreaList) 25 | 26 | QDBusArgument &operator<<(QDBusArgument &arg, const MonitRect &rect); 27 | const QDBusArgument &operator>>(const QDBusArgument &arg, MonitRect &rect); 28 | 29 | void registerAreaListMetaType(); 30 | 31 | #endif // AREALIST_H 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/arrayint.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2021 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "arrayint.h" 6 | 7 | void registerArrayIntMetaType() 8 | { 9 | qRegisterMetaType("ArrayInt"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/arrayint.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2021 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef ARRAYINT_H 6 | #define ARRAYINT_H 7 | 8 | #include 9 | 10 | using ArrayInt = QList; 11 | Q_DECLARE_METATYPE(ArrayInt); 12 | 13 | void registerArrayIntMetaType(); 14 | 15 | #endif // ARRAYINT_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/audioport.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include 6 | 7 | #include "audioport.h" 8 | 9 | void registerAudioPortMetaType() 10 | { 11 | qRegisterMetaType("AudioPort"); 12 | qDBusRegisterMetaType(); 13 | } 14 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/audioport.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef AUDIOPORT_H 6 | #define AUDIOPORT_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | class AudioPort 14 | { 15 | public: 16 | QString name; 17 | QString description; 18 | uchar availability; // 0 for Unknown, 1 for Not Available, 2 for Available. 19 | 20 | friend QDebug operator<<(QDebug argument, const AudioPort &port) { 21 | argument << port.description; 22 | 23 | return argument; 24 | } 25 | 26 | friend QDBusArgument &operator<<(QDBusArgument &argument, const AudioPort &port) { 27 | argument.beginStructure(); 28 | argument << port.name << port.description << port.availability; 29 | argument.endStructure(); 30 | 31 | return argument; 32 | } 33 | 34 | friend const QDBusArgument &operator>>(const QDBusArgument &argument, AudioPort &port) { 35 | argument.beginStructure(); 36 | argument >> port.name >> port.description >> port.availability; 37 | argument.endStructure(); 38 | 39 | return argument; 40 | } 41 | 42 | bool operator==(const AudioPort what) const { 43 | return what.name == name && what.description == description && what.availability == availability; 44 | } 45 | 46 | bool operator!=(const AudioPort what) const { 47 | return what.name != name || what.description != description || what.availability != availability; 48 | } 49 | }; 50 | 51 | Q_DECLARE_METATYPE(AudioPort) 52 | 53 | void registerAudioPortMetaType(); 54 | 55 | #endif // AUDIOPORT_H 56 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/audioportlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "audioportlist.h" 6 | 7 | void registerAudioPortListMetaType() 8 | { 9 | qRegisterMetaType("AudioPortList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/audioportlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef AUDIOPORTLIST_H 6 | #define AUDIOPORTLIST_H 7 | 8 | #include 9 | #include 10 | 11 | #include "audioport.h" 12 | 13 | typedef QList AudioPortList; 14 | 15 | Q_DECLARE_METATYPE(AudioPortList) 16 | 17 | void registerAudioPortListMetaType(); 18 | 19 | #endif // AUDIOPORTLIST_H 20 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/batterypercentageinfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "batterypercentageinfo.h" 6 | 7 | void registerBatteryPercentageInfoMetaType() 8 | { 9 | qRegisterMetaType("BatteryPercentageInfo"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/batterypercentageinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef BATTERYPERCENTAGEINFO_H 6 | #define BATTERYPERCENTAGEINFO_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap BatteryPercentageInfo; 12 | 13 | void registerBatteryPercentageInfoMetaType(); 14 | 15 | #endif // BATTERYPERCENTAGEINFO_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/batterypresentinfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "batterypresentinfo.h" 6 | 7 | void registerBatteryPresentInfoMetaType() 8 | { 9 | qRegisterMetaType("BatteryPresentInfo"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/batterypresentinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef BATTERYPRESENTINFO_H 6 | #define BATTERYPRESENTINFO_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap BatteryPresentInfo; 12 | 13 | void registerBatteryPresentInfoMetaType(); 14 | 15 | #endif // BATTERYPRESENTINFO_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/batterystateinfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "batterystateinfo.h" 6 | 7 | void registerBatteryStateInfoMetaType() 8 | { 9 | qRegisterMetaType("BatteryStateInfo"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/batterystateinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef BATTERYSTATEINFO_H 6 | #define BATTERYSTATEINFO_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap BatteryStateInfo; 12 | 13 | void registerBatteryStateInfoMetaType(); 14 | 15 | #endif // BATTERYSTATEINFO_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/brightnessmap.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "brightnessmap.h" 6 | 7 | void registerBrightnessMapMetaType() 8 | { 9 | qRegisterMetaType("BrightnessMap"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/brightnessmap.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef BRIGHTNESSMAP_H 6 | #define BRIGHTNESSMAP_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap BrightnessMap; 12 | 13 | void registerBrightnessMapMetaType(); 14 | 15 | #endif // BRIGHTNESSMAP_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/chrometablist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "chrometablist.h" 6 | 7 | QDBusArgument &operator<<(QDBusArgument &arg, const ChromeTabInfo &info) 8 | { 9 | arg.beginStructure(); 10 | arg << info.id << info.title << info.memory; 11 | arg.endStructure(); 12 | 13 | return arg; 14 | } 15 | 16 | const QDBusArgument &operator>>(const QDBusArgument &arg, ChromeTabInfo &info) 17 | { 18 | arg.beginStructure(); 19 | arg >> info.id >> info.title >> info.memory; 20 | arg.endStructure(); 21 | 22 | return arg; 23 | } 24 | 25 | bool ChromeTabInfo::operator ==(const ChromeTabInfo &info) 26 | { 27 | return id == info.id; 28 | } 29 | 30 | void registerChromeTabListMetaType() 31 | { 32 | qRegisterMetaType("ChromeTabInfo"); 33 | qDBusRegisterMetaType(); 34 | 35 | qRegisterMetaType("ChromeTabList"); 36 | qDBusRegisterMetaType(); 37 | } 38 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/chrometablist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef CHROMETABS_H 6 | #define CHROMETABS_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | struct ChromeTabInfo { 16 | qint32 id; 17 | quint64 memory; 18 | QString title; 19 | 20 | bool operator ==(const ChromeTabInfo& info); 21 | }; 22 | 23 | typedef QList ChromeTabList; 24 | 25 | Q_DECLARE_METATYPE(ChromeTabInfo) 26 | Q_DECLARE_METATYPE(ChromeTabList) 27 | 28 | QDBusArgument &operator<<(QDBusArgument &arg, const ChromeTabInfo &info); 29 | const QDBusArgument &operator>>(const QDBusArgument &arg, ChromeTabInfo &info); 30 | 31 | void registerChromeTabListMetaType(); 32 | 33 | #endif // CHROMETABS_H 34 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/controlcenterrect.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "controlcenterrect.h" 6 | 7 | #include 8 | 9 | void registerControlCenterRectMetaType() 10 | { 11 | qRegisterMetaType("ControlCenterRect"); 12 | qDBusRegisterMetaType(); 13 | } 14 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/controlcenterrect.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef CONTROLCENTERRECT_H 6 | #define CONTROLCENTERRECT_H 7 | 8 | #include 9 | 10 | typedef QRect ControlCenterRect; 11 | 12 | void registerControlCenterRectMetaType(); 13 | 14 | #endif // CONTROLCENTERRECT_H 15 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dbusimagelist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "dbusimagelist.h" 6 | 7 | QDBusArgument &operator<<(QDBusArgument &argument, const DBusImage &image) 8 | { 9 | argument.beginStructure(); 10 | argument << image.width << image.height << image.pixels; 11 | argument.endStructure(); 12 | return argument; 13 | } 14 | 15 | const QDBusArgument &operator>>(const QDBusArgument &argument, DBusImage &image) 16 | { 17 | argument.beginStructure(); 18 | argument >> image.width >> image.height >> image.pixels; 19 | argument.endStructure(); 20 | return argument; 21 | } 22 | 23 | void registerDBusImageListMetaType() 24 | { 25 | qRegisterMetaType("DBusImage"); 26 | qDBusRegisterMetaType(); 27 | 28 | qRegisterMetaType("DBusImageList"); 29 | qDBusRegisterMetaType(); 30 | } 31 | 32 | bool operator ==(const DBusImage &a, const DBusImage &b) 33 | { 34 | return a.width == b.width 35 | && a.height == b.height 36 | && a.pixels == b.pixels; 37 | } 38 | 39 | bool operator !=(const DBusImage &a, const DBusImage &b) 40 | { 41 | return !(a == b); 42 | } 43 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dbusimagelist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DBUSIMAGELIST_H 6 | #define DBUSIMAGELIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | struct DBusImage 13 | { 14 | int width; 15 | int height; 16 | QByteArray pixels; 17 | }; 18 | Q_DECLARE_METATYPE(DBusImage) 19 | 20 | typedef QList DBusImageList; 21 | Q_DECLARE_METATYPE(DBusImageList) 22 | 23 | QDBusArgument &operator<<(QDBusArgument&, const DBusImage&); 24 | const QDBusArgument &operator>>(const QDBusArgument&, DBusImage&); 25 | 26 | bool operator ==(const DBusImage&, const DBusImage&); 27 | bool operator !=(const DBusImage&, const DBusImage&); 28 | 29 | void registerDBusImageListMetaType(); 30 | 31 | #endif // DBUSIMAGELIST_H 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dbusobjectpathlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "dbusobjectpathlist.h" 6 | 7 | void registerDBusObjectPathListMetaType() 8 | { 9 | qRegisterMetaType("DBusObjectPathList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dbusobjectpathlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DBUSOBJECTPATHLIST_H 6 | #define DBUSOBJECTPATHLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | typedef QList DBusObjectPathList; 13 | 14 | void registerDBusObjectPathListMetaType(); 15 | 16 | #endif // DBUSOBJECTPATHLIST_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dbustooltip.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "dbustooltip.h" 6 | 7 | QDBusArgument &operator<<(QDBusArgument &argument, const DBusToolTip &tip) 8 | { 9 | argument.beginStructure(); 10 | argument << tip.iconName << tip.iconPixmap << tip.title << tip.description; 11 | argument.endStructure(); 12 | return argument; 13 | } 14 | 15 | const QDBusArgument &operator>>(const QDBusArgument &argument, DBusToolTip &tip) 16 | { 17 | argument.beginStructure(); 18 | argument >> tip.iconName >> tip.iconPixmap >> tip.title >> tip.description; 19 | argument.endStructure(); 20 | return argument; 21 | } 22 | 23 | bool operator ==(const DBusToolTip &a, const DBusToolTip &b) 24 | { 25 | return a.iconName == b.iconName 26 | && a.iconPixmap == b.iconPixmap 27 | && a.title == b.title 28 | && a.description == b.description; 29 | } 30 | 31 | bool operator !=(const DBusToolTip &a, const DBusToolTip &b) 32 | { 33 | return !(a == b); 34 | } 35 | 36 | void registerDBusToolTipMetaType() 37 | { 38 | qRegisterMetaType("DBusToolTip"); 39 | qDBusRegisterMetaType(); 40 | } 41 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dbustooltip.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DBUSTOOLTIP_H 6 | #define DBUSTOOLTIP_H 7 | 8 | #include "dbusimagelist.h" 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | struct DBusToolTip 15 | { 16 | QString iconName; 17 | DBusImageList iconPixmap; 18 | QString title; 19 | QString description; 20 | }; 21 | Q_DECLARE_METATYPE(DBusToolTip) 22 | 23 | QDBusArgument &operator<<(QDBusArgument&, const DBusToolTip&); 24 | const QDBusArgument &operator>>(const QDBusArgument&, DBusToolTip&); 25 | 26 | bool operator ==(const DBusToolTip&, const DBusToolTip&); 27 | bool operator !=(const DBusToolTip&, const DBusToolTip&); 28 | 29 | void registerDBusToolTipMetaType(); 30 | 31 | #endif // DBUSTOOLTIP_H 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderappflow.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderappflow.h" 6 | 7 | //DefenderAppFlowList注册 8 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderAppFlow &appFlow) 9 | { 10 | argument.beginStructure(); 11 | argument << appFlow.id << appFlow.name << appFlow.sname << appFlow.timeymdh << appFlow.downloaded 12 | << appFlow.uploaded << appFlow.apptotal; 13 | argument.endStructure(); 14 | return argument; 15 | } 16 | 17 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderAppFlow &appFlow) 18 | { 19 | argument.beginStructure(); 20 | argument >> appFlow.id >>appFlow.name >> appFlow.sname >> appFlow.timeymdh >> appFlow.downloaded 21 | >> appFlow.uploaded >> appFlow.apptotal; 22 | argument.endStructure(); 23 | return argument; 24 | } 25 | 26 | void registerDefenderAppFlowMetaType() 27 | { 28 | qRegisterMetaType("DefenderAppFlow"); 29 | qDBusRegisterMetaType(); 30 | qRegisterMetaType("DefenderAppFlowList"); 31 | qDBusRegisterMetaType(); 32 | } 33 | 34 | bool DefenderAppFlow::operator!=(const DefenderAppFlow &appFlow) 35 | { 36 | return appFlow.id != this->id; 37 | } 38 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderappflow.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERAPPFLOW_H 6 | #define DEFENDERAPPFLOW_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | struct DefenderAppFlow { 14 | int id = 0; 15 | QString name; 16 | QString sname; 17 | QString timeymdh; 18 | double downloaded = 0; 19 | double uploaded = 0; 20 | double apptotal = 0;//单个APP总流量 21 | 22 | bool operator!=(const DefenderAppFlow &appFlow); 23 | }; 24 | 25 | Q_DECLARE_METATYPE(DefenderAppFlow); 26 | //DefenderAppFlowList注册 27 | typedef QList DefenderAppFlowList; 28 | Q_DECLARE_METATYPE(DefenderAppFlowList); 29 | 30 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderAppFlow &appFlow); 31 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderAppFlow &appFlow); 32 | 33 | void registerDefenderAppFlowMetaType(); 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderdisplay.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERDISPLAY_H 6 | #define DEFENDERDISPLAY_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | struct DefenderDisplay { 14 | QString name; 15 | QString icon; 16 | QString path; 17 | QString download; 18 | QString update; 19 | QString total; 20 | QString pidname;//desktop 21 | double totalupdate; 22 | double totaldownload; 23 | double totalflow; 24 | int pid; 25 | bool status; 26 | bool operator!=(const DefenderDisplay &display); 27 | }; 28 | Q_DECLARE_METATYPE(DefenderDisplay); 29 | 30 | typedef QList DefenderDisplayList; 31 | Q_DECLARE_METATYPE(DefenderDisplayList); 32 | 33 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderDisplay &defenderdisplay); 34 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderDisplay &defenderdisplay); 35 | 36 | void registerDefenderDisplayMetaType(); 37 | #endif 38 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderdissection.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderdissection.h" 6 | 7 | bool DefenderDissection::operator!=(const DefenderDissection &dissectionInfo) 8 | { 9 | return dissectionInfo.taskId != taskId || dissectionInfo.progress != progress || dissectionInfo.fileInfo.type != fileInfo.type || dissectionInfo.fileInfo.description != fileInfo.description; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderDissection &dissectionInfo) 13 | { 14 | argument.beginStructure(); 15 | argument << dissectionInfo.taskId << dissectionInfo.progress << dissectionInfo.fileInfo.type << dissectionInfo.fileInfo.description; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderDissection &dissectionInfo) 21 | { 22 | argument.beginStructure(); 23 | argument >> dissectionInfo.taskId >> dissectionInfo.progress >> dissectionInfo.fileInfo.type >> dissectionInfo.fileInfo.description; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerDefenderDissectionMetaType() 29 | { 30 | qRegisterMetaType("DefenderDissection"); 31 | qDBusRegisterMetaType(); 32 | } 33 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderdissection.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERDISSECTION_H 6 | #define DEFENDERDISSECTION_H 7 | 8 | #include "defenderfileinfo.h" 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | struct DefenderDissection 15 | { 16 | int taskId; 17 | double progress; 18 | DefenderFileInfo fileInfo; 19 | 20 | bool operator!=(const DefenderDissection &dissectionInfo); 21 | }; 22 | 23 | Q_DECLARE_METATYPE(DefenderDissection) 24 | 25 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderDissection &dissectionInfo); 26 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderDissection &dissectionInfo); 27 | 28 | void registerDefenderDissectionMetaType(); 29 | 30 | #endif // DEFENDERDISSECTION_H 31 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderfileinfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderfileinfo.h" 6 | 7 | bool DefenderFileInfo::operator!=(const DefenderFileInfo &versionInfo) 8 | { 9 | return versionInfo.type != type || versionInfo.description != description; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderFileInfo &versionInfo) 13 | { 14 | argument.beginStructure(); 15 | argument << versionInfo.type << versionInfo.description; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderFileInfo &versionInfo) 21 | { 22 | argument.beginStructure(); 23 | argument >> versionInfo.type >> versionInfo.description; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerDefenderFileInfoMetaType() 29 | { 30 | qRegisterMetaType("DefenderFileInfo"); 31 | qDBusRegisterMetaType(); 32 | } 33 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderfileinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERFILEINFO_H 6 | #define DEFENDERFILEINFO_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | struct DefenderFileInfo 13 | { 14 | int type; 15 | QString description; 16 | 17 | bool operator!=(const DefenderFileInfo &versionInfo); 18 | }; 19 | 20 | Q_DECLARE_METATYPE(DefenderFileInfo) 21 | 22 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderFileInfo &versionInfo); 23 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderFileInfo &versionInfo); 24 | 25 | void registerDefenderFileInfoMetaType(); 26 | 27 | #endif // DEFENDERFILEINFO_H 28 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderprocessinfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderprocessinfo.h" 6 | 7 | bool DefenderProcessInfo::operator!=(const DefenderProcessInfo &procInfo) 8 | { 9 | return procInfo.proc != proc || procInfo.title != title || procInfo.desktop != desktop; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderProcessInfo &procInfo) 13 | { 14 | argument.beginStructure(); 15 | argument << procInfo.proc << procInfo.title << procInfo.desktop; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderProcessInfo &procInfo) 21 | { 22 | argument.beginStructure(); 23 | argument >> procInfo.proc >> procInfo.title >> procInfo.desktop; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerDefenderProcessInfoMetaType() 29 | { 30 | qRegisterMetaType("DefenderProcessInfoList"); 31 | qDBusRegisterMetaType(); 32 | 33 | qRegisterMetaType("DefenderProcessInfo"); 34 | qDBusRegisterMetaType(); 35 | } 36 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderprocessinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERPROCESSINFO_H 6 | #define DEFENDERPROCESSINFO_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | struct DefenderProcessInfo 15 | { 16 | int proc; 17 | QString title; 18 | QString desktop; 19 | 20 | bool operator!=(const DefenderProcessInfo &procInfo); 21 | }; 22 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderProcessInfo &procInfo); 23 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderProcessInfo &procInfo); 24 | 25 | typedef QList DefenderProcessInfoList; 26 | Q_DECLARE_METATYPE(DefenderProcessInfo) 27 | Q_DECLARE_METATYPE(DefenderProcessInfoList) 28 | 29 | void registerDefenderProcessInfoMetaType(); 30 | 31 | #endif // DEFENDERPROCESSINFO_H 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderprocesslist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderprocesslist.h" 6 | 7 | void registerDefenderProcessListMetaType() 8 | { 9 | qRegisterMetaType("DefenderProcessList"); 10 | qDBusRegisterMetaType(); 11 | 12 | qRegisterMetaType>("QList"); 13 | qDBusRegisterMetaType>(); 14 | } 15 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderprocesslist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERPROCESSLIST_H 6 | #define DEFENDERPROCESSLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | //save all process's pid 15 | typedef QList DefenderProcessList; 16 | Q_DECLARE_METATYPE(DefenderProcessList); 17 | 18 | void registerDefenderProcessListMetaType(); 19 | 20 | #endif // DEFENDERPROCESSLIST_H 21 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderprocinfolist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderprocinfolist.h" 6 | 7 | void registerDefenderProcInfoListMetaType() 8 | { 9 | qRegisterMetaType("DefenderProcInfoList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderprocinfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERPROCINFOLIST_H 6 | #define DEFENDERPROCINFOLIST_H 7 | 8 | #include "defenderprocinfo.h" 9 | 10 | typedef QList DefenderProcInfoList; 11 | Q_DECLARE_METATYPE(DefenderProcInfoList); 12 | 13 | void registerDefenderProcInfoListMetaType(); 14 | #endif 15 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderupdatestate.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderupdatestate.h" 6 | 7 | bool DefenderUpdateState::operator!=(const DefenderUpdateState &updateState) 8 | { 9 | return updateState.info.time != info.time || updateState.info.version != info.version || updateState.info.description != info.description || updateState.progress != progress; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderUpdateState &updateState) 13 | { 14 | argument.beginStructure(); 15 | argument << updateState.progress << updateState.info.version << updateState.info.description << updateState.info.time; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderUpdateState &updateState) 21 | { 22 | argument.beginStructure(); 23 | argument >> updateState.progress >> updateState.info.version >> updateState.info.description >> updateState.info.time; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerDefenderUpdateStateMetaType() 29 | { 30 | qRegisterMetaType("DefenderUpdateState"); 31 | qDBusRegisterMetaType(); 32 | } 33 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderupdatestate.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERUPDATESTATE_H 6 | #define DEFENDERUPDATESTATE_H 7 | 8 | #include "defenderversioninfo.h" 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | struct DefenderUpdateState 15 | { 16 | double progress; 17 | DefenderVersionInfo info; 18 | 19 | bool operator!=(const DefenderUpdateState &updateState); 20 | }; 21 | 22 | Q_DECLARE_METATYPE(DefenderUpdateState) 23 | 24 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderUpdateState &updateState); 25 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderUpdateState &updateState); 26 | 27 | void registerDefenderUpdateStateMetaType(); 28 | 29 | #endif // DEFENDERUPDATESTATE_H 30 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderversioninfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "defenderversioninfo.h" 6 | 7 | bool DefenderVersionInfo::operator!=(const DefenderVersionInfo &versionInfo) 8 | { 9 | return versionInfo.time != time || versionInfo.description != description || versionInfo.version != version; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderVersionInfo &versionInfo) 13 | { 14 | argument.beginStructure(); 15 | argument << versionInfo.version << versionInfo.description << versionInfo.time; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderVersionInfo &versionInfo) 21 | { 22 | argument.beginStructure(); 23 | argument >> versionInfo.version >> versionInfo.description >> versionInfo.time; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerDefenderVersionInfoMetaType() { 29 | qRegisterMetaType("DefenderVersionInfo"); 30 | qDBusRegisterMetaType(); 31 | } 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/defenderversioninfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DEFENDERVERSIONINFO_H 6 | #define DEFENDERVERSIONINFO_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | struct DefenderVersionInfo 13 | { 14 | QString version; 15 | QString description; 16 | quint64 time; 17 | 18 | bool operator!=(const DefenderVersionInfo &versionInfo); 19 | }; 20 | 21 | Q_DECLARE_METATYPE(DefenderVersionInfo) 22 | 23 | QDBusArgument &operator<<(QDBusArgument &argument, const DefenderVersionInfo &versionInfo); 24 | const QDBusArgument &operator>>(const QDBusArgument &argument, DefenderVersionInfo &versionInfo); 25 | 26 | void registerDefenderVersionInfoMetaType(); 27 | 28 | #endif // DEFENDERVERSIONINFO_H 29 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dockrect.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "dockrect.h" 6 | #include 7 | 8 | DockRect::DockRect() 9 | : x(0) 10 | , y(0) 11 | , w(0) 12 | , h(0) 13 | { 14 | 15 | } 16 | 17 | QDebug operator<<(QDebug debug, const DockRect &rect) 18 | { 19 | debug << QString("DockRect(%1, %2, %3, %4)").arg(rect.x) 20 | .arg(rect.y) 21 | .arg(rect.w) 22 | .arg(rect.h); 23 | 24 | return debug; 25 | } 26 | 27 | DockRect::operator QRect() const 28 | { 29 | return QRect(x, y, w, h); 30 | } 31 | 32 | QDBusArgument &operator<<(QDBusArgument &arg, const DockRect &rect) 33 | { 34 | arg.beginStructure(); 35 | arg << rect.x << rect.y << rect.w << rect.h; 36 | arg.endStructure(); 37 | 38 | return arg; 39 | } 40 | 41 | const QDBusArgument &operator>>(const QDBusArgument &arg, DockRect &rect) 42 | { 43 | arg.beginStructure(); 44 | arg >> rect.x >> rect.y >> rect.w >> rect.h; 45 | arg.endStructure(); 46 | 47 | return arg; 48 | } 49 | 50 | void registerDockRectMetaType() 51 | { 52 | qRegisterMetaType("DockRect"); 53 | qDBusRegisterMetaType(); 54 | } 55 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/dockrect.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef DOCKRECT_H 6 | #define DOCKRECT_H 7 | 8 | #include 9 | #include 10 | 11 | struct DockRect 12 | { 13 | public: 14 | DockRect(); 15 | operator QRect() const; 16 | 17 | friend QDebug operator<<(QDebug debug, const DockRect &rect); 18 | friend const QDBusArgument &operator>>(const QDBusArgument &arg, DockRect &rect); 19 | friend QDBusArgument &operator<<(QDBusArgument &arg, const DockRect &rect); 20 | 21 | private: 22 | int x; 23 | int y; 24 | uint w; 25 | uint h; 26 | }; 27 | 28 | Q_DECLARE_METATYPE(DockRect) 29 | 30 | void registerDockRectMetaType(); 31 | 32 | #endif // DOCKRECT_H 33 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/inputdevicelist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "inputdevicelist.h" 6 | 7 | bool InputDevice::operator ==(const InputDevice &device) 8 | { 9 | return this->deviceType == device.deviceType && this->interface == device.interface; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const InputDevice &device) 13 | { 14 | argument.beginStructure(); 15 | argument << device.interface << device.deviceType; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, InputDevice &device) 21 | { 22 | argument.beginStructure(); 23 | argument >> device.interface >> device.deviceType; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerInputDeviceListMetaType() 29 | { 30 | qRegisterMetaType("InputDeviceList"); 31 | qDBusRegisterMetaType(); 32 | } 33 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/inputdevicelist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef INPUTDEVICELIST_H 6 | #define INPUTDEVICELIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | struct InputDevice { 15 | QString interface; 16 | QString deviceType; 17 | 18 | bool operator ==(const InputDevice& device); 19 | }; 20 | 21 | typedef QList InputDeviceList; 22 | 23 | Q_DECLARE_METATYPE(InputDevice) 24 | Q_DECLARE_METATYPE(InputDeviceList) 25 | 26 | QDBusArgument &operator<<(QDBusArgument &argument, const InputDevice &device); 27 | const QDBusArgument &operator>>(const QDBusArgument &argument, InputDevice &device); 28 | 29 | void registerInputDeviceListMetaType(); 30 | 31 | #endif // INPUTDEVICELIST_H 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/intstring.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "intstring.h" 6 | 7 | bool IntString::operator!=(const IntString &intString) { 8 | return intString.state != state || intString.description != description; 9 | } 10 | 11 | QDBusArgument &operator<<(QDBusArgument &argument, const IntString &intString){ 12 | argument.beginStructure(); 13 | argument << intString.state << intString.description; 14 | argument.endStructure(); 15 | return argument; 16 | } 17 | 18 | 19 | const QDBusArgument &operator>>(const QDBusArgument &argument, IntString &intString) { 20 | argument.beginStructure(); 21 | argument >> intString.state >> intString.description; 22 | argument.endStructure(); 23 | return argument; 24 | } 25 | 26 | void registerIntStringMetaType() { 27 | qRegisterMetaType("IntString"); 28 | qDBusRegisterMetaType(); 29 | } 30 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/intstring.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef INTSTRING_H 6 | #define INTSTRING_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | struct IntString 13 | { 14 | qint32 state; 15 | QString description; 16 | 17 | bool operator!=(const IntString &intString); 18 | }; 19 | 20 | Q_DECLARE_METATYPE(IntString) 21 | 22 | QDBusArgument &operator<<(QDBusArgument &argument, const IntString &intString); 23 | const QDBusArgument &operator>>(const QDBusArgument &argument, IntString &intString); 24 | 25 | void registerIntStringMetaType(); 26 | 27 | #endif // !INTSTRING_H 28 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/keyboardlayoutlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "keyboardlayoutlist.h" 6 | 7 | void registerKeyboardLayoutListMetaType() 8 | { 9 | qRegisterMetaType("KeyboardLayoutList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/keyboardlayoutlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef KEYBOARDLAYOUTLIST_H 6 | #define KEYBOARDLAYOUTLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | typedef QMap KeyboardLayoutList; 14 | 15 | void registerKeyboardLayoutListMetaType(); 16 | 17 | #endif // KEYBOARDLAYOUTLIST_H 18 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/lastoreupdatepackagesinfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "lastoreupdatepackagesinfo.h" 6 | 7 | void registerLastoreUpdatePackagesInfoMetaType() 8 | { 9 | qRegisterMetaType("LastoreUpdatePackagesInfo"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/lastoreupdatepackagesinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef LASTOREUPDATEPACKAGESINFO_H 6 | #define LASTOREUPDATEPACKAGESINFO_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap LastoreUpdatePackagesInfo; 12 | 13 | void registerLastoreUpdatePackagesInfoMetaType(); 14 | 15 | 16 | #endif // LASTOREUPDATEPACKAGESINFO_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/launcheriteminfo.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "launcheriteminfo.h" 6 | 7 | bool LauncherItemInfo::operator!=(const LauncherItemInfo &itemInfo) 8 | { 9 | return itemInfo.ID != ID; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const LauncherItemInfo &itemInfo) 13 | { 14 | argument.beginStructure(); 15 | argument << itemInfo.Path << itemInfo.Name << itemInfo.ID << itemInfo.Icon << itemInfo.CategoryID << itemInfo.TimeInstalled; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, LauncherItemInfo &itemInfo) 21 | { 22 | argument.beginStructure(); 23 | argument >> itemInfo.Path >> itemInfo.Name >> itemInfo.ID >> itemInfo.Icon >> itemInfo.CategoryID >> itemInfo.TimeInstalled; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerLauncherItemInfoMetaType() 29 | { 30 | qRegisterMetaType("ItemInfo"); 31 | qDBusRegisterMetaType(); 32 | } 33 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/launcheriteminfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | struct LauncherItemInfo { 13 | QString Path; 14 | QString Name; 15 | QString ID; 16 | QString Icon; 17 | qint64 CategoryID; 18 | qint64 TimeInstalled; 19 | bool operator!=(const LauncherItemInfo &versionInfo); 20 | }; 21 | 22 | Q_DECLARE_METATYPE(LauncherItemInfo) 23 | 24 | QDBusArgument &operator<<(QDBusArgument &argument, const LauncherItemInfo &versionInfo); 25 | const QDBusArgument &operator>>(const QDBusArgument &argument, LauncherItemInfo &versionInfo); 26 | void registerLauncherItemInfoMetaType(); 27 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/launcheriteminfolist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "launcheriteminfolist.h" 6 | 7 | void registerLauncherItemInfoListMetaType() 8 | { 9 | qRegisterMetaType("ItemInfoList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/launcheriteminfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #pragma once 6 | 7 | #include "launcheriteminfo.h" 8 | 9 | #include 10 | #include 11 | 12 | typedef QList LauncherItemInfoList; 13 | 14 | Q_DECLARE_METATYPE(LauncherItemInfoList) 15 | 16 | void registerLauncherItemInfoListMetaType(); 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/linkinfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef LINKINFOLIST_H 6 | #define LINKINFOLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | class LinkInfo { 16 | 17 | public: 18 | friend QDebug operator<<(QDebug arg, const LinkInfo &info); 19 | friend QDBusArgument &operator<<(QDBusArgument &arg, const LinkInfo &info); 20 | friend const QDBusArgument &operator>>(const QDBusArgument &arg, LinkInfo &info); 21 | 22 | static LinkInfo fromJson(const QJsonObject &infoObject); 23 | 24 | bool operator==(const LinkInfo &what); 25 | 26 | public: 27 | QString m_name; 28 | QString m_friendlyName; 29 | QString m_macAddr; 30 | bool m_managed; 31 | bool m_p2pScanning; 32 | QDBusObjectPath m_dbusPath; 33 | }; 34 | 35 | typedef QList LinkInfoList; 36 | 37 | Q_DECLARE_METATYPE(LinkInfo) 38 | Q_DECLARE_METATYPE(LinkInfoList) 39 | 40 | void registerLinkInfoMetaType(); 41 | void registerLinkInfoListMetaType(); 42 | 43 | #endif // LINKINFOLIST_H 44 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/localelist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "localelist.h" 6 | 7 | QDBusArgument &operator<<(QDBusArgument &arg, const LocaleInfo &info) 8 | { 9 | arg.beginStructure(); 10 | arg << info.id << info.name; 11 | arg.endStructure(); 12 | 13 | return arg; 14 | } 15 | 16 | const QDBusArgument &operator>>(const QDBusArgument &arg, LocaleInfo &info) 17 | { 18 | arg.beginStructure(); 19 | arg >> info.id >> info.name; 20 | arg.endStructure(); 21 | 22 | return arg; 23 | } 24 | 25 | QDataStream &operator<<(QDataStream &ds, const LocaleInfo &info) 26 | { 27 | return ds << info.id << info.name; 28 | } 29 | 30 | const QDataStream &operator>>(QDataStream &ds, LocaleInfo &info) 31 | { 32 | return ds >> info.id >> info.name; 33 | } 34 | 35 | bool LocaleInfo::operator ==(const LocaleInfo &info) 36 | { 37 | return id==info.id && name==info.name; 38 | } 39 | 40 | void registerLocaleListMetaType() 41 | { 42 | qRegisterMetaType("LocaleInfo"); 43 | qDBusRegisterMetaType(); 44 | 45 | qRegisterMetaType("LocaleList"); 46 | qDBusRegisterMetaType(); 47 | } 48 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/localelist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef LOCALELIST_H 6 | #define LOCALELIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | struct LocaleInfo { 16 | QString id; 17 | QString name; 18 | 19 | bool operator ==(const LocaleInfo& info); 20 | }; 21 | 22 | typedef QList LocaleList; 23 | 24 | Q_DECLARE_METATYPE(LocaleInfo) 25 | Q_DECLARE_METATYPE(LocaleList) 26 | 27 | QDBusArgument &operator<<(QDBusArgument &arg, const LocaleInfo &info); 28 | const QDBusArgument &operator>>(const QDBusArgument &arg, LocaleInfo &info); 29 | 30 | QDataStream &operator<<(QDataStream &ds, const LocaleInfo &info); 31 | const QDataStream &operator>>(QDataStream &ds, LocaleInfo &info); 32 | 33 | void registerLocaleListMetaType(); 34 | 35 | #endif // LOCALELIST_H 36 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/mfainfolist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2021 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "mfainfolist.h" 6 | 7 | bool MFAInfo::operator==(const MFAInfo &info) const 8 | { 9 | return AuthType == info.AuthType && Priority == info.Priority 10 | && InputType == info.InputType && Required == info.Required; 11 | } 12 | 13 | QDebug operator<<(QDebug argument, const MFAInfo &info) 14 | { 15 | argument << info.AuthType << "," << info.Priority << "," << info.InputType << "," << info.Required; 16 | return argument; 17 | } 18 | 19 | QDBusArgument &operator<<(QDBusArgument &argument, const MFAInfo &info) 20 | { 21 | argument.beginStructure(); 22 | argument << info.AuthType << info.Priority << info.InputType << info.Required; 23 | argument.endStructure(); 24 | return argument; 25 | } 26 | 27 | const QDBusArgument &operator>>(const QDBusArgument &argument, MFAInfo &info) 28 | { 29 | argument.beginStructure(); 30 | argument >> info.AuthType >> info.Priority >> info.InputType >> info.Required; 31 | argument.endStructure(); 32 | return argument; 33 | } 34 | 35 | void registerMFAInfoMetaType() 36 | { 37 | qRegisterMetaType("MFAInfo"); 38 | qDBusRegisterMetaType(); 39 | } 40 | 41 | void registerMFAInfoListMetaType() 42 | { 43 | registerMFAInfoMetaType(); 44 | qRegisterMetaType("MFAInfoList"); 45 | qDBusRegisterMetaType(); 46 | } 47 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/mfainfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2021 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef MFAINFO_H 6 | #define MFAINFO_H 7 | 8 | #include 9 | #include 10 | 11 | struct MFAInfo { 12 | int AuthType; 13 | int Priority; 14 | int InputType; 15 | bool Required; 16 | 17 | bool operator==(const MFAInfo &info) const; 18 | }; 19 | Q_DECLARE_METATYPE(MFAInfo); 20 | typedef QList MFAInfoList; 21 | Q_DECLARE_METATYPE(MFAInfoList); 22 | 23 | QDebug operator<<(QDebug argument, const MFAInfo &info); 24 | QDBusArgument &operator<<(QDBusArgument &argument, const MFAInfo &info); 25 | const QDBusArgument &operator>>(const QDBusArgument &argument, MFAInfo &info); 26 | 27 | void registerMFAInfoListMetaType(); 28 | 29 | #endif // MFAINFO_H 30 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/mirrorinfolist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "mirrorinfolist.h" 6 | 7 | 8 | MirrorInfo::MirrorInfo() 9 | { 10 | 11 | } 12 | 13 | const QDBusArgument &operator>>(const QDBusArgument &argument, MirrorInfo &info) 14 | { 15 | argument.beginStructure(); 16 | argument >> info.m_id; 17 | argument >> info.m_url; 18 | argument >> info.m_name; 19 | argument.endStructure(); 20 | 21 | return argument; 22 | } 23 | 24 | QDBusArgument &operator<<(QDBusArgument &argument, const MirrorInfo &info) 25 | { 26 | argument.beginStructure(); 27 | argument << info.m_id; 28 | argument << info.m_url; 29 | argument << info.m_name; 30 | argument.endStructure(); 31 | 32 | return argument; 33 | } 34 | 35 | QDebug operator<<(QDebug argument, const MirrorInfo &info) 36 | { 37 | argument << "mirror id: " << info.m_id; 38 | argument << "mirror url: " << info.m_url; 39 | argument << "mirror name: " << info.m_name; 40 | 41 | return argument; 42 | } 43 | 44 | void registerMirrorInfoListMetaType() 45 | { 46 | qRegisterMetaType(); 47 | qDBusRegisterMetaType(); 48 | qRegisterMetaType(); 49 | qDBusRegisterMetaType(); 50 | } 51 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/mirrorinfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef MIRRORINFO_H 6 | #define MIRRORINFO_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | class MirrorInfo 14 | { 15 | public: 16 | MirrorInfo(); 17 | 18 | friend QDebug operator<<(QDebug argument, const MirrorInfo &info); 19 | friend QDBusArgument &operator<<(QDBusArgument &argument, const MirrorInfo &info); 20 | friend const QDBusArgument &operator>>(const QDBusArgument &argument, MirrorInfo &info); 21 | 22 | public: 23 | QString m_id; 24 | QString m_name; 25 | QString m_url; 26 | }; 27 | 28 | typedef QList MirrorInfoList; 29 | Q_DECLARE_METATYPE(MirrorInfo) 30 | Q_DECLARE_METATYPE(MirrorInfoList) 31 | 32 | void registerMirrorInfoListMetaType(); 33 | 34 | #endif // MIRRORINFO_H 35 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/networkavailablekeys.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "networkavailablekeys.h" 6 | 7 | void registerNetworkAvailableKeysMetaType() 8 | { 9 | qRegisterMetaType("NetworkAvailableKeys"); 10 | qDBusRegisterMetaType(); 11 | } 12 | 13 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/networkavailablekeys.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef NETWORKAVAILABLEKEYS_H 6 | #define NETWORKAVAILABLEKEYS_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | typedef QMap NetworkAvailableKeys; 13 | 14 | void registerNetworkAvailableKeysMetaType(); 15 | 16 | #endif // NETWORKAVAILABLEKEYS_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/networkconnectiondata.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "networkconnectiondata.h" 6 | 7 | void registerNetworkConnectionDataMetaType() 8 | { 9 | qRegisterMetaType("NetworkConnectionData"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/networkconnectiondata.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef NETWORKCONNECTIONDATA_H 6 | #define NETWORKCONNECTIONDATA_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | typedef QMap> NetworkConnectionData; 13 | 14 | void registerNetworkConnectionDataMetaType(); 15 | 16 | #endif // NETWORKCONNECTIONDATA_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/networkerrors.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "networkerrors.h" 6 | 7 | void registerNetworkErrorsMetaType() 8 | { 9 | qRegisterMetaType("NetworkErrors"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/networkerrors.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef NETWORKERRORS_H 6 | #define NETWORKERRORS_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | typedef QMap> NetworkErrors; 13 | 14 | void registerNetworkErrorsMetaType(); 15 | 16 | #endif // NETWORKERRORS_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/policydetails.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "policydetails.h" 6 | 7 | void registerPolicyDetailsMetaType() 8 | { 9 | qRegisterMetaType("PolicyDetails"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/policydetails.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef POLICYDETAILS_H 6 | #define POLICYDETAILS_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap PolicyDetails; 12 | 13 | void registerPolicyDetailsMetaType(); 14 | 15 | #endif // POLICYDETAILS_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/policyresult.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include 6 | 7 | #include "policyresult.h" 8 | 9 | void registerPolicyResultMetaType() 10 | { 11 | qRegisterMetaType("PolicyResult"); 12 | qDBusRegisterMetaType(); 13 | } 14 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/policysubject.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include 6 | 7 | #include "policysubject.h" 8 | 9 | void registerPolicySubjectMetaType() 10 | { 11 | qRegisterMetaType("PolicySubject"); 12 | qDBusRegisterMetaType(); 13 | } 14 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/policysubject.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef POLICYSUBJECT_H 6 | #define POLICYSUBJECT_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | class PolicySubject 14 | { 15 | public: 16 | QString name; 17 | QMap sub; 18 | 19 | friend QDebug operator<<(QDebug argument, const PolicySubject &subject) { 20 | argument << subject.name; 21 | 22 | return argument; 23 | } 24 | 25 | friend QDBusArgument &operator<<(QDBusArgument &argument, const PolicySubject &subject) { 26 | argument.beginStructure(); 27 | argument << subject.name << subject.sub; 28 | argument.endStructure(); 29 | 30 | return argument; 31 | } 32 | 33 | friend const QDBusArgument &operator>>(const QDBusArgument &argument, PolicySubject &subject) { 34 | argument.beginStructure(); 35 | argument >> subject.name >> subject.sub; 36 | argument.endStructure(); 37 | 38 | return argument; 39 | } 40 | 41 | bool operator==(const PolicySubject subject) const { 42 | return subject.name == name; 43 | } 44 | 45 | bool operator!=(const PolicySubject subject) const { 46 | return subject.name != name; 47 | } 48 | }; 49 | 50 | Q_DECLARE_METATYPE(PolicySubject) 51 | 52 | void registerPolicySubjectMetaType(); 53 | 54 | #endif // POLICYSUBJECT_H 55 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/propertylist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "propertylist.h" 6 | 7 | #include 8 | 9 | Property::Property() 10 | { 11 | 12 | } 13 | 14 | QDBusArgument &operator<<(QDBusArgument &arg, const Property &value) 15 | { 16 | arg.beginStructure(); 17 | arg << value.key << value.value; 18 | arg.endStructure(); 19 | 20 | return arg; 21 | } 22 | 23 | const QDBusArgument &operator>>(const QDBusArgument &arg, Property &value) 24 | { 25 | arg.beginStructure(); 26 | arg >> value.key >> value.value; 27 | arg.endStructure(); 28 | 29 | return arg; 30 | } 31 | 32 | void registerPropertyListMetaType() 33 | { 34 | qRegisterMetaType(); 35 | qDBusRegisterMetaType(); 36 | 37 | qRegisterMetaType(); 38 | qDBusRegisterMetaType(); 39 | } 40 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/propertylist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef PROPERTYLIST_H 6 | #define PROPERTYLIST_H 7 | 8 | #include 9 | #include 10 | 11 | class Property 12 | { 13 | public: 14 | explicit Property(); 15 | 16 | QString key; 17 | QString value; 18 | 19 | friend QDBusArgument &operator<<(QDBusArgument &arg, const Property &value); 20 | friend const QDBusArgument &operator>>(const QDBusArgument &arg, Property &value); 21 | }; 22 | 23 | typedef QList PropertyList; 24 | 25 | Q_DECLARE_METATYPE(Property) 26 | Q_DECLARE_METATYPE(PropertyList) 27 | 28 | void registerPropertyListMetaType(); 29 | 30 | #endif // PROPERTYLIST_H 31 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/qvariantlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "qvariantlist.h" 6 | 7 | void registerQVariantListMetaType() 8 | { 9 | qRegisterMetaType("QVariantList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/qvariantlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef QVARIANTLIST_H 6 | #define QVARIANTLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | typedef QList QVariantList; 13 | 14 | void registerQVariantListMetaType(); 15 | 16 | #endif // QVARIANTLIST_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/qvariantmap.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "qvariantmap.h" 6 | 7 | void registerQVariantMapMetaType() 8 | { 9 | qRegisterMetaType("QVariantMap"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/qvariantmap.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef QVARIANTMAP_H 6 | #define QVARIANTMAP_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | typedef QMap QVariantMap; 13 | 14 | void registerQVariantMapMetaType(); 15 | 16 | #endif // QVARIANTMAP_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/reflectlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "reflectlist.h" 6 | 7 | void registerReflectListMetaType() 8 | { 9 | qRegisterMetaType("ReflectList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/reflectlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef REFLECTLIST_H 6 | #define REFLECTLIST_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QList ReflectList; 12 | 13 | void registerReflectListMetaType(); 14 | 15 | #endif // REFLECTLIST_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/resolution.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "resolution.h" 6 | 7 | #include 8 | 9 | void registerResolutionMetaType() 10 | { 11 | qRegisterMetaType("Resolution"); 12 | qDBusRegisterMetaType(); 13 | } 14 | 15 | Resolution::Resolution() 16 | { 17 | 18 | } 19 | 20 | bool Resolution::operator!=(const Resolution &other) const 21 | { 22 | return m_width != other.m_width || m_height != other.m_height || m_rate != other.m_rate; 23 | } 24 | 25 | bool Resolution::operator==(const Resolution &other) const 26 | { 27 | return !(other != *this); 28 | } 29 | 30 | QDBusArgument &operator<<(QDBusArgument &arg, const Resolution &value) 31 | { 32 | arg.beginStructure(); 33 | arg << quint32(value.id()) << quint16(value.width()) << quint16(value.height()) << value.rate(); 34 | arg.endStructure(); 35 | 36 | return arg; 37 | } 38 | 39 | const QDBusArgument &operator>>(const QDBusArgument &arg, Resolution &value) 40 | { 41 | quint32 id; 42 | quint16 w, h; 43 | double rate; 44 | 45 | arg.beginStructure(); 46 | arg >> id >> w >> h >> rate; 47 | arg.endStructure(); 48 | 49 | value.setId(id); 50 | value.setWidth(w); 51 | value.setHeight(h); 52 | value.setRate(rate); 53 | 54 | return arg; 55 | } 56 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/resolution.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef RESOLUTION_H 6 | #define RESOLUTION_H 7 | 8 | #include 9 | 10 | class Resolution 11 | { 12 | public: 13 | friend QDBusArgument &operator<<(QDBusArgument &arg, const Resolution &value); 14 | friend const QDBusArgument &operator>>(const QDBusArgument &arg, Resolution &value); 15 | 16 | explicit Resolution(); 17 | 18 | bool operator!=(const Resolution &other) const; 19 | bool operator==(const Resolution &other) const; 20 | 21 | int id() const { return m_id; } 22 | int width() const { return m_width; } 23 | int height() const { return m_height; } 24 | double rate() const { return m_rate; } 25 | 26 | private: 27 | void setId(const int id) { m_id = id; } 28 | void setWidth(const int w) { m_width = w; } 29 | void setHeight(const int h) { m_height = h; } 30 | void setRate(const double rate) { m_rate = rate; } 31 | 32 | private: 33 | int m_id; 34 | int m_width; 35 | int m_height; 36 | double m_rate; 37 | }; 38 | 39 | 40 | Q_DECLARE_METATYPE(Resolution) 41 | 42 | void registerResolutionMetaType(); 43 | 44 | #endif // RESOLUTION_H 45 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/resolutionlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "resolutionlist.h" 6 | 7 | void registerResolutionListMetaType() 8 | { 9 | registerResolutionMetaType(); 10 | 11 | qRegisterMetaType("ResolutionList"); 12 | qDBusRegisterMetaType(); 13 | } 14 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/resolutionlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef RESOLUTIONLIST_H 6 | #define RESOLUTIONLIST_H 7 | 8 | #include "resolution.h" 9 | 10 | #include 11 | 12 | typedef QList ResolutionList; 13 | 14 | void registerResolutionListMetaType(); 15 | 16 | #endif // RESOLUTIONLIST_H 17 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/rotationlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "rotationlist.h" 6 | 7 | void registerRotationListMetaType() 8 | { 9 | qRegisterMetaType("RotationList"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/rotationlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef ROTATIONLIST_H 6 | #define ROTATIONLIST_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QList RotationList; 12 | 13 | void registerRotationListMetaType(); 14 | 15 | #endif // ROTATIONLIST_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/screenrect.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "screenrect.h" 6 | 7 | ScreenRect::ScreenRect() 8 | : x(0), 9 | y(0), 10 | w(0), 11 | h(0) 12 | { 13 | 14 | } 15 | 16 | QDebug operator<<(QDebug debug, const ScreenRect &rect) 17 | { 18 | debug << QString("ScreenRect(%1, %2, %3, %4)").arg(rect.x) 19 | .arg(rect.y) 20 | .arg(rect.w) 21 | .arg(rect.h); 22 | 23 | return debug; 24 | } 25 | 26 | ScreenRect::operator QRect() const 27 | { 28 | return QRect(x, y, w, h); 29 | } 30 | 31 | QDBusArgument &operator<<(QDBusArgument &arg, const ScreenRect &rect) 32 | { 33 | arg.beginStructure(); 34 | arg << rect.x << rect.y << rect.w << rect.h; 35 | arg.endStructure(); 36 | 37 | return arg; 38 | } 39 | 40 | const QDBusArgument &operator>>(const QDBusArgument &arg, ScreenRect &rect) 41 | { 42 | arg.beginStructure(); 43 | arg >> rect.x >> rect.y >> rect.w >> rect.h; 44 | arg.endStructure(); 45 | 46 | return arg; 47 | } 48 | 49 | void registerScreenRectMetaType() 50 | { 51 | qRegisterMetaType("ScreenRect"); 52 | qDBusRegisterMetaType(); 53 | } 54 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/screenrect.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef SCREENRECT_H 6 | #define SCREENRECT_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | struct ScreenRect 14 | { 15 | public: 16 | ScreenRect(); 17 | operator QRect() const; 18 | 19 | friend QDebug operator<<(QDebug debug, const ScreenRect &rect); 20 | friend const QDBusArgument &operator>>(const QDBusArgument &arg, ScreenRect &rect); 21 | friend QDBusArgument &operator<<(QDBusArgument &arg, const ScreenRect &rect); 22 | 23 | private: 24 | qint16 x; 25 | qint16 y; 26 | quint16 w; 27 | quint16 h; 28 | }; 29 | 30 | Q_DECLARE_METATYPE(ScreenRect) 31 | 32 | void registerScreenRectMetaType(); 33 | 34 | #endif // SCREENRECT_H 35 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/searchmap.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "searchmap.h" 6 | 7 | void registerSearchMapMetaType() 8 | { 9 | qRegisterMetaType("SearchMap"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/searchmap.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef SEARCH_H 6 | #define SEARCH_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap SearchMap; 12 | 13 | void registerSearchMapMetaType(); 14 | 15 | #endif // SEARCH_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/sinkinfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef PEERINFOLIST_H 6 | #define PEERINFOLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | class SinkInfo { 16 | 17 | public: 18 | friend QDebug operator<<(QDebug arg, const SinkInfo &info); 19 | friend QDBusArgument &operator<<(QDBusArgument &arg, const SinkInfo &info); 20 | friend const QDBusArgument &operator>>(const QDBusArgument &arg, SinkInfo &info); 21 | 22 | static SinkInfo fromJson(const QJsonObject &infoObject); 23 | 24 | bool operator==(const SinkInfo &what); 25 | 26 | public: 27 | QString m_name; 28 | QString m_p2pMac; 29 | QString m_interface; 30 | bool m_connected; 31 | QDBusObjectPath m_sinkPath; 32 | QDBusObjectPath m_linkPath; 33 | }; 34 | 35 | typedef QList SinkInfoList; 36 | 37 | Q_DECLARE_METATYPE(SinkInfo) 38 | Q_DECLARE_METATYPE(SinkInfoList) 39 | 40 | void registerSinkInfoMetaType(); 41 | void registerSinkInfoListMetaType(); 42 | 43 | #endif // PEERINFOLIST_H 44 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/touchscreeninfolist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "touchscreeninfolist.h" 6 | 7 | QDBusArgument &operator<<(QDBusArgument &arg, const TouchscreenInfo &info) 8 | { 9 | arg.beginStructure(); 10 | arg << info.id << info.name << info.deviceNode << info.serialNumber; 11 | arg.endStructure(); 12 | 13 | return arg; 14 | } 15 | 16 | const QDBusArgument &operator>>(const QDBusArgument &arg, TouchscreenInfo &info) 17 | { 18 | arg.beginStructure(); 19 | arg >> info.id >> info.name >> info.deviceNode >> info.serialNumber; 20 | arg.endStructure(); 21 | 22 | return arg; 23 | } 24 | 25 | bool TouchscreenInfo::operator==(const TouchscreenInfo &info) 26 | { 27 | return id == info.id && name == info.name && deviceNode == info.deviceNode && serialNumber == info.serialNumber; 28 | } 29 | 30 | void registerTouchscreenInfoMetaType() 31 | { 32 | qRegisterMetaType("TouchscreenInfo"); 33 | qDBusRegisterMetaType(); 34 | } 35 | 36 | void registerTouchscreenInfoListMetaType() 37 | { 38 | registerTouchscreenInfoMetaType(); 39 | 40 | qRegisterMetaType("TouchscreenInfoList"); 41 | qDBusRegisterMetaType(); 42 | } 43 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/touchscreeninfolist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef TOUCHSCREENINFOLIST_H 6 | #define TOUCHSCREENINFOLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | struct TouchscreenInfo { 13 | qint32 id; 14 | QString name; 15 | QString deviceNode; 16 | QString serialNumber; 17 | 18 | bool operator ==(const TouchscreenInfo& info); 19 | }; 20 | 21 | typedef QList TouchscreenInfoList; 22 | 23 | Q_DECLARE_METATYPE(TouchscreenInfo) 24 | Q_DECLARE_METATYPE(TouchscreenInfoList) 25 | 26 | QDBusArgument &operator<<(QDBusArgument &arg, const TouchscreenInfo &info); 27 | const QDBusArgument &operator>>(const QDBusArgument &arg, TouchscreenInfo &info); 28 | 29 | void registerTouchscreenInfoListMetaType(); 30 | 31 | #endif // !TOUCHSCREENINFOLIST_H 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/touchscreeninfolist_v2.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "touchscreeninfolist_v2.h" 6 | 7 | QDBusArgument &operator<<(QDBusArgument &arg, const TouchscreenInfo_V2 &info) 8 | { 9 | arg.beginStructure(); 10 | arg << info.id << info.name << info.deviceNode << info.serialNumber << info.UUID; 11 | arg.endStructure(); 12 | 13 | return arg; 14 | } 15 | 16 | const QDBusArgument &operator>>(const QDBusArgument &arg, TouchscreenInfo_V2 &info) 17 | { 18 | arg.beginStructure(); 19 | arg >> info.id >> info.name >> info.deviceNode >> info.serialNumber >> info.UUID; 20 | arg.endStructure(); 21 | 22 | return arg; 23 | } 24 | 25 | bool TouchscreenInfo_V2::operator==(const TouchscreenInfo_V2 &info) 26 | { 27 | return id == info.id && name == info.name && deviceNode == info.deviceNode && serialNumber == info.serialNumber && UUID == info.UUID; 28 | } 29 | 30 | void registerTouchscreenInfoV2MetaType() 31 | { 32 | qRegisterMetaType("TouchscreenInfo_V2"); 33 | qDBusRegisterMetaType(); 34 | } 35 | 36 | void registerTouchscreenInfoList_V2MetaType() 37 | { 38 | registerTouchscreenInfoV2MetaType(); 39 | 40 | qRegisterMetaType("TouchscreenInfoList_V2"); 41 | qDBusRegisterMetaType(); 42 | } 43 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/touchscreeninfolist_v2.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef TOUCHSCREENINFOLISTV2_H 6 | #define TOUCHSCREENINFOLISTV2_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | struct TouchscreenInfo_V2 { 13 | qint32 id; 14 | QString name; 15 | QString deviceNode; 16 | QString serialNumber; 17 | QString UUID; 18 | 19 | bool operator ==(const TouchscreenInfo_V2& info); 20 | }; 21 | 22 | typedef QList TouchscreenInfoList_V2; 23 | 24 | Q_DECLARE_METATYPE(TouchscreenInfo_V2) 25 | Q_DECLARE_METATYPE(TouchscreenInfoList_V2) 26 | 27 | QDBusArgument &operator<<(QDBusArgument &arg, const TouchscreenInfo_V2 &info); 28 | const QDBusArgument &operator>>(const QDBusArgument &arg, TouchscreenInfo_V2 &info); 29 | 30 | void registerTouchscreenInfoList_V2MetaType(); 31 | 32 | #endif // !TOUCHSCREENINFOLISTV2_H 33 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/touchscreenmap.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "touchscreenmap.h" 6 | 7 | void registerTouchscreenMapMetaType() 8 | { 9 | qRegisterMetaType("TouchscreenMap"); 10 | qDBusRegisterMetaType(); 11 | } 12 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/touchscreenmap.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef TOUCHSCREENMAP_H 6 | #define TOUCHSCREENMAP_H 7 | 8 | #include 9 | #include 10 | 11 | typedef QMap TouchscreenMap; 12 | 13 | void registerTouchscreenMapMetaType(); 14 | 15 | #endif // TOUCHSCREENMAP_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/wacomdevicelist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "wacomdevicelist.h" 6 | 7 | bool WacomDevice::operator ==(const WacomDevice &device) 8 | { 9 | return this->deviceType == device.deviceType && this->interface == device.interface; 10 | } 11 | 12 | QDBusArgument &operator<<(QDBusArgument &argument, const WacomDevice &device) 13 | { 14 | argument.beginStructure(); 15 | argument << device.interface << device.deviceType; 16 | argument.endStructure(); 17 | return argument; 18 | } 19 | 20 | const QDBusArgument &operator>>(const QDBusArgument &argument, WacomDevice &device) 21 | { 22 | argument.beginStructure(); 23 | argument >> device.interface >> device.deviceType; 24 | argument.endStructure(); 25 | return argument; 26 | } 27 | 28 | void registerWacomDeviceListMetaType() 29 | { 30 | qRegisterMetaType("WacomDevice"); 31 | qDBusRegisterMetaType(); 32 | 33 | qRegisterMetaType("WacomDeviceList"); 34 | qDBusRegisterMetaType(); 35 | } 36 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/wacomdevicelist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef WACOMDEVICELIST_H 6 | #define WACOMDEVICELIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | struct WacomDevice { 15 | QString interface; 16 | QString deviceType; 17 | 18 | bool operator ==(const WacomDevice& device); 19 | }; 20 | 21 | typedef QList WacomDeviceList; 22 | 23 | Q_DECLARE_METATYPE(WacomDevice) 24 | Q_DECLARE_METATYPE(WacomDeviceList) 25 | 26 | QDBusArgument &operator<<(QDBusArgument &argument, const WacomDevice &device); 27 | const QDBusArgument &operator>>(const QDBusArgument &argument, WacomDevice &device); 28 | 29 | void registerWacomDeviceListMetaType(); 30 | 31 | #endif // WACOMDEVICELIST_H 32 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/windowinfomap.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "windowinfomap.h" 6 | 7 | #include 8 | 9 | void registerWindowInfoMapMetaType() 10 | { 11 | registerWindowInfoMetaType(); 12 | 13 | qRegisterMetaType("WindowInfoMap"); 14 | qDBusRegisterMetaType(); 15 | } 16 | 17 | void registerWindowInfoMetaType() 18 | { 19 | qRegisterMetaType("WindowInfo"); 20 | qDBusRegisterMetaType(); 21 | } 22 | 23 | QDebug operator<<(QDebug argument, const WindowInfo &info) 24 | { 25 | argument << '(' << info.title << ',' << info.attention << ')'; 26 | 27 | return argument; 28 | } 29 | 30 | QDBusArgument &operator<<(QDBusArgument &argument, const WindowInfo &info) 31 | { 32 | argument.beginStructure(); 33 | argument << info.title << info.attention; 34 | argument.endStructure(); 35 | 36 | return argument; 37 | } 38 | 39 | const QDBusArgument &operator>>(const QDBusArgument &argument, WindowInfo &info) 40 | { 41 | argument.beginStructure(); 42 | argument >> info.title >> info.attention; 43 | argument.endStructure(); 44 | 45 | return argument; 46 | } 47 | 48 | bool WindowInfo::operator==(const WindowInfo &rhs) const 49 | { 50 | return attention == rhs.attention && 51 | title == rhs.title; 52 | } 53 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/windowinfomap.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef WINDOWINFOLIST_H 6 | #define WINDOWINFOLIST_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | class WindowInfo 13 | { 14 | public: 15 | friend QDebug operator<<(QDebug argument, const WindowInfo &info); 16 | friend QDBusArgument &operator<<(QDBusArgument &argument, const WindowInfo &info); 17 | friend const QDBusArgument &operator>>(const QDBusArgument &argument, WindowInfo &info); 18 | 19 | bool operator==(const WindowInfo &rhs) const; 20 | 21 | public: 22 | bool attention; 23 | QString title; 24 | }; 25 | Q_DECLARE_METATYPE(WindowInfo) 26 | 27 | typedef QMap WindowInfoMap; 28 | Q_DECLARE_METATYPE(WindowInfoMap) 29 | 30 | void registerWindowInfoMetaType(); 31 | void registerWindowInfoMapMetaType(); 32 | 33 | #endif // WINDOWINFOLIST_H 34 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/windowlist.cpp: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #include "windowlist.h" 6 | 7 | #include 8 | 9 | void registerWindowListMetaType() 10 | { 11 | qRegisterMetaType(); 12 | qDBusRegisterMetaType(); 13 | } 14 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/windowlist.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef WINDOWLIST_H 6 | #define WINDOWLIST_H 7 | 8 | #include 9 | 10 | typedef QList WindowList; 11 | Q_DECLARE_METATYPE(WindowList) 12 | 13 | void registerWindowListMetaType(); 14 | 15 | #endif // WINDOWLIST_H 16 | -------------------------------------------------------------------------------- /libdframeworkdbus/types/zoneinfo.h: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | #ifndef ZONEINFO_H 6 | #define ZONEINFO_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | class ZoneInfo 15 | { 16 | public: 17 | ZoneInfo(); 18 | 19 | friend QDebug operator<<(QDebug argument, const ZoneInfo &info); 20 | friend QDBusArgument &operator<<(QDBusArgument &argument, const ZoneInfo &info); 21 | friend QDataStream &operator<<(QDataStream &argument, const ZoneInfo &info); 22 | friend const QDBusArgument &operator>>(const QDBusArgument &argument, ZoneInfo &info); 23 | friend const QDataStream &operator>>(QDataStream &argument, ZoneInfo &info); 24 | 25 | bool operator==(const ZoneInfo &what) const; 26 | 27 | public: 28 | inline QString getZoneName() const {return m_zoneName;} 29 | inline QString getZoneCity() const {return m_zoneCity;} 30 | inline int getUTCOffset() const {return m_utcOffset;} 31 | 32 | private: 33 | QString m_zoneName; 34 | QString m_zoneCity; 35 | int m_utcOffset; 36 | qint64 i2; 37 | qint64 i3; 38 | int i4; 39 | }; 40 | 41 | Q_DECLARE_METATYPE(ZoneInfo) 42 | 43 | void registerZoneInfoMetaType(); 44 | 45 | #endif // ZONEINFO_H 46 | -------------------------------------------------------------------------------- /technology-overview.md: -------------------------------------------------------------------------------- 1 | 2 | # dde-qt-dbus-factory 3 | 4 | `dde-qt-dbus-factory` 主要想解决的问题有: 5 | 6 | 1. 所有的 DBus 接口都是用 xml 描述的,将生成的 `.h`、`.cpp` 文件保存在源码树中没有太大意义。 7 | 2. 目前 Qt 自己的 xml 生成 cpp 的转换工具只提供了很基本的功能,像 PropertyChanged 信号这种很常用的功能都没有提供。 8 | 3. 目前 Qt 的生成工具在对 Property 进行读取、设置的时候,是强制阻塞的,这种设计有可能会导致 DBus 卡死。 9 | 4. 我们对 DBus 接口有更多的二进制兼容要求及效率、队列、异步通信要求。 10 | 11 | ## 解决方案 12 | 13 | 目前本项目的主要研究工作从几个方面入手:一个是改进原有的 `xml2cpp` 的转换工具,使它生成的类具有更好的结构,同时实现了二进制兼容、消息队列、PropertyChanged 信号等功能。另一个是参考 `Meego` 的部分开源代码的思路,开发了利用 DBus 自己的 `Property.Get` 和 `Propergy.Set` 来进行属性的设置与获取,这样可以做到异步的属性访问控制。 14 | 15 | 这两部分是需要相互配合的。 16 | 17 | # 整体设计 18 | 19 | 整体上,项目分为三块 20 | 21 | 1. 一个经过二次开发的 `qdbusxml2cpp`,它可以生成出与 Qt 原有工具完全不同的 cpp 类来,并具有多种新功能。 22 | - 添加了 namespace,防止类冲突 23 | - 实现了 d-ptr 结构,保持更好的二进制兼容性。 24 | - 优化了自定义类型的支持 25 | 2. 一个利用本项目编译出来的 `qdbusxml2cpp` 工具与 DBus 接口描述的 xml 文件生成具体的接口类的工具 `generate_code.py`。 26 | 3. 一个经过适当修改的 `DBusExtendedAbstractInterface`,在这里实现了对 Property 的异步访问与设置,也添加了对一些自启动服务的自动 launch 及监控功能。 27 | 28 | ## qdbusxml2cpp 29 | 30 | 参考 `qdbusxml2cpp` 目录中的代码,除改变了输出格式,添加了一些 namespace 之类的之外,和原来的工作流程没有什么区别。 31 | 32 | ## generate_code.py 33 | 34 | 一个利用编译出来的 `qdbusxml2cpp`,将 xml 描述的 DBus 接口文件转换成 cpp 接口类。 35 | 36 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.MeterAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.daemon.Audio.Meter.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.MeterAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.Meter.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Audio.MeterAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class MeterAdaptor 22 | */ 23 | 24 | MeterAdaptor::MeterAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | MeterAdaptor::~MeterAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | double MeterAdaptor::volume() const 37 | { 38 | // get the value of property Volume 39 | return qvariant_cast< double >(parent()->property("Volume")); 40 | } 41 | 42 | void MeterAdaptor::Tick() 43 | { 44 | // handle method call com.deepin.daemon.Audio.Meter.Tick 45 | QMetaObject::invokeMethod(parent(), "Tick"); 46 | } 47 | 48 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.daemon.Gesture.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Gesture.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.GestureAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class GestureAdaptor 22 | */ 23 | 24 | GestureAdaptor::GestureAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | GestureAdaptor::~GestureAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.daemon.ImageBlurAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.daemon.ImageBlur.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.ImageBlurAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.ImageBlur.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.ImageBlurAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class ImageBlurAdaptor 22 | */ 23 | 24 | ImageBlurAdaptor::ImageBlurAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | ImageBlurAdaptor::~ImageBlurAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | QString ImageBlurAdaptor::Get(const QString &in0) 37 | { 38 | // handle method call com.deepin.daemon.ImageBlur.Get 39 | QString out0; 40 | QMetaObject::invokeMethod(parent(), "Get", Q_RETURN_ARG(QString, out0), Q_ARG(QString, in0)); 41 | return out0; 42 | } 43 | 44 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.daemon.InputDevices.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevices.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.InputDevicesAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class InputDevicesAdaptor 22 | */ 23 | 24 | InputDevicesAdaptor::InputDevicesAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | InputDevicesAdaptor::~InputDevicesAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | InputDeviceList InputDevicesAdaptor::infos() const 37 | { 38 | // get the value of property Infos 39 | return qvariant_cast< InputDeviceList >(parent()->property("Infos")); 40 | } 41 | 42 | uint InputDevicesAdaptor::wheelSpeed() const 43 | { 44 | // get the value of property WheelSpeed 45 | return qvariant_cast< uint >(parent()->property("WheelSpeed")); 46 | } 47 | 48 | void InputDevicesAdaptor::setWheelSpeed(uint value) 49 | { 50 | // set the value of property WheelSpeed 51 | parent()->setProperty("WheelSpeed", QVariant::fromValue(value)); 52 | } 53 | 54 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.daemon.LoginedAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.daemon.Logined.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LoginedAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.Logined.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.daemon.LoginedAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class LoginedAdaptor 22 | */ 23 | 24 | LoginedAdaptor::LoginedAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | LoginedAdaptor::~LoginedAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | uint LoginedAdaptor::lastLogoutUser() const 37 | { 38 | // get the value of property LastLogoutUser 39 | return qvariant_cast< uint >(parent()->property("LastLogoutUser")); 40 | } 41 | 42 | QString LoginedAdaptor::userList() const 43 | { 44 | // get the value of property UserList 45 | return qvariant_cast< QString >(parent()->property("UserList")); 46 | } 47 | 48 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.dde.ClipboardAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.dde.Clipboard.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.dde.ClipboardAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.dde.Clipboard.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.dde.ClipboardAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class ClipboardAdaptor 22 | */ 23 | 24 | ClipboardAdaptor::ClipboardAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | ClipboardAdaptor::~ClipboardAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | void ClipboardAdaptor::Toggle() 37 | { 38 | // handle method call com.deepin.dde.Clipboard.Toggle 39 | QMetaObject::invokeMethod(parent(), "Toggle"); 40 | } 41 | 42 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.dde.ClipboardAdaptor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.dde.Clipboard.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.dde.ClipboardAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.dde.Clipboard.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * This file may have been hand-edited. Look for HAND-EDIT comments 9 | * before re-generating it. 10 | */ 11 | 12 | #ifndef COM_DEEPIN_DDE_CLIPBOARDADAPTOR_H 13 | #define COM_DEEPIN_DDE_CLIPBOARDADAPTOR_H 14 | 15 | #include 16 | #include 17 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.dde.Clipboard.h" 18 | QT_BEGIN_NAMESPACE 19 | class QByteArray; 20 | template class QList; 21 | template class QMap; 22 | class QString; 23 | class QStringList; 24 | class QVariant; 25 | QT_END_NAMESPACE 26 | 27 | /* 28 | * Adaptor class for interface com.deepin.dde.Clipboard 29 | */ 30 | class ClipboardAdaptor: public QDBusAbstractAdaptor 31 | { 32 | Q_OBJECT 33 | Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.Clipboard") 34 | Q_CLASSINFO("D-Bus Introspection", "" 35 | " \n" 36 | " \n" 37 | " \n" 38 | "") 39 | public: 40 | ClipboardAdaptor(QObject *parent); 41 | virtual ~ClipboardAdaptor(); 42 | 43 | public: // PROPERTIES 44 | public Q_SLOTS: // METHODS 45 | void Toggle(); 46 | Q_SIGNALS: // SIGNALS 47 | }; 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.system.SystemDisplayAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.system.SystemDisplay.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemDisplayAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemDisplay.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.system.SystemDisplayAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class DisplayAdaptor 22 | */ 23 | 24 | DisplayAdaptor::DisplayAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | DisplayAdaptor::~DisplayAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | QString DisplayAdaptor::GetConfig() 37 | { 38 | // handle method call com.deepin.system.Display.GetConfig 39 | QString out0; 40 | QMetaObject::invokeMethod(parent(), "GetConfig", Q_RETURN_ARG(QString, out0)); 41 | return out0; 42 | } 43 | 44 | void DisplayAdaptor::SetConfig(const QString &in0) 45 | { 46 | // handle method call com.deepin.system.Display.SetConfig 47 | QMetaObject::invokeMethod(parent(), "SetConfig", Q_ARG(QString, in0)); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.deepin.system.userexperience.DaemonAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.deepin.system.userexperience.Daemon.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.system.userexperience.DaemonAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.system.userexperience.Daemon.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.deepin.system.userexperience.DaemonAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class DaemonAdaptor 22 | */ 23 | 24 | DaemonAdaptor::DaemonAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | DaemonAdaptor::~DaemonAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | void DaemonAdaptor::Enable(bool enabled) 37 | { 38 | // handle method call com.deepin.userexperience.Daemon.Enable 39 | QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(bool, enabled)); 40 | } 41 | 42 | bool DaemonAdaptor::IsEnabled() 43 | { 44 | // handle method call com.deepin.userexperience.Daemon.IsEnabled 45 | bool enabled; 46 | QMetaObject::invokeMethod(parent(), "IsEnabled", Q_RETURN_ARG(bool, enabled)); 47 | return enabled; 48 | } 49 | 50 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.asrAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.iflytek.aiservice.asr.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.asrAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.asr.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.asrAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class AsrAdaptor 22 | */ 23 | 24 | AsrAdaptor::AsrAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | AsrAdaptor::~AsrAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | QString AsrAdaptor::startAsr(const QVariantMap ¶m) 37 | { 38 | // handle method call com.iflytek.aiservice.asr.startAsr 39 | QString code; 40 | QMetaObject::invokeMethod(parent(), "startAsr", Q_RETURN_ARG(QString, code), Q_ARG(QVariantMap, param)); 41 | return code; 42 | } 43 | 44 | void AsrAdaptor::stopAsr() 45 | { 46 | // handle method call com.iflytek.aiservice.asr.stopAsr 47 | QMetaObject::invokeMethod(parent(), "stopAsr"); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.transAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/com.iflytek.aiservice.trans.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.transAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.trans.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/com.iflytek.aiservice.transAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class TransAdaptor 22 | */ 23 | 24 | TransAdaptor::TransAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | TransAdaptor::~TransAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | void TransAdaptor::asyncTrans(const QVariantMap ¶m) 37 | { 38 | // handle method call com.iflytek.aiservice.trans.asyncTrans 39 | QMetaObject::invokeMethod(parent(), "asyncTrans", Q_ARG(QVariantMap, param)); 40 | } 41 | 42 | QString TransAdaptor::syncTrans(const QVariantMap ¶m) 43 | { 44 | // handle method call com.iflytek.aiservice.trans.syncTrans 45 | QString result; 46 | QMetaObject::invokeMethod(parent(), "syncTrans", Q_RETURN_ARG(QString, result), Q_ARG(QVariantMap, param)); 47 | return result; 48 | } 49 | 50 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/org.bluez.obex.AgentManager1Adaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/org.bluez.obex.AgentManager1.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.bluez.obex.AgentManager1Adaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.bluez.obex.AgentManager1.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.bluez.obex.AgentManager1Adaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class AgentManager1Adaptor 22 | */ 23 | 24 | AgentManager1Adaptor::AgentManager1Adaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | AgentManager1Adaptor::~AgentManager1Adaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | void AgentManager1Adaptor::RegisterAgent(const QDBusObjectPath &agent) 37 | { 38 | // handle method call org.bluez.obex.AgentManager1.RegisterAgent 39 | QMetaObject::invokeMethod(parent(), "RegisterAgent", Q_ARG(QDBusObjectPath, agent)); 40 | } 41 | 42 | void AgentManager1Adaptor::UnregisterAgent(const QDBusObjectPath &agent) 43 | { 44 | // handle method call org.bluez.obex.AgentManager1.UnregisterAgent 45 | QMetaObject::invokeMethod(parent(), "UnregisterAgent", Q_ARG(QDBusObjectPath, agent)); 46 | } 47 | 48 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/org.bluez.obex.Client1Adaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/org.bluez.obex.Client1.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.bluez.obex.Client1Adaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.bluez.obex.Client1.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.bluez.obex.Client1Adaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class Client1Adaptor 22 | */ 23 | 24 | Client1Adaptor::Client1Adaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | Client1Adaptor::~Client1Adaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | QDBusObjectPath Client1Adaptor::CreateSession(const QString &destination, const QVariantMap &args) 37 | { 38 | // handle method call org.bluez.obex.Client1.CreateSession 39 | QDBusObjectPath session; 40 | QMetaObject::invokeMethod(parent(), "CreateSession", Q_RETURN_ARG(QDBusObjectPath, session), Q_ARG(QString, destination), Q_ARG(QVariantMap, args)); 41 | return session; 42 | } 43 | 44 | void Client1Adaptor::RemoveSession(const QDBusObjectPath &session) 45 | { 46 | // handle method call org.bluez.obex.Client1.RemoveSession 47 | QMetaObject::invokeMethod(parent(), "RemoveSession", Q_ARG(QDBusObjectPath, session)); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/org.freedesktop.DBus.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.DBus.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.DBusAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class DBusAdaptor 22 | */ 23 | 24 | DBusAdaptor::DBusAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | DBusAdaptor::~DBusAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/org.freedesktop.DisplayManager.SessionAdaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/org.freedesktop.DisplayManager.Session.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.DisplayManager.SessionAdaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.DisplayManager.Session.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.DisplayManager.SessionAdaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class SessionAdaptor 22 | */ 23 | 24 | SessionAdaptor::SessionAdaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | SessionAdaptor::~SessionAdaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | QDBusObjectPath SessionAdaptor::seat() const 37 | { 38 | // get the value of property Seat 39 | return qvariant_cast< QDBusObjectPath >(parent()->property("Seat")); 40 | } 41 | 42 | QString SessionAdaptor::userName() const 43 | { 44 | // get the value of property UserName 45 | return qvariant_cast< QString >(parent()->property("UserName")); 46 | } 47 | 48 | void SessionAdaptor::Lock() 49 | { 50 | // handle method call org.freedesktop.DisplayManager.Session.Lock 51 | QMetaObject::invokeMethod(parent(), "Lock"); 52 | } 53 | 54 | -------------------------------------------------------------------------------- /toolGenerate/qdbusxml2cpp/org.freedesktop.Hostname1Adaptor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by qdbusxml2cpp version 0.8 3 | * Command line was: qdbusxml2cpp ./dde-qt-dbus-factory/xml/org.freedesktop.Hostname1.xml -a ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.Hostname1Adaptor -i ./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.Hostname1.h 4 | * 5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 6 | * 7 | * This is an auto-generated file. 8 | * Do not edit! All changes made to it will be lost. 9 | */ 10 | 11 | #include "./dde-qt-dbus-factory/toolGenerate/qdbusxml2cpp/org.freedesktop.Hostname1Adaptor.h" 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | /* 21 | * Implementation of adaptor class Hostname1Adaptor 22 | */ 23 | 24 | Hostname1Adaptor::Hostname1Adaptor(QObject *parent) 25 | : QDBusAbstractAdaptor(parent) 26 | { 27 | // constructor 28 | setAutoRelaySignals(true); 29 | } 30 | 31 | Hostname1Adaptor::~Hostname1Adaptor() 32 | { 33 | // destructor 34 | } 35 | 36 | QString Hostname1Adaptor::staticHostname() const 37 | { 38 | // get the value of property StaticHostname 39 | return qvariant_cast< QString >(parent()->property("StaticHostname")); 40 | } 41 | 42 | void Hostname1Adaptor::SetStaticHostname(const QString &in0, bool in1) 43 | { 44 | // handle method call org.freedesktop.hostname1.SetStaticHostname 45 | QMetaObject::invokeMethod(parent(), "SetStaticHostname", Q_ARG(QString, in0), Q_ARG(bool, in1)); 46 | } 47 | 48 | -------------------------------------------------------------------------------- /tools/qdbusxml2cpp/README: -------------------------------------------------------------------------------- 1 | This is a modified version of the offficial qdbusxml2cpp, born with the support of 2 | property changed signals. 3 | -------------------------------------------------------------------------------- /tools/qdbusxml2cpp/qdbusxml2cpp.pro: -------------------------------------------------------------------------------- 1 | TARGET = qdbusxml2cpp-fix 2 | 3 | TEMPLATE = app 4 | QT += core dbus-private 5 | 6 | SOURCES += qdbusxml2cpp.cpp 7 | 8 | DESTDIR = $$PWD/../../bin/ 9 | 10 | CONFIG += c++11 11 | 12 | load(dtk_qmake) 13 | 14 | host_sw_64 { 15 | QMAKE_CXXFLAGS += -mieee 16 | } 17 | -------------------------------------------------------------------------------- /tools/tools.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += qdbusxml2cpp 3 | -------------------------------------------------------------------------------- /xml/com.deepin.ABRecovery.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /xml/com.deepin.AppStore.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /xml/com.deepin.ExportedInterface: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /xml/com.deepin.LastoreSessionHelper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /xml/com.deepin.SessionManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /xml/com.deepin.WMSwitcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /xml/com.deepin.api.SoundThemePlayer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /xml/com.deepin.appstore.Metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /xml/com.deepin.chromeExtension.TabsLimit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.ACLNetwork.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.AirplaneMode.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Audio.Meter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Audio.Sink.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | \n 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Audio.SinkInput.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Audio.Source.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Authenticate.CharaManger.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Authenticate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Fprintd.Device.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Fprintd.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Gesture.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Grub2.EditAuthentication.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Grub2.Theme.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Grub2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.ImageBlur.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.ImageEffect.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.InputDevice.Mouse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.InputDevice.TouchPad.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.InputDevice.TrackPoint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.InputDevice.Wacom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.InputDevices.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.LangSelector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Logined.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Mime.Media.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Mime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Miracast.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Network.ProxyChains.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.PowerManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.ResourceManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Search.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.SoundEffect.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.SystemInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /xml/com.deepin.daemon.Timedated.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /xml/com.deepin.dde.Clipboard.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /xml/com.deepin.dde.Launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /xml/com.deepin.dde.daemon.Dock.Entry.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /xml/com.deepin.deepinid.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /xml/com.deepin.defender.hmiscreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /xml/com.deepin.lastore.Job.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /xml/com.deepin.lastore.Smartmirror.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /xml/com.deepin.sync.daemon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /xml/com.deepin.system.SystemDisplay.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /xml/com.deepin.system.SystemPower.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /xml/com.deepin.system.userexperience.Daemon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /xml/com.iflytek.aiservice.asr.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /xml/com.iflytek.aiservice.ocr.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /xml/com.iflytek.aiservice.session.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /xml/com.iflytek.aiservice.trans.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /xml/com.iflytek.aiservice.tts.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /xml/org.ayatana.bamf.window.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /xml/org.bluez.obex.AgentManager1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /xml/org.bluez.obex.Client1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /xml/org.bluez.obex.ObjectPush1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /xml/org.bluez.obex.Session1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /xml/org.bluez.obex.Transfer1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /xml/org.freedesktop.DBus.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /xml/org.freedesktop.DisplayManager.Seat.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /xml/org.freedesktop.DisplayManager.Session.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /xml/org.freedesktop.DisplayManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /xml/org.freedesktop.FileManager1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /xml/org.freedesktop.Hostname1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /xml/org.freedesktop.Notifications.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /xml/org.freedesktop.login1.session.self.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /xml/org.kde.kwin.Effects.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | --------------------------------------------------------------------------------