<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Axel,<br>
    <br>
    If I recall correctly, the DBus interface definitions are generated
    from the interface/dbusinterfaces.h and .cpp files.<br>
    <br>
    You could try following this MR as a guide, which I believe was the
    complete plugin:
<a class="moz-txt-link-freetext" href="https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/383/diffs#37f4f8e2dc9b5132f2ea0609f0ec4b34f21ee0a9">https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/383/diffs#37f4f8e2dc9b5132f2ea0609f0ec4b34f21ee0a9</a><br>
    <br>
    Thanks,<br>
    Simon<br>
    <br>
    <div class="moz-cite-prefix">On 8/28/22 04:24, Axel Keller wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d39b352c-0879-23b2-5bec-3a7804139d55@o2mail.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi Simon,<br>
      thank you for your hint to the guide. I already followed this
      guide to install and compile my own plugin named "phonebook".<br>
      <br>
      So far my plugin is considered but cannot be called from the
      "DevivePage" of the kdeconnect-app when the device is connected
      with.<br>
      Therefore I checked all files of the kdeconnect directory that
      contain "FindMyPhone"/"findmyphone" and extended them for
      "Phonebook"/"phonebook".<br>
      After that the compilation runs into an error because the
      interface class '<b>OrgKdeKdeconnectDevicePhonebookInterface</b>'
      is not implemented.<br>
      <br>
      The reason seems to be the auto-generated file
      "kdeconnect-kde/build/interfaces/<b>devicefindmyphoneinterface.xml"</b>
      which has no real content:<br>
      --------<br>
         <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object
      Introspection 1.0//EN" <a class="moz-txt-link-rfc2396E"
        href="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
        moz-do-not-send="true">"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"</a>><br>
         <node><br>
         </node><br>
      --------<br>
      Therefore the auto-generated files <br>
                "kdeconnect-kde/build/interfaces/<b>devicefindmyphoneinterface.h</b>"<br>
      and    "kdeconnect-kde/build/interfaces/<b>devicefindmyphoneinterface.cpp</b>"<br>
      <br>
      don't contain the implementation of interface class
      'OrgKdeKdeconnectDevicePhonebookInterface'.<br>
      <br>
      So I stuck in my development efforts. Any help?<br>
      <br>
      regards<br>
      <p>Axel</p>
      <p><br>
      </p>
      <div class="moz-signature"><br>
      </div>
      <div class="moz-cite-prefix">Am 25.08.22 um 15:46 schrieb Simon
        Redman:<br>
      </div>
      <blockquote type="cite"
        cite="mid:68F25BFF-1DA6-4979-9F8F-712FA16B50C3@ergotech.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        Hi Axel,<br>
        <br>
        The best guide for creating a new plugin is in the readme in the
        repository:<br>
        <a
href="https://invent.kde.org/network/kdeconnect-kde/-/tree/master/plugins"
          moz-do-not-send="true" class="moz-txt-link-freetext">https://invent.kde.org/network/kdeconnect-kde/-/tree/master/plugins</a><br>
        <br>
        Once you have your plugin working, you'll need to modify the
        kdeconnect-app code to be able to call it from the GUI.<br>
        <br>
        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.<br>
        <br>
        Please post a MR as soon as you have anything to sure do that
        you can get early feedback!<br>
        <br>
        Please join us on Telegram/Matrix/IRC to discuss more about your
        idea to make sure it's something which can be included.<br>
        <br>
        Thanks,<br>
        Simon<br>
        <br>
        <br>
        <div class="gmail_quote">On August 24, 2022 12:56:43 PM EDT,
          Axel Keller <a class="moz-txt-link-rfc2396E"
            href="mailto:axel.keller@o2mail.de" moz-do-not-send="true"><axel.keller@o2mail.de></a>
          wrote:
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <p>Hi KDE-Connect developers,<br>
            </p>
            <p>I have built and installed the kdeconnect sources
              according to the "KDEConnect/Build Linux" instructions.
              The communication wirth a smartphone works.</p>
            <p>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.<br>
            </p>
            <p>Exists any tutorial or documentation for KDE-Connect that
              explains how to integrate a new plugin?</p>
            <p>Many thanks in advance.</p>
            <p>Axel Keller</p>
          </blockquote>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>