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

It receives a packages with type kdeconnect.share. If they have a payload attached, it will download it as a file with the filename set in the field "filename" (string). If that field is not set it should generate a filename.
If the content transferred is text, it can be sent in a field "text" (string) instead of an attached payload. In that case, this plugin opens a text editor with the content instead of saving it as a file.
If the content transferred is a url, it can be sent in a field "url" (string). In that case, this plugin opens that url in the default browser.

  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 984 bytes 2023-05-30 08:01:02 -  
file kdeconnect_share.json 8830 bytes 2023-05-30 08:01:02 -  
file kdeconnect_share_config.qml 1430 bytes 2023-05-30 08:01:02 -  
file README 578 bytes 2023-05-30 08:01:02 -  
file share_config.cpp 1574 bytes 2023-05-30 08:01:02 2023-05-30 09:17:30  
file share_config.h 601 bytes 2023-05-30 08:01:02 2023-05-30 09:17:30  
file share_config.ui 2036 bytes 2023-05-30 08:01:02 -  
file shareplugin.cpp 10500 bytes 2023-05-30 08:01:02 2023-05-30 09:17:30  
file shareplugin.h 1775 bytes 2023-05-30 08:01:02 2023-05-30 09:17:30