├── .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 ├── .gitignore ├── .gitlab-ci.yml ├── .obs └── workflows.yml ├── .packit.yaml ├── .reuse └── dep5 ├── CHANGELOG.md ├── LICENSE ├── LICENSES ├── CC-BY-4.0.txt ├── CC0-1.0.txt ├── GFDL-1.3-or-later.txt └── GPL-3.0-or-later.txt ├── Makefile ├── README.md ├── README.zh_CN.md ├── _tool ├── generator │ ├── config.go │ ├── go.mod │ ├── go.sum │ ├── main.go │ ├── sig.go │ └── source_file.go └── prop_gen │ ├── gen.sh │ └── main.go ├── archlinux └── PKGBUILD ├── com.deepin.daemon.grub2 ├── Grub2.xml ├── auto.go ├── auto_mock.go └── config.json ├── debian ├── changelog ├── control ├── copyright ├── gbp.conf ├── rules └── source │ └── format ├── discard ├── org.freedesktop.colormanager │ ├── Manager.xml │ ├── Profile.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.freedesktop.miracle.wfd │ ├── Session.xml │ ├── Sink.xml │ ├── Wfd.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json └── org.freedesktop.miracle.wifi │ ├── Link.xml │ ├── Peer.xml │ ├── Wifi.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── docs └── config.md ├── gen.sh ├── go.mod ├── go.sum ├── object_manager ├── objectmanager.go └── objectmanager_mock.go ├── org.deepin.AtomicUpgrade1 ├── AtomicUpgrade1.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.desktopspec.ConfigManager ├── ConfigManager.xml ├── Manager.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.freedesktop.upower ├── UPower.xml ├── auto.go ├── auto_mock.go └── config.json ├── rpm └── golang-github-linuxdeepin-dbus-factory.spec ├── session ├── com.deepin.api.cursorhelper │ ├── CursorHelper.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.api.lunarcalendar │ ├── LunarCalendar.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── com.deepin.api.pinyin │ ├── Pinyin.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.api.xeventmonitor │ ├── XEventMonitor.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── com.deepin.dataserver.Calendar │ ├── HuangLi.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── com.deepin.dde.ControlCenter │ ├── ControlCenter.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.dde.daemon.dock │ ├── Dock.xml │ ├── Entry.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manutal.go ├── com.deepin.dde.daemon.launcher │ ├── Launcher.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── com.deepin.dde.launcher │ ├── Launcher.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.dde.lockfront │ ├── LockFront.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.dde.notification │ ├── Notification.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.dde.osd │ ├── OSD.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.dde.shutdownfront │ ├── ShutdownFront.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.sessionmanager │ ├── SessionManager.xml │ ├── StartManager.xml │ ├── WMSwitcher.xml │ ├── XSettings.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.wm │ ├── Wm.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── com.deepin.wmswitcher │ ├── WMSwitcher.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.ayatana.bamf │ ├── Application.xml │ ├── Control.xml │ ├── Matcher.xml │ ├── Window.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.bluez.obex │ ├── Manager.xml │ ├── Session.xml │ ├── Transfer.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.EventLog1 │ ├── EventLog.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.application1 │ ├── Application.xml │ ├── Instance.xml │ ├── Manager.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.audio1 │ ├── Audio.xml │ ├── Sink.xml │ ├── SinkInput.xml │ ├── Source.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.deepin.dde.bluetooth1 │ ├── Bluetooth.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.clipboard1 │ ├── Clipboard.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.cursorhelper1 │ ├── CursorHelper.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.daemon.dock1 │ ├── Dock.xml │ ├── Entry.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.deepin.dde.daemon.launcher1 │ ├── Launcher.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.deepin.dde.display1 │ ├── Display.xml │ ├── Monitor.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.deepin.dde.inputdevices1 │ ├── Keyboard.xml │ ├── TouchPad.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.kwayland1 │ ├── OutputManagement.xml │ ├── Window.xml │ ├── WindowManager.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.deepin.dde.lastore1.agent │ ├── Agent.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.launcher1 │ ├── Launcher.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.lockfront1 │ ├── LockFront.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.network1 │ ├── Network.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.notification1 │ ├── Notification.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.osd1 │ ├── OSD.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.pinyin1 │ ├── Pinyin.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.sessionmanager1 │ ├── SessionManager.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.sessionwatcher1 │ ├── SessionWatcher.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.shutdownfront1 │ ├── ShutdownFront.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.startmanager1 │ ├── StartManager.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.timedate1 │ ├── Timedate.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.uadpagent1 │ ├── UadpAgent.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.wmswitcher1 │ ├── WMSwitcher.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.deepin.dde.xeventmonitor1 │ ├── XEventMonitor.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.deepin.dde.xsettings1 │ ├── XSettings.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.desktopspec.applicationmanager1 │ ├── Application.xml │ ├── Manager.xml │ ├── MimeManager.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.freedesktop.dbus │ ├── DBus.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.freedesktop.notifications │ ├── Notifications.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.freedesktop.screensaver │ ├── ScreenSaver.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json ├── org.freedesktop.secrets │ ├── Collection.xml │ ├── Item.xml │ ├── Prompt.xml │ ├── Service.xml │ ├── Session.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.freedesktop.systemd1 │ ├── Manager.xml │ ├── Unit.Service.xml │ ├── Unit.xml │ ├── auto.go │ ├── auto_mock.go │ ├── config.json │ └── manual.go ├── org.kde.kwin │ ├── Compositor.xml │ ├── InputDevice.xml │ ├── InputDeviceManager.xml │ ├── KWin.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json └── org.mpris.mediaplayer2 │ ├── MediaPlayer.xml │ ├── auto.go │ ├── auto_mock.go │ └── config.json └── system ├── com.deepin.abrecovery ├── ABRecovery.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.api.device ├── Device.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.api.localehelper ├── LocaleHelper.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.api.soundthemeplayer ├── SoundThemePlayer.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.daemon.apps ├── Apps.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.daemon.authenticate.BiometricsDriver ├── BiometricsDriver.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.daemon.authenticate.face ├── Face.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.daemon.authenticate.fingerprint ├── CommonDevice.xml ├── Device.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.daemon.authenticate.ukey ├── UKey.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.daemon.authenticate ├── Authenticate.xml ├── CharaManger.xml ├── Face.xml ├── Fingerprint.xml ├── UKey.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── com.deepin.devicemanager ├── DeviceManager.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.license ├── License.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.system.display ├── Display.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.system.inputdevices ├── InputDevices.xml ├── Touchpad.xml ├── Touchscreen.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.deepin.system.procs ├── Procs.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── com.deepin.system.proxy ├── App.xml ├── Global.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── com.deepin.udcp.iam ├── UdcpCache.xml ├── auto.go ├── auto_mock.go └── config.json ├── com.huawei.fingerprint ├── Fingerprint.xml ├── auto.go ├── auto_mock.go └── config.json ├── fi.w1.wpa_supplicant1 ├── BSS.xml ├── Interface.xml ├── WPASupplicant.xml ├── auto.go ├── auto_mock.go └── config.json ├── net.hadess.sensorproxy ├── SensorProxy.xml ├── auto.go ├── auto_mock.go └── config.json ├── net.reactivated.fprint ├── Device.xml ├── Manager.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.bluez.obex ├── Manager.xml ├── Session.xml ├── Transfer.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.bluez ├── Device.xml ├── HCI.xml ├── Manager.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.accounts1 ├── Accounts.xml ├── User.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.deepin.dde.airplanemode1 ├── AirplaneMode.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.apps1 ├── Apps.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.atomicupgrade1 ├── AtomicUpgrade1.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.authenticate1.BiometricsDriver ├── BiometricsDriver.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.authenticate1.face ├── Face.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.authenticate1.fingerprint ├── CommonDevice.xml ├── Device.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.authenticate1.ukey ├── UKey.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.authenticate1 ├── Authenticate.xml ├── CharaManger.xml ├── Face.xml ├── Fingerprint.xml ├── UKey.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.deepin.dde.backlighthelper1 ├── Backlight.xml ├── DDCCI.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.bluetooth1.agent ├── Agent.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.bluetooth1 ├── Bluetooth.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.daemon1 ├── Daemon.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.device1 ├── Device.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.display1 ├── Display.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.fprintd1 ├── Device.xml ├── Fprintd.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.gesture1 ├── Gesture.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.greeter1 ├── Greeter.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.grub2 ├── Grub2.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.imageblur1 ├── ImageBlur.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.imageeffect1 ├── ImageEffect.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.inputdevices1 ├── InputDevices.xml ├── Touchpad.xml ├── Touchscreen.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.ipwatchd1 ├── IPWatchD.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.keyevent1 ├── KeyEvent.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.lastore1 ├── Job.xml ├── Lastore.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.deepin.dde.localehelper1 ├── LocaleHelper.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.network1 ├── Network.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.networkproxy1 ├── App.xml ├── Global.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.deepin.dde.power1 ├── Battery.xml ├── Power.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.powermanager1 ├── PowerManager.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.procs1 ├── Procs.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.deepin.dde.soundthemeplayer1 ├── SoundThemePlayer.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.systeminfo1 ├── SystemInfo.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.deepin.dde.timedate1 ├── Timedate.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.deepin.dde.uadp1 ├── Uadp.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.freedesktop.DisplayManager ├── DisplayManager.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.freedesktop.dbus ├── DBus.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.freedesktop.geoclue2 ├── Client.xml ├── Location.xml ├── Manager.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.freedesktop.hostname1 ├── Hostname.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.freedesktop.login1 ├── Manager.xml ├── Seat.xml ├── Session.xml ├── User.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.freedesktop.modemmanager1 ├── Bearer.xml ├── Call.xml ├── Modem.Firmware.xml ├── Modem.Location.xml ├── Modem.Messaging.xml ├── Modem.Modem3gpp.Ussd.xml ├── Modem.Modem3gpp.xml ├── Modem.ModemCdma.xml ├── Modem.Oma.xml ├── Modem.Signal.xml ├── Modem.Simple.xml ├── Modem.Time.xml ├── Modem.Voice.xml ├── Modem.xml ├── ModemManager.xml ├── Sim.xml ├── Sms.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.freedesktop.networkmanager ├── AccessPoint.xml ├── AgentManager.xml ├── Checkpoint.xml ├── Connection.Active.xml ├── DHCP4Config.xml ├── DHCP6Config.xml ├── Device.Adsl.xml ├── Device.Bluetooth.xml ├── Device.Bond.xml ├── Device.Bridge.xml ├── Device.Dummy.xml ├── Device.Generic.xml ├── Device.IPTunnel.xml ├── Device.Infiniband.xml ├── Device.Macsec.xml ├── Device.Macvlan.xml ├── Device.Modem.xml ├── Device.OlpcMesh.xml ├── Device.Statistics.xml ├── Device.Team.xml ├── Device.Tun.xml ├── Device.Veth.xml ├── Device.Vlan.xml ├── Device.Vxlan.xml ├── Device.WiMax.xml ├── Device.Wired.xml ├── Device.Wireless.xml ├── Device.xml ├── DnsManager.xml ├── IP4Config.xml ├── IP6Config.xml ├── NetworkManager.xml ├── PPP.xml ├── SecretAgent.xml ├── Settings.Connection.xml ├── Settings.xml ├── VPN.Connection.xml ├── VPN.Plugin.xml ├── WiMax.Nsp.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.freedesktop.policykit1 ├── Authority.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.freedesktop.systemd1 ├── Manager.xml ├── Unit.Service.xml ├── Unit.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go ├── org.freedesktop.timedate1 ├── Timedate.xml ├── auto.go ├── auto_mock.go └── config.json ├── org.freedesktop.timesync1 ├── Timesync1.xml ├── auto.go ├── auto_mock.go └── config.json └── org.freedesktop.udisks2 ├── Block.xml ├── Block1.xml ├── Drive.xml ├── Manager.xml ├── UDisks.xml ├── auto.go ├── auto_mock.go ├── config.json └── manual.go /.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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | local_test 3 | ./generator 4 | obj-x86_64-linux-gnu 5 | debian/.debhelper 6 | debian/debhelper-build-stamp 7 | debian/files 8 | debian/golang-github-linuxdeepin-go-dbus-factory-dev.substvars 9 | debian/golang-github-linuxdeepin-go-dbus-factory-dev 10 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | include: 2 | - remote: 'https://gitlab.deepin.io/dev-tools/letmeci/raw/master/gitlab-ci/dde.yml' 3 | -------------------------------------------------------------------------------- /.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 | filters: 27 | event: pull_request 28 | 29 | tag_build: 30 | steps: 31 | - trigger_services: 32 | project: deepin:Unstable:dde 33 | package: %{SCM_REPOSITORY_NAME} 34 | filters: 35 | event: tag_push 36 | 37 | commit_build: 38 | steps: 39 | - trigger_services: 40 | project: deepin:Develop:dde 41 | package: %{SCM_REPOSITORY_NAME} 42 | filters: 43 | event: push 44 | -------------------------------------------------------------------------------- /.packit.yaml: -------------------------------------------------------------------------------- 1 | # See the documentation for more information: 2 | # https://packit.dev/docs/configuration/ 3 | 4 | specfile_path: rpm/golang-github-linuxdeepin-dbus-factory.spec 5 | 6 | # add or remove files that should be synced 7 | synced_files: 8 | - rpm/golang-github-linuxdeepin-dbus-factory.spec 9 | - .packit.yaml 10 | 11 | upstream_package_name: go-dbus-factory 12 | # downstream (Fedora) RPM package name 13 | downstream_package_name: golang-github-linuxdeepin-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/golang-github-linuxdeepin-dbus-factory.spec" 18 | -------------------------------------------------------------------------------- /.reuse/dep5: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: go-dbus-factory 3 | Upstream-Contact: UnionTech Software Technology Co., Ltd. <> 4 | Source: https://github.com/linuxdeepin/go-dbus-factory 5 | 6 | # gitignore 7 | Files: .gitignore 8 | Copyright: None 9 | License: CC0-1.0 10 | 11 | # ci 12 | Files: .github/* .obs/* .gitlab-ci.yml 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 CHANGELOG.md 23 | Copyright: UnionTech Software Technology Co., Ltd. 24 | License: CC-BY-4.0 25 | 26 | # json yaml 27 | Files: *.json *.yaml 28 | Copyright: UnionTech Software Technology Co., Ltd. 29 | License: GPL-3.0-or-later 30 | 31 | # xml 32 | Files: *.xml 33 | Copyright: UnionTech Software Technology Co., Ltd. 34 | License: GPL-3.0-or-later 35 | 36 | # org.freedesktop.modemmanager1 xml 37 | Files: system/org.freedesktop.modemmanager1/*.xml 38 | Copyright: 2011-2013 Red Hat, Inc. 2011-2013 Google, Inc. 2011-2013 Lanedo GmbH. 2015 Marco Bascetta 39 | License: GFDL-1.3-or-later 40 | 41 | # docs 42 | Files: docs/* 43 | Copyright: UnionTech Software Technology Co., Ltd. 44 | License: GPL-3.0-or-later 45 | 46 | # Project file 47 | Files: Makefile 48 | Copyright: None 49 | License: CC0-1.0 50 | 51 | # sh 52 | Files: gen.sh _tool/prop_gen/gen.sh 53 | Copyright: None 54 | License: GPL-3.0-or-later 55 | 56 | # project file 57 | Files: _tool/generator/source_file.go 58 | Copyright: UnionTech Software Technology Co., Ltd. 59 | License: GPL-3.0-or-later 60 | 61 | # gomod files 62 | Files: go.mod go.sum _tool/generator/go.mod _tool/generator/go.sum 63 | Copyright: None 64 | License: CC0-1.0 65 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | PREFIX = /usr 2 | GOSITE_DIR = ${PREFIX}/share/gocode 3 | GOPKG_PERFIX = github.com/linuxdeepin/go-dbus-factory 4 | SRC_DIR=${DESTDIR}${GOSITE_DIR}/src/${GOPKG_PERFIX} 5 | 6 | all: build 7 | 8 | build: 9 | echo ignore build 10 | 11 | print_gopath: 12 | GOPATH="${CURDIR}/${GOPATH_DIR}:${GOPATH}" 13 | 14 | bin: 15 | cd _tool/generator && go build -o generator 16 | cp _tool/generator/generator . 17 | 18 | install: 19 | mkdir -p ${SRC_DIR} 20 | for dir in object_manager net.* org.* com.*;do\ 21 | mkdir -p ${SRC_DIR}/$$dir;\ 22 | cp $$dir/*.go ${SRC_DIR}/$$dir;\ 23 | done 24 | 25 | vet: 26 | go vet ./... 27 | go vet ./_tool/generator 28 | go vet ./_tool/prop_gen 29 | -------------------------------------------------------------------------------- /_tool/generator/go.mod: -------------------------------------------------------------------------------- 1 | module generator 2 | 3 | go 1.20 4 | 5 | require ( 6 | github.com/godbus/dbus/v5 v5.1.0 7 | github.com/linuxdeepin/go-lib v0.0.0-20230710061554-45bd27d07e04 8 | ) 9 | 10 | require ( 11 | github.com/fsnotify/fsnotify v1.5.4 // indirect 12 | github.com/linuxdeepin/go-gir v0.0.0-20230331033513-a8d7a9e89f9b // indirect 13 | golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect 14 | ) 15 | -------------------------------------------------------------------------------- /_tool/prop_gen/gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -x 3 | export GO111MODULE=off 4 | dstFile=$proj_deepin_go_lib/dbusutil/proxy/prop.go 5 | go run main.go > $dstFile 6 | goimports -w $dstFile 7 | -------------------------------------------------------------------------------- /com.deepin.daemon.grub2/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.daemon.Grub2", 3 | "Objects": [ 4 | { 5 | "Type": "Grub2", 6 | "Path": "/com/deepin/daemon/Grub2", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.daemon.Grub2", 10 | "Type": "grub2" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: golang-github-linuxdeepin-go-dbus-factory 2 | Section: devel 3 | Priority: optional 4 | Maintainer: Deepin Packages Builder 5 | Build-Depends: 6 | debhelper-compat (= 11), 7 | dh-golang, 8 | golang-any, 9 | golang-github-linuxdeepin-go-lib-dev, 10 | golang-github-stretchr-testify-dev, 11 | golang-golang-x-tools, 12 | Standards-Version: 4.5.1 13 | Homepage: https://github.com/linuxdeepin/go-dbus-factory 14 | XS-Go-Import-Path: github.com/linuxdeepin/go-dbus-factory 15 | Testsuite: autopkgtest-pkg-go 16 | 17 | Package: golang-github-linuxdeepin-go-dbus-factory-dev 18 | Architecture: all 19 | Depends: 20 | golang-github-linuxdeepin-go-lib-dev, 21 | golang-github-stretchr-testify-dev, 22 | ${misc:Depends}, 23 | ${shlibs:Depends}, 24 | Description: mirrored from https://cr.deepin.io/#/admin/projects/go-dbus-factory 25 | Convenient go binding code for automatically generating DBus services 26 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: go-dbus-factory 3 | Source: https://github.com/linuxdeepin/go-dbus-factory 4 | 5 | Files: * 6 | Copyright: 2017 Wuhan Deepin Technology Co.,Ltd. 7 | License: TODO 8 | 9 | Files: debian/* 10 | Copyright: 2017 root 11 | License: TODO 12 | Comment: Debian packaging is licensed under the same terms as upstream 13 | 14 | License: TODO 15 | TODO 16 | -------------------------------------------------------------------------------- /debian/gbp.conf: -------------------------------------------------------------------------------- 1 | [DEFAULT] 2 | pristine-tar = True 3 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | export GOCACHE := /tmp/gocache 4 | 5 | ifeq ($(DEB_BUILD_ARCH),sw_64) 6 | %: 7 | dh $@ 8 | else 9 | %: 10 | dh $@ --buildsystem=golang --with=golang 11 | endif 12 | 13 | 14 | 15 | override_dh_auto_clean: 16 | dh_auto_clean -- 17 | rm -fr obj-x86_64-linux-gnu 18 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /discard/org.freedesktop.colormanager/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.ColorManager", 3 | "Objects": [ 4 | { 5 | "Type": "Manager", 6 | "Path": "/org/freedesktop/ColorManager", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.ColorManager", 10 | "Type": "manager" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Profile", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.freedesktop.ColorManager.Profile", 19 | "Type": "profile", 20 | "Fixes": { 21 | "p/Metadata": { 22 | "Type": "PropProfileMetadata", 23 | "ValueType": "map[string]string" 24 | } 25 | } 26 | } 27 | ] 28 | } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /discard/org.freedesktop.miracle.wfd/Session.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /discard/org.freedesktop.miracle.wfd/Sink.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /discard/org.freedesktop.miracle.wfd/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.miracle.wfd", 3 | "Objects": [ 4 | { 5 | "Type": "Wfd", 6 | "Path": "/org/freedesktop/miracle/wfd", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.DBus.ObjectManager" 10 | }, 11 | { 12 | "Name": "org.freedesktop.miracle.wfd", 13 | "Type": "wfd" 14 | } 15 | ] 16 | }, 17 | { 18 | "Type": "Sink", 19 | "Interfaces": [ 20 | { 21 | "Name": "org.freedesktop.miracle.wfd.Sink", 22 | "Type": "sink" 23 | } 24 | ] 25 | }, 26 | { 27 | "Type": "Session", 28 | "Interfaces": [ 29 | { 30 | "Name": "org.freedesktop.miracle.wfd.Session", 31 | "Type": "session" 32 | } 33 | ] 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /discard/org.freedesktop.miracle.wifi/Peer.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 | -------------------------------------------------------------------------------- /discard/org.freedesktop.miracle.wifi/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.miracle.wifi", 3 | "Objects": [ 4 | { 5 | "Type": "Wifi", 6 | "Path": "/org/freedesktop/miracle/wifi", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.DBus.ObjectManager" 10 | } 11 | ] 12 | }, 13 | { 14 | "Type": "Link", 15 | "Interfaces": [ 16 | { 17 | "Name": "org.freedesktop.miracle.wifi.Link", 18 | "Type": "link" 19 | } 20 | ] 21 | }, 22 | { 23 | "Type": "Peer", 24 | "Interfaces": [ 25 | { 26 | "Name": "org.freedesktop.miracle.wifi.Peer", 27 | "Type": "peer" 28 | } 29 | ] 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /docs/config.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```go 4 | type ServiceConfig struct { 5 | Service string // optional 6 | Objects []*ObjectConfig 7 | PropertyTypes []PropertyTypeConfig 8 | } 9 | 10 | type ObjectConfig struct { 11 | Type string 12 | Path string // optional 13 | XMLFile string // optional 14 | XMLFiles []string // optional 15 | Interfaces []*InterfaceConfig 16 | } 17 | 18 | type InterfaceConfig struct { 19 | Name string 20 | Type string 21 | Accessor string 22 | Fixes map[string]json.RawMessage 23 | TypeDefined bool 24 | } 25 | 26 | type PropertyTypeConfig struct { 27 | Type string 28 | ValueType string 29 | EmptyValue string 30 | } 31 | ``` 32 | 33 | ObjectConfig 的 XMLFiles 字段可以用 glob 通配符。 34 | 35 | InterfaceConfig 中的Fixes 字段 map 的键值规则: 36 | 37 | 键根据不同对象选择不同的前缀,方法的为 "m/",属性的为 "p/",信号的为 "s/"。 38 | 39 | 如果以 "m/" 或 "s/" 开头,值部分为 []ArgFix。 40 | 41 | ```go 42 | type ArgFix struct { 43 | Name string 44 | Type string 45 | } 46 | 47 | ``` 48 | 49 | 如果以 "p/" 开关,值部分为 PropertyFix。 50 | ```go 51 | type PropertyFix struct { 52 | // PropertyTypeConfig 已展开 53 | Type string 54 | ValueType string 55 | EmptyValue string 56 | 57 | RenameTo string 58 | RefType string 59 | } 60 | ``` 61 | Type 为属性的 Go 类型,一般为 "Prop" + interface 基本名 + 属性名。 62 | ValueType 为属性值的 Go 类型。 63 | EmptyValue 为属性值为空时的 Go 表示,如果 ValueType 以 "[]" 或 "map[" 开头,可以省略。可以使用 $T 指代 ValueType 的值。 64 | RenameTo 重命名属性。 65 | -------------------------------------------------------------------------------- /gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | for dir in `find -maxdepth 2 -type d`; do 5 | if [ -f $dir/config.json ]; then 6 | ./generator $dir 7 | pushd $dir 8 | go build -v 9 | popd 10 | fi 11 | done 12 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/linuxdeepin/go-dbus-factory 2 | 3 | go 1.20 4 | 5 | require ( 6 | github.com/godbus/dbus/v5 v5.1.0 7 | github.com/linuxdeepin/go-lib v0.0.0-20230406092403-b4b4282fc513 8 | github.com/stretchr/testify v1.8.1 9 | ) 10 | 11 | require ( 12 | github.com/davecgh/go-spew v1.1.1 // indirect 13 | github.com/pmezard/go-difflib v1.0.0 // indirect 14 | github.com/stretchr/objx v0.5.0 // indirect 15 | gopkg.in/yaml.v3 v3.0.1 // indirect 16 | ) 17 | -------------------------------------------------------------------------------- /object_manager/objectmanager_mock.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package object_manager 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/godbus/dbus/v5" 11 | "github.com/linuxdeepin/go-lib/dbusutil" 12 | "github.com/stretchr/testify/mock" 13 | ) 14 | 15 | type MockInterfaceObjectManager struct { 16 | mock.Mock 17 | } 18 | 19 | // method GetManagedObjects 20 | 21 | func (v *MockInterfaceObjectManager) GetManagedObjects(flags dbus.Flags) (map[dbus.ObjectPath]map[string]map[string]dbus.Variant, error) { 22 | args := v.Called(flags) 23 | 24 | ret0, ok := args.Get(0).(map[dbus.ObjectPath]map[string]map[string]dbus.Variant) 25 | if !ok { 26 | panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, args.Get(0))) 27 | } 28 | 29 | return ret0, args.Error(1) 30 | } 31 | 32 | // signal InterfacesAdded 33 | 34 | func (v *MockInterfaceObjectManager) ConnectInterfacesAdded(cb func(object_path dbus.ObjectPath, interfaces_and_properties map[string]map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error) { 35 | args := v.Called(cb) 36 | 37 | ret0, ok := args.Get(0).(dbusutil.SignalHandlerId) 38 | if !ok { 39 | panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, args.Get(0))) 40 | } 41 | 42 | return ret0, args.Error(1) 43 | } 44 | 45 | // signal InterfacesRemoved 46 | 47 | func (v *MockInterfaceObjectManager) ConnectInterfacesRemoved(cb func(object_path dbus.ObjectPath, interfaces []string)) (dbusutil.SignalHandlerId, error) { 48 | args := v.Called(cb) 49 | 50 | ret0, ok := args.Get(0).(dbusutil.SignalHandlerId) 51 | if !ok { 52 | panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, args.Get(0))) 53 | } 54 | 55 | return ret0, args.Error(1) 56 | } 57 | -------------------------------------------------------------------------------- /org.deepin.AtomicUpgrade1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.AtomicUpgrade1", 3 | "Objects": [ 4 | { 5 | "Type": "AtomicUpgrade1", 6 | "Path": "/org/deepin/AtomicUpgrade1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.AtomicUpgrade1", 10 | "Type": "atomicUpgrade1" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /org.desktopspec.ConfigManager/ConfigManager.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 | -------------------------------------------------------------------------------- /org.desktopspec.ConfigManager/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.desktopspec.ConfigManager", 3 | "Objects": [ 4 | { 5 | "Type": "ConfigManager", 6 | "Path": "/", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.desktopspec.ConfigManager" 10 | } 11 | ] 12 | }, 13 | { 14 | "Type": "Manager", 15 | "Interfaces": [ 16 | { 17 | "Name": "org.desktopspec.ConfigManager.Manager" 18 | } 19 | ] 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /org.freedesktop.upower/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.UPower", 3 | "Objects": [ 4 | { 5 | "Type": "UPower", 6 | "Path": "/org/freedesktop/UPower", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.UPower", 10 | "Type": "upower" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /rpm/golang-github-linuxdeepin-dbus-factory.spec: -------------------------------------------------------------------------------- 1 | # Run tests in check section 2 | # disable for bootstrapping 3 | %bcond_with check 4 | 5 | 6 | %global pkgname github.com/linuxdeepin/go-dbus-factory 7 | 8 | #2020-04-26增加%global with_debug 1 9 | %global with_debug 1 10 | 11 | %if 0%{?with_debug} 12 | %global debug_package %{nil} 13 | %endif 14 | 15 | Name: golang-github-linuxdeepin-go-dbus-factory 16 | Version: 1.9.2 17 | Release: 1 18 | Summary: GO DBus factory for Deepin Desktop Environment 19 | License: GPLv3 20 | URL: %{gourl} 21 | Source0: %{name}-%{version}.tar.gz 22 | BuildRequires: compiler(go-compiler) 23 | BuildRequires: go-srpm-macros 24 | 25 | %description 26 | %{summary}. 27 | 28 | %package -n %{name}-devel 29 | Summary: %{summary} 30 | BuildArch: noarch 31 | 32 | 33 | %description -n %{name}-devel 34 | %{summary}. 35 | 36 | 37 | 38 | %prep 39 | %forgeautosetup 40 | 41 | 42 | %install 43 | install -d -p %{buildroot}%{gopath}/src/%{pkgname}/ 44 | for file in $(find . -iname "*.go" | grep -v "_tool") ; do 45 | install -d -p %{buildroot}%{gopath}/src/%{pkgname}/$(dirname $file) 46 | cp -pav $file %{buildroot}%{gopath}/src/%{pkgname}/$file 47 | echo "%%{gopath}/src/%%{pkgname}/$file" >> devel.file-list 48 | done 49 | 50 | cp -pav README.md %{buildroot}%{gopath}/src/%{pkgname}/README.md 51 | cp -pav CHANGELOG.md %{buildroot}%{gopath}/src/%{pkgname}/CHANGELOG.md 52 | echo "%%{gopath}/src/%%{pkgname}/README.md" >> devel.file-list 53 | echo "%%{gopath}/src/%%{pkgname}/CHANGELOG.md" >> devel.file-list 54 | 55 | %if %{with check} 56 | %check 57 | %gochecks 58 | %endif 59 | 60 | %files -n %{name}-devel -f devel.file-list 61 | %doc README.md CHANGELOG.md 62 | 63 | %changelog 64 | * Thu Mar 18 2021 uoser - 1.9.2-1 65 | - Update to 1.9.2 66 | -------------------------------------------------------------------------------- /session/com.deepin.api.cursorhelper/CursorHelper.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /session/com.deepin.api.cursorhelper/auto.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/com.deepin.api.cursorhelper"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package cursorhelper 7 | 8 | import ( 9 | "unsafe" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | ) 14 | 15 | type CursorHelper interface { 16 | cursorHelper // interface com.deepin.api.CursorHelper 17 | proxy.Object 18 | } 19 | 20 | type objectCursorHelper struct { 21 | interfaceCursorHelper // interface com.deepin.api.CursorHelper 22 | proxy.ImplObject 23 | } 24 | 25 | func NewCursorHelper(conn *dbus.Conn) CursorHelper { 26 | obj := new(objectCursorHelper) 27 | obj.ImplObject.Init_(conn, "com.deepin.api.CursorHelper", "/com/deepin/api/CursorHelper") 28 | return obj 29 | } 30 | 31 | type cursorHelper interface { 32 | GoSet(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call 33 | Set(flags dbus.Flags, name string) error 34 | } 35 | 36 | type interfaceCursorHelper struct{} 37 | 38 | func (v *interfaceCursorHelper) GetObject_() *proxy.ImplObject { 39 | return (*proxy.ImplObject)(unsafe.Pointer(v)) 40 | } 41 | 42 | func (*interfaceCursorHelper) GetInterfaceName_() string { 43 | return "com.deepin.api.CursorHelper" 44 | } 45 | 46 | // method Set 47 | 48 | func (v *interfaceCursorHelper) GoSet(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call { 49 | return v.GetObject_().Go_(v.GetInterfaceName_()+".Set", flags, ch, name) 50 | } 51 | 52 | func (v *interfaceCursorHelper) Set(flags dbus.Flags, name string) error { 53 | return (<-v.GoSet(flags, make(chan *dbus.Call, 1), name).Done).Err 54 | } 55 | -------------------------------------------------------------------------------- /session/com.deepin.api.cursorhelper/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/com.deepin.api.cursorhelper"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package cursorhelper 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockCursorHelper struct { 17 | MockInterfaceCursorHelper // interface com.deepin.api.CursorHelper 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceCursorHelper struct { 22 | mock.Mock 23 | } 24 | 25 | // method Set 26 | 27 | func (v *MockInterfaceCursorHelper) GoSet(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, name) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceCursorHelper) Set(flags dbus.Flags, name string) error { 39 | mockArgs := v.Called(flags, name) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | -------------------------------------------------------------------------------- /session/com.deepin.api.cursorhelper/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.api.CursorHelper", 3 | "Objects": [ 4 | { 5 | "Type": "CursorHelper", 6 | "Path": "/com/deepin/api/CursorHelper", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.api.CursorHelper", 10 | "Type": "cursorHelper" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.api.lunarcalendar/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.api.LunarCalendar", 3 | "Objects": [ 4 | { 5 | "Type": "LunarCalendar", 6 | "Path": "/com/deepin/api/LunarCalendar", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.api.LunarCalendar", 10 | "Type": "lunarCalendar", 11 | "Accessor": "LunarCalendar", 12 | "Fixes": { 13 | "m/GetFestivalsInRange": [ 14 | { 15 | "Name" : "result", 16 | "Type": "[]DayFestival" 17 | } 18 | ] 19 | } 20 | } 21 | ] 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /session/com.deepin.api.lunarcalendar/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package lunarcalendar 6 | 7 | type DayFestival struct { 8 | Year int32 9 | Month int32 10 | Day int32 11 | Festivals []string 12 | } 13 | -------------------------------------------------------------------------------- /session/com.deepin.api.pinyin/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.api.Pinyin", 3 | "Objects": [ 4 | { 5 | "Type": "Pinyin", 6 | "Path": "/com/deepin/api/Pinyin", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.api.Pinyin", 10 | "Type": "pinyin" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.api.xeventmonitor/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"com.deepin.api.XEventMonitor", 3 | "Objects": [ 4 | { 5 | "Type": "XEventMonitor", 6 | "Path":"/com/deepin/api/XEventMonitor", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.api.XEventMonitor", 10 | "Type": "xEventMonitor", 11 | 12 | "Fixes": { 13 | "m/RegisterAreas": [ 14 | { 15 | "Name": "areas", 16 | "Type": "[]CoordinateRange" 17 | } 18 | ] 19 | } 20 | } 21 | ] 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /session/com.deepin.api.xeventmonitor/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package xeventmonitor 6 | 7 | type CoordinateRange struct { 8 | X1, Y1, X2, Y2 int32 9 | } 10 | -------------------------------------------------------------------------------- /session/com.deepin.dataserver.Calendar/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.dataserver.Calendar", 3 | "Objects": [ 4 | { 5 | "Type": "HuangLi", 6 | "Path": "/com/deepin/dataserver/Calendar/HuangLi", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.dataserver.Calendar.HuangLi", 10 | "Type": "huangLi", 11 | "Accessor": "HuangLi", 12 | "Fixes": { 13 | "m/GetFestivalsInRange": [ 14 | { 15 | "Name" : "result", 16 | "Type": "[]DayFestival" 17 | } 18 | ] 19 | } 20 | } 21 | ] 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /session/com.deepin.dataserver.Calendar/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package Calendar 6 | 7 | type DayFestival struct { 8 | Year int32 9 | Month int32 10 | Day int32 11 | Festivals []string 12 | } 13 | -------------------------------------------------------------------------------- /session/com.deepin.dde.ControlCenter/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.dde.ControlCenter", 3 | "Objects": [ 4 | { 5 | "Type": "ControlCenter", 6 | "Path": "/com/deepin/dde/ControlCenter", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.dde.ControlCenter", 10 | "Type": "controlCenter" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.dde.daemon.dock/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.dde.daemon.Dock", 3 | "Objects": [ 4 | { 5 | "Type": "Dock", 6 | "Path": "/com/deepin/dde/daemon/Dock", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.dde.daemon.Dock", 10 | "Type": "dock", 11 | "Fixes": { 12 | "p/FrontendWindowRect": { 13 | "Type": "PropDockFrontendWindowRect", 14 | "ValueType": "FrontendWindowRect", 15 | "EmptyValue": "$T{}" 16 | } 17 | } 18 | } 19 | ] 20 | }, 21 | { 22 | "Type": "Entry", 23 | "Path":"", 24 | "Interfaces": [ 25 | { 26 | "Name": "com.deepin.dde.daemon.Dock.Entry", 27 | "Type": "entry", 28 | "Fixes": { 29 | "p/WindowInfos": { 30 | "Type": "PropEntryWindowInfos", 31 | "ValueType": "map[uint32]WindowInfo" 32 | } 33 | } 34 | } 35 | ] 36 | } 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /session/com.deepin.dde.daemon.dock/manutal.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package dock 6 | 7 | type FrontendWindowRect struct { 8 | X, Y int32 9 | Width, Height uint32 10 | } 11 | 12 | type WindowInfo struct { 13 | Title string 14 | Flash bool 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.dde.daemon.launcher/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.dde.daemon.Launcher", 3 | "Objects": [ 4 | { 5 | "Type": "Launcher", 6 | "Path": "/com/deepin/dde/daemon/Launcher", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.dde.daemon.Launcher", 10 | "Type": "launcher", 11 | "Fixes": { 12 | "m/GetAllItemInfos": [ 13 | { 14 | "Name": "itemInfoList", 15 | "Type": "[]ItemInfo" 16 | } 17 | ], 18 | "m/GetItemInfo": [ 19 | { 20 | "Name": "itemInfo", 21 | "Type": "ItemInfo" 22 | } 23 | ], 24 | "s/ItemChanged": [ 25 | { 26 | "Name": "itemInfo", 27 | "Type": "ItemInfo" 28 | } 29 | ] 30 | } 31 | } 32 | ] 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /session/com.deepin.dde.daemon.launcher/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package launcher 6 | 7 | type ItemInfo struct { 8 | Path string 9 | Name string 10 | ID string 11 | Icon string 12 | CategoryID int64 13 | TimeInstalled int64 14 | } 15 | -------------------------------------------------------------------------------- /session/com.deepin.dde.launcher/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"com.deepin.dde.Launcher", 3 | "Objects": [ 4 | { 5 | "Type": "Launcher", 6 | "Path": "/com/deepin/dde/Launcher", 7 | "Interfaces": [ 8 | { 9 | "Name":"com.deepin.dde.Launcher", 10 | "Type":"launcher" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.dde.lockfront/config.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "Service":"com.deepin.dde.lockFront", 4 | "Objects": [ 5 | { 6 | "Type": "LockFront", 7 | "Path": "/com/deepin/dde/lockFront", 8 | "Interfaces": [ 9 | { 10 | "Name":"com.deepin.dde.lockFront", 11 | "Type":"lockfront" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /session/com.deepin.dde.notification/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.dde.osd", 3 | "Objects": [ 4 | { 5 | "Type": "Notification", 6 | "Path": "/com/deepin/dde/Notification", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.dde.Notification", 10 | "Type": "notification" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.dde.osd/OSD.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /session/com.deepin.dde.osd/auto.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/com.deepin.dde.osd"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package osd 7 | 8 | import ( 9 | "unsafe" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | ) 14 | 15 | type OSD interface { 16 | osd // interface com.deepin.dde.osd 17 | proxy.Object 18 | } 19 | 20 | type objectOSD struct { 21 | interfaceOsd // interface com.deepin.dde.osd 22 | proxy.ImplObject 23 | } 24 | 25 | func NewOSD(conn *dbus.Conn) OSD { 26 | obj := new(objectOSD) 27 | obj.ImplObject.Init_(conn, "com.deepin.dde.osd", "/") 28 | return obj 29 | } 30 | 31 | type osd interface { 32 | GoShowOSD(flags dbus.Flags, ch chan *dbus.Call, osd string) *dbus.Call 33 | ShowOSD(flags dbus.Flags, osd string) error 34 | } 35 | 36 | type interfaceOsd struct{} 37 | 38 | func (v *interfaceOsd) GetObject_() *proxy.ImplObject { 39 | return (*proxy.ImplObject)(unsafe.Pointer(v)) 40 | } 41 | 42 | func (*interfaceOsd) GetInterfaceName_() string { 43 | return "com.deepin.dde.osd" 44 | } 45 | 46 | // method ShowOSD 47 | 48 | func (v *interfaceOsd) GoShowOSD(flags dbus.Flags, ch chan *dbus.Call, osd string) *dbus.Call { 49 | return v.GetObject_().Go_(v.GetInterfaceName_()+".ShowOSD", flags, ch, osd) 50 | } 51 | 52 | func (v *interfaceOsd) ShowOSD(flags dbus.Flags, osd string) error { 53 | return (<-v.GoShowOSD(flags, make(chan *dbus.Call, 1), osd).Done).Err 54 | } 55 | -------------------------------------------------------------------------------- /session/com.deepin.dde.osd/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/com.deepin.dde.osd"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package osd 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockOSD struct { 17 | MockInterfaceOsd // interface com.deepin.dde.osd 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceOsd struct { 22 | mock.Mock 23 | } 24 | 25 | // method ShowOSD 26 | 27 | func (v *MockInterfaceOsd) GoShowOSD(flags dbus.Flags, ch chan *dbus.Call, osd string) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, osd) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceOsd) ShowOSD(flags dbus.Flags, osd string) error { 39 | mockArgs := v.Called(flags, osd) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | -------------------------------------------------------------------------------- /session/com.deepin.dde.osd/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"com.deepin.dde.osd", 3 | "Objects": [ 4 | { 5 | "Type": "OSD", 6 | "Path": "/", 7 | "Interfaces": [ 8 | { 9 | "Name":"com.deepin.dde.osd", 10 | "Type":"osd" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.dde.shutdownfront/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"com.deepin.dde.shutdownFront", 3 | "Objects": [ 4 | { 5 | "Type": "ShutdownFront", 6 | "Path": "/com/deepin/dde/shutdownFront", 7 | "Interfaces": [ 8 | { 9 | "Name":"com.deepin.dde.shutdownFront", 10 | "Type":"shutdownfront" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.sessionmanager/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.SessionManager", 3 | "Objects": [ 4 | { 5 | "Type": "StartManager", 6 | "Path": "/com/deepin/StartManager", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.StartManager", 10 | "Type": "startManager" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "SessionManager", 16 | "Path": "/com/deepin/SessionManager", 17 | "Interfaces": [ 18 | { 19 | "Name": "com.deepin.SessionManager", 20 | "Type": "sessionManager" 21 | } 22 | ] 23 | }, 24 | { 25 | "Type": "WMSwitcher", 26 | "Path": "/com/deepin/WMSwitcher", 27 | "Interfaces": [ 28 | { 29 | "Name": "com.deepin.WMSwitcher", 30 | "Type": "wmSwitcher" 31 | } 32 | ] 33 | }, 34 | { 35 | "Type": "XSettings", 36 | "Path": "/com/deepin/XSettings", 37 | "Interfaces": [ 38 | { 39 | "Name": "com.deepin.XSettings", 40 | "Type": "xSettings" 41 | } 42 | ] 43 | } 44 | ] 45 | } 46 | -------------------------------------------------------------------------------- /session/com.deepin.wm/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.wm", 3 | "Objects": [ 4 | { 5 | "Type": "Wm", 6 | "Path": "/com/deepin/wm", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.wm", 10 | "Type": "wm" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/com.deepin.wmswitcher/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.WMSwitcher", 3 | "Objects": [ 4 | { 5 | "Type": "WMSwitcher", 6 | "Path": "/com/deepin/WMSwitcher", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.WMSwitcher", 10 | "Type": "wmSwitcher" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.ayatana.bamf/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.ayatana.bamf", 3 | "Objects": [ 4 | { 5 | "Type": "Control", 6 | "Path": "/org/ayatana/bamf/control", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.ayatana.bamf.control", 10 | "Type": "control" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Matcher", 16 | "Path": "/org/ayatana/bamf/matcher", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.ayatana.bamf.matcher", 20 | "Type": "matcher" 21 | } 22 | ] 23 | }, 24 | { 25 | "Type":"Application", 26 | "Interfaces": [ 27 | { 28 | "Name": "org.ayatana.bamf.application", 29 | "Type":"application" 30 | }, 31 | { 32 | "Name": "org.ayatana.bamf.view", 33 | "Type": "view" 34 | } 35 | ] 36 | }, 37 | { 38 | "Type": "Window", 39 | "Interfaces": [ 40 | { 41 | "Name": "org.ayatana.bamf.window", 42 | "Type": "window" 43 | }, 44 | { 45 | "Name": "org.ayatana.bamf.view", 46 | "Type": "view", 47 | "TypeDefined": true 48 | } 49 | ] 50 | } 51 | ] 52 | } 53 | -------------------------------------------------------------------------------- /session/org.bluez.obex/Manager.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /session/org.bluez.obex/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 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /session/org.bluez.obex/Transfer.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /session/org.bluez.obex/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.bluez.obex", 3 | "Objects": [ 4 | { 5 | "Type": "ObjectManager", 6 | "XMLFile": "-", 7 | "Path": "/", 8 | "Interfaces": [ 9 | { 10 | "Name": "org.freedesktop.DBus.ObjectManager" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Manager", 16 | "Path": "/org/bluez/obex", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.bluez.obex.AgentManager1", 20 | "Type": "agentManager", 21 | "Accessor": "AgentManager" 22 | }, 23 | { 24 | "Name": "org.bluez.obex.Client1", 25 | "Type": "client", 26 | "Accessor": "Client" 27 | } 28 | ] 29 | }, 30 | { 31 | "Type": "Session", 32 | "Interfaces": [ 33 | { 34 | "Name": "org.bluez.obex.Session1", 35 | "Type": "session", 36 | "Accessor": "Session" 37 | }, 38 | { 39 | "Name": "org.bluez.obex.ObjectPush1", 40 | "Type": "objectPush", 41 | "Accessor": "ObjectPush" 42 | } 43 | ] 44 | }, 45 | { 46 | "Type": "Transfer", 47 | "Interfaces": [ 48 | { 49 | "Name": "org.bluez.obex.Transfer1", 50 | "Type": "transfer", 51 | "Accessor": "Transfer" 52 | } 53 | ] 54 | } 55 | ] 56 | } -------------------------------------------------------------------------------- /session/org.deepin.dde.EventLog1/EventLog.xml: -------------------------------------------------------------------------------- 1 | 2 | 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 | -------------------------------------------------------------------------------- /session/org.deepin.dde.EventLog1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.EventLog1", 3 | "Objects": [ 4 | { 5 | "Type": "EventLog", 6 | "Path": "/org/deepin/dde/EventLog1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.EventLog1", 10 | "Type": "eventLog", 11 | "Accessor": "EventLog" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /session/org.deepin.dde.application1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Application1", 3 | "Objects": [ 4 | { 5 | "Type": "Application", 6 | "Path": "/org/deepin/dde/Application1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Application1", 10 | "Type": "application" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Manager", 16 | "Path": "/org/deepin/dde/Application1/Manager", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.deepin.dde.Application1.Manager", 20 | "Type": "manager" 21 | } 22 | ] 23 | }, 24 | { 25 | "Type": "Instance", 26 | "Path": "/org/deepin/dde/Application1/Instance", 27 | "Interfaces": [ 28 | { 29 | "Name": "org.deepin.dde.Application1.Instance", 30 | "Type": "instance" 31 | } 32 | ] 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /session/org.deepin.dde.audio1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Audio1", 3 | "Objects": [ 4 | { 5 | "Type": "Audio", 6 | "Path": "/org/deepin/dde/Audio1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Audio1", 10 | "Type": "audio" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type":"Sink", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.deepin.dde.Audio1.Sink", 19 | "Type": "sink", 20 | "Fixes": { 21 | "p/Ports": { 22 | "RefType": "PropPortInfoSlice" 23 | }, 24 | "p/ActivePort": { 25 | "RefType": "PropPortInfo" 26 | } 27 | } 28 | } 29 | ] 30 | }, 31 | { 32 | "Type":"Source", 33 | "Interfaces": [ 34 | { 35 | "Name": "org.deepin.dde.Audio1.Source", 36 | "Type": "source", 37 | "Fixes": { 38 | "p/Ports": { 39 | "RefType": "PropPortInfoSlice" 40 | }, 41 | "p/ActivePort": { 42 | "RefType": "PropPortInfo" 43 | } 44 | } 45 | } 46 | ] 47 | }, 48 | { 49 | "Type":"SinkInput", 50 | "Interfaces": [ 51 | { 52 | "Name": "org.deepin.dde.Audio1.SinkInput", 53 | "Type": "sinkInput" 54 | } 55 | ] 56 | } 57 | ], 58 | "PropertyTypes": [ 59 | { 60 | "Type": "PropPortInfoSlice", 61 | "ValueType": "[]PortInfo" 62 | }, 63 | { 64 | "Type": "PropPortInfo", 65 | "ValueType": "PortInfo", 66 | "EmptyValue": "$T{}" 67 | } 68 | ] 69 | } 70 | -------------------------------------------------------------------------------- /session/org.deepin.dde.audio1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package audio1 6 | 7 | type PortInfo struct { 8 | Name string 9 | Description string 10 | Available byte // 0: Unknown, 1: No, 2: Yes 11 | } 12 | -------------------------------------------------------------------------------- /session/org.deepin.dde.bluetooth1/Bluetooth.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /session/org.deepin.dde.bluetooth1/auto.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.bluetooth1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package bluetooth1 7 | 8 | import ( 9 | "unsafe" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | ) 14 | 15 | type Bluetooth interface { 16 | bluetooth // interface org.deepin.dde.Bluetooth1 17 | proxy.Object 18 | } 19 | 20 | type objectBluetooth struct { 21 | interfaceBluetooth // interface org.deepin.dde.Bluetooth1 22 | proxy.ImplObject 23 | } 24 | 25 | func NewBluetooth(conn *dbus.Conn) Bluetooth { 26 | obj := new(objectBluetooth) 27 | obj.ImplObject.Init_(conn, "org.deepin.dde.Bluetooth1", "/org/deepin/dde/Bluetooth1") 28 | return obj 29 | } 30 | 31 | type bluetooth interface { 32 | GoDisconnectAllDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call 33 | DisconnectAllDevices(flags dbus.Flags) error 34 | } 35 | 36 | type interfaceBluetooth struct{} 37 | 38 | func (v *interfaceBluetooth) GetObject_() *proxy.ImplObject { 39 | return (*proxy.ImplObject)(unsafe.Pointer(v)) 40 | } 41 | 42 | func (*interfaceBluetooth) GetInterfaceName_() string { 43 | return "org.deepin.dde.Bluetooth1" 44 | } 45 | 46 | // method DisconnectAllDevices 47 | 48 | func (v *interfaceBluetooth) GoDisconnectAllDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call { 49 | return v.GetObject_().Go_(v.GetInterfaceName_()+".DisconnectAllDevices", flags, ch) 50 | } 51 | 52 | func (v *interfaceBluetooth) DisconnectAllDevices(flags dbus.Flags) error { 53 | return (<-v.GoDisconnectAllDevices(flags, make(chan *dbus.Call, 1)).Done).Err 54 | } 55 | -------------------------------------------------------------------------------- /session/org.deepin.dde.bluetooth1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.bluetooth1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package bluetooth1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockBluetooth struct { 17 | MockInterfaceBluetooth // interface org.deepin.dde.Bluetooth1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceBluetooth struct { 22 | mock.Mock 23 | } 24 | 25 | // method DisconnectAllDevices 26 | 27 | func (v *MockInterfaceBluetooth) GoDisconnectAllDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call { 28 | mockArgs := v.Called(flags, ch) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceBluetooth) DisconnectAllDevices(flags dbus.Flags) error { 39 | mockArgs := v.Called(flags) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | -------------------------------------------------------------------------------- /session/org.deepin.dde.bluetooth1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Bluetooth1", 3 | "Objects": [ 4 | { 5 | "Type": "Bluetooth", 6 | "Path": "/org/deepin/dde/Bluetooth1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Bluetooth1", 10 | "Type": "bluetooth" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.clipboard1/Clipboard.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /session/org.deepin.dde.clipboard1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Clipboard1", 3 | "Objects": [ 4 | { 5 | "Type": "Clipboard", 6 | "Path": "/org/deepin/dde/Clipboard1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Clipboard1", 10 | "Type": "clipboard" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.cursorhelper1/CursorHelper.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /session/org.deepin.dde.cursorhelper1/auto.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.cursorhelper1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package cursorhelper1 7 | 8 | import ( 9 | "unsafe" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | ) 14 | 15 | type CursorHelper interface { 16 | cursorHelper // interface org.deepin.dde.CursorHelper1 17 | proxy.Object 18 | } 19 | 20 | type objectCursorHelper struct { 21 | interfaceCursorHelper // interface org.deepin.dde.CursorHelper1 22 | proxy.ImplObject 23 | } 24 | 25 | func NewCursorHelper(conn *dbus.Conn) CursorHelper { 26 | obj := new(objectCursorHelper) 27 | obj.ImplObject.Init_(conn, "org.deepin.dde.CursorHelper1", "/org/deepin/dde/CursorHelper1") 28 | return obj 29 | } 30 | 31 | type cursorHelper interface { 32 | GoSet(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call 33 | Set(flags dbus.Flags, name string) error 34 | } 35 | 36 | type interfaceCursorHelper struct{} 37 | 38 | func (v *interfaceCursorHelper) GetObject_() *proxy.ImplObject { 39 | return (*proxy.ImplObject)(unsafe.Pointer(v)) 40 | } 41 | 42 | func (*interfaceCursorHelper) GetInterfaceName_() string { 43 | return "org.deepin.dde.CursorHelper1" 44 | } 45 | 46 | // method Set 47 | 48 | func (v *interfaceCursorHelper) GoSet(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call { 49 | return v.GetObject_().Go_(v.GetInterfaceName_()+".Set", flags, ch, name) 50 | } 51 | 52 | func (v *interfaceCursorHelper) Set(flags dbus.Flags, name string) error { 53 | return (<-v.GoSet(flags, make(chan *dbus.Call, 1), name).Done).Err 54 | } 55 | -------------------------------------------------------------------------------- /session/org.deepin.dde.cursorhelper1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.cursorhelper1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package cursorhelper1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockCursorHelper struct { 17 | MockInterfaceCursorHelper // interface org.deepin.dde.CursorHelper1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceCursorHelper struct { 22 | mock.Mock 23 | } 24 | 25 | // method Set 26 | 27 | func (v *MockInterfaceCursorHelper) GoSet(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, name) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceCursorHelper) Set(flags dbus.Flags, name string) error { 39 | mockArgs := v.Called(flags, name) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | -------------------------------------------------------------------------------- /session/org.deepin.dde.cursorhelper1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.CursorHelper1", 3 | "Objects": [ 4 | { 5 | "Type": "CursorHelper", 6 | "Path": "/org/deepin/dde/CursorHelper1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.CursorHelper1", 10 | "Type": "cursorHelper" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.daemon.dock1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.daemon.Dock1", 3 | "Objects": [ 4 | { 5 | "Type": "Dock", 6 | "Path": "/org/deepin/dde/daemon/Dock1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.daemon.Dock1", 10 | "Type": "dock", 11 | "Fixes": { 12 | "p/FrontendWindowRect": { 13 | "Type": "PropDockFrontendWindowRect", 14 | "ValueType": "FrontendWindowRect", 15 | "EmptyValue": "$T{}" 16 | } 17 | } 18 | } 19 | ] 20 | }, 21 | { 22 | "Type": "Entry", 23 | "Path":"", 24 | "Interfaces": [ 25 | { 26 | "Name": "org.deepin.dde.daemon.Dock1.Entry", 27 | "Type": "entry", 28 | "Fixes": { 29 | "p/WindowInfos": { 30 | "Type": "PropEntryWindowInfos", 31 | "ValueType": "map[uint32]WindowInfo" 32 | } 33 | } 34 | } 35 | ] 36 | } 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /session/org.deepin.dde.daemon.dock1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package dock1 6 | 7 | // FrontendWindowRect type 8 | type FrontendWindowRect struct { 9 | X, Y int32 10 | Width, Height uint32 11 | } 12 | 13 | // WindowInfo type 14 | type WindowInfo struct { 15 | Title string 16 | Flash bool 17 | } 18 | -------------------------------------------------------------------------------- /session/org.deepin.dde.daemon.launcher1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.daemon.Launcher1", 3 | "Objects": [ 4 | { 5 | "Type": "Launcher", 6 | "Path": "/org/deepin/dde/daemon/Launcher1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.daemon.Launcher1", 10 | "Type": "launcher", 11 | "Fixes": { 12 | "m/GetAllItemInfos": [ 13 | { 14 | "Name": "itemInfoList", 15 | "Type": "[]ItemInfo" 16 | } 17 | ], 18 | "m/GetItemInfo": [ 19 | { 20 | "Name": "itemInfo", 21 | "Type": "ItemInfo" 22 | } 23 | ], 24 | "s/ItemChanged": [ 25 | { 26 | "Name": "itemInfo", 27 | "Type": "ItemInfo" 28 | } 29 | ] 30 | } 31 | } 32 | ] 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /session/org.deepin.dde.daemon.launcher1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package launcher1 6 | 7 | // ItemInfo type 8 | type ItemInfo struct { 9 | Path string 10 | Name string 11 | ID string 12 | Icon string 13 | CategoryID int64 14 | TimeInstalled int64 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.display1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package display1 6 | 7 | // ModeInfo type 8 | type ModeInfo struct { 9 | Id uint32 10 | Width uint16 11 | Height uint16 12 | Rate float64 13 | } 14 | 15 | // Rectangle type 16 | type Rectangle struct { 17 | X int16 18 | Y int16 19 | Width uint16 20 | Height uint16 21 | } 22 | 23 | // Touchscreen type 24 | type Touchscreen struct { 25 | Id int32 26 | Node string 27 | DeviceNode string 28 | Serial string 29 | } 30 | 31 | type TouchscreenV2 struct { 32 | Id int32 33 | Node string 34 | DeviceNode string 35 | Serial string 36 | UUID string 37 | } 38 | -------------------------------------------------------------------------------- /session/org.deepin.dde.inputdevices1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.InputDevices1", 3 | "Objects": [ 4 | { 5 | "Type": "Keyboard", 6 | "Path": "/org/deepin/dde/InputDevice1/Keyboard", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.InputDevice1.Keyboard", 10 | "Type": "keyboard" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "TouchPad", 16 | "Path": "/org/deepin/dde/InputDevice1/TouchPad", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.deepin.dde.InputDevice1.TouchPad", 20 | "Type": "touchPad" 21 | } 22 | ] 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /session/org.deepin.dde.kwayland1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.KWayland1", 3 | "Objects": [ 4 | { 5 | "Type": "OutputManagement", 6 | "Path": "/org/deepin/dde/KWayland1/Output", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.KWayland1.Output", 10 | "Type": "outputManagement", 11 | "Accessor": "OutputManagement" 12 | } 13 | ] 14 | }, 15 | { 16 | "Type": "WindowManager", 17 | "Path": "/org/deepin/dde/KWayland1/WindowManager", 18 | "Interfaces": [ 19 | { 20 | "Name": "org.deepin.dde.KWayland1.WindowManager", 21 | "Type": "windowManager", 22 | "Accessor": "WindowManager" 23 | } 24 | ] 25 | }, 26 | { 27 | "Type": "Window", 28 | "Interfaces": [ 29 | { 30 | "Name": "org.deepin.dde.KWayland1.PlasmaWindow", 31 | "Type": "window", 32 | "Accessor": "Window", 33 | "Fixes": { 34 | "m/Geometry": [ 35 | { 36 | "Name": "argout0", 37 | "Type": "Rect" 38 | } 39 | ] 40 | } 41 | } 42 | ] 43 | } 44 | ] 45 | } 46 | -------------------------------------------------------------------------------- /session/org.deepin.dde.kwayland1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package kwayland1 6 | 7 | // Rect type 8 | type Rect struct { 9 | X, Y, Width, Height int32 10 | } 11 | -------------------------------------------------------------------------------- /session/org.deepin.dde.lastore1.agent/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "Agent", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Lastore1.Agent", 10 | "Type": "agent" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.launcher1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"org.deepin.dde.Launcher1", 3 | "Objects": [ 4 | { 5 | "Type": "Launcher", 6 | "Path": "/org/deepin/dde/Launcher1", 7 | "Interfaces": [ 8 | { 9 | "Name":"org.deepin.dde.Launcher1", 10 | "Type":"launcher" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.lockfront1/config.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "Service":"org.deepin.dde.LockFront1", 4 | "Objects": [ 5 | { 6 | "Type": "LockFront", 7 | "Path": "/org/deepin/dde/LockFront1", 8 | "Interfaces": [ 9 | { 10 | "Name":"org.deepin.dde.LockFront1", 11 | "Type":"lockfront" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /session/org.deepin.dde.network1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Network1", 3 | "Objects": [ 4 | { 5 | "Type": "Network", 6 | "Path": "/org/deepin/dde/Network1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Network1", 10 | "Type": "network" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.notification1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Osd1", 3 | "Objects": [ 4 | { 5 | "Type": "Notification", 6 | "Path": "/org/deepin/dde/Notification1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Notification1", 10 | "Type": "notification" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.osd1/OSD.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /session/org.deepin.dde.osd1/auto.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.osd1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package osd1 7 | 8 | import ( 9 | "unsafe" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | ) 14 | 15 | type OSD interface { 16 | osd // interface org.deepin.dde.Osd1 17 | proxy.Object 18 | } 19 | 20 | type objectOSD struct { 21 | interfaceOsd // interface org.deepin.dde.Osd1 22 | proxy.ImplObject 23 | } 24 | 25 | func NewOSD(conn *dbus.Conn) OSD { 26 | obj := new(objectOSD) 27 | obj.ImplObject.Init_(conn, "org.deepin.dde.Osd1", "/") 28 | return obj 29 | } 30 | 31 | type osd interface { 32 | GoShowOSD(flags dbus.Flags, ch chan *dbus.Call, osd string) *dbus.Call 33 | ShowOSD(flags dbus.Flags, osd string) error 34 | } 35 | 36 | type interfaceOsd struct{} 37 | 38 | func (v *interfaceOsd) GetObject_() *proxy.ImplObject { 39 | return (*proxy.ImplObject)(unsafe.Pointer(v)) 40 | } 41 | 42 | func (*interfaceOsd) GetInterfaceName_() string { 43 | return "org.deepin.dde.Osd1" 44 | } 45 | 46 | // method ShowOSD 47 | 48 | func (v *interfaceOsd) GoShowOSD(flags dbus.Flags, ch chan *dbus.Call, osd string) *dbus.Call { 49 | return v.GetObject_().Go_(v.GetInterfaceName_()+".ShowOSD", flags, ch, osd) 50 | } 51 | 52 | func (v *interfaceOsd) ShowOSD(flags dbus.Flags, osd string) error { 53 | return (<-v.GoShowOSD(flags, make(chan *dbus.Call, 1), osd).Done).Err 54 | } 55 | -------------------------------------------------------------------------------- /session/org.deepin.dde.osd1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.osd1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package osd1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockOSD struct { 17 | MockInterfaceOsd // interface org.deepin.dde.Osd1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceOsd struct { 22 | mock.Mock 23 | } 24 | 25 | // method ShowOSD 26 | 27 | func (v *MockInterfaceOsd) GoShowOSD(flags dbus.Flags, ch chan *dbus.Call, osd string) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, osd) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceOsd) ShowOSD(flags dbus.Flags, osd string) error { 39 | mockArgs := v.Called(flags, osd) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | -------------------------------------------------------------------------------- /session/org.deepin.dde.osd1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"org.deepin.dde.Osd1", 3 | "Objects": [ 4 | { 5 | "Type": "OSD", 6 | "Path": "/", 7 | "Interfaces": [ 8 | { 9 | "Name":"org.deepin.dde.Osd1", 10 | "Type":"osd" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.pinyin1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Pinyin1", 3 | "Objects": [ 4 | { 5 | "Type": "Pinyin", 6 | "Path": "/org/deepin/dde/Pinyin1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Pinyin1", 10 | "Type": "pinyin" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.sessionmanager1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.SessionManager1", 3 | "Objects": [ 4 | { 5 | "Type": "SessionManager", 6 | "Path": "/org/deepin/dde/SessionManager1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.SessionManager1", 10 | "Type": "sessionManager" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.sessionwatcher1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.SessionWatcher1", 3 | "Objects": [ 4 | { 5 | "Type": "SessionWatcher", 6 | "Path": "/org/deepin/dde/SessionWatcher1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.SessionWatcher1", 10 | "Type": "sessionWatcher" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.shutdownfront1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"org.deepin.dde.ShutdownFront1", 3 | "Objects": [ 4 | { 5 | "Type": "ShutdownFront", 6 | "Path": "/org/deepin/dde/ShutdownFront1", 7 | "Interfaces": [ 8 | { 9 | "Name":"org.deepin.dde.ShutdownFront1", 10 | "Type":"shutdownfront" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.startmanager1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.StartManager1", 3 | "Objects": [ 4 | { 5 | "Type": "StartManager", 6 | "Path": "/org/deepin/dde/StartManager1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.StartManager1", 10 | "Type": "startManager" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.timedate1/Timedate.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /session/org.deepin.dde.timedate1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.timedate1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package timedate1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/linuxdeepin/go-lib/dbusutil" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockTimedate struct { 17 | MockInterfaceTimedate // interface org.deepin.dde.Timedate1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceTimedate struct { 22 | mock.Mock 23 | } 24 | 25 | // signal TimeUpdate 26 | 27 | func (v *MockInterfaceTimedate) ConnectTimeUpdate(cb func()) (dbusutil.SignalHandlerId, error) { 28 | mockArgs := v.Called(cb) 29 | 30 | ret0, ok := mockArgs.Get(0).(dbusutil.SignalHandlerId) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, mockArgs.Get(0))) 33 | } 34 | 35 | return ret0, mockArgs.Error(1) 36 | } 37 | -------------------------------------------------------------------------------- /session/org.deepin.dde.timedate1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Timedate1", 3 | "Objects": [ 4 | { 5 | "Type": "Timedate", 6 | "Path": "/org/deepin/dde/Timedate1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Timedate1", 10 | "Type": "timedate" 11 | } 12 | ] 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /session/org.deepin.dde.uadpagent1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./session/org.deepin.dde.uadpagent1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package uadpagent1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockUadpAgent struct { 17 | MockInterfaceUadpagent // interface org.deepin.dde.UadpAgent1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceUadpagent struct { 22 | mock.Mock 23 | } 24 | 25 | // method SetDataKey 26 | 27 | func (v *MockInterfaceUadpagent) GoSetDataKey(flags dbus.Flags, ch chan *dbus.Call, keyName string, dataKey string) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, keyName, dataKey) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceUadpagent) SetDataKey(flags dbus.Flags, keyName string, dataKey string) error { 39 | mockArgs := v.Called(flags, keyName, dataKey) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | 44 | // method GetDataKey 45 | 46 | func (v *MockInterfaceUadpagent) GoGetDataKey(flags dbus.Flags, ch chan *dbus.Call, keyName string) *dbus.Call { 47 | mockArgs := v.Called(flags, ch, keyName) 48 | 49 | ret, ok := mockArgs.Get(0).(*dbus.Call) 50 | if !ok { 51 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 52 | } 53 | 54 | return ret 55 | } 56 | 57 | func (v *MockInterfaceUadpagent) GetDataKey(flags dbus.Flags, keyName string) (string, error) { 58 | mockArgs := v.Called(flags, keyName) 59 | 60 | return mockArgs.String(0), mockArgs.Error(1) 61 | } 62 | -------------------------------------------------------------------------------- /session/org.deepin.dde.uadpagent1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.UadpAgent1", 3 | "Objects": [ 4 | { 5 | "Type": "UadpAgent", 6 | "Path": "/org/deepin/dde/UadpAgent1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.UadpAgent1", 10 | "Type": "uadpagent" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.wmswitcher1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.WMSwitcher1", 3 | "Objects": [ 4 | { 5 | "Type": "WMSwitcher", 6 | "Path": "/org/deepin/dde/WMSwitcher1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.WMSwitcher1", 10 | "Type": "wmSwitcher" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.deepin.dde.xeventmonitor1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service":"org.deepin.dde.XEventMonitor1", 3 | "Objects": [ 4 | { 5 | "Type": "XEventMonitor", 6 | "Path":"/org/deepin/dde/XEventMonitor1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.XEventMonitor1", 10 | "Type": "xEventMonitor", 11 | 12 | "Fixes": { 13 | "m/RegisterAreas": [ 14 | { 15 | "Name": "areas", 16 | "Type": "[]CoordinateRange" 17 | } 18 | ] 19 | } 20 | } 21 | ] 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /session/org.deepin.dde.xeventmonitor1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package xeventmonitor1 6 | 7 | // CoordinateRange type 8 | type CoordinateRange struct { 9 | X1, Y1, X2, Y2 int32 10 | } 11 | -------------------------------------------------------------------------------- /session/org.deepin.dde.xsettings1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.XSettings1", 3 | "Objects": [ 4 | { 5 | "Type": "XSettings", 6 | "Path": "/org/deepin/dde/XSettings1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.XSettings1", 10 | "Type": "xSettings" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.desktopspec.applicationmanager1/MimeManager.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 | -------------------------------------------------------------------------------- /session/org.desktopspec.applicationmanager1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.desktopspec.ApplicationManager1", 3 | "Objects": [ 4 | { 5 | "Type": "Application", 6 | "Interfaces": [ 7 | { 8 | "Name": "org.desktopspec.ApplicationManager1.Application", 9 | "Type": "application" 10 | } 11 | ] 12 | }, 13 | { 14 | "Type": "Manager", 15 | "Path": "/org/desktopspec/ApplicationManager1", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.desktopspec.ApplicationManager1", 19 | "Type": "manager" 20 | } 21 | ] 22 | }, 23 | { 24 | "Type": "MimeManager", 25 | "Path": "/org/desktopspec/ApplicationManager1/MimeManager1", 26 | "Interfaces": [ 27 | { 28 | "Name": "org.desktopspec.MimeManager1", 29 | "Type": "mimeManager" 30 | } 31 | ] 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /session/org.freedesktop.dbus/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.DBus", 3 | "Objects": [ 4 | { 5 | "Type": "DBus", 6 | "Path": "/org/freedesktop/DBus", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.DBus", 10 | "Type": "dbusIfc" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.freedesktop.notifications/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.Notifications", 3 | "Objects": [ 4 | { 5 | "Type": "Notifications", 6 | "Path": "/org/freedesktop/Notifications", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.Notifications", 10 | "Type": "notifications" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.freedesktop.screensaver/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.ScreenSaver", 3 | "Objects": [ 4 | { 5 | "Type": "ScreenSaver", 6 | "Path": "/org/freedesktop/ScreenSaver", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.ScreenSaver", 10 | "Type": "screenSaver" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /session/org.freedesktop.secrets/Prompt.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /session/org.freedesktop.secrets/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 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /session/org.freedesktop.secrets/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package secrets 6 | 7 | import "github.com/godbus/dbus/v5" 8 | 9 | type Secret struct { 10 | Session dbus.ObjectPath 11 | Parameters []byte 12 | Value []byte 13 | ContentType string 14 | } 15 | -------------------------------------------------------------------------------- /session/org.kde.kwin/InputDeviceManager.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /session/org.kde.kwin/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.kde.KWin", 3 | "Objects": [ 4 | { 5 | "Type": "KWin", 6 | "Path": "/KWin", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.kde.KWin", 10 | "Type": "kwin" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Compositor", 16 | "Path": "/Compositor", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.kde.kwin.Compositing", 20 | "Type": "compositing" 21 | } 22 | ] 23 | }, 24 | { 25 | "Type": "InputDeviceManager", 26 | "Path": "/org/kde/KWin/InputDevice", 27 | "Interfaces": [ 28 | { 29 | "Name": "org.kde.KWin.InputDeviceManager", 30 | "Type": "inputDeviceManager" 31 | } 32 | ] 33 | }, 34 | { 35 | "Type": "InputDevice", 36 | "Interfaces": [ 37 | { 38 | "Name": "org.kde.KWin.InputDevice", 39 | "Type": "inputDevice" 40 | } 41 | ] 42 | } 43 | ] 44 | } 45 | -------------------------------------------------------------------------------- /session/org.mpris.mediaplayer2/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service1": "org.mpris.MediaPlayer2", 3 | "Objects": [ 4 | { 5 | "Type": "MediaPlayer", 6 | "Path": "/org/mpris/MediaPlayer2", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.mpris.MediaPlayer2", 10 | "Type": "mediaPlayer" 11 | }, 12 | { 13 | "Name": "org.mpris.MediaPlayer2.Player", 14 | "Type": "player", 15 | "Fixes": { 16 | "p/Metadata": { 17 | "Type": "PropPlayerMetadata", 18 | "ValueType": "map[string]dbus.Variant" 19 | } 20 | } 21 | } 22 | ] 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /system/com.deepin.abrecovery/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.ABRecovery", 3 | "Objects": [ 4 | { 5 | "Type": "ABRecovery", 6 | "Path": "/com/deepin/ABRecovery", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.ABRecovery", 10 | "Type": "abRecovery" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/com.deepin.api.device/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/com.deepin.api.device"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package device 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockDevice struct { 17 | MockInterfaceDevice // interface com.deepin.api.Device 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceDevice struct { 22 | mock.Mock 23 | } 24 | 25 | // method HasBluetoothDeviceBlocked 26 | 27 | func (v *MockInterfaceDevice) GoHasBluetoothDeviceBlocked(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call { 28 | mockArgs := v.Called(flags, ch) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceDevice) HasBluetoothDeviceBlocked(flags dbus.Flags) (bool, error) { 39 | mockArgs := v.Called(flags) 40 | 41 | return mockArgs.Bool(0), mockArgs.Error(1) 42 | } 43 | 44 | // method UnblockBluetoothDevices 45 | 46 | func (v *MockInterfaceDevice) GoUnblockBluetoothDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call { 47 | mockArgs := v.Called(flags, ch) 48 | 49 | ret, ok := mockArgs.Get(0).(*dbus.Call) 50 | if !ok { 51 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 52 | } 53 | 54 | return ret 55 | } 56 | 57 | func (v *MockInterfaceDevice) UnblockBluetoothDevices(flags dbus.Flags) error { 58 | mockArgs := v.Called(flags) 59 | 60 | return mockArgs.Error(0) 61 | } 62 | -------------------------------------------------------------------------------- /system/com.deepin.api.device/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.api.Device", 3 | "Objects": [ 4 | { 5 | "Type": "Device", 6 | "Path": "/com/deepin/api/Device", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.api.Device", 10 | "Type": "device" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/com.deepin.api.localehelper/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.api.LocaleHelper", 3 | "Objects": [ 4 | { 5 | "Type": "LocaleHelper", 6 | "Path": "/com/deepin/api/LocaleHelper", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.api.LocaleHelper", 10 | "Type": "localeHelper" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/com.deepin.api.soundthemeplayer/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.api.SoundThemePlayer", 3 | "Objects": [ 4 | { 5 | "Type": "SoundThemePlayer", 6 | "Path": "/com/deepin/api/SoundThemePlayer", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.api.SoundThemePlayer", 10 | "Type": "soundThemePlayer" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/com.deepin.daemon.apps/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.daemon.Apps", 3 | "Objects": [ 4 | { 5 | "Type": "Apps", 6 | "Path": "/com/deepin/daemon/Apps", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.daemon.Apps.DesktopFileWatcher", 10 | "Type": "desktopFileWatcher", 11 | "Accessor": "DesktopFileWatcher" 12 | }, 13 | { 14 | "Name": "com.deepin.daemon.Apps.LaunchedRecorder", 15 | "Type": "launchedRecorder", 16 | "Accessor": "LaunchedRecorder" 17 | } 18 | ] 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /system/com.deepin.daemon.authenticate.BiometricsDriver/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "BiometricsDriver", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.daemon.authenticate.BiometricsDriver", 10 | "CustomInterfaceName": true, 11 | "Type": "biometricsDriver", 12 | "Accessor": "BiometricsDriver" 13 | } 14 | ] 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /system/com.deepin.daemon.authenticate.face/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "Face", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.daemon.Authenticate.Face.Device", 10 | "CustomInterfaceName": true, 11 | "Type": "face", 12 | "Accessor": "Face" 13 | } 14 | ] 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /system/com.deepin.daemon.authenticate.fingerprint/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "Device", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.daemon.Authenticate.Fingerprint.Device", 10 | "CustomInterfaceName": true, 11 | "Type": "device", 12 | "Accessor": "Device" 13 | } 14 | ] 15 | }, 16 | { 17 | "Type": "CommonDevice", 18 | "Path": "", 19 | "Interfaces": [ 20 | { 21 | "Name": "com.deepin.daemon.Authenticate.Fingerprint.CommonDevice", 22 | "CustomInterfaceName": true, 23 | "Type": "commonDevice", 24 | "Accessor": "CommonDevice" 25 | } 26 | ] 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /system/com.deepin.daemon.authenticate.ukey/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "UKey", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.daemon.Authenticate.UKey.Device", 10 | "CustomInterfaceName": true, 11 | "Type": "ukey", 12 | "Accessor": "UKey" 13 | } 14 | ] 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /system/com.deepin.daemon.authenticate/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.daemon.Authenticate", 3 | "Objects": [ 4 | { 5 | "Type": "Authenticate", 6 | "Path": "/com/deepin/daemon/Authenticate", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.daemon.Authenticate", 10 | "Type": "authenticate", 11 | "Accessor": "Authenticate" 12 | } 13 | ] 14 | }, 15 | { 16 | "Type": "Fingerprint", 17 | "Path": "/com/deepin/daemon/Authenticate/Fingerprint", 18 | "Interfaces": [ 19 | { 20 | "Name": "com.deepin.daemon.Authenticate.Fingerprint", 21 | "Type": "fingerprint", 22 | "Accessor": "Fingerprint" 23 | } 24 | ] 25 | }, 26 | { 27 | "Type": "UKey", 28 | "Path": "/com/deepin/daemon/Authenticate/UKey", 29 | "Interfaces": [ 30 | { 31 | "Name": "com.deepin.daemon.Authenticate.UKey", 32 | "Type": "ukey", 33 | "Accessor": "UKey" 34 | } 35 | ] 36 | }, 37 | { 38 | "Type": "Face", 39 | "Path": "/com/deepin/daemon/Authenticate/Face", 40 | "Interfaces": [ 41 | { 42 | "Name": "com.deepin.daemon.Authenticate.Face", 43 | "Type": "face", 44 | "Accessor": "Face" 45 | } 46 | ] 47 | }, 48 | { 49 | "Type": "CharaManger", 50 | "Path": "/com/deepin/daemon/Authenticate/CharaManger", 51 | "Interfaces": [ 52 | { 53 | "Name": "com.deepin.daemon.Authenticate.CharaManger", 54 | "Type": "charaManger", 55 | "Accessor": "CharaManger" 56 | } 57 | ] 58 | } 59 | ] 60 | } 61 | -------------------------------------------------------------------------------- /system/com.deepin.daemon.authenticate/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package authenticate 6 | 7 | type CharaInfo struct { 8 | CharaName string 9 | CharaType int32 10 | } 11 | 12 | type DriverInfo struct { 13 | DriverName string 14 | CharaType int32 15 | } 16 | -------------------------------------------------------------------------------- /system/com.deepin.devicemanager/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/com.deepin.devicemanager"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package devicemanager 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockDeviceManager struct { 17 | MockInterfaceDevicemanager // interface com.deepin.devicemanager 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceDevicemanager struct { 22 | mock.Mock 23 | } 24 | 25 | // method getInfo 26 | 27 | func (v *MockInterfaceDevicemanager) GoGetInfo(flags dbus.Flags, ch chan *dbus.Call, arg1 string) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, arg1) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceDevicemanager) GetInfo(flags dbus.Flags, arg1 string) (string, error) { 39 | mockArgs := v.Called(flags, arg1) 40 | 41 | return mockArgs.String(0), mockArgs.Error(1) 42 | } 43 | 44 | // method execCmd 45 | 46 | func (v *MockInterfaceDevicemanager) GoExecCmd(flags dbus.Flags, ch chan *dbus.Call, arg1 string) *dbus.Call { 47 | mockArgs := v.Called(flags, ch, arg1) 48 | 49 | ret, ok := mockArgs.Get(0).(*dbus.Call) 50 | if !ok { 51 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 52 | } 53 | 54 | return ret 55 | } 56 | 57 | func (v *MockInterfaceDevicemanager) ExecCmd(flags dbus.Flags, arg1 string) (string, error) { 58 | mockArgs := v.Called(flags, arg1) 59 | 60 | return mockArgs.String(0), mockArgs.Error(1) 61 | } 62 | -------------------------------------------------------------------------------- /system/com.deepin.devicemanager/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.devicemanager", 3 | "Objects": [ 4 | { 5 | "Type": "DeviceManager", 6 | "Path": "/com/deepin/devicemanager", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.devicemanager", 10 | "Type": "devicemanager" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/com.deepin.license/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.license", 3 | "Objects": [ 4 | { 5 | "Type": "License", 6 | "Path": "/com/deepin/license/Info", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.license.Info", 10 | "Type": "license" 11 | } 12 | ] 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /system/com.deepin.system.display/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.system.Display", 3 | "Objects": [ 4 | { 5 | "Type": "Display", 6 | "Path": "/com/deepin/system/Display", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.system.Display", 10 | "Type": "display" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/com.deepin.system.inputdevices/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.system.InputDevices", 3 | "Objects": [ 4 | { 5 | "Type": "InputDevices", 6 | "Path": "/com/deepin/system/InputDevices", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.system.InputDevices", 10 | "Type": "inputDevices" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Touchscreen", 16 | "Interfaces": [ 17 | { 18 | "Name": "com.deepin.system.InputDevices.Touchscreen", 19 | "Type": "touchscreen" 20 | } 21 | ] 22 | }, 23 | { 24 | "Type": "Touchpad", 25 | "Interfaces": [ 26 | { 27 | "Name": "com.deepin.system.InputDevices.Touchpad", 28 | "Type": "touchpad" 29 | } 30 | ] 31 | } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /system/com.deepin.system.procs/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.system.Procs", 3 | "Objects": [ 4 | { 5 | "Type": "Procs", 6 | "Path": "/com/deepin/system/Procs", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.system.Procs", 10 | "Type": "procs", 11 | "Fixes": { 12 | "p/Procs": { 13 | "RefType": "PropProcsMap" 14 | } 15 | } 16 | } 17 | ] 18 | } 19 | ], 20 | "PropertyTypes": [ 21 | { 22 | "Type": "PropProcsMap", 23 | "ValueType": "map[string]ProcMessage" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /system/com.deepin.system.procs/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package procs 6 | 7 | type ProcMessage struct { 8 | ExecPath string 9 | CGroupPath string 10 | Pid string 11 | PPid string 12 | } 13 | -------------------------------------------------------------------------------- /system/com.deepin.system.proxy/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.deepin.system.proxy", 3 | "Objects": [ 4 | { 5 | "Type": "App", 6 | "Path": "/com/deepin/system/proxy/App", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.system.proxy.App", 10 | "Type": "app" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Global", 16 | "Path": "/com/deepin/system/proxy/Global", 17 | "Interfaces": [ 18 | { 19 | "Name": "com.deepin.system.proxy.Global", 20 | "Type": "global" 21 | } 22 | ] 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /system/com.deepin.system.proxy/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package proxy 6 | 7 | // scope proxy 8 | type ScopeProxies struct { 9 | Proxies map[string][]Proxy `yaml:"proxies"` // map[http,sock4,sock5][]proxy 10 | // proxy setting 11 | ProxyProgram []string `yaml:"proxy-program"` // global proxy will ignore 12 | NoProxyProgram []string `yaml:"no-proxy-program"` // app proxy will ignore 13 | 14 | // white list 15 | WhiteList []string `yaml:"whitelist"` // white site dont use proxy, not use this time 16 | TPort int `yaml:"t-port"` 17 | } 18 | 19 | // proxy type 20 | type Proxy struct { 21 | // proxy proto type 22 | ProtoType string `json:"type"` // http sock4 sock5 23 | 24 | // [proto]&[name] as ident 25 | Name string `yaml:"name"` 26 | 27 | // proxy server 28 | Server string `yaml:"server"` 29 | Port int `yaml:"port"` 30 | 31 | // auth message 32 | UserName string `yaml:"username"` 33 | Password string `yaml:"password"` 34 | } 35 | -------------------------------------------------------------------------------- /system/com.deepin.udcp.iam/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "UdcpCache", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.deepin.udcp.iam", 10 | "CustomInterfaceName": true, 11 | "Type": "udcpCache" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /system/com.huawei.fingerprint/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "com.huawei.Fingerprint", 3 | "Objects": [ 4 | { 5 | "Type": "Fingerprint", 6 | "Path": "/com/huawei/Fingerprint", 7 | "Interfaces": [ 8 | { 9 | "Name": "com.huawei.Fingerprint", 10 | "Type": "fingerprint" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/fi.w1.wpa_supplicant1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "fi.w1.wpa_supplicant1", 3 | "Objects": [ 4 | { 5 | "Type": "WPASupplicant", 6 | "Path": "/fi/w1/wpa_supplicant1", 7 | "Interfaces": [ 8 | { 9 | "Name": "fi.w1.wpa_supplicant1", 10 | "Type": "wpaSupplicant" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Interface", 16 | "Interfaces": [ 17 | { 18 | "Name": "fi.w1.wpa_supplicant1.Interface", 19 | "Type": "interface1", 20 | "Fixes": { 21 | "p/Capabilities": { 22 | "RefType": "MapStrVariant" 23 | }, 24 | "p/Blobs": { 25 | "ValueType": "map[string][]byte" 26 | } 27 | } 28 | }, 29 | { 30 | "Name": "fi.w1.wpa_supplicant1.Interface.WPS", 31 | "Type": "interfaceWPS" 32 | }, 33 | { 34 | "Name": "fi.w1.wpa_supplicant1.Interface.P2PDevice", 35 | "Type": "interfaceP2PDevice", 36 | "Fixes": { 37 | "p/P2PDeviceConfig": { 38 | "RefType": "MapStrVariant" 39 | } 40 | } 41 | } 42 | ] 43 | }, 44 | { 45 | "Type": "BSS", 46 | "Interfaces": [ 47 | { 48 | "Name": "fi.w1.wpa_supplicant1.BSS", 49 | "Type": "bss", 50 | "Fixes": { 51 | "p/WPS": { 52 | "RefType": "MapStrVariant" 53 | }, 54 | "p/WPA": { 55 | "RefType": "MapStrVariant" 56 | }, 57 | "p/RSN": { 58 | "RefType": "MapStrVariant" 59 | } 60 | } 61 | } 62 | ] 63 | } 64 | ], 65 | "PropertyTypes": [ 66 | { 67 | "Type": "MapStrVariant", 68 | "ValueType": "map[string]dbus.Variant" 69 | } 70 | ] 71 | } 72 | -------------------------------------------------------------------------------- /system/net.hadess.sensorproxy/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "net.hadess.SensorProxy", 3 | "Objects": [ 4 | { 5 | "Type": "SensorProxy", 6 | "Path": "/net/hadess/SensorProxy", 7 | "Interfaces": [ 8 | { 9 | "Type": "sensorProxy", 10 | "Name": "net.hadess.SensorProxy" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/net.reactivated.fprint/Manager.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 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /system/net.reactivated.fprint/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "net.reactivated.Fprint", 3 | "Objects": [ 4 | { 5 | "Type": "Manager", 6 | "Path": "/net/reactivated/Fprint/Manager", 7 | "Interfaces": [ 8 | { 9 | "Name": "net.reactivated.Fprint.Manager", 10 | "Type": "manager" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Device", 16 | "Interfaces": [ 17 | { 18 | "Name": "net.reactivated.Fprint.Device", 19 | "Type": "device", 20 | "Fixes": { 21 | "p/scan-type": { 22 | "RenameTo": "ScanType" 23 | }, 24 | "p/num-enroll-stages": { 25 | "RenameTo": "NumEnrollStages" 26 | }, 27 | "p/name": { 28 | "RenameTo": "Name" 29 | } 30 | } 31 | } 32 | ] 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /system/org.bluez.obex/Manager.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /system/org.bluez.obex/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 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /system/org.bluez.obex/Transfer.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /system/org.bluez.obex/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.bluez.obex", 3 | "Objects": [ 4 | { 5 | "Type": "ObjectManager", 6 | "XMLFile": "-", 7 | "Path": "/", 8 | "Interfaces": [ 9 | { 10 | "Name": "org.freedesktop.DBus.ObjectManager" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Manager", 16 | "Path": "/org/bluez/obex", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.bluez.obex.AgentManager1", 20 | "Type": "agentManager", 21 | "Accessor": "AgentManager" 22 | }, 23 | { 24 | "Name": "org.bluez.obex.Client1", 25 | "Type": "client", 26 | "Accessor": "Client" 27 | } 28 | ] 29 | }, 30 | { 31 | "Type": "Session", 32 | "Interfaces": [ 33 | { 34 | "Name": "org.bluez.obex.Session1", 35 | "Type": "session", 36 | "Accessor": "Session" 37 | }, 38 | { 39 | "Name": "org.bluez.obex.ObjectPush1", 40 | "Type": "objectPush", 41 | "Accessor": "ObjectPush" 42 | } 43 | ] 44 | }, 45 | { 46 | "Type": "Transfer", 47 | "Interfaces": [ 48 | { 49 | "Name": "org.bluez.obex.Transfer1", 50 | "Type": "transfer", 51 | "Accessor": "Transfer" 52 | } 53 | ] 54 | } 55 | ] 56 | } -------------------------------------------------------------------------------- /system/org.bluez/Manager.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /system/org.deepin.dde.accounts1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Accounts1", 3 | "Objects": [ 4 | { 5 | "Type": "Accounts", 6 | "Path": "/org/deepin/dde/Accounts1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Accounts1", 10 | "Type": "accounts" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "User", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.deepin.dde.Accounts1.User", 19 | "Type": "user", 20 | "Fixes": { 21 | "m/GetReminderInfo": [ 22 | { 23 | "Name": "info", 24 | "Type": "LoginReminderInfo" 25 | } 26 | ] 27 | } 28 | } 29 | ] 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /system/org.deepin.dde.accounts1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package accounts1 6 | 7 | type LoginUtmpx struct { 8 | InittabID string 9 | Line string 10 | Host string 11 | Address string 12 | Time string 13 | } 14 | 15 | type LoginReminderInfo struct { 16 | Username string 17 | Spent struct { 18 | LastChange int 19 | Min int 20 | Max int 21 | Warn int 22 | Inactive int 23 | Expire int 24 | } 25 | CurrentLogin LoginUtmpx 26 | LastLogin LoginUtmpx 27 | FailCountSinceLastLogin int 28 | } 29 | -------------------------------------------------------------------------------- /system/org.deepin.dde.airplanemode1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.AirplaneMode1", 3 | "Objects": [ 4 | { 5 | "Type": "AirplaneMode", 6 | "Path": "/org/deepin/dde/AirplaneMode1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.AirplaneMode1", 10 | "Type": "airplaneMode", 11 | "Accessor": "AirplaneMode" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /system/org.deepin.dde.apps1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Apps1", 3 | "Objects": [ 4 | { 5 | "Type": "Apps", 6 | "Path": "/org/deepin/dde/Apps1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Apps1.DesktopFileWatcher", 10 | "Type": "desktopFileWatcher", 11 | "Accessor": "DesktopFileWatcher" 12 | }, 13 | { 14 | "Name": "org.deepin.dde.Apps1.LaunchedRecorder", 15 | "Type": "launchedRecorder", 16 | "Accessor": "LaunchedRecorder" 17 | } 18 | ] 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /system/org.deepin.dde.atomicupgrade1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.AtomicUpgrade1", 3 | "Objects": [ 4 | { 5 | "Type": "AtomicUpgrade1", 6 | "Path": "/org/deepin/dde/AtomicUpgrade1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.AtomicUpgrade1", 10 | "Type": "atomicUpgrade1" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.authenticate1.BiometricsDriver/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "BiometricsDriver", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Authenticate1.BiometricsDriver", 10 | "CustomInterfaceName": true, 11 | "Type": "biometricsDriver", 12 | "Accessor": "BiometricsDriver" 13 | } 14 | ] 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /system/org.deepin.dde.authenticate1.face/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "Face", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Authenticate1.Face.Device", 10 | "CustomInterfaceName": true, 11 | "Type": "face", 12 | "Accessor": "Face" 13 | } 14 | ] 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /system/org.deepin.dde.authenticate1.fingerprint/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "Device", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Authenticate1.Fingerprint.Device", 10 | "CustomInterfaceName": true, 11 | "Type": "device", 12 | "Accessor": "Device" 13 | } 14 | ] 15 | }, 16 | { 17 | "Type": "CommonDevice", 18 | "Path": "", 19 | "Interfaces": [ 20 | { 21 | "Name": "org.deepin.dde.Authenticate1.Fingerprint.CommonDevice", 22 | "CustomInterfaceName": true, 23 | "Type": "commonDevice", 24 | "Accessor": "CommonDevice" 25 | } 26 | ] 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /system/org.deepin.dde.authenticate1.ukey/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "UKey", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Authenticate1.UKey.Device", 10 | "CustomInterfaceName": true, 11 | "Type": "ukey", 12 | "Accessor": "UKey" 13 | } 14 | ] 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /system/org.deepin.dde.authenticate1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Authenticate1", 3 | "Objects": [ 4 | { 5 | "Type": "Authenticate", 6 | "Path": "/org/deepin/dde/Authenticate1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Authenticate1", 10 | "Type": "authenticate", 11 | "Accessor": "Authenticate" 12 | } 13 | ] 14 | }, 15 | { 16 | "Type": "Fingerprint", 17 | "Path": "/org/deepin/dde/Authenticate1/Fingerprint", 18 | "Interfaces": [ 19 | { 20 | "Name": "org.deepin.dde.Authenticate1.Fingerprint", 21 | "Type": "fingerprint", 22 | "Accessor": "Fingerprint" 23 | } 24 | ] 25 | }, 26 | { 27 | "Type": "UKey", 28 | "Path": "/org/deepin/dde/Authenticate1/UKey", 29 | "Interfaces": [ 30 | { 31 | "Name": "org.deepin.dde.Authenticate1.UKey", 32 | "Type": "ukey", 33 | "Accessor": "UKey" 34 | } 35 | ] 36 | }, 37 | { 38 | "Type": "Face", 39 | "Path": "/org/deepin/dde/Authenticate1/Face", 40 | "Interfaces": [ 41 | { 42 | "Name": "org.deepin.dde.Authenticate1.Face", 43 | "Type": "face", 44 | "Accessor": "Face" 45 | } 46 | ] 47 | }, 48 | { 49 | "Type": "CharaManger", 50 | "Path": "/org/deepin/dde/Authenticate1/CharaManger", 51 | "Interfaces": [ 52 | { 53 | "Name": "org.deepin.dde.Authenticate1.CharaManger", 54 | "Type": "charaManger", 55 | "Accessor": "CharaManger" 56 | } 57 | ] 58 | } 59 | ] 60 | } 61 | -------------------------------------------------------------------------------- /system/org.deepin.dde.authenticate1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package authenticate1 6 | 7 | // CharaInfo type 8 | type CharaInfo struct { 9 | CharaName string 10 | CharaType int32 11 | } 12 | 13 | // DriverInfo type 14 | type DriverInfo struct { 15 | DriverName string 16 | CharaType int32 17 | } 18 | -------------------------------------------------------------------------------- /system/org.deepin.dde.backlighthelper1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.BacklightHelper1", 3 | "Objects": [ 4 | { 5 | "Type": "Backlight", 6 | "Path": "/org/deepin/dde/BacklightHelper1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.BacklightHelper1", 10 | "Type": "backlight" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "DDCCI", 16 | "Path": "/org/deepin/dde/BacklightHelper1/DDCCI", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.deepin.dde.BacklightHelper1.DDCCI", 20 | "Type": "ddcci" 21 | } 22 | ] 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /system/org.deepin.dde.bluetooth1.agent/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "", 3 | "Objects": [ 4 | { 5 | "Type": "Agent", 6 | "Path": "", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Bluetooth1.Agent", 10 | "Type": "agent" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.bluetooth1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Bluetooth1", 3 | "Objects": [ 4 | { 5 | "Type": "Bluetooth", 6 | "Path": "/org/deepin/dde/Bluetooth1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Bluetooth1", 10 | "Type": "bluetooth" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.daemon1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Daemon1", 3 | "Objects": [ 4 | { 5 | "Type": "Daemon", 6 | "Path": "/org/deepin/dde/Daemon1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Daemon1", 10 | "Type": "daemon" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.device1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/org.deepin.dde.device1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package device1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockDevice struct { 17 | MockInterfaceDevice // interface org.deepin.dde.Device1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceDevice struct { 22 | mock.Mock 23 | } 24 | 25 | // method HasBluetoothDeviceBlocked 26 | 27 | func (v *MockInterfaceDevice) GoHasBluetoothDeviceBlocked(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call { 28 | mockArgs := v.Called(flags, ch) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceDevice) HasBluetoothDeviceBlocked(flags dbus.Flags) (bool, error) { 39 | mockArgs := v.Called(flags) 40 | 41 | return mockArgs.Bool(0), mockArgs.Error(1) 42 | } 43 | 44 | // method UnblockBluetoothDevices 45 | 46 | func (v *MockInterfaceDevice) GoUnblockBluetoothDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call { 47 | mockArgs := v.Called(flags, ch) 48 | 49 | ret, ok := mockArgs.Get(0).(*dbus.Call) 50 | if !ok { 51 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 52 | } 53 | 54 | return ret 55 | } 56 | 57 | func (v *MockInterfaceDevice) UnblockBluetoothDevices(flags dbus.Flags) error { 58 | mockArgs := v.Called(flags) 59 | 60 | return mockArgs.Error(0) 61 | } 62 | -------------------------------------------------------------------------------- /system/org.deepin.dde.device1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Device1", 3 | "Objects": [ 4 | { 5 | "Type": "Device", 6 | "Path": "/org/deepin/dde/Device1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Device1", 10 | "Type": "device" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.display1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Display1", 3 | "Objects": [ 4 | { 5 | "Type": "Display", 6 | "Path": "/org/deepin/dde/Display1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Display1", 10 | "Type": "display" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.fprintd1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Fprintd1", 3 | "Objects": [ 4 | { 5 | "Type": "Fprintd", 6 | "Path": "/org/deepin/dde/Fprintd1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Fprintd1", 10 | "Type": "fprintd" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Device", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.deepin.dde.Fprintd1.Device", 19 | "Type": "device" 20 | } 21 | ] 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /system/org.deepin.dde.gesture1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Gesture1", 3 | "Objects": [ 4 | { 5 | "Type": "Gesture", 6 | "Path": "/org/deepin/dde/Gesture1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Gesture1", 10 | "Type": "gesture" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.greeter1/Greeter.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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /system/org.deepin.dde.greeter1/auto.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/org.deepin.dde.greeter1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package greeter1 7 | 8 | import ( 9 | "unsafe" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | ) 14 | 15 | type Greeter interface { 16 | greeter // interface org.deepin.dde.Greeter1 17 | proxy.Object 18 | } 19 | 20 | type objectGreeter struct { 21 | interfaceGreeter // interface org.deepin.dde.Greeter1 22 | proxy.ImplObject 23 | } 24 | 25 | func NewGreeter(conn *dbus.Conn) Greeter { 26 | obj := new(objectGreeter) 27 | obj.ImplObject.Init_(conn, "org.deepin.dde.Greeter1", "/org/deepin/dde/Greeter1") 28 | return obj 29 | } 30 | 31 | type greeter interface { 32 | GoUpdateGreeterQtTheme(flags dbus.Flags, ch chan *dbus.Call, fd dbus.UnixFD) *dbus.Call 33 | UpdateGreeterQtTheme(flags dbus.Flags, fd dbus.UnixFD) error 34 | } 35 | 36 | type interfaceGreeter struct{} 37 | 38 | func (v *interfaceGreeter) GetObject_() *proxy.ImplObject { 39 | return (*proxy.ImplObject)(unsafe.Pointer(v)) 40 | } 41 | 42 | func (*interfaceGreeter) GetInterfaceName_() string { 43 | return "org.deepin.dde.Greeter1" 44 | } 45 | 46 | // method UpdateGreeterQtTheme 47 | 48 | func (v *interfaceGreeter) GoUpdateGreeterQtTheme(flags dbus.Flags, ch chan *dbus.Call, fd dbus.UnixFD) *dbus.Call { 49 | return v.GetObject_().Go_(v.GetInterfaceName_()+".UpdateGreeterQtTheme", flags, ch, fd) 50 | } 51 | 52 | func (v *interfaceGreeter) UpdateGreeterQtTheme(flags dbus.Flags, fd dbus.UnixFD) error { 53 | return (<-v.GoUpdateGreeterQtTheme(flags, make(chan *dbus.Call, 1), fd).Done).Err 54 | } 55 | -------------------------------------------------------------------------------- /system/org.deepin.dde.greeter1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/org.deepin.dde.greeter1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package greeter1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockGreeter struct { 17 | MockInterfaceGreeter // interface org.deepin.dde.Greeter1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceGreeter struct { 22 | mock.Mock 23 | } 24 | 25 | // method UpdateGreeterQtTheme 26 | 27 | func (v *MockInterfaceGreeter) GoUpdateGreeterQtTheme(flags dbus.Flags, ch chan *dbus.Call, fd dbus.UnixFD) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, fd) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceGreeter) UpdateGreeterQtTheme(flags dbus.Flags, fd dbus.UnixFD) error { 39 | mockArgs := v.Called(flags, fd) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | -------------------------------------------------------------------------------- /system/org.deepin.dde.greeter1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Greeter1", 3 | "Objects": [ 4 | { 5 | "Type": "Greeter", 6 | "Path": "/org/deepin/dde/Greeter1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Greeter1", 10 | "Type": "greeter" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.grub2/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Grub2", 3 | "Objects": [ 4 | { 5 | "Type": "Grub2", 6 | "Path": "/org/deepin/dde/Grub2", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Grub2", 10 | "Type": "grub2" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.imageblur1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.ImageBlur1", 3 | "Objects": [ 4 | { 5 | "Type": "ImageBlur", 6 | "Path": "/org/deepin/dde/ImageBlur1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.ImageBlur1", 10 | "Type": "imageBlur" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.imageeffect1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/org.deepin.dde.imageeffect1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package imageeffect1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockImageEffect struct { 17 | MockInterfaceImageEffect // interface org.deepin.dde.ImageEffect1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceImageEffect struct { 22 | mock.Mock 23 | } 24 | 25 | // method Delete 26 | 27 | func (v *MockInterfaceImageEffect) GoDelete(flags dbus.Flags, ch chan *dbus.Call, effect string, filename string) *dbus.Call { 28 | mockArgs := v.Called(flags, ch, effect, filename) 29 | 30 | ret, ok := mockArgs.Get(0).(*dbus.Call) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 33 | } 34 | 35 | return ret 36 | } 37 | 38 | func (v *MockInterfaceImageEffect) Delete(flags dbus.Flags, effect string, filename string) error { 39 | mockArgs := v.Called(flags, effect, filename) 40 | 41 | return mockArgs.Error(0) 42 | } 43 | 44 | // method Get 45 | 46 | func (v *MockInterfaceImageEffect) GoGet(flags dbus.Flags, ch chan *dbus.Call, effect string, filename string) *dbus.Call { 47 | mockArgs := v.Called(flags, ch, effect, filename) 48 | 49 | ret, ok := mockArgs.Get(0).(*dbus.Call) 50 | if !ok { 51 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 52 | } 53 | 54 | return ret 55 | } 56 | 57 | func (v *MockInterfaceImageEffect) Get(flags dbus.Flags, effect string, filename string) (string, error) { 58 | mockArgs := v.Called(flags, effect, filename) 59 | 60 | return mockArgs.String(0), mockArgs.Error(1) 61 | } 62 | -------------------------------------------------------------------------------- /system/org.deepin.dde.imageeffect1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.ImageEffect1", 3 | "Objects": [ 4 | { 5 | "Type": "ImageEffect", 6 | "Path": "/org/deepin/dde/ImageEffect1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.ImageEffect1", 10 | "Type": "imageEffect" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.inputdevices1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.InputDevices1", 3 | "Objects": [ 4 | { 5 | "Type": "InputDevices", 6 | "Path": "/org/deepin/dde/InputDevices1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.InputDevices1", 10 | "Type": "inputDevices" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Touchscreen", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.deepin.dde.InputDevices1.Touchscreen", 19 | "Type": "touchscreen" 20 | } 21 | ] 22 | }, 23 | { 24 | "Type": "Touchpad", 25 | "Interfaces": [ 26 | { 27 | "Name": "org.deepin.dde.InputDevices1.Touchpad", 28 | "Type": "touchpad" 29 | } 30 | ] 31 | } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /system/org.deepin.dde.ipwatchd1/IPWatchD.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /system/org.deepin.dde.ipwatchd1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/org.deepin.dde.ipwatchd1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package ipwatchd1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/godbus/dbus/v5" 12 | "github.com/linuxdeepin/go-lib/dbusutil" 13 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 14 | "github.com/stretchr/testify/mock" 15 | ) 16 | 17 | type MockIPWatchD struct { 18 | MockInterfaceIpwatchd // interface org.deepin.dde.IPWatchD1 19 | proxy.MockObject 20 | } 21 | 22 | type MockInterfaceIpwatchd struct { 23 | mock.Mock 24 | } 25 | 26 | // method RequestIPConflictCheck 27 | 28 | func (v *MockInterfaceIpwatchd) GoRequestIPConflictCheck(flags dbus.Flags, ch chan *dbus.Call, ip string, ifc string) *dbus.Call { 29 | mockArgs := v.Called(flags, ch, ip, ifc) 30 | 31 | ret, ok := mockArgs.Get(0).(*dbus.Call) 32 | if !ok { 33 | panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0))) 34 | } 35 | 36 | return ret 37 | } 38 | 39 | func (v *MockInterfaceIpwatchd) RequestIPConflictCheck(flags dbus.Flags, ip string, ifc string) (string, error) { 40 | mockArgs := v.Called(flags, ip, ifc) 41 | 42 | return mockArgs.String(0), mockArgs.Error(1) 43 | } 44 | 45 | // signal IPConflict 46 | 47 | func (v *MockInterfaceIpwatchd) ConnectIPConflict(cb func(ip string, smac string, dmac string)) (dbusutil.SignalHandlerId, error) { 48 | mockArgs := v.Called(cb) 49 | 50 | ret0, ok := mockArgs.Get(0).(dbusutil.SignalHandlerId) 51 | if !ok { 52 | panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, mockArgs.Get(0))) 53 | } 54 | 55 | return ret0, mockArgs.Error(1) 56 | } 57 | -------------------------------------------------------------------------------- /system/org.deepin.dde.ipwatchd1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.IPWatchD1", 3 | "Objects": [ 4 | { 5 | "Type": "IPWatchD", 6 | "Path": "/org/deepin/dde/IPWatchD1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.IPWatchD1", 10 | "Type": "ipwatchd" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.keyevent1/KeyEvent.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /system/org.deepin.dde.keyevent1/auto_mock.go: -------------------------------------------------------------------------------- 1 | // Code generated by "./generator ./system/org.deepin.dde.keyevent1"; DO NOT EDIT. 2 | 3 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 4 | // 5 | // SPDX-License-Identifier: GPL-3.0-or-later 6 | package keyevent1 7 | 8 | import ( 9 | "fmt" 10 | 11 | "github.com/linuxdeepin/go-lib/dbusutil" 12 | "github.com/linuxdeepin/go-lib/dbusutil/proxy" 13 | "github.com/stretchr/testify/mock" 14 | ) 15 | 16 | type MockKeyEvent struct { 17 | MockInterfaceKeyEvent // interface org.deepin.dde.KeyEvent1 18 | proxy.MockObject 19 | } 20 | 21 | type MockInterfaceKeyEvent struct { 22 | mock.Mock 23 | } 24 | 25 | // signal KeyEvent 26 | 27 | func (v *MockInterfaceKeyEvent) ConnectKeyEvent(cb func(keycode uint32, pressed bool, ctrlPressed bool, shiftPressed bool, altPressed bool, superPressed bool)) (dbusutil.SignalHandlerId, error) { 28 | mockArgs := v.Called(cb) 29 | 30 | ret0, ok := mockArgs.Get(0).(dbusutil.SignalHandlerId) 31 | if !ok { 32 | panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, mockArgs.Get(0))) 33 | } 34 | 35 | return ret0, mockArgs.Error(1) 36 | } 37 | -------------------------------------------------------------------------------- /system/org.deepin.dde.keyevent1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.KeyEvent1", 3 | "Objects": [ 4 | { 5 | "Type": "KeyEvent", 6 | "Path": "/org/deepin/dde/KeyEvent1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.KeyEvent1", 10 | "Type": "keyEvent" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.lastore1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Lastore1", 3 | "Objects": [ 4 | { 5 | "Type": "Lastore", 6 | "Path": "/org/deepin/dde/Lastore1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Lastore1.Manager", 10 | "Type": "manager", 11 | "Accessor": "Manager" 12 | }, 13 | { 14 | "Name": "org.deepin.dde.Lastore1.Updater", 15 | "Type": "updater", 16 | "Accessor": "Updater", 17 | "Fixes": { 18 | "m/ApplicationUpdateInfos": [ 19 | { 20 | "Name": "arg1", 21 | "Type": "[]ApplicationUpdateInfo" 22 | } 23 | ], 24 | "m/ListMirrorSources": [ 25 | { 26 | "Name": "arg1", 27 | "Type": "[]MirrorSource" 28 | } 29 | ] 30 | } 31 | } 32 | ] 33 | }, 34 | { 35 | "Type": "Job", 36 | "Interfaces": [ 37 | { 38 | "Name": "org.deepin.dde.Lastore1.Job", 39 | "Type": "job" 40 | } 41 | ] 42 | } 43 | ] 44 | } 45 | -------------------------------------------------------------------------------- /system/org.deepin.dde.lastore1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package lastore1 6 | 7 | type ApplicationUpdateInfo struct { 8 | Id string 9 | Name string 10 | Icon string 11 | CurrentVersion string 12 | LastVersion string 13 | } 14 | 15 | type MirrorSource struct { 16 | Id string 17 | Url string 18 | Name string 19 | } 20 | -------------------------------------------------------------------------------- /system/org.deepin.dde.localehelper1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.LocaleHelper1", 3 | "Objects": [ 4 | { 5 | "Type": "LocaleHelper", 6 | "Path": "/org/deepin/dde/LocaleHelper1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.LocaleHelper1", 10 | "Type": "localeHelper" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.network1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Network1", 3 | "Objects": [ 4 | { 5 | "Type": "Network", 6 | "Path": "/org/deepin/dde/Network1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Network1", 10 | "Type": "network" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.networkproxy1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.NetworkProxy1", 3 | "Objects": [ 4 | { 5 | "Type": "App", 6 | "Path": "/org/deepin/dde/NetworkProxy1/App", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.NetworkProxy1.App", 10 | "Type": "app" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type": "Global", 16 | "Path": "/org/deepin/dde/NetworkProxy1/Global", 17 | "Interfaces": [ 18 | { 19 | "Name": "org.deepin.dde.NetworkProxy1.Global", 20 | "Type": "global" 21 | } 22 | ] 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /system/org.deepin.dde.networkproxy1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package networkproxy1 6 | 7 | // ScopeProxies type 8 | type ScopeProxies struct { 9 | Proxies map[string][]Proxy `yaml:"proxies"` // map[http,sock4,sock5][]proxy 10 | // proxy setting 11 | ProxyProgram []string `yaml:"proxy-program"` // global proxy will ignore 12 | NoProxyProgram []string `yaml:"no-proxy-program"` // app proxy will ignore 13 | 14 | // white list 15 | WhiteList []string `yaml:"whitelist"` // white site dont use proxy, not use this time 16 | TPort int `yaml:"t-port"` 17 | } 18 | 19 | // Proxy type 20 | type Proxy struct { 21 | // proxy proto type 22 | ProtoType string `json:"type"` // http sock4 sock5 23 | 24 | // [proto]&[name] as ident 25 | Name string `yaml:"name"` 26 | 27 | // proxy server 28 | Server string `yaml:"server"` 29 | Port int `yaml:"port"` 30 | 31 | // auth message 32 | UserName string `yaml:"username"` 33 | Password string `yaml:"password"` 34 | } 35 | -------------------------------------------------------------------------------- /system/org.deepin.dde.power1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Power1", 3 | "Objects": [ 4 | { 5 | "Type": "Power", 6 | "Path": "/org/deepin/dde/Power1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Power1", 10 | "Type": "power" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type":"Battery", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.deepin.dde.Power1.Battery", 19 | "Type": "battery" 20 | } 21 | ] 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /system/org.deepin.dde.powermanager1/PowerManager.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /system/org.deepin.dde.powermanager1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.PowerManager1", 3 | "Objects": [ 4 | { 5 | "Type": "PowerManager", 6 | "Path": "/org/deepin/dde/PowerManager1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.PowerManager1", 10 | "Type": "powerManager" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.procs1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Procs1", 3 | "Objects": [ 4 | { 5 | "Type": "Procs", 6 | "Path": "/org/deepin/dde/Procs1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Procs1", 10 | "Type": "procs", 11 | "Fixes": { 12 | "p/Procs": { 13 | "RefType": "PropProcsMap" 14 | } 15 | } 16 | } 17 | ] 18 | } 19 | ], 20 | "PropertyTypes": [ 21 | { 22 | "Type": "PropProcsMap", 23 | "ValueType": "map[string]ProcMessage" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /system/org.deepin.dde.procs1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package procs1 6 | 7 | type ProcMessage struct { 8 | ExecPath string 9 | CGroupPath string 10 | Pid string 11 | PPid string 12 | } 13 | -------------------------------------------------------------------------------- /system/org.deepin.dde.soundthemeplayer1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.SoundThemePlayer1", 3 | "Objects": [ 4 | { 5 | "Type": "SoundThemePlayer", 6 | "Path": "/org/deepin/dde/SoundThemePlayer1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.SoundThemePlayer1", 10 | "Type": "soundThemePlayer" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.systeminfo1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.SystemInfo1", 3 | "Objects": [ 4 | { 5 | "Type": "SystemInfo", 6 | "Path": "/org/deepin/dde/SystemInfo1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.SystemInfo1", 10 | "Type": "systemInfo", 11 | "Fixes": { 12 | "p/DMIInfo": { 13 | "RefType": "PropDMIInfo" 14 | } 15 | } 16 | } 17 | ] 18 | } 19 | ], 20 | "PropertyTypes": [ 21 | { 22 | "Type": "PropDMIInfo", 23 | "ValueType": "DMIInfo" 24 | } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /system/org.deepin.dde.systeminfo1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package systeminfo1 6 | 7 | type DMIInfo struct { 8 | BiosVendor string 9 | BiosVersion string 10 | BiosDate string 11 | BoardName string 12 | BoardSerial string 13 | BoardVendor string 14 | BoardVersion string 15 | ProductName string 16 | ProductFamily string 17 | ProductSerial string 18 | ProductUUID string 19 | ProductVersion string 20 | } 21 | -------------------------------------------------------------------------------- /system/org.deepin.dde.timedate1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Timedate1", 3 | "Objects": [ 4 | { 5 | "Type": "Timedate", 6 | "Path": "/org/deepin/dde/Timedate1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Timedate1", 10 | "Type": "timedate" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.deepin.dde.uadp1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.deepin.dde.Uadp1", 3 | "Objects": [ 4 | { 5 | "Type": "Uadp", 6 | "Path": "/org/deepin/dde/Uadp1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.deepin.dde.Uadp1", 10 | "Type": "uadp" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | 17 | -------------------------------------------------------------------------------- /system/org.freedesktop.DisplayManager/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.DisplayManager", 3 | "Objects": [ 4 | { 5 | "Type": "DisplayManager", 6 | "Path": "/org/freedesktop/DisplayManager", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.DisplayManager", 10 | "Type": "displayManager" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.freedesktop.dbus/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.DBus", 3 | "Objects": [ 4 | { 5 | "Type": "DBus", 6 | "Path": "/org/freedesktop/DBus", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.DBus", 10 | "Type": "dbusIfc" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.freedesktop.geoclue2/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.GeoClue2", 3 | "Objects": [ 4 | { 5 | "Type": "Manager", 6 | "Path": "/org/freedesktop/GeoClue2/Manager", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.GeoClue2.Manager", 10 | "Type": "manager" 11 | } 12 | ] 13 | }, 14 | { 15 | "Type":"Client", 16 | "Interfaces": [ 17 | { 18 | "Name": "org.freedesktop.GeoClue2.Client", 19 | "Type": "client" 20 | } 21 | ] 22 | }, 23 | { 24 | "Type":"Location", 25 | "Interfaces": [ 26 | { 27 | "Name": "org.freedesktop.GeoClue2.Location", 28 | "Type": "location", 29 | "Fixes": { 30 | "p/Timestamp": { 31 | "Type": "PropTimestamp", 32 | "ValueType": "Timestamp", 33 | "EmptyValue": "Timestamp{}" 34 | } 35 | } 36 | } 37 | ] 38 | } 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /system/org.freedesktop.geoclue2/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package geoclue2 6 | 7 | type Timestamp struct { 8 | Seconds uint64 9 | Microseconds uint64 10 | } 11 | 12 | const ( 13 | AccuracyLevelNone = 0 14 | AccuracyLevelCountry = 1 15 | AccuracyLevelCity = 4 16 | AccuracyLevelNeighborhood = 5 17 | AccuracyLevelStreet = 6 18 | AccuracyLevelExact = 8 19 | ) 20 | -------------------------------------------------------------------------------- /system/org.freedesktop.hostname1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.hostname1", 3 | "Objects": [ 4 | { 5 | "Type": "Hostname", 6 | "Path": "/org/freedesktop/hostname1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.hostname1", 10 | "Type": "hostname", 11 | "Accessor": "Hostname" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /system/org.freedesktop.login1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package login1 6 | 7 | import "github.com/godbus/dbus/v5" 8 | 9 | type ScheduledShutdown struct { 10 | Type string 11 | USec uint64 12 | } 13 | 14 | type SessionInfo struct { 15 | Id string 16 | Path dbus.ObjectPath 17 | } 18 | 19 | type UserInfo struct { 20 | UID uint32 21 | Path dbus.ObjectPath 22 | } 23 | 24 | type SeatInfo struct { 25 | Id string 26 | Path dbus.ObjectPath 27 | } 28 | 29 | type SessionDetail struct { 30 | SessionId string 31 | UID uint32 32 | UserName string 33 | SeatId string 34 | Path dbus.ObjectPath 35 | } 36 | 37 | type UserDetail struct { 38 | UID uint32 39 | Name string 40 | Path dbus.ObjectPath 41 | } 42 | 43 | type InhibitorInfo struct { 44 | What string 45 | Who string 46 | Why string 47 | Mode string 48 | UID uint32 49 | PID uint32 50 | } 51 | -------------------------------------------------------------------------------- /system/org.freedesktop.modemmanager1/ModemManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 28 | 29 | 30 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /system/org.freedesktop.modemmanager1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package modemmanager1 6 | 7 | type ModemPort struct { 8 | Name string 9 | Type uint32 10 | } 11 | 12 | type ModemSignalQuality struct { 13 | Quality uint32 14 | RecentlyTaken bool 15 | } 16 | 17 | type ModemModes struct { 18 | AllowedModes uint32 19 | PreferredMode uint32 20 | } 21 | 22 | type OmaSession struct { 23 | Type uint32 24 | Id uint32 25 | } 26 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Checkpoint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 19 | 20 | 21 | 26 | 27 | 28 | 33 | 34 | 35 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/DHCP4Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 18 | 19 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/DHCP6Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 18 | 19 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Adsl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Bluetooth.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 22 | 23 | 24 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Bond.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 23 | 24 | 25 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Bridge.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 23 | 24 | 25 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Dummy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Generic.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 22 | 23 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Infiniband.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Macvlan.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 22 | 23 | 24 | 29 | 30 | 31 | 36 | 37 | 38 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Modem.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 30 | 31 | 32 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.OlpcMesh.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 22 | 23 | 24 | 29 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Statistics.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 18 | 19 | 20 | 25 | 26 | 27 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Team.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 23 | 24 | 25 | 31 | 32 | 33 | 38 | 39 | 40 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Veth.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Vlan.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 23 | 24 | 25 | 30 | 31 | 32 | 37 | 38 | 39 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/Device.Wired.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 23 | 24 | 25 | 30 | 31 | 32 | 37 | 38 | 39 | 45 | 46 | 47 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/DnsManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 17 | 18 | 19 | 24 | 25 | 26 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/PPP.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/VPN.Connection.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 19 | 20 | 21 | 22 | 23 | 30 | 31 | 32 | 37 | 38 | 39 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/WiMax.Nsp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 15 | 16 | 17 | 22 | 23 | 24 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /system/org.freedesktop.networkmanager/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package networkmanager 6 | 7 | type IP6Address struct { 8 | Address []byte 9 | Prefix uint32 10 | Gateway []byte 11 | } 12 | 13 | type IP6Route struct { 14 | Route []byte 15 | Prefix uint32 16 | NextHop []byte 17 | Metric uint32 18 | } 19 | 20 | type DeviceStateReason struct { 21 | State uint32 22 | Reason uint32 23 | } 24 | -------------------------------------------------------------------------------- /system/org.freedesktop.policykit1/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package policykit1 6 | 7 | import "github.com/godbus/dbus/v5" 8 | 9 | type ActionDescription struct { 10 | ActionId string 11 | Description string 12 | Message string 13 | VendorName string 14 | VendorURL string 15 | IconName string 16 | ImplicitAny ImplicitAuthorization 17 | ImplicitInactive ImplicitAuthorization 18 | ImplicitActive ImplicitAuthorization 19 | } 20 | 21 | type ImplicitAuthorization uint32 22 | 23 | type Subject struct { 24 | Kind string 25 | Details map[string]dbus.Variant 26 | } 27 | 28 | type Identity struct { 29 | Kind string 30 | Details map[string]dbus.Variant 31 | } 32 | 33 | type AuthorizationResult struct { 34 | IsAuthorized bool 35 | IsChallenge bool 36 | Details map[string]dbus.Variant 37 | } 38 | 39 | type TemporaryAuthorization struct { 40 | Id string 41 | ActionId string 42 | Subject Subject 43 | TimeObtained uint64 44 | TimeExpires uint64 45 | } 46 | 47 | // SubjectKind 48 | const ( 49 | SubjectKindUnixProcess = "unix-process" 50 | SubjectKindUnixSession = "unix-session" 51 | SubjectKindSystemBusName = "system-bus-name" 52 | ) 53 | 54 | func MakeSubject(kind string) Subject { 55 | return Subject{ 56 | Kind: kind, 57 | Details: make(map[string]dbus.Variant), 58 | } 59 | } 60 | 61 | func (s *Subject) SetDetail(key string, value interface{}) { 62 | s.Details[key] = dbus.MakeVariant(value) 63 | } 64 | 65 | // CheckAuthorizationFlags 66 | const ( 67 | CheckAuthorizationFlagsNone = 0 68 | CheckAuthorizationFlagsAllowUserInteraction = 1 69 | ) 70 | -------------------------------------------------------------------------------- /system/org.freedesktop.timedate1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.timedate1", 3 | "Objects": [ 4 | { 5 | "Type": "Timedate", 6 | "Path": "/org/freedesktop/timedate1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.timedate1", 10 | "Type": "timedate" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.freedesktop.timesync1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Service": "org.freedesktop.timesync1", 3 | "Objects": [ 4 | { 5 | "Type": "Timesync1", 6 | "Path": "/org/freedesktop/timesync1", 7 | "Interfaces": [ 8 | { 9 | "Name": "org.freedesktop.timesync1.Manager", 10 | "Type": "timesync1" 11 | } 12 | ] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /system/org.freedesktop.udisks2/manual.go: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd. 2 | // 3 | // SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | package udisks2 6 | 7 | import "github.com/godbus/dbus/v5" 8 | 9 | type Attribute struct { 10 | Id byte 11 | Name string 12 | Flags uint16 13 | Value int32 14 | Worst int32 15 | Threshold int32 16 | Pretty int64 17 | PrettyUnit int32 18 | Expansion map[string]dbus.Variant 19 | } 20 | 21 | type ConfigurationItem struct { 22 | Type string 23 | Details map[string]dbus.Variant 24 | } 25 | --------------------------------------------------------------------------------