Plugin for KDE-Connect

Simon Redman simon at ergotech.com
Sun Aug 28 15:01:19 BST 2022


Hi Axel,

If I recall correctly, the DBus interface definitions are generated from 
the interface/dbusinterfaces.h and .cpp files.

You could try following this MR as a guide, which I believe was the 
complete plugin: 
https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/383/diffs#37f4f8e2dc9b5132f2ea0609f0ec4b34f21ee0a9

Thanks,
Simon

On 8/28/22 04:24, Axel Keller wrote:
> Hi Simon,
> thank you for your hint to the guide. I already followed this guide to 
> install and compile my own plugin named "phonebook".
>
> So far my plugin is considered but cannot be called from the 
> "DevivePage" of the kdeconnect-app when the device is connected with.
> Therefore I checked all files of the kdeconnect directory that contain 
> "FindMyPhone"/"findmyphone" and extended them for "Phonebook"/"phonebook".
> After that the compilation runs into an error because the interface 
> class '*OrgKdeKdeconnectDevicePhonebookInterface*' is not implemented.
>
> The reason seems to be the auto-generated file 
> "kdeconnect-kde/build/interfaces/*devicefindmyphoneinterface.xml"* 
> which has no real content:
> --------
>    <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object 
> Introspection 1.0//EN" 
> "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
>    <node>
>    </node>
> --------
> Therefore the auto-generated files
>           "kdeconnect-kde/build/interfaces/*devicefindmyphoneinterface.h*"
> and    "kdeconnect-kde/build/interfaces/*devicefindmyphoneinterface.cpp*"
>
> don't contain the implementation of interface class 
> 'OrgKdeKdeconnectDevicePhonebookInterface'.
>
> So I stuck in my development efforts. Any help?
>
> regards
>
> Axel
>
>
>
> Am 25.08.22 um 15:46 schrieb Simon Redman:
>> Hi Axel,
>>
>> The best guide for creating a new plugin is in the readme in the 
>> repository:
>> https://invent.kde.org/network/kdeconnect-kde/-/tree/master/plugins
>>
>> Once you have your plugin working, you'll need to modify the 
>> kdeconnect-app code to be able to call it from the GUI.
>>
>> Note that it isn't a plugin in the sense of something which could be 
>> installed independently. All KDE Connect plugins are shipped together 
>> with the rest of the application.
>>
>> Please post a MR as soon as you have anything to sure do that you can 
>> get early feedback!
>>
>> Please join us on Telegram/Matrix/IRC to discuss more about your idea 
>> to make sure it's something which can be included.
>>
>> Thanks,
>> Simon
>>
>>
>> On August 24, 2022 12:56:43 PM EDT, Axel Keller 
>> <axel.keller at o2mail.de> wrote:
>>
>>     Hi KDE-Connect developers,
>>
>>     I have built and installed the kdeconnect sources according to
>>     the "KDEConnect/Build Linux" instructions. The communication
>>     wirth a smartphone works.
>>
>>     Now I have prepared an own plugin under ~kdeconnect-kde/plugins/
>>     . This new plugin I wish to integrate to kdeconnect-app in such a
>>     way that it can be called from the "Device Page" like the given
>>     plugins "Find Device" or "Share File". I couldn't find out how to
>>     achieve that.
>>
>>     Exists any tutorial or documentation for KDE-Connect that
>>     explains how to integrate a new plugin?
>>
>>     Many thanks in advance.
>>
>>     Axel Keller
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20220828/66117bc3/attachment.htm>


More information about the KDEConnect mailing list