KDED
vfolder_menu.cpp File Reference
#include "vfolder_menu.h"
#include "kbuildservicefactory.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <config.h>
#include <kdebug.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include <kservice.h>
#include <kde_file.h>
#include <QtCore/QMap>
#include <QtCore/QFile>
#include <QtCore/QDir>
#include <QtCore/QRegExp>
#include "vfolder_menu.moc"
Include dependency graph for vfolder_menu.cpp:

Go to the source code of this file.
Defines | |
#define | FOR_ALL_APPLICATIONS(it) |
#define | FOR_ALL_APPLICATIONS_END } } |
#define | FOR_CATEGORY(category, it) |
#define | FOR_CATEGORY_END } } |
Functions | |
static void | foldNode (QDomElement &docElem, QDomElement &e, QMap< QString, QDomElement > &dupeList, QString s=QString()) |
static QString | parseAttribute (const QDomElement &e) |
static QStringList | parseLayoutNode (const QDomElement &docElem) |
static void | replaceNode (QDomElement &docElem, QDomNode &n, const QStringList &list, const QString &tag) |
static void | tagBaseDir (QDomDocument &doc, const QString &tag, const QString &dir) |
static void | tagBasePath (QDomDocument &doc, const QString &tag, const QString &path) |
static void | track (const QString &menuId, const QString &menuName, const QHash< QString, KService::Ptr > &includeList, const QHash< QString, KService::Ptr > &excludeList, const QHash< QString, KService::Ptr > &itemList, const QString &comment) |
Define Documentation
#define FOR_ALL_APPLICATIONS | ( | it | ) |
Value:
foreach (AppsInfo *info, m_appsInfoStack) \ { \ QHashIterator<QString,KService::Ptr> it = info->applications; \ while (it.hasNext()) \ { \ it.next();
Definition at line 316 of file vfolder_menu.cpp.
#define FOR_ALL_APPLICATIONS_END } } |
Definition at line 323 of file vfolder_menu.cpp.
#define FOR_CATEGORY | ( | category, | |||
it | ) |
Value:
foreach (AppsInfo *info, m_appsInfoStack) \ { \ const KService::List list = info->dictCategories.value(category); \ for(KService::List::ConstIterator it = list.constBegin(); \ it != list.constEnd(); ++it) \ {
Definition at line 325 of file vfolder_menu.cpp.
#define FOR_CATEGORY_END } } |
Definition at line 332 of file vfolder_menu.cpp.
Function Documentation
static void foldNode | ( | QDomElement & | docElem, | |
QDomElement & | e, | |||
QMap< QString, QDomElement > & | dupeList, | |||
QString | s = QString() | |||
) | [static] |
Definition at line 39 of file vfolder_menu.cpp.
static QString parseAttribute | ( | const QDomElement & | e | ) | [static] |
Definition at line 1496 of file vfolder_menu.cpp.
static QStringList parseLayoutNode | ( | const QDomElement & | docElem | ) | [static] |
Definition at line 1555 of file vfolder_menu.cpp.
static void replaceNode | ( | QDomElement & | docElem, | |
QDomNode & | n, | |||
const QStringList & | list, | |||
const QString & | tag | |||
) | [static] |
Definition at line 54 of file vfolder_menu.cpp.
static void tagBaseDir | ( | QDomDocument & | doc, | |
const QString & | tag, | |||
const QString & | dir | |||
) | [static] |
Definition at line 445 of file vfolder_menu.cpp.
static void tagBasePath | ( | QDomDocument & | doc, | |
const QString & | tag, | |||
const QString & | path | |||
) | [static] |
Definition at line 456 of file vfolder_menu.cpp.
static void track | ( | const QString & | menuId, | |
const QString & | menuName, | |||
const QHash< QString, KService::Ptr > & | includeList, | |||
const QHash< QString, KService::Ptr > & | excludeList, | |||
const QHash< QString, KService::Ptr > & | itemList, | |||
const QString & | comment | |||
) | [static] |
Definition at line 110 of file vfolder_menu.cpp.