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

List:       kde-devel
Subject:    Re: is there a KIO plugin for the ServiceGroups (applications / kde
From:       Siraj Razique <sirajr () gmail ! com>
Date:       2006-01-18 10:34:12
Message-ID: 5a8b40be0601180234p6cf50579mfdb69bff117af112 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I think U can use this code to get a list off apps... check vistavar.cpp in
kbfx source . I got
the application list based on the following code for kbfx vista bar some
time back...

  KServiceGroup::Ptr group = KServiceGroup::root ();
    if (!group || !group->isValid ())
        return;

KServiceGroup::List list = group->entries();

 // Do some thing to the Groups
 for( KServiceGroup::List::ConstIterator it = list.begin();
      it != list.end(); it++)
 {
    KSycocaEntry *p = (*it);
    if (p->isType(KST_KService))
    {
       KService *s = static_cast<KService *>(p);
      // do some thing with  s->CHECK_API()
    }
    else if (p->isType(KST_KServiceGroup))
    {
       KServiceGroup *g = static_cast<KServiceGroup *>(p);

    }
 }


On 1/18/06, David Faure <faure@kde.org> wrote:
>
> On Wednesday 18 January 2006 03:32, Luke Kenneth Casson Leighton wrote:
> > hi, please do respond cc because i'm on the list (i think!) but not
> > to receive messages (i check archives for responses if you forget so
> > don't worry)
> >
> > i was wondering: is there a KIO plugin for walking the KDE Menu?
>
> Let's call a cat a cat, you meant a KIO slave, not a KIO plugin :)
>
> > if not - it seems the _weirdest_ missing thing - not being able to walk
> > the KDE Menu of applications with konqueror or any other thing, not
> > being able to see your menu of applications in a treeview...
> >
> > i've tried applications:/ and apps:/ and svcgrp:/ and servicegroup:/
> > and ...
>
> applications:/ does the job here. It does show the contents K menu,
> in a tree view if you ask konqueror to show you a tree view.
>
> If your K menu is different, then it must be your distribution making it
> so.
>
> --
> David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
> Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org
> ).
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>



--
Sj
<<LiNUX>> Free as in Freedom
http://www.linuxlots.com/~siraj/

[Attachment #5 (text/html)]

I think U can use this code to get a list off apps... check vistavar.cpp in kbfx \
source . I got <br> the application list based on the following code for kbfx vista \
bar some time back...<br> <br>
&nbsp; KServiceGroup::Ptr group = KServiceGroup::root ();<br>
&nbsp;&nbsp;&nbsp; if (!group || !group-&gt;isValid ())<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>
<br>
KServiceGroup::List list = group-&gt;entries();<br>
<br>
&nbsp;// Do some thing to the Groups<br>
&nbsp;for( KServiceGroup::List::ConstIterator it = list.begin();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; it != list.end(); it++)<br>
&nbsp;{<br>
&nbsp;&nbsp;&nbsp; KSycocaEntry *p = (*it);<br>
&nbsp;&nbsp;&nbsp; if (p-&gt;isType(KST_KService))<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KService *s = static_cast&lt;KService \
*&gt;(p);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // do some thing with&nbsp; \
s-&gt;CHECK_API()<br> &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; else if (p-&gt;isType(KST_KServiceGroup))<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KServiceGroup *g = static_cast&lt;KServiceGroup \
*&gt;(p);<br> &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; }<br>
&nbsp;}<br>
<br>
&nbsp; <br><div><span class="gmail_quote">On 1/18/06, <b \
class="gmail_sendername">David Faure</b> &lt;<a \
href="mailto:faure@kde.org">faure@kde.org</a>&gt; wrote:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> On Wednesday 18 January 2006 03:32, Luke Kenneth \
Casson Leighton wrote:<br>&gt; hi, please do respond cc because i'm on the list (i \
think!) but not<br>&gt; to receive messages (i check archives for responses if you \
forget so <br>&gt; don't worry)<br>&gt;<br>&gt; i was wondering: is there a KIO \
plugin for walking the KDE Menu?<br><br>Let's call a cat a cat, you meant a KIO \
slave, not a KIO plugin :)<br><br>&gt; if not - it seems the _weirdest_ missing thing \
- not being able to walk <br>&gt; the KDE Menu of applications with konqueror or any \
other thing, not<br>&gt; being able to see your menu of applications in a \
treeview...<br>&gt;<br>&gt; i've tried applications:/ and apps:/ and svcgrp:/ and \
servicegroup:/ <br>&gt; and ...<br><br>applications:/ does the job here. It does show \
the contents K menu,<br>in a tree view if you ask konqueror to show you a tree \
view.<br><br>If your K menu is different, then it must be your distribution making it \
so. <br><br>--<br>David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, \
sponsored by Trolltech to work on KDE,<br>Konqueror (<a \
href="http://www.konqueror.org">http://www.konqueror.org</a>), and KOffice (<a \
href="http://www.koffice.org"> http://www.koffice.org</a>).<br><br><br>&gt;&gt; Visit \
<a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to unsubscribe &lt;&lt;<br></blockquote></div> <br><br clear="all"><br>-- \
<br>Sj<br>&lt;&lt;LiNUX&gt;&gt; Free as in Freedom<br><a \
href="http://www.linuxlots.com/~siraj/">http://www.linuxlots.com/~siraj/</a><br>



>> 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