Last indexation completed on 2024-12-22 05:37:20 UTC
Writing a plugin for KDE Connect
For Android (this project):
1. Change directory to src/org/kde/kdeconnect/Plugins.
2. Copy "PingPlugin" under a different name ("FindMyPhonePlugin" in this example).
1. Enter the new "FindMyPhonePlugin" directory.
4. Rename "PingPlugin.java" to "FindMyPhonePlugin.java"
5. Edit it. Replace (case sensitive) "Ping" with "FindMyPhone", "ping" with "findmyphone", "PING" with "FINDMYPHONE"
and "plugin_ping" with "plugin_findmyphone".
6. Open res/values/strings.xml. Find and copy the lines "pref_plugin_ping_desc" and "pref_plugin_ping" replacing "ping"
with "findmyphone" and edit the plugin name and description between <string> </string>).
7. Open src/org/kde/kdeconnect/Plugins/PluginFactory.java.
A. Copy "import … PingPlugin" line with replacing "PingPlugin" with "FindMyPhonePlugin".
B. Copy "PluginFactory.registerPlugin(PingPlugin.class);" line with replacing "PingPlugin" with "FindMyPhonePlugin".
8. Open src/org/kde/kdeconnect/NetworkPacket.java. Copy a "public final static String PACKET_TYPE_PING = …" line
replacing "PING" with the packet type you will be using (should match the desktop client).
9. Now you have an empty skeleton to implement your new plugin logic.
SEE ALSO: README.txt
Name | Size | Date (UTC) | Last indexed | Description | |
---|---|---|---|---|---|
Name | Size | Date (UTC) | Last indexed | Description | |
Parent directory | - | 2024-02-11 01:56:58 | |||
BatteryPlugin/ | - | 2024-02-11 01:56:58 | |||
BigscreenPlugin/ | - | 2024-02-11 01:56:58 | |||
ClibpoardPlugin/ | - | 2024-02-11 01:56:58 | |||
ConnectivityReportPlugin/ | - | 2024-02-11 01:56:58 | |||
ContactsPlugin/ | - | 2024-02-11 01:56:58 | |||
FindMyPhonePlugin/ | - | 2024-02-11 01:56:58 | |||
FindRemoteDevicePlugin/ | - | 2024-02-11 01:56:58 | |||
MousePadPlugin/ | - | 2024-02-11 01:56:58 | |||
MouseReceiverPlugin/ | - | 2024-02-11 01:56:58 | |||
MprisPlugin/ | - | 2024-02-11 01:56:58 | |||
MprisReceiverPlugin/ | - | 2024-02-11 01:56:58 | |||
NotificationsPlugin/ | - | 2024-02-11 01:56:58 | |||
PingPlugin/ | - | 2024-02-11 01:56:58 | |||
PresenterPlugin/ | - | 2024-02-11 01:56:58 | |||
ReceiveNotificationsPlugin/ | - | 2024-02-11 01:56:58 | |||
RemoteKeyboardPlugin/ | - | 2024-02-11 01:56:58 | |||
RunCommandPlugin/ | - | 2024-02-11 01:56:58 | |||
SftpPlugin/ | - | 2024-02-11 01:56:58 | |||
SharePlugin/ | - | 2024-02-11 01:56:58 | |||
SMSPlugin/ | - | 2024-02-11 01:56:58 | |||
SystemVolumePlugin/ | - | 2024-02-11 01:56:58 | |||
TelephonyPlugin/ | - | 2024-02-11 01:56:58 | |||
Plugin.java | 10359 bytes | 2024-02-11 01:56:58 | 2024-12-22 04:41:42 | ||
PluginFactory.java | 6643 bytes | 2024-02-11 01:56:58 | 2024-12-22 04:41:42 | ||
README.txt | 2660 bytes | 2024-02-11 01:56:58 | - |