KDED
vfolder_menu.cpp File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <stdlib.h>
#include <kdebug.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include <kservice.h>
#include <kde_file.h>
#include <qmap.h>
#include <qfile.h>
#include <qdir.h>
#include <qregexp.h>
#include "vfolder_menu.h"
#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::null) |
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, QDict< KService > *includeList, QDict< KService > *excludeList, QDict< KService > *itemList, const QString &comment) |
Define Documentation
#define FOR_ALL_APPLICATIONS | ( | it | ) |
Value:
for(appsInfo *info = m_appsInfoStack.first(); \ info; info = m_appsInfoStack.next()) \ { \ for(QDictIterator<KService> it( info->applications ); \ it.current(); ++it ) \ {
Definition at line 314 of file vfolder_menu.cpp.
#define FOR_ALL_APPLICATIONS_END } } |
Definition at line 321 of file vfolder_menu.cpp.
#define FOR_CATEGORY | ( | category, | |||
it | ) |
Value:
for(appsInfo *info = m_appsInfoStack.first(); \ info; info = m_appsInfoStack.next()) \ { \ KService::List *list = info->dictCategories.find(category); \ if (list) for(KService::List::ConstIterator it = list->begin(); \ it != list->end(); ++it) \ {
Definition at line 323 of file vfolder_menu.cpp.
#define FOR_CATEGORY_END } } |
Definition at line 331 of file vfolder_menu.cpp.
Function Documentation
static void foldNode | ( | QDomElement & | docElem, | |
QDomElement & | e, | |||
QMap< QString, QDomElement > & | dupeList, | |||
QString | s = QString::null | |||
) | [static] |
Definition at line 38 of file vfolder_menu.cpp.
static QString parseAttribute | ( | const QDomElement & | e | ) | [static] |
Definition at line 1486 of file vfolder_menu.cpp.
static QStringList parseLayoutNode | ( | const QDomElement & | docElem | ) | [static] |
Definition at line 1545 of file vfolder_menu.cpp.
static void replaceNode | ( | QDomElement & | docElem, | |
QDomNode & | n, | |||
const QStringList & | list, | |||
const QString & | tag | |||
) | [static] |
Definition at line 53 of file vfolder_menu.cpp.
static void tagBaseDir | ( | QDomDocument & | doc, | |
const QString & | tag, | |||
const QString & | dir | |||
) | [static] |
Definition at line 452 of file vfolder_menu.cpp.
static void tagBasePath | ( | QDomDocument & | doc, | |
const QString & | tag, | |||
const QString & | path | |||
) | [static] |
Definition at line 463 of file vfolder_menu.cpp.
static void track | ( | const QString & | menuId, | |
const QString & | menuName, | |||
QDict< KService > * | includeList, | |||
QDict< KService > * | excludeList, | |||
QDict< KService > * | itemList, | |||
const QString & | comment | |||
) | [static] |
Definition at line 109 of file vfolder_menu.cpp.