[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [Fwd: Re: Re : How to automatically find plugins]
From:       Stéphane_MANKOWSKI <s.mankowski () miraks ! com>
Date:       2008-06-13 8:23:05
Message-ID: 48522E69.70505 () miraks ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


If I replace:
KService::List 
offers=KServiceTypeTrader::self()->query(QLatin1String("Skrooge/Plugin"));
by
KService::List 
offers=KServiceTypeTrader::self()->query(QLatin1String("Plasma/Runner"));

I am able to find 4 plugins.

I don't understrand why it doesn't work with "Skrooge/Plugin".

Thank you for your help.

Stéphane

-------- Message original --------
Sujet: 	Re: Re : How to automatically find plugins
Date: 	Thu, 12 Jun 2008 23:53:14 +0200
De: 	Stéphane MANKOWSKI <s.mankowski@miraks.com>
Pour: 	Guillaume de Bure <gdebure@yahoo.com>
Copie: 	kde-devel@kde.org
Références: 	<211047.87461.qm@web36505.mail.mud.yahoo.com>



Hi,

Here is the containt of 
*/usr/local/share/kde4/services/skrooge-plugin-debug.desktop* :

    [Desktop Entry]
    Name=Skrooge debug plugin
    Comment=A skrooge plugin helping debug
    Encoding=UTF-8
    Icon=skrooge
    Type=Service
    X-KDE-ServiceTypes=Skrooge/Plugin
    X-KDE-Library=skrooge_plugin_debug
    X-Krunner-ID=Skrooge debug plugin
    X-KDE-PluginInfo-Author=Stephane MANKOWSKI
    X-KDE-PluginInfo-Name=skrooge_debug
    X-KDE-PluginInfo-Version=0.1
    X-KDE-PluginInfo-Category=Plugins
    X-KDE-PluginInfo-Depends=
    X-KDE-PluginInfo-License=GPL
    X-KDE-PluginInfo-EnabledByDefault=true


Here is the containt of* 
/usr/local/share/kde4/servicetypes/skrooge-plugin.desktop *:

    [Desktop Entry]
    Name=Skrooge plugin
    Comment=Skrooge plugin
    Encoding=UTF-8
    Icon=skrooge
    Type=ServiceType
    X-KDE-ServiceType=Skrooge/Plugin

It seems to be correct but the following code return an empty list:
        KService::List 
offers=KServiceTypeTrader::self()->query(QLatin1String("Skrooge/Plugin"));

        int nb=offers.count();
        SKGTRACEL(10) << nb << " plugins found" << endl;

I don't understand why. I tried many things without success.

For your information, I am on KUBUNTU 8.04 (KDE 3.5.9).

Stéphane


Guillaume de Bure a écrit :
> hmm couldn't find those files, so guess the problem lies there.
> 
> Thanks Aaron.
> 
> Guillaume
> 
> ----- Message d'origine ----
> De : Aaron J. Seigo <aseigo@kde.org>
> À : kde-devel@kde.org
> Cc : Stéphane MANKOWSKI <stephane.mankowski@airbus.com>; Stéphane 
> MANKOWSKI <s.mankowski@miraks.com>
> Envoyé le : Jeudi, 12 Juin 2008, 15h48mn 09s
> Objet : Re: How to automatically find plugins
> 
> On Thursday 12 June 2008, Guillaume de Bure wrote:
> > KService::List
> > 
> offers=KServiceTypeTrader::self()->query(QLatin1String("Skrooge/Plugin"));
> 
> what do your .desktop files look like?
> 
> you need a .desktop file for each plugin in share/kde4/services/ that 
> contains
> X-KDE-ServiceTypes=Skrooge/Plugin and you need a .desktop file in
> share/kde4/servicetypes/ that containing something like:
> 
> [Desktop Entry]
> Type=ServiceType
> X-KDE-ServiceType=Skrooge/Plugin
> Comment=Skrooge plugin
> 
> 
> -- 
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
> 
> KDE core developer sponsored by Trolltech
> 
> 
> ------------------------------------------------------------------------
> Envoyé avec Yahoo! Mail 
> <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html>.
>  Une boite mail plus intelligente. 


[Attachment #5 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
If I replace:<br>
KService::List
offers=KServiceTypeTrader::self()-&gt;query(QLatin1String("Skrooge/Plugin"));<br>
by<br>
KService::List
offers=KServiceTypeTrader::self()-&gt;query(QLatin1String("Plasma/Runner"));<br>
<br>
I am able to find 4 plugins.<br>
<br>
I don't understrand why it doesn't work with "Skrooge/Plugin".<br>
<br>
Thank you for your help.<br>
<br>
St&eacute;phane<br>
<br>
-------- Message original --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
 cellspacing="0">
  <tbody>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Sujet: </th>
      <td>Re: Re : How to automatically find plugins</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Date: </th>
      <td>Thu, 12 Jun 2008 23:53:14 +0200</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">De: </th>
      <td>St&eacute;phane MANKOWSKI <a class="moz-txt-link-rfc2396E" \
href="mailto:s.mankowski@miraks.com">&lt;s.mankowski@miraks.com&gt;</a></td>  </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Pour: </th>
      <td>Guillaume de Bure <a class="moz-txt-link-rfc2396E" \
href="mailto:gdebure@yahoo.com">&lt;gdebure@yahoo.com&gt;</a></td>  </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Copie: </th>
      <td><a class="moz-txt-link-abbreviated" \
href="mailto:kde-devel@kde.org">kde-devel@kde.org</a></td>  </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">R&eacute;f&eacute;rences: \
                </th>
      <td><a class="moz-txt-link-rfc2396E" \
href="mailto:211047.87461.qm@web36505.mail.mud.yahoo.com">&lt;211047.87461.qm@web36505.mail.mud.yahoo.com&gt;</a></td>
  </tr>
  </tbody>
</table>
<br>
<br>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Hi,<br>
<br>
Here is the containt of \
<b>/usr/local/share/kde4/services/skrooge-plugin-debug.desktop</b> :<br>
<blockquote>[Desktop Entry]<br>
Name=Skrooge debug plugin<br>
Comment=A skrooge plugin helping debug<br>
Encoding=UTF-8<br>
Icon=skrooge<br>
Type=Service<br>
X-KDE-ServiceTypes=Skrooge/Plugin<br>
X-KDE-Library=skrooge_plugin_debug<br>
X-Krunner-ID=Skrooge debug plugin<br>
X-KDE-PluginInfo-Author=Stephane MANKOWSKI<br>
X-KDE-PluginInfo-Name=skrooge_debug<br>
X-KDE-PluginInfo-Version=0.1<br>
X-KDE-PluginInfo-Category=Plugins<br>
X-KDE-PluginInfo-Depends=<br>
X-KDE-PluginInfo-License=GPL<br>
X-KDE-PluginInfo-EnabledByDefault=true<br>
</blockquote>
<br>
Here is the containt of<b>
/usr/local/share/kde4/servicetypes/skrooge-plugin.desktop </b>:<br>
<blockquote>[Desktop Entry]<br>
Name=Skrooge plugin<br>
Comment=Skrooge plugin<br>
Encoding=UTF-8<br>
Icon=skrooge<br>
Type=ServiceType<br>
X-KDE-ServiceType=Skrooge/Plugin<br>
</blockquote>
It seems to be correct but the following code return an empty list:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KService::List
offers=KServiceTypeTrader::self()-&gt;query(QLatin1String("Skrooge/Plugin"));<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int nb=offers.count();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SKGTRACEL(10) &lt;&lt; nb &lt;&lt; " \
plugins found" &lt;&lt; endl;<br>
<br>
I don't understand why. I tried many things without success.<br>
<br>
For your information, I am on KUBUNTU 8.04 (KDE 3.5.9).<br>
<br>
St&eacute;phane<br>
<br>
<br>
Guillaume de Bure a &eacute;crit&nbsp;:
<blockquote cite="mid:211047.87461.qm@web36505.mail.mud.yahoo.com"
 type="cite">
  <style type="text/css"><!-- DIV {margin:0px;} --></style>
  <div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">
  <div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">hmm
couldn't find those files, so guess the problem lies there.<br>
  <br>
Thanks Aaron.<br>
  <br>
Guillaume<br>
  <br>
  <div
 style="font-family: times new roman,new york,times,serif; font-size: 12pt;">-----
Message d'origine ----<br>
De : Aaron J. Seigo <a moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" \
href="mailto:aseigo@kde.org">&lt;aseigo@kde.org&gt;</a><br> &Agrave; : <a \
moz-do-not-send="true" class="moz-txt-link-abbreviated"  \
href="mailto:kde-devel@kde.org">kde-devel@kde.org</a><br> Cc : St&eacute;phane \
MANKOWSKI <a moz-do-not-send="true"  class="moz-txt-link-rfc2396E"
 href="mailto:stephane.mankowski@airbus.com">&lt;stephane.mankowski@airbus.com&gt;</a>;
 St&eacute;phane
MANKOWSKI <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="mailto:s.mankowski@miraks.com">&lt;s.mankowski@miraks.com&gt;</a><br>
Envoy&eacute; le : Jeudi, 12 Juin 2008, 15h48mn 09s<br>
Objet&nbsp;: Re: How to automatically find plugins<br>
  <br>
On Thursday 12 June 2008, Guillaume de Bure wrote:<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; KService::List<br>
&gt;
offers=KServiceTypeTrader::self()-&gt;query(QLatin1String("Skrooge/Plugin"));<br>
  <br>
what do your .desktop files look like? <br>
  <br>
you need a .desktop file for each plugin in share/kde4/services/ that
contains <br>
X-KDE-ServiceTypes=Skrooge/Plugin and you need a .desktop file in <br>
share/kde4/servicetypes/ that containing something like:<br>
  <br>
[Desktop Entry]<br>
Type=ServiceType<br>
X-KDE-ServiceType=Skrooge/Plugin<br>
Comment=Skrooge plugin<br>
  <br>
  <br>
-- <br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA&nbsp; EE75 D6B7 2EB1 A7F1 DB43<br>
  <br>
KDE core developer sponsored by Trolltech<br>
  <br>
  </div>
  </div>
  </div>
  <br>
  <hr size="1"> Envoy&eacute; avec <a moz-do-not-send="true"
 href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo!
 Mail</a>.<br>
Une boite mail plus intelligente. </blockquote>
</body>
</html>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic