本文整理汇总了C++中KFileItemList::next方法的典型用法代码示例。如果您正苦于以下问题:C++ KFileItemList::next方法的具体用法?C++ KFileItemList::next怎么用?C++ KFileItemList::next使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KFileItemList
的用法示例。
在下文中一共展示了KFileItemList::next方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KonqPopupMenuPlugin
AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const QStringList& /* list */ )
: KonqPopupMenuPlugin( popupmenu, name), PluginBase(), m_conf(0), m_part(0)
{
kdDebug() << "AkregatorMenu::AkregatorMenu()" << endl;
if ( QCString( kapp->name() ) == "kdesktop" && !kapp->authorize("editable_desktop_icons" ) )
return;
// Do nothing if user has turned us off.
// TODO: Not yet implemented in aKregator settings.
/*m_conf = new KConfig( "akregatorrc" );
m_conf->setGroup( "AkregatorKonqPlugin" );
if ( !m_conf->readBoolEntry( "Enable", true ) )
return;
*/
KHTMLView* view = 0L;
if (popupmenu && popupmenu->parent() && popupmenu->parent()->inherits("KHTMLView"))
view = static_cast<KHTMLView*>(popupmenu->parent());
if (view)
m_part = view->part();
KGlobal::locale()->insertCatalogue("akregator_konqplugin");
m_feedMimeTypes << "text/rss" << "text/rdf" << "text/xml";
// Get the list of URLs clicked on from Konqi.
//KFileItemList m_list = popupmenu->fileItemList();
// See if any are RSS feeds.
KFileItemList list = popupmenu->fileItemList();
KFileItem* it = list.first();
while (it != 0)
{
if (isFeedUrl(it))
{
kdDebug() << "AkregatorMenu: found feed URL " << it->url().prettyURL() << endl;
KAction *action = new KAction( i18n( "Add Feed to Akregator" ), "akregator", 0, this, SLOT( slotAddFeed() ), actionCollection(), "akregatorkonqplugin_mnu" );
addAction( action );
addSeparator();
m_feedURL = it->url().url();
break;
}
it = list.next();
}
}