├── .github ├── FUNDING.yml ├── dependabot.yml └── ISSUE_TEMPLATE │ └── config.yml ├── data ├── metainfo │ ├── 01-devices.png │ ├── 02-pairing.png │ └── 03-actions.png ├── ca.andyholmes.Valent.service.in ├── ca.andyholmes.Valent-autostart.desktop.in.in └── ca.andyholmes.Valent.desktop.in.in ├── tests ├── fixtures │ ├── data │ │ ├── image.jpg │ │ ├── image.png │ │ ├── core-state.json │ │ └── core-packet.json │ ├── libvalent-test.h │ ├── valent-mock-channel.h │ ├── valent-mock-device-plugin.h │ ├── valent-mock-input-adapter.h │ ├── valent-mock-media-adapter.h │ ├── valent-mock-mixer-adapter.h │ ├── valent-mock-network-monitor.h │ ├── valent-mock-channel-service.h │ ├── valent-mock-session-adapter.h │ ├── valent-mock-contacts-adapter.h │ ├── valent-mock-messages-adapter.h │ ├── valent-mock-clipboard-adapter.h │ ├── valent-mock-application-plugin.h │ ├── valent-mock-notifications-adapter.h │ ├── valent-mock-media-player.h │ ├── valent-mock-notifications-adapter.c │ └── mock.plugin ├── extra │ ├── template.test.in │ ├── setup.cfg │ ├── gsettings-test-init.sh │ ├── lsan.supp │ ├── tsan.supp │ └── cppcheck.cfg ├── libvalent │ └── meson.build └── plugins │ ├── meson.build │ └── gnome │ └── test-gnome-common.h ├── .gitignore ├── .gitmodules ├── src ├── plugins │ ├── findmyphone │ │ ├── data │ │ │ └── alert.oga │ │ ├── valent-findmyphone-plugin.h │ │ ├── findmyphone-plugin.c │ │ ├── findmyphone.gresource.xml │ │ └── findmyphone.plugin.desktop.in │ ├── gnome │ │ ├── data │ │ │ └── icons │ │ │ │ └── scalable │ │ │ │ ├── actions │ │ │ │ ├── message-send-symbolic.svg │ │ │ │ ├── presenter-stop-symbolic.svg │ │ │ │ ├── media-playback-stop-symbolic.svg │ │ │ │ ├── media-playback-pause-symbolic.svg │ │ │ │ ├── presenter-start-symbolic.svg │ │ │ │ ├── media-playback-start-symbolic.svg │ │ │ │ ├── share-file-symbolic.svg │ │ │ │ ├── media-playlist-consecutive-symbolic.svg │ │ │ │ ├── media-seek-forward-symbolic.svg │ │ │ │ ├── media-seek-backward-symbolic-rtl.svg │ │ │ │ ├── media-seek-backward-symbolic.svg │ │ │ │ ├── media-seek-forward-symbolic-rtl.svg │ │ │ │ ├── media-skip-backward-symbolic.svg │ │ │ │ ├── media-skip-forward-symbolic.svg │ │ │ │ ├── media-skip-backward-symbolic-rtl.svg │ │ │ │ ├── media-skip-forward-symbolic-rtl.svg │ │ │ │ └── valent-media-player-symbolic.svg │ │ │ │ ├── devices │ │ │ │ ├── laptop-symbolic.svg │ │ │ │ ├── tablet-symbolic.svg │ │ │ │ ├── phone-symbolic.svg │ │ │ │ ├── tv-symbolic.svg │ │ │ │ ├── computer-symbolic.svg │ │ │ │ ├── input-mouse-symbolic.svg │ │ │ │ ├── phonelink-symbolic.svg │ │ │ │ ├── input-touchpad-symbolic.svg │ │ │ │ ├── phonelink-off-symbolic.svg │ │ │ │ └── input-compose-symbolic.svg │ │ │ │ ├── status │ │ │ │ ├── network-cellular-hspa-symbolic.svg │ │ │ │ ├── network-cellular-edge-symbolic.svg │ │ │ │ ├── network-cellular-signal-excellent-symbolic.svg │ │ │ │ ├── network-cellular-signal-none-symbolic.svg │ │ │ │ ├── network-cellular-gprs-symbolic.svg │ │ │ │ ├── battery-level-100-symbolic.svg │ │ │ │ ├── battery-level-30-symbolic.svg │ │ │ │ ├── battery-level-50-symbolic.svg │ │ │ │ ├── battery-level-60-symbolic.svg │ │ │ │ ├── battery-level-70-symbolic.svg │ │ │ │ ├── battery-level-80-symbolic.svg │ │ │ │ ├── battery-level-90-symbolic.svg │ │ │ │ ├── network-cellular-signal-good-symbolic.svg │ │ │ │ ├── network-cellular-signal-ok-symbolic.svg │ │ │ │ ├── network-cellular-signal-weak-symbolic.svg │ │ │ │ ├── battery-level-20-symbolic.svg │ │ │ │ ├── battery-level-40-symbolic.svg │ │ │ │ └── network-cellular-4g-symbolic.svg │ │ │ │ └── categories │ │ │ │ ├── valent-plugins-symbolic.svg │ │ │ │ └── valent-status-symbolic.svg │ │ ├── valent-window.h │ │ ├── valent-plugin-row.h │ │ ├── valent-device-page.h │ │ ├── valent-input-remote.h │ │ ├── valent-media-remote.h │ │ ├── valent-media-window.h │ │ ├── valent-mixer-remote.h │ │ ├── valent-share-dialog.h │ │ ├── valent-contact-page.h │ │ ├── valent-presenter-remote.h │ │ ├── valent-mutter-clipboard.h │ │ ├── valent-preferences-dialog.h │ │ ├── valent-gnome-application.h │ │ ├── valent-messages-window.h │ │ ├── valent-preferences-sync-page.h │ │ ├── valent-device-preferences-dialog.h │ │ ├── valent-preferences-other-page.h │ │ ├── valent-preferences-status-page.h │ │ ├── gnome.plugin.desktop.in │ │ ├── valent-menu-stack.h │ │ ├── valent-contact-row.h │ │ ├── valent-preferences-page.h │ │ └── valent-menu-list.h │ ├── ping │ │ ├── data │ │ │ └── valent-ping-plugin-symbolic.svg │ │ ├── valent-ping-plugin.h │ │ ├── ping.gresource.xml │ │ ├── ping-plugin.c │ │ └── ping.plugin.desktop.in │ ├── runcommand │ │ ├── valent-runcommand-utils.h │ │ ├── ca.andyholmes.Valent.Plugin.runcommand.gschema.xml │ │ ├── valent-runcommand-plugin.h │ │ ├── runcommand.gresource.xml │ │ ├── runcommand-plugin.c │ │ └── runcommand.plugin.desktop.in │ ├── xdp │ │ ├── valent-xdp-utils.h │ │ ├── valent-xdp-input.h │ │ ├── valent-xdp-session.h │ │ ├── valent-xdp-background.h │ │ ├── xdp.gresource.xml │ │ ├── ca.andyholmes.Valent.Plugin.xdp.gschema.xml │ │ ├── xdp.plugin.desktop.in │ │ └── data │ │ │ └── valent-xdp-plugin-symbolic.svg │ ├── eds │ │ ├── valent-ebook-store.h │ │ ├── valent-ebook-adapter.h │ │ ├── eds.plugin.desktop.in │ │ ├── eds.gresource.xml │ │ ├── eds-plugin.c │ │ └── data │ │ │ └── valent-eds-plugin-symbolic.svg │ ├── pulseaudio │ │ ├── valent-pa-mixer.h │ │ ├── valent-pa-stream.h │ │ ├── pulseaudio.gresource.xml │ │ ├── pulseaudio.plugin.desktop.in │ │ ├── pulseaudio-plugin.c │ │ └── data │ │ │ └── valent-pulseaudio-plugin-symbolic.svg │ ├── lan │ │ ├── valent-lan-channel.h │ │ ├── valent-lan-channel-service.h │ │ ├── lan.plugin.desktop.in │ │ ├── lan.gresource.xml │ │ ├── valent-lan-dnssd.h │ │ ├── lan-plugin.c │ │ └── data │ │ │ └── valent-lan-plugin-symbolic.svg │ ├── sms │ │ ├── valent-sms-plugin.h │ │ ├── sms.gresource.xml │ │ ├── sms-plugin.c │ │ ├── data │ │ │ └── valent-sms-plugin-symbolic.svg │ │ ├── sms.plugin.desktop.in │ │ └── valent-sms-device.h │ ├── lock │ │ ├── valent-lock-plugin.h │ │ ├── lock.gresource.xml │ │ ├── lock-plugin.c │ │ └── lock.plugin.desktop.in │ ├── sftp │ │ ├── valent-sftp-plugin.h │ │ ├── sftp.gresource.xml │ │ ├── sftp-plugin.c │ │ ├── ca.andyholmes.Valent.Plugin.sftp.gschema.xml │ │ ├── sftp.plugin.desktop.in │ │ └── data │ │ │ └── valent-sftp-plugin-symbolic.svg │ ├── fdo │ │ ├── valent-fdo-session.h │ │ ├── valent-fdo-notifications.h │ │ ├── fdo.gresource.xml │ │ └── fdo.plugin.desktop.in │ ├── mpris │ │ ├── valent-mpris-player.h │ │ ├── valent-mpris-plugin.h │ │ ├── valent-mpris-adapter.h │ │ ├── ca.andyholmes.Valent.Plugin.mpris.gschema.xml │ │ ├── mpris.gresource.xml │ │ ├── mpris.plugin.desktop.in │ │ ├── vdp-mpris-adapter.h │ │ ├── data │ │ │ └── valent-mpris-plugin-symbolic.svg │ │ └── mpris-plugin.c │ ├── share │ │ ├── valent-share-plugin.h │ │ ├── ca.andyholmes.Valent.Plugin.share.gschema.xml │ │ ├── share.gresource.xml │ │ ├── share-plugin.c │ │ ├── valent-share-upload.h │ │ ├── share.plugin.desktop.in │ │ ├── data │ │ │ └── valent-share-plugin-symbolic.svg │ │ └── valent-share-download.h │ ├── gtk │ │ ├── valent-gdk-clipboard.h │ │ ├── valent-gtk-notifications.h │ │ ├── gtk.gresource.xml │ │ └── gtk.plugin.desktop.in │ ├── battery │ │ ├── valent-battery-plugin.h │ │ ├── battery.gresource.xml │ │ ├── battery-plugin.c │ │ ├── battery.plugin.desktop.in │ │ ├── valent-battery.h │ │ ├── data │ │ │ └── valent-battery-plugin-symbolic.svg │ │ └── ca.andyholmes.Valent.Plugin.battery.gschema.xml │ ├── bluez │ │ ├── valent-mux-input-stream.h │ │ ├── valent-mux-output-stream.h │ │ ├── valent-bluez-channel-service.h │ │ ├── valent-bluez-channel.h │ │ ├── bluez.plugin.desktop.in │ │ ├── bluez.gresource.xml │ │ ├── bluez-plugin.c │ │ ├── valent-mux-io-stream.h │ │ ├── valent-bluez-device.h │ │ └── data │ │ │ └── valent-bluez-plugin-symbolic.svg │ ├── contacts │ │ ├── valent-contacts-plugin.h │ │ ├── contacts.gresource.xml │ │ ├── contacts-plugin.c │ │ ├── ca.andyholmes.Valent.Plugin.contacts.gschema.xml │ │ └── valent-contacts-device.h │ ├── mousepad │ │ ├── valent-mousepad-plugin.h │ │ ├── ca.andyholmes.Valent.Plugin.mousepad.gschema.xml │ │ ├── mousepad.gresource.xml │ │ ├── mousepad-plugin.c │ │ ├── data │ │ │ └── valent-mousepad-plugin-symbolic.svg │ │ ├── valent-mousepad-device.h │ │ └── mousepad.plugin.desktop.in │ ├── clipboard │ │ ├── valent-clipboard-plugin.h │ │ ├── clipboard.gresource.xml │ │ ├── clipboard-plugin.c │ │ ├── ca.andyholmes.Valent.Plugin.clipboard.gschema.xml │ │ └── clipboard.plugin.desktop.in │ ├── presenter │ │ ├── valent-presenter-plugin.h │ │ ├── presenter.gresource.xml │ │ ├── presenter-plugin.c │ │ └── presenter.plugin.desktop.in │ ├── telephony │ │ ├── valent-telephony-plugin.h │ │ ├── telephony.gresource.xml │ │ ├── telephony-plugin.c │ │ └── telephony.plugin.desktop.in │ ├── systemvolume │ │ ├── ca.andyholmes.Valent.Plugin.systemvolume.gschema.xml │ │ ├── valent-systemvolume-plugin.h │ │ ├── systemvolume.gresource.xml │ │ ├── systemvolume-plugin.c │ │ ├── data │ │ │ └── valent-systemvolume-plugin-symbolic.svg │ │ ├── valent-systemvolume-device.h │ │ └── systemvolume.plugin.desktop.in │ ├── notification │ │ ├── valent-notification-plugin.h │ │ ├── notification.gresource.xml │ │ ├── notification-plugin.c │ │ ├── ca.andyholmes.Valent.Plugin.notification.gschema.xml │ │ ├── valent-notification-upload.h │ │ ├── data │ │ │ └── valent-notification-plugin-symbolic.svg │ │ └── notification.plugin.desktop.in │ ├── pipewire │ │ ├── pipewire.plugin.desktop.in │ │ ├── pipewire.gresource.xml │ │ ├── pipewire-plugin.c │ │ ├── data │ │ │ └── valent-pipewire-plugin-symbolic.svg │ │ ├── valent-pipewire-stream.h │ │ └── valent-pipewire-mixer.h │ └── connectivity_report │ │ ├── valent-connectivity_report-plugin.h │ │ ├── valent-telephony.h │ │ ├── ca.andyholmes.Valent.Plugin.connectivity_report.gschema.xml │ │ ├── connectivity_report.gresource.xml │ │ ├── connectivity_report-plugin.c │ │ └── connectivity_report.plugin.desktop.in ├── libvalent │ ├── core │ │ ├── valent-version-vcs.h.in │ │ ├── libvalent-core.h │ │ ├── valent-application.h │ │ └── libvalent-core.gresource.xml │ ├── session │ │ └── libvalent-session.h │ ├── clipboard │ │ └── libvalent-clipboard.h │ ├── input │ │ ├── libvalent-input.h │ │ ├── valent-input.h │ │ └── valent-input-keydef.h │ ├── contacts │ │ ├── libvalent-contacts.h │ │ ├── data │ │ │ └── sparql │ │ │ │ ├── get-contact-lists.rq │ │ │ │ ├── get-contact.rq │ │ │ │ ├── search-contacts.rq │ │ │ │ └── get-contact-list.rq │ │ ├── valent-contact-list.h │ │ ├── valent-contact.h │ │ ├── libvalent-contacts.gresource.xml │ │ ├── valent-contacts-adapter.h │ │ └── valent-contacts.h │ ├── notifications │ │ ├── libvalent-notifications.h │ │ └── valent-notifications.h │ ├── media │ │ └── libvalent-media.h │ ├── mixer │ │ └── libvalent-mixer.h │ ├── device │ │ ├── libvalent-device.plugin │ │ ├── libvalent-device.gresource.xml │ │ ├── valent-device-private.h │ │ ├── valent-device-impl.h │ │ ├── libvalent-device.h │ │ ├── libvalent-device.c │ │ └── valent-device-manager.h │ └── messages │ │ ├── libvalent-messages.h │ │ ├── data │ │ └── sparql │ │ │ ├── remove-message.rq │ │ │ ├── get-timestamp.rq │ │ │ ├── remove-thread.rq │ │ │ ├── get-message-attachments.rq │ │ │ └── get-thread-attachments.rq │ │ ├── valent-message-thread.h │ │ └── valent-messages.h └── meson.build ├── subprojects └── libportal.wrap ├── po ├── LINGUAS └── meson.build ├── LICENSE ├── .editorconfig ├── doc ├── sdk │ └── urlmap.js └── schemas │ ├── kdeconnect.telephony.request_mute.json │ ├── kdeconnect.sms.request_conversations.json │ ├── kdeconnect.connectivity_report.request.json │ └── kdeconnect.findmyphone.request.json └── REUSE.toml /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [andyholmes] 2 | -------------------------------------------------------------------------------- /data/metainfo/01-devices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyholmes/valent/HEAD/data/metainfo/01-devices.png -------------------------------------------------------------------------------- /data/metainfo/02-pairing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyholmes/valent/HEAD/data/metainfo/02-pairing.png -------------------------------------------------------------------------------- /data/metainfo/03-actions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyholmes/valent/HEAD/data/metainfo/03-actions.png -------------------------------------------------------------------------------- /tests/fixtures/data/image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyholmes/valent/HEAD/tests/fixtures/data/image.jpg -------------------------------------------------------------------------------- /tests/fixtures/data/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyholmes/valent/HEAD/tests/fixtures/data/image.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | _build* 3 | .cspellcache 4 | .flatpak-builder 5 | 6 | # meson wraps 7 | subprojects/libportal 8 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "gvc"] 2 | path = subprojects/gvc 3 | url = https://gitlab.gnome.org/GNOME/libgnome-volume-control.git 4 | -------------------------------------------------------------------------------- /data/ca.andyholmes.Valent.service.in: -------------------------------------------------------------------------------- 1 | [D-BUS Service] 2 | Name=@application_id@ 3 | Exec=@bindir@/valent --gapplication-service 4 | -------------------------------------------------------------------------------- /src/plugins/findmyphone/data/alert.oga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyholmes/valent/HEAD/src/plugins/findmyphone/data/alert.oga -------------------------------------------------------------------------------- /subprojects/libportal.wrap: -------------------------------------------------------------------------------- 1 | [wrap-git] 2 | directory=libportal 3 | url=https://github.com/flatpak/libportal.git 4 | revision=main 5 | depth=1 6 | 7 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: github-actions 4 | directory: / 5 | schedule: 6 | interval: daily 7 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | es 5 | fr 6 | it 7 | nl 8 | pt_BR 9 | te 10 | zh_CN 11 | 12 | et 13 | -------------------------------------------------------------------------------- /tests/extra/template.test.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: CC0-1.0 2 | # SPDX-FileCopyrightText: No rights reserved 3 | 4 | [Test] 5 | Type=@installed_tests_type@ 6 | Exec=env @installed_tests_env@ @installed_tests_execdir@/@installed_tests_exec@ 7 | Output=TAP 8 | 9 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/message-send-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/ping/data/valent-ping-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/libvalent/core/valent-version-vcs.h.in: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_VCS_TAG "@VCS_TAG@" 11 | 12 | G_END_DECLS 13 | 14 | -------------------------------------------------------------------------------- /src/libvalent/session/libvalent-session.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-session.h" 9 | #include "valent-session-adapter.h" 10 | 11 | G_END_DECLS 12 | 13 | -------------------------------------------------------------------------------- /src/libvalent/clipboard/libvalent-clipboard.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-clipboard.h" 9 | #include "valent-clipboard-adapter.h" 10 | 11 | G_END_DECLS 12 | 13 | -------------------------------------------------------------------------------- /src/plugins/runcommand/valent-runcommand-utils.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | gboolean valent_runcommand_can_spawn_host (void); 11 | 12 | G_END_DECLS 13 | 14 | -------------------------------------------------------------------------------- /po/meson.build: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | i18n.gettext(meson.project_name(), 5 | preset: 'glib', 6 | args: [ 7 | '--keyword=Description', 8 | '--msgid-bugs-address=https://github.com/andyholmes/valent/issues', 9 | ], 10 | ) 11 | -------------------------------------------------------------------------------- /src/libvalent/input/libvalent-input.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-input.h" 9 | #include "valent-input-adapter.h" 10 | #include "valent-input-keydef.h" 11 | 12 | G_END_DECLS 13 | 14 | -------------------------------------------------------------------------------- /src/libvalent/contacts/libvalent-contacts.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-contacts.h" 9 | #include "valent-contacts-adapter.h" 10 | #include "valent-contact.h" 11 | 12 | G_END_DECLS 13 | 14 | -------------------------------------------------------------------------------- /tests/extra/setup.cfg: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: CC0-1.0 2 | # SPDX-FileCopyrightText: No rights reserved 3 | 4 | [codespell] 5 | ignore-words-list = doubleclick,inout,onlyonce,sav 6 | skip = ./_build*,./tests/fixtures/data,./subprojects,*.po,./.* 7 | 8 | [pylint] 9 | disable = duplicate-code,import-error,invalid-name,missing-function-docstring,similarities 10 | -------------------------------------------------------------------------------- /src/libvalent/contacts/data/sparql/get-contact-lists.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: iri 5 | # Outputs: contactList 6 | SELECT 7 | ?contactList 8 | WHERE { 9 | GRAPH { 10 | ?contactList rdf:type nco:ContactList . 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/libvalent/notifications/libvalent-notifications.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-notification.h" 9 | #include "valent-notifications.h" 10 | #include "valent-notifications-adapter.h" 11 | 12 | G_END_DECLS 13 | 14 | -------------------------------------------------------------------------------- /tests/fixtures/libvalent-test.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "valent-device-private.h" 7 | 8 | #define VALENT_TEST_INSIDE 9 | 10 | #include "valent-test-fixture.h" 11 | #include "valent-test-utils.h" 12 | 13 | #undef VALENT_TEST_INSIDE 14 | 15 | -------------------------------------------------------------------------------- /src/libvalent/media/libvalent-media.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-media.h" 9 | #include "valent-media-adapter.h" 10 | #include "valent-media-enums.h" 11 | #include "valent-media-player.h" 12 | 13 | G_END_DECLS 14 | 15 | -------------------------------------------------------------------------------- /src/libvalent/mixer/libvalent-mixer.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-mixer.h" 9 | #include "valent-mixer-adapter.h" 10 | #include "valent-mixer-enums.h" 11 | #include "valent-mixer-stream.h" 12 | 13 | G_END_DECLS 14 | 15 | -------------------------------------------------------------------------------- /tests/libvalent/meson.build: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | subdir('core') 5 | subdir('clipboard') 6 | subdir('contacts') 7 | subdir('device') 8 | subdir('input') 9 | subdir('media') 10 | subdir('messages') 11 | subdir('mixer') 12 | subdir('notifications') 13 | subdir('session') 14 | 15 | -------------------------------------------------------------------------------- /src/libvalent/device/libvalent-device.plugin: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=libvalent-device 6 | Name=Devices 7 | Description=Support for device management 8 | Icon=ca.andyholmes.Valent-symbolic 9 | Builtin=true 10 | Embedded=libvalent_device_register_types 11 | Hidden=true 12 | -------------------------------------------------------------------------------- /src/libvalent/device/libvalent-device.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | libvalent-device.plugin 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/plugins/xdp/valent-xdp-utils.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | XdpPortal * valent_xdp_get_default (void); 11 | XdpParent * valent_xdp_get_parent (void); 12 | gboolean valent_xdp_has_parent (void); 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-window.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_WINDOW (valent_window_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentWindow, valent_window, VALENT, WINDOW, AdwApplicationWindow) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /data/ca.andyholmes.Valent-autostart.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Valent 3 | Comment=Connect, control and sync devices 4 | Exec=@bindir@/valent --gapplication-service 5 | # Translators: Do NOT translate or transliterate this text (this is an icon file name)! 6 | Icon=@application_id@ 7 | Terminal=false 8 | Type=Application 9 | Categories=GNOME;GTK;Network; 10 | StartupNotify=true 11 | NoDisplay=true 12 | 13 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/presenter-stop-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/libvalent/device/valent-device-private.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "valent-device.h" 7 | 8 | G_BEGIN_DECLS 9 | 10 | _VALENT_EXTERN 11 | ValentDevice * valent_device_new_full (ValentObject *parent, 12 | JsonNode *identity); 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-playback-stop-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/laptop-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/libvalent/messages/libvalent-messages.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-messages.h" 9 | #include "valent-messages-adapter.h" 10 | #include "valent-messages-enums.h" 11 | #include "valent-message.h" 12 | #include "valent-message-attachment.h" 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/eds/valent-ebook-store.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_EBOOK_STORE (valent_ebook_store_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentEBookStore, valent_ebook_store, VALENT, EBOOK_STORE, ValentObject) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-plugin-row.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PLUGIN_ROW (valent_plugin_row_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPluginRow, valent_plugin_row, VALENT, PLUGIN_ROW, AdwExpanderRow) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/pulseaudio/valent-pa-mixer.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PA_MIXER (valent_pa_mixer_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPaMixer, valent_pa_mixer, VALENT, PA_MIXER, ValentMixerAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/xdp/valent-xdp-input.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_XDP_INPUT (valent_xdp_input_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentXdpInput, valent_xdp_input, VALENT, XDP_INPUT, ValentInputAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-device-page.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_DEVICE_PAGE (valent_device_page_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentDevicePage, valent_device_page, VALENT, DEVICE_PAGE, AdwNavigationPage) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-input-remote.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_INPUT_REMOTE (valent_input_remote_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentInputRemote, valent_input_remote, VALENT, INPUT_REMOTE, AdwWindow) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/lan/valent-lan-channel.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_LAN_CHANNEL (valent_lan_channel_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentLanChannel, valent_lan_channel, VALENT, LAN_CHANNEL, ValentChannel) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/pulseaudio/valent-pa-stream.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PA_STREAM (valent_pa_stream_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPaStream, valent_pa_stream, VALENT, PA_STREAM, ValentMixerStream) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/sms/valent-sms-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SMS_PLUGIN (valent_sms_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentSmsPlugin, valent_sms_plugin, VALENT, SMS_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-media-remote.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MEDIA_REMOTE (valent_media_remote_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMediaRemote, valent_media_remote, VALENT, MEDIA_REMOTE, AdwBreakpointBin) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-media-window.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MEDIA_WINDOW (valent_media_window_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMediaWindow, valent_media_window, VALENT, MEDIA_WINDOW, AdwWindow) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-mixer-remote.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MIXER_REMOTE (valent_mixer_remote_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMixerRemote, valent_mixer_remote, VALENT, MIXER_REMOTE, AdwBreakpointBin) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-share-dialog.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SHARE_DIALOG (valent_share_dialog_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentShareDialog, valent_share_dialog, VALENT, SHARE_DIALOG, AdwWindow) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/lock/valent-lock-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_LOCK_PLUGIN (valent_lock_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentLockPlugin, valent_lock_plugin, VALENT, LOCK_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/ping/valent-ping-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PING_PLUGIN (valent_ping_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPingPlugin, valent_ping_plugin, VALENT, PING_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/sftp/valent-sftp-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SFTP_PLUGIN (valent_sftp_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentSftpPlugin, valent_sftp_plugin, VALENT, SFTP_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-channel.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_CHANNEL (valent_mock_channel_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockChannel, valent_mock_channel, VALENT, MOCK_CHANNEL, ValentChannel) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Feature Request 4 | about: Request a new feature or enhancement 5 | url: https://github.com/andyholmes/valent/discussions/new?category=feature-request 6 | 7 | - name: Support & Troubleshooting 8 | about: Request help connecting devices and troubleshooting 9 | url: https://github.com/andyholmes/valent/discussions/new?category=help 10 | -------------------------------------------------------------------------------- /src/libvalent/messages/data/sparql/remove-message.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: iri 5 | # Outputs: None 6 | DELETE 7 | WHERE { 8 | BIND(IRI(xsd:string(~iri)) AS ?message) 9 | ?message rdf:type vmo:PhoneMessage ; 10 | ?messageProperty ?messageValue . 11 | OPTIONAL { ?message ?messageProperty ?messageValue . } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/plugins/fdo/valent-fdo-session.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_FDO_SESSION (valent_fdo_session_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentFdoSession, valent_fdo_session, VALENT, FDO_SESSION, ValentSessionAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-contact-page.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_CONTACT_PAGE (valent_contact_page_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentContactPage, valent_contact_page, VALENT, CONTACT_PAGE, AdwNavigationPage) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/xdp/valent-xdp-session.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_XDP_SESSION (valent_xdp_session_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentXdpSession, valent_xdp_session, VALENT, XDP_SESSION, ValentSessionAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/mpris/valent-mpris-player.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MPRIS_PLAYER (valent_mpris_player_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMPRISPlayer, valent_mpris_player, VALENT, MPRIS_PLAYER, ValentMediaPlayer) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/mpris/valent-mpris-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MPRIS_PLUGIN (valent_mpris_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMprisPlugin, valent_mpris_plugin, VALENT, MPRIS_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/share/valent-share-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SHARE_PLUGIN (valent_share_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentSharePlugin, valent_share_plugin, VALENT, SHARE_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/libvalent/contacts/valent-contact-list.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "../core/valent-object.h" 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_CONTACT_LIST (valent_contact_list_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentContactList, valent_contact_list, VALENT, CONTACT_LIST, ValentObject) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/eds/valent-ebook-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_EBOOK_ADAPTER (valent_ebook_adapter_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentEBookAdapter, valent_ebook_adapter, VALENT, EBOOK_ADAPTER, ValentContactsAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-hspa-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/mpris/valent-mpris-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MPRIS_ADAPTER (valent_mpris_adapter_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMPRISAdapter, valent_mpris_adapter, VALENT, MPRIS_ADAPTER, ValentMediaAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-presenter-remote.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PRESENTER_REMOTE (valent_presenter_remote_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPresenterRemote, valent_presenter_remote, VALENT, PRESENTER_REMOTE, AdwWindow) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/gtk/valent-gdk-clipboard.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_GDK_CLIPBOARD (valent_gdk_clipboard_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentGdkClipboard, valent_gdk_clipboard, VALENT, GDK_CLIPBOARD, ValentClipboardAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/battery/valent-battery-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_BATTERY_PLUGIN (valent_battery_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentBatteryPlugin, valent_battery_plugin, VALENT, BATTERY_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/bluez/valent-mux-input-stream.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MUX_INPUT_STREAM (valent_mux_input_stream_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMuxInputStream, valent_mux_input_stream, VALENT, MUX_INPUT_STREAM, GInputStream) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/xdp/valent-xdp-background.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_XDP_BACKGROUND (valent_xdp_background_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentXdpBackground, valent_xdp_background, VALENT, XDP_BACKGROUND, ValentApplicationPlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/libvalent/messages/valent-message-thread.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "../core/valent-object.h" 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MESSAGE_THREAD (valent_message_thread_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMessageThread, valent_message_thread, VALENT, MESSAGE_THREAD, ValentObject) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/contacts/valent-contacts-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_CONTACTS_PLUGIN (valent_contacts_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentContactsPlugin, valent_contacts_plugin, VALENT, CONTACTS_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/mousepad/valent-mousepad-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOUSEPAD_PLUGIN (valent_mousepad_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMousepadPlugin, valent_mousepad_plugin, VALENT, MOUSEPAD_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/extra/gsettings-test-init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # SPDX-License-Identifier: CC0-1.0 4 | # SPDX-FileCopyrightText: No rights reserved 5 | 6 | 7 | # Clean old files 8 | rm -rf "${GSETTINGS_SCHEMA_DIR}" 9 | mkdir -p "${GSETTINGS_SCHEMA_DIR}" 10 | 11 | # Copy application and plugin GSettingsSchemas 12 | cp "${MESON_SOURCE_ROOT}"/data/*.gschema.xml "${GSETTINGS_SCHEMA_DIR}" 13 | cp "${MESON_SOURCE_ROOT}"/src/plugins/*/*.gschema.xml "${GSETTINGS_SCHEMA_DIR}" 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/bluez/valent-mux-output-stream.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MUX_OUTPUT_STREAM (valent_mux_output_stream_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMuxOutputStream, valent_mux_output_stream, VALENT, MUX_OUTPUT_STREAM, GOutputStream) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/clipboard/valent-clipboard-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_CLIPBOARD_PLUGIN (valent_clipboard_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentClipboardPlugin, valent_clipboard_plugin, VALENT, CLIPBOARD_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/mousepad/ca.andyholmes.Valent.Plugin.mousepad.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/plugins/presenter/valent-presenter-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PRESENTER_PLUGIN (valent_presenter_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPresenterPlugin, valent_presenter_plugin, VALENT, PRESENTER_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/share/ca.andyholmes.Valent.Plugin.share.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | "" 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/plugins/telephony/valent-telephony-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_TELEPHONY_PLUGIN (valent_telephony_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentTelephonyPlugin, valent_telephony_plugin, VALENT, TELEPHONY_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-mutter-clipboard.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MUTTER_CLIPBOARD (valent_mutter_clipboard_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMutterClipboard, valent_mutter_clipboard, VALENT, MUTTER_CLIPBOARD, ValentClipboardAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-preferences-dialog.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PREFERENCES_DIALOG (valent_preferences_dialog_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPreferencesDialog, valent_preferences_dialog, VALENT, PREFERENCES_DIALOG, AdwPreferencesDialog) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/plugins/runcommand/ca.andyholmes.Valent.Plugin.runcommand.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {} 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-device-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_DEVICE_PLUGIN (valent_mock_device_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockDevicePlugin, valent_mock_device_plugin, VALENT, MOCK_DEVICE_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-input-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_INPUT_ADAPTER (valent_mock_input_adapter_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockInputAdapter, valent_mock_input_adapter, VALENT, MOCK_INPUT_ADAPTER, ValentInputAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-media-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_MEDIA_ADAPTER (valent_mock_media_adapter_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockMediaAdapter, valent_mock_media_adapter, VALENT, MOCK_MEDIA_ADAPTER, ValentMediaAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-mixer-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_MIXER_ADAPTER (valent_mock_mixer_adapter_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockMixerAdapter, valent_mock_mixer_adapter, VALENT, MOCK_MIXER_ADAPTER, ValentMixerAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/fdo/valent-fdo-notifications.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_FDO_NOTIFICATIONS (valent_fdo_notifications_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentFdoNotifications, valent_fdo_notifications, VALENT, FDO_NOTIFICATIONS, ValentNotificationsAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-gnome-application.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_GNOME_APPLICATION (valent_gnome_application_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentGNOMEApplication, valent_gnome_application, VALENT, GNOME_APPLICATION, ValentApplicationPlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gtk/valent-gtk-notifications.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_GTK_NOTIFICATIONS (valent_gtk_notifications_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentGtkNotifications, valent_gtk_notifications, VALENT, GTK_NOTIFICATIONS, ValentNotificationsAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/runcommand/valent-runcommand-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_RUNCOMMAND_PLUGIN (valent_runcommand_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentRuncommandPlugin, valent_runcommand_plugin, VALENT, RUNCOMMAND_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-network-monitor.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_NETWORK_MONITOR (valent_mock_network_monitor_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockNetworkMonitor, valent_mock_network_monitor, VALENT, MOCK_NETWORK_MONITOR, GObject) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/findmyphone/valent-findmyphone-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_FINDMYPHONE_PLUGIN (valent_findmyphone_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentFindmyphonePlugin, valent_findmyphone_plugin, VALENT, FINDMYPHONE_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-messages-window.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | G_BEGIN_DECLS 10 | 11 | #define VALENT_TYPE_MESSAGES_WINDOW (valent_messages_window_get_type()) 12 | 13 | G_DECLARE_FINAL_TYPE (ValentMessagesWindow, valent_messages_window, VALENT, MESSAGES_WINDOW, AdwApplicationWindow) 14 | 15 | G_END_DECLS 16 | -------------------------------------------------------------------------------- /src/plugins/lan/valent-lan-channel-service.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_LAN_CHANNEL_SERVICE (valent_lan_channel_service_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentLanChannelService, valent_lan_channel_service, VALENT, LAN_CHANNEL_SERVICE, ValentChannelService) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/systemvolume/ca.andyholmes.Valent.Plugin.systemvolume.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-channel-service.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_CHANNEL_SERVICE (valent_mock_channel_service_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockChannelService, valent_mock_channel_service, VALENT, MOCK_CHANNEL_SERVICE, ValentChannelService) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-session-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_SESSION_ADAPTER (valent_mock_session_adapter_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockSessionAdapter, valent_mock_session_adapter, VALENT, MOCK_SESSION_ADAPTER, ValentSessionAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/notification/valent-notification-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_NOTIFICATION_PLUGIN (valent_notification_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentNotificationPlugin, valent_notification_plugin, VALENT, NOTIFICATION_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/systemvolume/valent-systemvolume-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SYSTEMVOLUME_PLUGIN (valent_systemvolume_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentSystemvolumePlugin, valent_systemvolume_plugin, VALENT, SYSTEMVOLUME_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/bluez/valent-bluez-channel-service.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_BLUEZ_CHANNEL_SERVICE (valent_bluez_channel_service_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentBluezChannelService, valent_bluez_channel_service, VALENT, BLUEZ_CHANNEL_SERVICE, ValentChannelService) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-contacts-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_CONTACTS_ADAPTER (valent_mock_contacts_adapter_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockContactsAdapter, valent_mock_contacts_adapter, VALENT, MOCK_CONTACTS_ADAPTER, ValentContactsAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-messages-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_MESSAGES_ADAPTER (valent_mock_messages_adapter_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockMessagesAdapter, valent_mock_messages_adapter, VALENT, MOCK_MESSAGES_ADAPTER, ValentMessagesAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-clipboard-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_CLIPBOARD_ADAPTER (valent_mock_clipboard_adapter_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockClipboardAdapter, valent_mock_clipboard_adapter, VALENT, MOCK_CLIPBOARD_ADAPTER, ValentClipboardAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-application-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_APPLICATION_PLUGIN (valent_mock_application_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockApplicationPlugin, valent_mock_application_plugin, VALENT, MOCK_APPLICATION_PLUGIN, ValentApplicationPlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-preferences-sync-page.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "valent-preferences-page.h" 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PREFERENCES_SYNC_PAGE (valent_preferences_sync_page_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPreferencesSyncPage, valent_preferences_sync_page, VALENT, PREFERENCES_SYNC_PAGE, ValentPreferencesPage) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/pipewire/pipewire.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=pipewire 6 | Name=PipeWire 7 | Description=Integration with PipeWire 8 | Icon=valent-pipewire-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_pipewire_plugin_register_types 11 | Website=https://github.com/andyholmes/valent 12 | Help=https://github.com/andyholmes/valent 13 | Hidden=false 14 | X-MixerAdapterPriority=50 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-device-preferences-dialog.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_DEVICE_PREFERENCES_DIALOG (valent_device_preferences_dialog_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentDevicePreferencesDialog, valent_device_preferences_dialog, VALENT, DEVICE_PREFERENCES_DIALOG, AdwPreferencesDialog) 13 | 14 | G_END_DECLS 15 | -------------------------------------------------------------------------------- /src/libvalent/messages/data/sparql/get-timestamp.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: threadId 5 | # Outputs: date 6 | SELECT (MAX(?date) AS ?latestDate) 7 | WHERE { 8 | GRAPH { 9 | ?message rdf:type vmo:PhoneMessage ; 10 | vmo:communicationChannel/vmo:communicationChannelId ?threadId ; 11 | dc:date ?date . 12 | FILTER(?threadId = ~threadId^^xsd:integer) 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/bluez/valent-bluez-channel.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_BLUEZ_CHANNEL (valent_bluez_channel_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentBluezChannel, valent_bluez_channel, VALENT, BLUEZ_CHANNEL, ValentChannel) 13 | 14 | const char * valent_bluez_channel_get_uuid (ValentBluezChannel *self); 15 | 16 | G_END_DECLS 17 | 18 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/tablet-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-preferences-other-page.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "valent-preferences-page.h" 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PREFERENCES_OTHER_PAGE (valent_preferences_other_page_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPreferencesOtherPage, valent_preferences_other_page, VALENT, PREFERENCES_OTHER_PAGE, ValentPreferencesPage) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/lan/lan.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=lan 6 | Name=LAN 7 | Description=Connect devices over LAN 8 | Icon=valent-lan-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_lan_channel_service_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | -------------------------------------------------------------------------------- /src/plugins/fdo/fdo.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | fdo.plugin 9 | 10 | 11 | data/valent-fdo-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-preferences-status-page.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "valent-preferences-page.h" 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PREFERENCES_STATUS_PAGE (valent_preferences_status_page_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPreferencesStatusPage, valent_preferences_status_page, VALENT, PREFERENCES_STATUS_PAGE, ValentPreferencesPage) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/gtk/gtk.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | gtk.plugin 9 | 10 | 11 | data/valent-gtk-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/xdp/xdp.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | xdp.plugin 9 | 10 | 11 | data/valent-xdp-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-notifications-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_NOTIFICATIONS_ADAPTER (valent_mock_notifications_adapter_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockNotificationsAdapter, valent_mock_notifications_adapter, VALENT, MOCK_NOTIFICATIONS_ADAPTER, ValentNotificationsAdapter) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Valent is free software: you can redistribute it and/or modify it 2 | under the terms of the GNU General Public License as published by 3 | the Free Software Foundation, either version 3 of the License, or 4 | (at your option) any later version. 5 | 6 | Some files in this project are distributed under the terms of other 7 | licenses. Each file has either a header indicating the license and 8 | copyright holder or an entry in the ".reuse/dep5" file. 9 | 10 | A copy of each license is available in the "LICENSES" directory. 11 | 12 | -------------------------------------------------------------------------------- /src/libvalent/contacts/data/sparql/get-contact.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: iri 5 | # Outputs: contact, uid, vcardData 6 | SELECT 7 | ?contact 8 | ?uid 9 | ?vcardData 10 | WHERE { 11 | GRAPH { 12 | BIND(IRI(xsd:string(~iri)) AS ?contact) 13 | ?contact rdf:type nco:Contact ; 14 | nco:contactUID ?uid ; 15 | nie:plainTextContent ?vcardData . 16 | } 17 | } 18 | LIMIT 1 19 | 20 | -------------------------------------------------------------------------------- /src/libvalent/device/valent-device-impl.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include "valent-device.h" 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_DEVICE_IMPL (valent_device_impl_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentDeviceImpl, valent_device_impl, VALENT, DEVICE_IMPL, GDBusInterfaceSkeleton) 13 | 14 | GDBusInterfaceSkeleton * valent_device_impl_new (ValentDevice *device); 15 | 16 | G_END_DECLS 17 | 18 | -------------------------------------------------------------------------------- /src/plugins/bluez/bluez.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=bluez 6 | Name=Bluez 7 | Description=Connect devices over Bluetooth 8 | Icon=valent-bluez-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_bluez_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | -------------------------------------------------------------------------------- /src/plugins/connectivity_report/valent-connectivity_report-plugin.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_CONNECTIVITY_REPORT_PLUGIN (valent_connectivity_report_plugin_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentConnectivityReportPlugin, valent_connectivity_report_plugin, VALENT, CONNECTIVITY_REPORT_PLUGIN, ValentDevicePlugin) 13 | 14 | G_END_DECLS 15 | 16 | -------------------------------------------------------------------------------- /data/ca.andyholmes.Valent.desktop.in.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Valent 3 | Comment=Connect, control and sync devices 4 | Exec=valent %U 5 | # Translators: Do NOT translate or transliterate this text (this is an icon file name)! 6 | Icon=@application_id@ 7 | Terminal=false 8 | Type=Application 9 | Categories=GNOME;GTK;Network; 10 | StartupNotify=true 11 | DBusActivatable=true 12 | X-GNOME-UsesNotifications=true 13 | # Translators: Do NOT translate or transliterate this text (these are enum types)! 14 | X-Purism-FormFactor=Workstation;Mobile; 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/eds/eds.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=eds 6 | Name=Evolution Data Server 7 | Description=Integration with Evolution Data Server 8 | Icon=valent-eds-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_eds_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | 17 | -------------------------------------------------------------------------------- /src/plugins/eds/eds.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | eds.plugin 9 | 10 | 11 | data/valent-eds-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/lan/lan.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | lan.plugin 9 | 10 | 11 | data/valent-lan-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/mpris/ca.andyholmes.Valent.Plugin.mpris.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | true 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/sms/sms.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | sms.plugin 9 | 10 | 11 | data/valent-sms-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/lock/lock.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | lock.plugin 9 | 10 | 11 | data/valent-lock-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/mpris/mpris.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | mpris.plugin 9 | 10 | 11 | data/valent-mpris-plugin-symbolic.svg 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/plugins/ping/ping.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | ping.plugin 9 | 10 | 11 | data/valent-ping-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/sftp/sftp.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | sftp.plugin 9 | 10 | 11 | data/valent-sftp-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/bluez/bluez.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | bluez.plugin 9 | 10 | 11 | data/valent-bluez-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/share/share.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | share.plugin 9 | 10 | 11 | data/valent-share-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/battery/battery.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | battery.plugin 9 | 10 | 11 | data/valent-battery-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/xdp/ca.andyholmes.Valent.Plugin.xdp.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | '' 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/contacts/contacts.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | contacts.plugin 9 | 10 | 11 | data/valent-contacts-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/phone-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/mousepad/mousepad.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | mousepad.plugin 9 | 10 | 11 | data/valent-mousepad-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/pipewire/pipewire.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | pipewire.plugin 9 | 10 | 11 | data/valent-pipewire-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/clipboard/clipboard.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | clipboard.plugin 9 | 10 | 11 | data/valent-clipboard-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/gnome/gnome.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=gnome 6 | Name=GNOME 7 | Description=Integration with GNOME 8 | Icon=valent-gnome-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_gnome_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-ClipboardAdapterPriority=25 17 | X-InputAdapterPriority=25 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/gtk/gtk.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=gtk 6 | Name=GTK 7 | Description=Integration with GTK4 8 | Icon=valent-gtk-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_gtk_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-ClipboardAdapterPriority=100 17 | X-NotificationsAdapterPriority=100 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/presenter/presenter.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | presenter.plugin 9 | 10 | 11 | data/valent-presenter-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/sms/sms-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-sms-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_sms_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_SMS_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/telephony/telephony.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | telephony.plugin 9 | 10 | 11 | data/valent-telephony-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/libvalent/device/libvalent-device.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | G_BEGIN_DECLS 7 | 8 | #include "valent-certificate.h" 9 | #include "valent-channel.h" 10 | #include "valent-channel-service.h" 11 | #include "valent-device.h" 12 | #include "valent-device-common.h" 13 | #include "valent-device-enums.h" 14 | #include "valent-device-manager.h" 15 | #include "valent-device-plugin.h" 16 | #include "valent-device-transfer.h" 17 | #include "valent-packet.h" 18 | 19 | G_END_DECLS 20 | 21 | -------------------------------------------------------------------------------- /src/plugins/connectivity_report/valent-telephony.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_TELEPHONY (valent_telephony_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentTelephony, valent_telephony, VALENT, TELEPHONY, ValentObject) 13 | 14 | ValentTelephony * valent_telephony_get_default (void); 15 | JsonNode * valent_telephony_get_signal_strengths (ValentTelephony *telephony); 16 | 17 | G_END_DECLS 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/tv-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/lock/lock-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-lock-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_lock_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_LOCK_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/ping/ping-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-ping-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_ping_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_PING_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/pulseaudio/pulseaudio.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | pulseaudio.plugin 9 | 10 | 11 | data/valent-pulseaudio-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/pulseaudio/pulseaudio.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=pulseaudio 6 | Name=PulseAudio 7 | Description=Integration with PulseAudio 8 | Icon=valent-pulseaudio-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_pulseaudio_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-MixerAdapterPriority=100 17 | 18 | -------------------------------------------------------------------------------- /src/plugins/runcommand/runcommand.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | runcommand.plugin 9 | 10 | 11 | data/valent-runcommand-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/sftp/sftp-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-sftp-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_sftp_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_SFTP_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/xdp/xdp.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=xdp 6 | Name=Portals 7 | Description=Integration with desktop portals 8 | Icon=valent-xdp-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_xdp_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-InputAdapterPriority=100 17 | X-SessionAdapterPriority=200 18 | 19 | -------------------------------------------------------------------------------- /tests/fixtures/data/core-state.json: -------------------------------------------------------------------------------- 1 | { 2 | "00000000_0000_0000_0000_000000000001": { 3 | "id": 0, 4 | "type": "kdeconnect.identity", 5 | "body": { 6 | "deviceId": "00000000_0000_0000_0000_000000000001", 7 | "deviceName": "Test Device", 8 | "deviceType": "phone", 9 | "incomingCapabilities": [ 10 | "kdeconnect.mock.echo", 11 | "kdeconnect.mock.transfer" 12 | ], 13 | "outgoingCapabilities": [ 14 | "kdeconnect.mock.echo", 15 | "kdeconnect.mock.transfer" 16 | ], 17 | "protocolVersion": 8 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/libvalent/contacts/data/sparql/search-contacts.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: query 5 | # Outputs: contact, uid, vcardData 6 | SELECT 7 | ?contact 8 | ?uid 9 | ?vcardData 10 | WHERE { 11 | GRAPH { 12 | ?contact rdf:type nco:Contact ; 13 | nco:contactUID ?uid ; 14 | nie:plainTextContent ?vcardData ; 15 | fts:match ~query^^xsd:string . 16 | } 17 | } 18 | GROUP BY ?contact 19 | ORDER BY DESC(fts:rank(?contact)) 20 | LIMIT 10 21 | 22 | -------------------------------------------------------------------------------- /src/plugins/eds/eds-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-ebook-adapter.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_eds_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_CONTACTS_ADAPTER, 17 | VALENT_TYPE_EBOOK_ADAPTER); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-playback-pause-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/computer-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/share/share-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-share-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_share_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_SHARE_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/battery/battery-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-battery-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_battery_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_BATTERY_PLUGIN); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/connectivity_report/ca.andyholmes.Valent.Plugin.connectivity_report.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | false 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/fdo/fdo.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=fdo 6 | Name=freedesktop.org 7 | Description=Freedesktop.org Based Modules 8 | Icon=valent-fdo-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_fdo_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-NotificationsAdapterPriority=100 17 | X-SessionAdapterPriority=100 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/notification/notification.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | notification.plugin 9 | 10 | 11 | data/valent-notification-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/pulseaudio/pulseaudio-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-pa-mixer.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_pulseaudio_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_MIXER_ADAPTER, 17 | VALENT_TYPE_PA_MIXER); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/systemvolume/systemvolume.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | systemvolume.plugin 9 | 10 | 11 | data/valent-systemvolume-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/libvalent/device/libvalent-device.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-device-manager.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | libvalent_device_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_APPLICATION_PLUGIN, 17 | VALENT_TYPE_DEVICE_MANAGER); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/contacts/contacts-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-contacts-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_contacts_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_CONTACTS_PLUGIN); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/mousepad/mousepad-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-mousepad-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_mousepad_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_MOUSEPAD_PLUGIN); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/ping/ping.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=ping 6 | Name=Ping 7 | Description=Send and receive pings 8 | Icon=valent-ping-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_ping_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.ping 17 | X-DevicePluginOutgoing=kdeconnect.ping 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/pipewire/pipewire-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-pipewire-mixer.h" 10 | 11 | 12 | G_MODULE_EXPORT void 13 | valent_pipewire_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_MIXER_ADAPTER, 17 | VALENT_TYPE_PIPEWIRE_MIXER); 18 | } 19 | -------------------------------------------------------------------------------- /tests/extra/lsan.supp: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: CC0-1.0 2 | # SPDX-FileCopyrightText: No rights reserved 3 | 4 | # https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/77 5 | leak:libfontconfig.so 6 | 7 | # https://gitlab.gnome.org/GNOME/libadwaita/blob/main/src/adw-style-manager.c 8 | leak:adw_init 9 | 10 | # GTK 11 | leak:libEGL_mesa.so 12 | 13 | # Glycin 14 | leak:gly_loader_load 15 | 16 | # GCC Only 17 | leak:tracker_string_builder_to_gstring 18 | leak:translate_RDFLiteral 19 | leak:_postprocess_rule 20 | 21 | # LLVM Only 22 | leak:tracker-string-builder.c 23 | leak:tracker-sparql-types.c 24 | 25 | -------------------------------------------------------------------------------- /src/plugins/bluez/bluez-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-bluez-channel-service.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_bluez_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_CHANNEL_SERVICE, 17 | VALENT_TYPE_BLUEZ_CHANNEL_SERVICE); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/clipboard/clipboard-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-clipboard-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_clipboard_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_CLIPBOARD_PLUGIN); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/eds/data/valent-eds-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/lan/valent-lan-dnssd.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_LAN_DNSSD (valent_lan_dnssd_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentLanDNSSD, valent_lan_dnssd, VALENT, LAN_DNSSD, ValentObject) 13 | 14 | GListModel * valent_lan_dnssd_new (JsonNode *identity); 15 | void valent_lan_dnssd_start (ValentLanDNSSD *self); 16 | void valent_lan_dnssd_stop (ValentLanDNSSD *self); 17 | 18 | G_END_DECLS 19 | -------------------------------------------------------------------------------- /src/plugins/telephony/telephony-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-telephony-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_telephony_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_TELEPHONY_PLUGIN); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/bluez/valent-mux-io-stream.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | #include "valent-bluez-muxer.h" 9 | 10 | G_BEGIN_DECLS 11 | 12 | #define VALENT_TYPE_MUX_IO_STREAM (valent_mux_io_stream_get_type()) 13 | 14 | G_DECLARE_FINAL_TYPE (ValentMuxIOStream, valent_mux_io_stream, VALENT, MUX_IO_STREAM, GIOStream) 15 | 16 | GIOStream * valent_mux_io_stream_new (ValentBluezMuxer *muxer, 17 | const char *uuid); 18 | 19 | G_END_DECLS 20 | 21 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/presenter-start-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/lan/lan-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-lan-channel-service.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_lan_channel_service_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_CHANNEL_SERVICE, 17 | VALENT_TYPE_LAN_CHANNEL_SERVICE); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/presenter/presenter-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-presenter-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_presenter_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_PRESENTER_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/findmyphone/findmyphone-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-findmyphone-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_findmyphone_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_FINDMYPHONE_PLUGIN); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-playback-start-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/mousepad/data/valent-mousepad-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/runcommand/runcommand-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-runcommand-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_runcommand_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_RUNCOMMAND_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-media-player.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOCK_MEDIA_PLAYER (valent_mock_media_player_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMockMediaPlayer, valent_mock_media_player, VALENT, MOCK_MEDIA_PLAYER, ValentMediaPlayer) 13 | 14 | void valent_mock_media_player_update_art (ValentMockMediaPlayer *self, 15 | const char *uri); 16 | 17 | G_END_DECLS 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/notification/notification-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-notification-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_notification_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_NOTIFICATION_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/systemvolume/systemvolume-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-systemvolume-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_systemvolume_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_SYSTEMVOLUME_PLUGIN); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/sftp/ca.andyholmes.Valent.Plugin.sftp.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | false 10 | 11 | 12 | false 13 | 14 | 15 | 22 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/presenter/presenter.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=presenter 6 | Name=Presenter 7 | Description=Control presentations 8 | Icon=valent-presenter-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_presenter_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.presenter 17 | X-DevicePluginOutgoing=kdeconnect.presenter 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/connectivity_report/connectivity_report.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | connectivity_report.plugin 9 | 10 | 11 | data/valent-connectivity_report-plugin-symbolic.svg 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/contacts/ca.andyholmes.Valent.Plugin.contacts.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | false 13 | 14 | 15 | "" 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/lock/lock.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=lock 6 | Name=Lock 7 | Description=Lock and unlock 8 | Icon=valent-lock-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_lock_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.lock;kdeconnect.lock.request 17 | X-DevicePluginOutgoing=kdeconnect.lock;kdeconnect.lock.request 18 | 19 | -------------------------------------------------------------------------------- /src/libvalent/contacts/valent-contact.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | #include "../core/valent-version.h" 15 | 16 | G_BEGIN_DECLS 17 | 18 | VALENT_AVAILABLE_IN_1_0 19 | TrackerResource * valent_contact_resource_from_econtact (EContact *contact); 20 | 21 | G_END_DECLS 22 | -------------------------------------------------------------------------------- /src/plugins/findmyphone/findmyphone.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | findmyphone.plugin 9 | data/alert.oga 10 | 11 | 12 | data/valent-findmyphone-plugin-symbolic.svg 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/libvalent/contacts/libvalent-contacts.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | data/sparql/get-contact.rq 9 | data/sparql/get-contact-list.rq 10 | data/sparql/get-contact-lists.rq 11 | data/sparql/search-contacts.rq 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/plugins/clipboard/ca.andyholmes.Valent.Plugin.clipboard.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | false 10 | 11 | 12 | false 13 | 14 | 15 | false 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: CC0-1.0 2 | # SPDX-FileCopyrightText: No rights reserved 3 | 4 | root = true 5 | 6 | [*] 7 | charset = utf-8 8 | end_of_line = lf 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | 12 | [*.[ch]] 13 | indent_size = 2 14 | indent_style = space 15 | max_line_length = 80 16 | 17 | [*.{js,py}] 18 | indent_size = 4 19 | indent_style = space 20 | max_line_length = 80 21 | 22 | [*.json] 23 | indent_size = 4 24 | indent_style = space 25 | 26 | [*.{css,toml,ui,xml,xml.in,yml}] 27 | indent_size = 2 28 | indent_style = space 29 | 30 | [meson.build,meson_options.txt] 31 | indent_size = 2 32 | indent_style = space 33 | -------------------------------------------------------------------------------- /src/libvalent/core/libvalent-core.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #include "valent-application.h" 11 | #include "valent-application-plugin.h" 12 | #include "valent-component.h" 13 | #include "valent-context.h" 14 | #include "valent-core-enums.h" 15 | #include "valent-debug.h" 16 | #include "valent-extension.h" 17 | #include "valent-global.h" 18 | #include "valent-macros.h" 19 | #include "valent-object.h" 20 | #include "valent-transfer.h" 21 | #include "valent-version.h" 22 | 23 | G_END_DECLS 24 | 25 | -------------------------------------------------------------------------------- /src/plugins/connectivity_report/connectivity_report-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-connectivity_report-plugin.h" 10 | 11 | 12 | _VALENT_EXTERN void 13 | valent_connectivity_report_plugin_register_types (PeasObjectModule *module) 14 | { 15 | peas_object_module_register_extension_type (module, 16 | VALENT_TYPE_DEVICE_PLUGIN, 17 | VALENT_TYPE_CONNECTIVITY_REPORT_PLUGIN); 18 | } 19 | -------------------------------------------------------------------------------- /src/plugins/mpris/mpris.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=mpris 6 | Name=MPRIS 7 | Description=Share control of MPRISv2 players 8 | Icon=valent-mpris-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_mpris_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.mpris;kdeconnect.mpris.request 17 | X-DevicePluginOutgoing=kdeconnect.mpris;kdeconnect.mpris.request 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/input-mouse-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/share/valent-share-upload.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SHARE_UPLOAD (valent_share_upload_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentShareUpload, valent_share_upload, VALENT, SHARE_UPLOAD, ValentTransfer) 13 | 14 | ValentTransfer * valent_share_upload_new (ValentDevice *device); 15 | void valent_share_upload_add_file (ValentShareUpload *upload, 16 | GFile *file); 17 | 18 | G_END_DECLS 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/mpris/vdp-mpris-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VDP_TYPE_MPRIS_ADAPTER (vdp_mpris_adapter_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (VdpMprisAdapter, vdp_mpris_adapter, VDP, MPRIS_ADAPTER, ValentMediaAdapter) 13 | 14 | ValentMediaAdapter * vdp_mpris_adapter_new (ValentDevice *device); 15 | void vdp_mpris_adapter_handle_packet (VdpMprisAdapter *self, 16 | JsonNode *packet); 17 | 18 | G_END_DECLS 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/notification/ca.andyholmes.Valent.Plugin.notification.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | false 13 | 14 | 15 | [] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/pipewire/data/valent-pipewire-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/libvalent/contacts/data/sparql/get-contact-list.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: iri 5 | # Outputs: contact, uid, vcardData 6 | SELECT 7 | ?contact 8 | ?uid 9 | ?vcardData 10 | WHERE { 11 | GRAPH { 12 | BIND(IRI(xsd:string(~iri)) AS ?contactList) 13 | ?contactList rdf:type nco:ContactList ; 14 | nco:containsContact ?contact . 15 | OPTIONAL { 16 | ?contact rdf:type nco:Contact ; 17 | nco:contactUID ?uid ; 18 | nie:plainTextContent ?vcardData . 19 | } 20 | } 21 | } 22 | GROUP BY ?contact 23 | 24 | -------------------------------------------------------------------------------- /src/plugins/findmyphone/findmyphone.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=findmyphone 6 | Name=Find My Phone 7 | Description=Find a device by making it ring 8 | Icon=valent-findmyphone-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_findmyphone_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.findmyphone.request 17 | X-DevicePluginOutgoing=kdeconnect.findmyphone.request 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/share-file-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/phonelink-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-edge-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/pulseaudio/data/valent-pulseaudio-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugins/systemvolume/data/valent-systemvolume-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/libvalent/messages/data/sparql/remove-thread.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: iri 5 | # Outputs: None 6 | DELETE 7 | WHERE { 8 | BIND(IRI(xsd:string(~iri)) AS ?communicationChannel) 9 | ?communicationChannel rdf:type vmo:CommunicationChannel ; 10 | ?channelProperty ?channelValue . 11 | OPTIONAL { ?channel ?channelProperty ?channelValue . } 12 | ?message rdf:type vmo:PhoneMessage ; 13 | vmo:communicationChannel ?communicationChannel ; 14 | ?messageProperty ?messageValue . 15 | OPTIONAL { ?message ?messageProperty ?messageValue . } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/categories/valent-plugins-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/sms/data/valent-sms-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/libvalent/messages/data/sparql/get-message-attachments.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: iri 5 | # Outputs: attachment, encodedThumbnail, fileUri 6 | 7 | SELECT 8 | ?attachment 9 | ?encodedThumbnail 10 | ?fileUri 11 | WHERE { 12 | GRAPH { 13 | BIND(IRI(xsd:string(~iri)) AS ?message) 14 | ?message rdf:type vmo:PhoneMessage ; 15 | nmo:hasAttachment ?attachment . 16 | OPTIONAL { ?attachment rdf:type nfo:Attachment } 17 | OPTIONAL { ?attachment vmo:encoded_thumbnail ?encodedThumbnail } 18 | OPTIONAL { ?attachment nie:url ?fileUri } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/libvalent/input/valent-input.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include "../core/valent-component.h" 11 | #include "valent-input-adapter.h" 12 | 13 | G_BEGIN_DECLS 14 | 15 | #define VALENT_TYPE_INPUT (valent_input_get_type ()) 16 | 17 | VALENT_AVAILABLE_IN_1_0 18 | G_DECLARE_FINAL_TYPE (ValentInput, valent_input, VALENT, INPUT, ValentComponent) 19 | 20 | VALENT_AVAILABLE_IN_1_0 21 | ValentInput * valent_input_get_default (void); 22 | 23 | G_END_DECLS 24 | 25 | -------------------------------------------------------------------------------- /src/plugins/battery/battery.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=battery 6 | Name=Battery 7 | Description=Monitor battery level and charging state 8 | Icon=valent-battery-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_battery_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.battery 17 | X-DevicePluginOutgoing=kdeconnect.battery 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.battery 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/notification/valent-notification-upload.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_NOTIFICATION_UPLOAD (valent_notification_upload_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentNotificationUpload, valent_notification_upload, VALENT, NOTIFICATION_UPLOAD, ValentTransfer) 13 | 14 | ValentTransfer * valent_notification_upload_new (ValentDevice *device, 15 | JsonNode *packet, 16 | GIcon *icon); 17 | 18 | G_END_DECLS 19 | 20 | -------------------------------------------------------------------------------- /src/libvalent/core/valent-application.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include 11 | 12 | #include "valent-version.h" 13 | 14 | G_BEGIN_DECLS 15 | 16 | #define VALENT_TYPE_APPLICATION (valent_application_get_type()) 17 | 18 | VALENT_AVAILABLE_IN_1_0 19 | G_DECLARE_FINAL_TYPE (ValentApplication, valent_application, VALENT, APPLICATION, GApplication) 20 | 21 | VALENT_AVAILABLE_IN_1_0 22 | GApplication * _valent_application_new (void); 23 | 24 | G_END_DECLS 25 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-playlist-consecutive-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-menu-stack.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MENU_STACK (valent_menu_stack_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMenuStack, valent_menu_stack, VALENT, MENU_STACK, GtkWidget) 13 | 14 | GtkWidget * valent_menu_stack_new (GMenuModel *menu_model); 15 | GMenuModel * valent_menu_stack_get_menu_model (ValentMenuStack *stack); 16 | void valent_menu_stack_set_menu_model (ValentMenuStack *stack, 17 | GMenuModel *menu_model); 18 | 19 | G_END_DECLS 20 | -------------------------------------------------------------------------------- /src/plugins/sftp/sftp.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=sftp 6 | Name=Files 7 | Description=Share files and directories with SFTP 8 | Icon=valent-sftp-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_sftp_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.sftp;kdeconnect.sftp.request 17 | X-DevicePluginOutgoing=kdeconnect.sftp;kdeconnect.sftp.request 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.sftp 19 | 20 | -------------------------------------------------------------------------------- /src/libvalent/core/libvalent-core.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | data/ontologies/30-nie.ontology 9 | data/ontologies/32-nco.ontology 10 | data/ontologies/33-nfo.ontology 11 | data/ontologies/34-nmo.ontology 12 | data/ontologies/99-messages.ontology 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/plugins/telephony/telephony.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=telephony 6 | Name=Telephony 7 | Description=Be notified of incoming and ongoing calls 8 | Icon=valent-telephony-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_telephony_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.telephony 17 | X-DevicePluginOutgoing=kdeconnect.telephony.request_mute 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.telephony 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-contact-row.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | G_BEGIN_DECLS 11 | 12 | #define VALENT_TYPE_CONTACT_ROW (valent_contact_row_get_type()) 13 | 14 | G_DECLARE_FINAL_TYPE (ValentContactRow, valent_contact_row, VALENT, CONTACT_ROW, GtkListBoxRow) 15 | 16 | EContact * valent_contact_row_get_contact (ValentContactRow *row); 17 | void valent_contact_row_set_contact (ValentContactRow *row, 18 | EContact *contact); 19 | 20 | G_END_DECLS 21 | -------------------------------------------------------------------------------- /src/plugins/mousepad/valent-mousepad-device.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MOUSEPAD_DEVICE (valent_mousepad_device_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMousepadDevice, valent_mousepad_device, VALENT, MOUSEPAD_DEVICE, ValentMediaPlayer) 13 | 14 | ValentMousepadDevice * valent_mousepad_device_new (ValentDevice *device); 15 | void valent_mousepad_device_handle_packet (ValentMousepadDevice *player, 16 | JsonNode *packet); 17 | 18 | G_END_DECLS 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/xdp/data/valent-xdp-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/pipewire/valent-pipewire-stream.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PIPEWIRE_STREAM (valent_pipewire_stream_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPipewireStream, valent_pipewire_stream, VALENT, PIPEWIRE_STREAM, ValentMixerStream) 13 | 14 | void valent_pipewire_stream_update (ValentPipewireStream *stream, 15 | const char *description, 16 | uint32_t level, 17 | gboolean state); 18 | 19 | G_END_DECLS 20 | 21 | -------------------------------------------------------------------------------- /src/plugins/sms/sms.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=sms 6 | Name=SMS 7 | Description=Send and receive SMS messages 8 | Icon=valent-sms-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_sms_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.sms.messages;kdeconnect.sms.attachment_file 17 | X-DevicePluginOutgoing=kdeconnect.sms.request;kdeconnect.sms.request_attachment;kdeconnect.sms.request_conversation;kdeconnect.sms.request_conversations 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/bluez/valent-bluez-device.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_BLUEZ_DEVICE (valent_bluez_device_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentBluezDevice, valent_bluez_device, VALENT, BLUEZ_DEVICE, GObject) 13 | 14 | ValentBluezDevice * valent_bluez_device_new (GDBusConnection *connection, 15 | const char *object_path, 16 | GVariant *props); 17 | void valent_bluez_device_connect (ValentBluezDevice *device); 18 | 19 | G_END_DECLS 20 | 21 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/categories/valent-status-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/input-touchpad-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/share/share.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=share 6 | Name=Sharing 7 | Description=Direct file, link and text sharing 8 | Icon=valent-share-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_share_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.share.request;kdeconnect.share.request.update 17 | X-DevicePluginOutgoing=kdeconnect.share.request;kdeconnect.share.request.update 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.share 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/battery/valent-battery.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_BATTERY (valent_battery_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentBattery, valent_battery, VALENT, BATTERY, GObject) 13 | 14 | ValentBattery * valent_battery_get_default (void); 15 | int valent_battery_current_charge (ValentBattery *battery); 16 | gboolean valent_battery_is_charging (ValentBattery *battery); 17 | gboolean valent_battery_is_present (ValentBattery *battery); 18 | unsigned int valent_battery_threshold_event (ValentBattery *battery); 19 | 20 | G_END_DECLS 21 | 22 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-seek-forward-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/mousepad/mousepad.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=mousepad 6 | Name=Mousepad 7 | Description=Control the mouse and keyboard 8 | Icon=valent-mousepad-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_mousepad_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.mousepad.echo;kdeconnect.mousepad.request;kdeconnect.mousepad.keyboardstate 17 | X-DevicePluginOutgoing=kdeconnect.mousepad.echo;kdeconnect.mousepad.request;kdeconnect.mousepad.keyboardstate 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/clipboard/clipboard.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=clipboard 6 | Name=Clipboard 7 | Description=Sync the clipboard between devices 8 | Icon=valent-clipboard-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_clipboard_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.clipboard;kdeconnect.clipboard.connect 17 | X-DevicePluginOutgoing=kdeconnect.clipboard;kdeconnect.clipboard.connect 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.clipboard 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-seek-backward-symbolic-rtl.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/runcommand/runcommand.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=runcommand 6 | Name=Commands 7 | Description=Execute commands remotely 8 | Icon=valent-runcommand-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_runcommand_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.runcommand;kdeconnect.runcommand.request 17 | X-DevicePluginOutgoing=kdeconnect.runcommand;kdeconnect.runcommand.request 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.runcommand 19 | 20 | -------------------------------------------------------------------------------- /src/libvalent/messages/data/sparql/get-thread-attachments.rq: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | # Inputs: iri 5 | # Outputs: attachment, encodedThumbnail, fileUri 6 | 7 | SELECT 8 | ?attachment 9 | ?encodedThumbnail 10 | ?fileUri 11 | WHERE { 12 | GRAPH { 13 | BIND(IRI(xsd:string(~iri)) AS ?communicationChannel) 14 | ?message rdf:type vmo:PhoneMessage ; 15 | vmo:communicationChannel ?communicationChannel ; 16 | nmo:hasAttachment ?attachment . 17 | OPTIONAL { ?attachment rdf:type nfo:Attachment } 18 | OPTIONAL { ?attachment vmo:encoded_thumbnail ?encodedThumbnail } 19 | OPTIONAL { ?attachment nie:url ?fileUri } 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /src/plugins/mpris/data/valent-mpris-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/notification/data/valent-notification-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/systemvolume/valent-systemvolume-device.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SYSTEMVOLUME_DEVICE (valent_systemvolume_device_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentSystemvolumeDevice, valent_systemvolume_device, VALENT, SYSTEMVOLUME_DEVICE, ValentMixerAdapter) 13 | 14 | ValentMixerAdapter * valent_systemvolume_device_new (ValentDevice *device); 15 | void valent_systemvolume_device_handle_packet (ValentSystemvolumeDevice *self, 16 | JsonNode *packet); 17 | 18 | G_END_DECLS 19 | -------------------------------------------------------------------------------- /tests/extra/tsan.supp: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: CC0-1.0 2 | # SPDX-FileCopyrightText: No rights reserved 3 | 4 | # 5 | # Known Bugs 6 | # 7 | # The errors below are either known bugs being tracked or undiagnosed. 8 | # 9 | 10 | # src/libvalent/core/valent-object.c 11 | race:valent_object_finalizer_source_check 12 | race:valent_object_finalizer_source_dispatch 13 | 14 | # GLib 15 | race:g_file_monitor_source_handle_event 16 | race:g_markup_error_quark 17 | race:g_resource_file_query_info 18 | race:g_resources_lookup_data 19 | race:g_test_print_handler_full 20 | 21 | # Glycin 22 | race:glycin::gobject::loader::GlyLoader::load 23 | 24 | # 25 | # Partially Instrumented 26 | # 27 | # These errors only occur when GLib is uninstrumented 28 | # 29 | race:*_get_type_once 30 | race:*_class_init 31 | 32 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-seek-backward-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/fixtures/data/core-packet.json: -------------------------------------------------------------------------------- 1 | { 2 | "invalid-data": null, 3 | "malformed": [ 4 | ], 5 | "missing-type": { 6 | "id": 0, 7 | "body": { 8 | } 9 | }, 10 | "invalid-type": { 11 | "id": 0, 12 | "type": [], 13 | "body": { 14 | } 15 | }, 16 | "missing-body": { 17 | "id": 0, 18 | "type": "kdeconnect.test" 19 | }, 20 | "invalid-body": { 21 | "id": 0, 22 | "type": "kdeconnect.test", 23 | "body": [ 24 | ] 25 | }, 26 | "invalid-payloadsize": { 27 | "id": 0, 28 | "type": "kdeconnect.test", 29 | "body": { 30 | }, 31 | "payloadSize": "" 32 | }, 33 | "invalid-payloadtransferinfo": { 34 | "id": 0, 35 | "type": "kdeconnect.test", 36 | "body": { 37 | }, 38 | "payloadTransferInfo": [] 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/plugins/connectivity_report/connectivity_report.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=connectivity_report 6 | Name=Connectivity 7 | Description=Monitor mobile connectivity status 8 | Icon=valent-connectivity_report-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_connectivity_report_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.connectivity_report 17 | X-DevicePluginOutgoing=kdeconnect.connectivity_report 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.connectivity_report 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-seek-forward-symbolic-rtl.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-skip-backward-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-skip-forward-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /doc/sdk/urlmap.js: -------------------------------------------------------------------------------- 1 | // SPDX-FileCopyrightText: 2021 GNOME Foundation 2 | // SPDX-License-Identifier: LGPL-2.1-or-later 3 | 4 | // A map between namespaces and base URLs for their online documentation 5 | baseURLs = [ 6 | [ 'GLib', 'https://docs.gtk.org/glib/' ], 7 | [ 'GObject', 'https://docs.gtk.org/gobject/' ], 8 | [ 'Gio', 'https://docs.gtk.org/gio/' ], 9 | [ 'Gdk', 'https://docs.gtk.org/gdk4/' ], 10 | [ 'Gsk', 'https://docs.gtk.org/gsk4/' ], 11 | [ 'Gtk', 'https://docs.gtk.org/gtk4/' ], 12 | [ 'GdkPixbuf', 'https://docs.gtk.org/gdk-pixbuf/' ], 13 | [ 'Json', 'https://gnome.pages.gitlab.gnome.org/json-glib/'], 14 | [ 'Peas', 'https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-1.0/'], 15 | [ 'Adw', 'https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/' ], 16 | ] 17 | 18 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-skip-backward-symbolic-rtl.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/media-skip-forward-symbolic-rtl.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/sftp/data/valent-sftp-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/systemvolume/systemvolume.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=systemvolume 6 | Name=System Volume 7 | Description=Monitor volume levels and microphones 8 | Icon=valent-systemvolume-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_systemvolume_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.systemvolume;kdeconnect.systemvolume.request 17 | X-DevicePluginOutgoing=kdeconnect.systemvolume;kdeconnect.systemvolume.request 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.systemvolume 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/phonelink-off-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/libvalent/contacts/valent-contacts-adapter.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include "../core/valent-extension.h" 11 | 12 | G_BEGIN_DECLS 13 | 14 | #define VALENT_TYPE_CONTACTS_ADAPTER (valent_contacts_adapter_get_type()) 15 | 16 | VALENT_AVAILABLE_IN_1_0 17 | G_DECLARE_DERIVABLE_TYPE (ValentContactsAdapter, valent_contacts_adapter, VALENT, CONTACTS_ADAPTER, ValentExtension) 18 | 19 | struct _ValentContactsAdapterClass 20 | { 21 | ValentExtensionClass parent_class; 22 | 23 | /*< private >*/ 24 | gpointer padding[8]; 25 | }; 26 | 27 | G_END_DECLS 28 | 29 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-signal-excellent-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/extra/cppcheck.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | false 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/actions/valent-media-player-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/devices/input-compose-symbolic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/plugins/meson.build: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | 5 | plugin_tests = [ 6 | 'battery', 7 | 'bluez', 8 | 'clipboard', 9 | 'connectivity_report', 10 | 'contacts', 11 | # 'eds', 12 | 'fdo', 13 | 'findmyphone', 14 | 'gnome', 15 | 'gtk', 16 | 'lan', 17 | 'lock', 18 | 'mousepad', 19 | 'mpris', 20 | 'notification', 21 | 'ping', 22 | # 'pipewire', 23 | 'presenter', 24 | # 'pulseaudio', 25 | 'runcommand', 26 | 'sftp', 27 | 'share', 28 | 'sms', 29 | 'systemvolume', 30 | 'telephony', 31 | # 'xdp', 32 | ] 33 | 34 | if get_option('plugins') 35 | foreach plugin : plugin_tests 36 | if get_option('plugin_@0@'.format(plugin)) 37 | subdir(plugin) 38 | endif 39 | endforeach 40 | endif 41 | 42 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-signal-none-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/mpris/mpris-plugin.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include "config.h" 5 | 6 | #include 7 | #include 8 | 9 | #include "valent-mpris-adapter.h" 10 | #include "valent-mpris-plugin.h" 11 | 12 | 13 | _VALENT_EXTERN void 14 | valent_mpris_plugin_register_types (PeasObjectModule *module) 15 | { 16 | peas_object_module_register_extension_type (module, 17 | VALENT_TYPE_DEVICE_PLUGIN, 18 | VALENT_TYPE_MPRIS_PLUGIN); 19 | peas_object_module_register_extension_type (module, 20 | VALENT_TYPE_MEDIA_ADAPTER, 21 | VALENT_TYPE_MPRIS_ADAPTER); 22 | } 23 | 24 | -------------------------------------------------------------------------------- /src/plugins/contacts/valent-contacts-device.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_CONTACTS_DEVICE (valent_contacts_device_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentContactsDevice, valent_contacts_device, VALENT, CONTACTS_DEVICE, ValentContactsAdapter) 13 | 14 | ValentContactsAdapter * valent_contacts_device_new (ValentDevice *device); 15 | void valent_contacts_device_handle_packet (ValentContactsAdapter *adapter, 16 | const char *type, 17 | JsonNode *packet); 18 | 19 | G_END_DECLS 20 | 21 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-gprs-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/notification/notification.plugin.desktop.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=notification 6 | Name=Notifications 7 | Description=Sync notifications 8 | Icon=valent-notification-plugin-symbolic 9 | Builtin=true 10 | Embedded=valent_notification_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=@PLUGINS_VERSION@ 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.notification;kdeconnect.notification.request 17 | X-DevicePluginOutgoing=kdeconnect.notification;kdeconnect.notification.action;kdeconnect.notification.reply;kdeconnect.notification.request 18 | X-DevicePluginSettings=ca.andyholmes.Valent.Plugin.notification 19 | 20 | -------------------------------------------------------------------------------- /src/plugins/pipewire/valent-pipewire-mixer.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_PIPEWIRE_MIXER (valent_pipewire_mixer_get_type ()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentPipewireMixer, valent_pipewire_mixer, VALENT, PIPEWIRE_MIXER, ValentMixerAdapter) 13 | 14 | void valent_pipewire_mixer_set_stream_state (ValentPipewireMixer *adapter, 15 | uint32_t device_id, 16 | uint32_t node_id, 17 | unsigned int level, 18 | gboolean muted); 19 | 20 | G_END_DECLS 21 | 22 | -------------------------------------------------------------------------------- /src/libvalent/device/valent-device-manager.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include "../core/valent-application-plugin.h" 11 | 12 | G_BEGIN_DECLS 13 | 14 | #define VALENT_TYPE_DEVICE_MANAGER (valent_device_manager_get_type()) 15 | 16 | VALENT_AVAILABLE_IN_1_0 17 | G_DECLARE_FINAL_TYPE (ValentDeviceManager, valent_device_manager, VALENT, DEVICE_MANAGER, ValentApplicationPlugin) 18 | 19 | VALENT_AVAILABLE_IN_1_0 20 | ValentDeviceManager * valent_device_manager_get_default (void); 21 | VALENT_AVAILABLE_IN_1_0 22 | void valent_device_manager_refresh (ValentDeviceManager *manager); 23 | 24 | G_END_DECLS 25 | -------------------------------------------------------------------------------- /doc/schemas/kdeconnect.telephony.request_mute.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema#", 3 | "title": "kdeconnect.telephony.request_mute", 4 | "description": "This packet is sent to request the ringer be muted.", 5 | "examples": [ 6 | { 7 | "id": 0, 8 | "type": "kdeconnect.telephony.request_mute", 9 | "body": {} 10 | } 11 | ], 12 | "type": "object", 13 | "required": [ 14 | "id", 15 | "type", 16 | "body" 17 | ], 18 | "properties": { 19 | "id": { 20 | "type": "number" 21 | }, 22 | "type": { 23 | "type": "string", 24 | "enum": ["kdeconnect.telephony.request_mute"] 25 | }, 26 | "body": { 27 | "type": "object", 28 | "properties": {} 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-100-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-30-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-50-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-60-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-70-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-80-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-90-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/plugins/gnome/test-gnome-common.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | #include "valent-ui-utils-private.h" 11 | 12 | #pragma once 13 | 14 | static inline void 15 | valent_test_gnome_init (int *argcp, 16 | char ***argvp, 17 | ...) 18 | { 19 | valent_test_init (argcp, argvp, NULL); 20 | 21 | gtk_disable_setlocale (); 22 | setlocale (LC_ALL, "en_US.UTF-8"); 23 | valent_ui_init (); 24 | 25 | /* NOTE: Set manually since GDK_DEBUG=default-settings doesn't work for us */ 26 | g_object_set (gtk_settings_get_default (), 27 | "gtk-enable-animations", FALSE, 28 | NULL); 29 | } 30 | 31 | -------------------------------------------------------------------------------- /tests/fixtures/valent-mock-notifications-adapter.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #define G_LOG_DOMAIN "valent-mock-notifications" 5 | 6 | #include "config.h" 7 | 8 | #include 9 | 10 | #include "valent-mock-notifications-adapter.h" 11 | 12 | 13 | struct _ValentMockNotificationsAdapter 14 | { 15 | ValentNotificationsAdapter parent_instance; 16 | }; 17 | 18 | G_DEFINE_FINAL_TYPE (ValentMockNotificationsAdapter, valent_mock_notifications_adapter, VALENT_TYPE_NOTIFICATIONS_ADAPTER) 19 | 20 | 21 | /* 22 | * GObject 23 | */ 24 | static void 25 | valent_mock_notifications_adapter_class_init (ValentMockNotificationsAdapterClass *klass) 26 | { 27 | } 28 | 29 | static void 30 | valent_mock_notifications_adapter_init (ValentMockNotificationsAdapter *self) 31 | { 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/libvalent/notifications/valent-notifications.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include "../core/valent-component.h" 11 | 12 | G_BEGIN_DECLS 13 | 14 | #define VALENT_TYPE_NOTIFICATIONS (valent_notifications_get_type ()) 15 | 16 | VALENT_AVAILABLE_IN_1_0 17 | G_DECLARE_FINAL_TYPE (ValentNotifications, valent_notifications, VALENT, NOTIFICATIONS, ValentComponent) 18 | 19 | VALENT_AVAILABLE_IN_1_0 20 | ValentNotifications * valent_notifications_get_default (void); 21 | 22 | VALENT_AVAILABLE_IN_1_0 23 | GVariant * valent_notifications_get_applications (ValentNotifications *notifications); 24 | 25 | G_END_DECLS 26 | 27 | -------------------------------------------------------------------------------- /src/plugins/sms/valent-sms-device.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SMS_DEVICE (valent_sms_device_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentSmsDevice, valent_sms_device, VALENT, SMS_DEVICE, ValentMessagesAdapter) 13 | 14 | ValentMessagesAdapter * valent_sms_device_new (ValentDevice *device); 15 | void valent_sms_device_handle_messages (ValentSmsDevice *self, 16 | JsonNode *packet); 17 | void valent_sms_device_handle_attachment_file (ValentSmsDevice *self, 18 | JsonNode *packet); 19 | 20 | G_END_DECLS 21 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-signal-good-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-signal-ok-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-signal-weak-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /doc/schemas/kdeconnect.sms.request_conversations.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema#", 3 | "title": "kdeconnect.sms.request_conversations", 4 | "description": "This packet is a request for the latest message in each thread.", 5 | "examples": [ 6 | { 7 | "id": 0, 8 | "type": "kdeconnect.sms.request_conversations", 9 | "body": {} 10 | } 11 | ], 12 | "type": "object", 13 | "required": [ 14 | "id", 15 | "type", 16 | "body" 17 | ], 18 | "properties": { 19 | "id": { 20 | "type": "number" 21 | }, 22 | "type": { 23 | "type": "string", 24 | "enum": ["kdeconnect.sms.request_conversations"] 25 | }, 26 | "body": { 27 | "type": "object", 28 | "properties": {} 29 | } 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /src/libvalent/input/valent-input-keydef.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | /** 7 | * VALENT_POINTER_PRIMARY: (value 1) 8 | * 9 | * The primary button. 10 | * 11 | * This is typically the left mouse button, or the right button in a left-handed 12 | * setup. 13 | */ 14 | #define VALENT_POINTER_PRIMARY (1) 15 | 16 | /** 17 | * VALENT_POINTER_MIDDLE: (value 2) 18 | * 19 | * The middle button. 20 | * 21 | * This is typically the button activated when the mouse wheel is pressed. 22 | */ 23 | #define VALENT_POINTER_MIDDLE (2) 24 | 25 | /** 26 | * VALENT_POINTER_SECONDARY: (value 3) 27 | * 28 | * The primary button. 29 | * 30 | * This is typically the right mouse button, or the left button in a left-handed 31 | * setup. 32 | */ 33 | #define VALENT_POINTER_SECONDARY (3) 34 | 35 | -------------------------------------------------------------------------------- /src/plugins/battery/data/valent-battery-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /doc/schemas/kdeconnect.connectivity_report.request.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema#", 3 | "title": "kdeconnect.connectivity_report.request", 4 | "description": "⚠️ Deprecated: This packet is sent to request a connectivity report.", 5 | "examples": [ 6 | { 7 | "id": 0, 8 | "type": "kdeconnect.connectivity_report.request", 9 | "body": {} 10 | } 11 | ], 12 | "type": "object", 13 | "required": [ 14 | "id", 15 | "type", 16 | "body" 17 | ], 18 | "properties": { 19 | "id": { 20 | "type": "number" 21 | }, 22 | "type": { 23 | "type": "string", 24 | "enum": ["kdeconnect.connectivity_report.request"] 25 | }, 26 | "body": { 27 | "type": "object", 28 | "properties": {} 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/plugins/lan/data/valent-lan-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/share/data/valent-share-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/plugins/bluez/data/valent-bluez-plugin-symbolic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-20-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/battery-level-40-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/plugins/gnome/data/icons/scalable/status/network-cellular-4g-symbolic.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /doc/schemas/kdeconnect.findmyphone.request.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema#", 3 | "title": "kdeconnect.findmyphone.request", 4 | "description": "This packet is a request for a device to announce its location. By convention, sending a second packet cancels the request.", 5 | "examples": [ 6 | { 7 | "id": 0, 8 | "type": "kdeconnect.findmyphone.request", 9 | "body": {} 10 | } 11 | ], 12 | "type": "object", 13 | "required": [ 14 | "id", 15 | "type", 16 | "body" 17 | ], 18 | "properties": { 19 | "id": { 20 | "type": "number" 21 | }, 22 | "type": { 23 | "type": "string", 24 | "enum": ["kdeconnect.findmyphone.request"] 25 | }, 26 | "body": { 27 | "type": "object", 28 | "properties": {} 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/meson.build: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | valent_c_args = ['-DVALENT_PLUGINSDIR="@0@"'.format(pkgpluginsdir)] 5 | valent_link_args = [] 6 | 7 | 8 | # The base API is defined by libvalent and functionality is delegated to plugins 9 | subdir('libvalent') 10 | subdir('plugins') 11 | 12 | 13 | # Dependencies 14 | valent_deps = [ 15 | libvalent_dep, 16 | ] 17 | 18 | if gtk_dep.found() 19 | valent_deps += gtk_dep 20 | endif 21 | 22 | # Application 23 | valent = executable('valent', 'main.c', 24 | c_args: valent_c_args + release_args, 25 | link_args: valent_link_args, 26 | link_whole: plugins_static, 27 | export_dynamic: true, 28 | gnu_symbol_visibility: 'hidden', 29 | dependencies: valent_deps, 30 | install: true, 31 | pie: true, 32 | ) 33 | 34 | -------------------------------------------------------------------------------- /tests/fixtures/mock.plugin: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-3.0-or-later 2 | # SPDX-FileCopyrightText: Andy Holmes 3 | 4 | [Plugin] 5 | Module=mock 6 | Name=Mock 7 | Description=Mock Plugin 8 | Icon=application-x-addon-symbolic 9 | Builtin=true 10 | Embedded=valent_mock_plugin_register_types 11 | Authors=Andy Holmes; 12 | Copyright=Copyright © Andy Holmes 13 | Version=tests 14 | Website=https://valent.andyholmes.ca 15 | Help=https://valent.andyholmes.ca/help 16 | X-DevicePluginIncoming=kdeconnect.mock.echo;kdeconnect.mock.transfer 17 | X-DevicePluginOutgoing=kdeconnect.mock.echo;kdeconnect.mock.transfer 18 | # The mock plugins should be lowest priority 19 | X-ClipboardAdapterPriority=1000000 20 | X-ContactsAdapterPriority=1000000 21 | X-InputAdapterPriority=1000000 22 | X-MediaAdapterPriority=1000000 23 | X-MixerAdapterPriority=1000000 24 | X-NotificationsAdapterPriority=1000000 25 | X-SessionAdapterPriority=1000000 26 | -------------------------------------------------------------------------------- /src/libvalent/contacts/valent-contacts.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include "../core/valent-component.h" 11 | #include "valent-contacts-adapter.h" 12 | 13 | 14 | G_BEGIN_DECLS 15 | 16 | /** 17 | * VALENT_CONTACTS_GRAPH: 18 | * 19 | * The SPARQL graph name for contacts in Valent. 20 | * 21 | * Since: 1.0 22 | */ 23 | #define VALENT_CONTACTS_GRAPH "valent:contacts" 24 | 25 | #define VALENT_TYPE_CONTACTS (valent_contacts_get_type ()) 26 | 27 | VALENT_AVAILABLE_IN_1_0 28 | G_DECLARE_FINAL_TYPE (ValentContacts, valent_contacts, VALENT, CONTACTS, ValentComponent) 29 | 30 | VALENT_AVAILABLE_IN_1_0 31 | ValentContacts * valent_contacts_get_default (void); 32 | 33 | G_END_DECLS 34 | 35 | -------------------------------------------------------------------------------- /src/libvalent/messages/valent-messages.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION) 7 | # error "Only can be included directly." 8 | #endif 9 | 10 | #include "../core/valent-component.h" 11 | #include "valent-messages-adapter.h" 12 | 13 | G_BEGIN_DECLS 14 | 15 | /** 16 | * VALENT_MESSAGES_GRAPH: 17 | * 18 | * The SPARQL graph name for messages in Valent. 19 | * 20 | * Since: 1.0 21 | */ 22 | #define VALENT_MESSAGES_GRAPH "valent:messages" 23 | 24 | 25 | #define VALENT_TYPE_MESSAGES (valent_messages_get_type ()) 26 | 27 | VALENT_AVAILABLE_IN_1_0 28 | G_DECLARE_FINAL_TYPE (ValentMessages, valent_messages, VALENT, MESSAGES, ValentComponent) 29 | 30 | VALENT_AVAILABLE_IN_1_0 31 | ValentMessages * valent_messages_get_default (void); 32 | 33 | G_END_DECLS 34 | 35 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-preferences-page.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | G_BEGIN_DECLS 10 | 11 | #define VALENT_TYPE_PREFERENCES_PAGE (valent_preferences_page_get_type ()) 12 | 13 | G_DECLARE_DERIVABLE_TYPE (ValentPreferencesPage, valent_preferences_page, VALENT, PREFERENCES_PAGE, AdwPreferencesPage) 14 | 15 | struct _ValentPreferencesPageClass 16 | { 17 | AdwPreferencesPageClass parent_class; 18 | 19 | /*< private >*/ 20 | gpointer padding[8]; 21 | }; 22 | 23 | ValentContext * valent_preferences_page_get_context (ValentPreferencesPage *page); 24 | GSettings * valent_preferences_page_get_settings (ValentPreferencesPage *page, 25 | const char *name); 26 | 27 | G_END_DECLS 28 | 29 | -------------------------------------------------------------------------------- /REUSE.toml: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: CC0-1.0 2 | # SPDX-FileCopyrightText: No rights reserved 3 | 4 | version = 1 5 | 6 | [[annotations]] 7 | path = ["**.desktop.in.in", "**.service.in", "**.json", "**.po", "**.pot"] 8 | precedence = "aggregate" 9 | SPDX-FileCopyrightText = "Andy Holmes " 10 | SPDX-License-Identifier = "GPL-3.0-or-later" 11 | 12 | [[annotations]] 13 | path = [".github/**", ".gitignore", ".gitmodules", "build-aux/**", "CHANGELOG.md", "CONTRIBUTING.md", "README.md", "**.jpg", "**.ontology", "**.png", "**.svg", "**.vcf", "**.wrap"] 14 | precedence = "aggregate" 15 | SPDX-FileCopyrightText = "No rights reserved" 16 | SPDX-License-Identifier = "CC0-1.0" 17 | 18 | [[annotations]] 19 | path = "src/plugins/findmyphone/data/alert.oga" 20 | precedence = "aggregate" 21 | SPDX-FileCopyrightText = "Red Hat, Inc." 22 | SPDX-License-Identifier = "CC-BY-SA-3.0" 23 | SPDX-FileComment = "Created by Richard Hughes" 24 | 25 | -------------------------------------------------------------------------------- /src/plugins/battery/ca.andyholmes.Valent.Plugin.battery.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | false 13 | 14 | 15 | 100.0 16 | 17 | 18 | 19 | true 20 | 21 | 22 | 20.0 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/plugins/gnome/valent-menu-list.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_MENU_LIST (valent_menu_list_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentMenuList, valent_menu_list, VALENT, MENU_LIST, GtkWidget) 13 | 14 | ValentMenuList * valent_menu_list_new (GMenuModel *model); 15 | GMenuModel * valent_menu_list_get_menu_model (ValentMenuList *self); 16 | void valent_menu_list_set_menu_model (ValentMenuList *self, 17 | GMenuModel *model); 18 | ValentMenuList * valent_menu_list_get_submenu_of (ValentMenuList *self); 19 | void valent_menu_list_set_submenu_of (ValentMenuList *self, 20 | ValentMenuList *parent); 21 | 22 | G_END_DECLS 23 | -------------------------------------------------------------------------------- /src/plugins/share/valent-share-download.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | // SPDX-FileCopyrightText: Andy Holmes 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | G_BEGIN_DECLS 9 | 10 | #define VALENT_TYPE_SHARE_DOWNLOAD (valent_share_download_get_type()) 11 | 12 | G_DECLARE_FINAL_TYPE (ValentShareDownload, valent_share_download, VALENT, SHARE_DOWNLOAD, ValentTransfer) 13 | 14 | ValentTransfer * valent_share_download_new (ValentDevice *device); 15 | void valent_share_download_add_file (ValentShareDownload *download, 16 | GFile *file, 17 | JsonNode *packet); 18 | void valent_share_download_update (ValentShareDownload *download, 19 | JsonNode *packet); 20 | 21 | G_END_DECLS 22 | 23 | --------------------------------------------------------------------------------