• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDED

VFolderMenu Class Reference

#include <vfolder_menu.h>

Inheritance diagram for VFolderMenu:
QObject

List of all members.

Classes

class  AppsInfo
class  DocInfo
struct  MenuItem
class  SubMenu

Signals

void newService (const QString &path, KService::Ptr *entry)

Public Member Functions

QStringList allDirectories ()
SubMenu * parseMenu (const QString &file, bool forceLegacyLoad=false)
void setTrackId (const QString &id)
 VFolderMenu (KBuildServiceFactory *serviceFactory)
 ~VFolderMenu ()

Public Attributes

QStringList m_allDirectories
AppsInfo * m_appsInfo
QList< AppsInfo * > m_appsInfoList
QList< AppsInfo * > m_appsInfoStack
SubMenu * m_currentMenu
QStringList m_defaultAppDirs
QStringList m_defaultDataDirs
QStringList m_defaultDirectoryDirs
QStringList m_defaultLegacyDirs
QStringList m_defaultMergeDirs
QStringList m_directoryDirs
QDomDocument m_doc
DocInfo m_docInfo
QStack< VFolderMenu::DocInfo > m_docInfoStack
bool m_forcedLegacyLoad
bool m_legacyLoaded
QHash< QString, SubMenu * > m_legacyNodes
SubMenu * m_rootMenu
bool m_track
QString m_trackId
QSet< QString > m_usedAppsDict

Detailed Description

Definition at line 34 of file vfolder_menu.h.


Constructor & Destructor Documentation

VFolderMenu::VFolderMenu ( KBuildServiceFactory *  serviceFactory  ) 

Definition at line 302 of file vfolder_menu.cpp.

VFolderMenu::~VFolderMenu (  ) 

Definition at line 311 of file vfolder_menu.cpp.


Member Function Documentation

QStringList VFolderMenu::allDirectories (  ) 

Returns a list of all directories involved in the last call to parseMenu(), excluding the KDE Legacy directories.

A change in any of these directories or in any of their child- directories can result in changes to the menu.

Definition at line 87 of file vfolder_menu.cpp.

void VFolderMenu::newService ( const QString &  path,
KService::Ptr *  entry 
) [signal]

Emitted when a KService for an application needs to be created.

See also:
parseMenu

This is a callback for KBuildSycoca.

VFolderMenu::SubMenu * VFolderMenu::parseMenu ( const QString &  file,
bool  forceLegacyLoad = false 
)

Parses VFolder menu defintion and generates a menu layout.

The newService signals is used as callback to load a specific service description.

Parameters:
file Menu file to load
forceLegacyLoad flag indicating whether the KDE "applnk" directory should be processed at least once.

Definition at line 1577 of file vfolder_menu.cpp.

void VFolderMenu::setTrackId ( const QString &  id  ) 

Debug function to enable tracking of what happens with a specific menu item id.

Definition at line 1638 of file vfolder_menu.cpp.


Member Data Documentation

QStringList VFolderMenu::m_allDirectories

Definition at line 106 of file vfolder_menu.h.

AppsInfo* VFolderMenu::m_appsInfo

Definition at line 147 of file vfolder_menu.h.

QList<AppsInfo*> VFolderMenu::m_appsInfoList

Definition at line 149 of file vfolder_menu.h.

QList<AppsInfo*> VFolderMenu::m_appsInfoStack

Definition at line 148 of file vfolder_menu.h.

SubMenu* VFolderMenu::m_currentMenu

Definition at line 154 of file vfolder_menu.h.

QStringList VFolderMenu::m_defaultAppDirs

Definition at line 109 of file vfolder_menu.h.

QStringList VFolderMenu::m_defaultDataDirs

Definition at line 108 of file vfolder_menu.h.

QStringList VFolderMenu::m_defaultDirectoryDirs

Definition at line 110 of file vfolder_menu.h.

QStringList VFolderMenu::m_defaultLegacyDirs

Definition at line 112 of file vfolder_menu.h.

QStringList VFolderMenu::m_defaultMergeDirs

Definition at line 111 of file vfolder_menu.h.

QStringList VFolderMenu::m_directoryDirs

Definition at line 114 of file vfolder_menu.h.

QDomDocument VFolderMenu::m_doc

Definition at line 152 of file vfolder_menu.h.

DocInfo VFolderMenu::m_docInfo

Definition at line 126 of file vfolder_menu.h.

QStack<VFolderMenu::DocInfo> VFolderMenu::m_docInfoStack

Definition at line 127 of file vfolder_menu.h.

bool VFolderMenu::m_forcedLegacyLoad

Definition at line 155 of file vfolder_menu.h.

bool VFolderMenu::m_legacyLoaded

Definition at line 156 of file vfolder_menu.h.

QHash<QString, SubMenu*> VFolderMenu::m_legacyNodes

Definition at line 115 of file vfolder_menu.h.

SubMenu* VFolderMenu::m_rootMenu

Definition at line 153 of file vfolder_menu.h.

bool VFolderMenu::m_track

Definition at line 157 of file vfolder_menu.h.

QString VFolderMenu::m_trackId

Definition at line 158 of file vfolder_menu.h.

QSet<QString > VFolderMenu::m_usedAppsDict

Definition at line 150 of file vfolder_menu.h.


The documentation for this class was generated from the following files:
  • vfolder_menu.h
  • vfolder_menu.cpp

KDED

Skip menu "KDED"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal