[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>
KServiceGroup::Ptr group = KServiceGroup::root ();<br>
if (!group || !group->isValid ())<br>
return;<br>
<br>
KServiceGroup::List list = group->entries();<br>
<br>
// Do some thing to the Groups<br>
for( KServiceGroup::List::ConstIterator it = list.begin();<br>
it != list.end(); it++)<br>
{<br>
KSycocaEntry *p = (*it);<br>
if (p->isType(KST_KService))<br>
{<br>
KService *s = static_cast<KService \
*>(p);<br> // do some thing with \
s->CHECK_API()<br> }<br>
else if (p->isType(KST_KServiceGroup))<br>
{<br>
KServiceGroup *g = static_cast<KServiceGroup \
*>(p);<br> <br>
}<br>
}<br>
<br>
<br><div><span class="gmail_quote">On 1/18/06, <b \
class="gmail_sendername">David Faure</b> <<a \
href="mailto:faure@kde.org">faure@kde.org</a>> 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>> hi, please do respond cc because i'm on the list (i \
think!) but not<br>> to receive messages (i check archives for responses if you \
forget so <br>> don't worry)<br>><br>> 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>> if not - it seems the _weirdest_ missing thing \
- not being able to walk <br>> the KDE Menu of applications with konqueror or any \
other thing, not<br>> being able to see your menu of applications in a \
treeview...<br>><br>> i've tried applications:/ and apps:/ and svcgrp:/ and \
servicegroup:/ <br>> 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>>> Visit \
<a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to unsubscribe <<<br></blockquote></div> <br><br clear="all"><br>-- \
<br>Sj<br><<LiNUX>> 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