Last indexation completed on 2023-05-30 09:33:32 UTC

This simple plugin will just listen to "kdeconnect.telephony" like the telephony plugin does. It reads the field "event", to see if it is "ringing" or "talking" and then pauses all the music/video players reachable through MPRIS. When the same kind of package is received but the boolean "isCancel" is set to true, it will resume the playback of all the paused sources.

  Name Size Date (UTC) Last indexed Description
  Name Size Date (UTC) Last indexed Description
folder Parent directory - 2023-05-30 08:01:02

Writing a plugin for KDE Connect
For the desktop client (this project):
1. Enter the "plugins" directory. 2. Copy the "ping" under a different name ("findmyphone" in this example). 3. Add "add_subdirectory(findmyphone)" to CMakeLists.txt after the others "add_subdirectory". 4. Enter the new "findmyphone" directory. 5. Edit CMakeLists.txt by replacing "ping" with "findmyphone". 6. Rename other files in this directory by replacing "ping" with "findmyphone" 7. Write a description of your plugin into "README" 8. Edit findmyphoneplugin.cpp and findmyphoneplugin.h. A. Change license header. B. Replace (case sensitive) "ping" with "findmyphone", "PingPlugin" with "FindMyPhonePlugin" and "PING" with "FINDMYPHONE". 9. Edit kdeconnect_findmyphone.json file: A. Replace "ping" with "findmyphone". B. Change name, description, icon, author, email, version, website, license info. C. Remove all the translations D. Set X-KDEConnect-SupportedPacketType and X-KDEConnect-OutgoingPacketType to the packet type your plugin will receive and send, respectively. In this example this is "kdeconnect.findmyphone". Make sure that this matches what is defined in the findmyphoneplugin.h file (in the line "#define PACKET_TYPE_..."), and also in Android. 10. Now you have an empty skeleton to implement your new plugin logic.


SEE ALSO: README.txt

file CMakeLists.txt 1418 bytes 2023-05-30 08:01:02 -  
file kdeconnect_pausemusic.json 8903 bytes 2023-05-30 08:01:02 -  
file kdeconnect_pausemusic_config.qml 1501 bytes 2023-05-30 08:01:02 -  
file org.mpris.MediaPlayer2.Player.xml 4560 bytes 2023-05-30 08:01:02 -  
file pausemusic_config.cpp 2386 bytes 2023-05-30 08:01:02 2023-05-30 09:17:28  
file pausemusic_config.h 636 bytes 2023-05-30 08:01:02 2023-05-30 09:17:28  
file pausemusic_config.ui 2804 bytes 2023-05-30 08:01:02 -  
file pausemusicplugin-win.cpp 8474 bytes 2023-05-30 08:01:02 2023-05-30 09:17:28  
file pausemusicplugin-win.h 1427 bytes 2023-05-30 08:01:02 2023-05-30 09:17:28  
file pausemusicplugin.cpp 3970 bytes 2023-05-30 08:01:02 2023-05-30 09:17:28  
file pausemusicplugin.h 645 bytes 2023-05-30 08:01:02 2023-05-30 09:17:28  
file README 372 bytes 2023-05-30 08:01:02 -