KDED
kde-menu.cpp File Reference
#include <stdlib.h>
#include <qfile.h>
#include <dcopclient.h>
#include <dcopref.h>
#include "kaboutdata.h"
#include "kapplication.h"
#include "kcmdlineargs.h"
#include "kglobal.h"
#include "klocale.h"
#include "kservice.h"
#include "kservicegroup.h"
#include "kstandarddirs.h"
Include dependency graph for kde-menu.cpp:
Go to the source code of this file.
Functions | |
static void | error (int exitCode, const QString &txt) |
static void | findMenuEntry (KServiceGroup::Ptr parent, const QString &name, const QString &menuId) |
int | main (int argc, char **argv) |
static void | result (const QString &txt) |
Variables | |
static const char | appName [] = "kde-menu" |
static const char | appVersion [] = "1.0" |
static bool | bHighlight |
static bool | bPrintMenuId |
static bool | bPrintMenuName |
static KCmdLineOptions | options [] |
static bool | utf8 |
Function Documentation
static void error | ( | int | exitCode, | |
const QString & | txt | |||
) | [static] |
Definition at line 61 of file kde-menu.cpp.
static void findMenuEntry | ( | KServiceGroup::Ptr | parent, | |
const QString & | name, | |||
const QString & | menuId | |||
) | [static] |
Definition at line 67 of file kde-menu.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 108 of file kde-menu.cpp.
static void result | ( | const QString & | txt | ) | [static] |
Definition at line 53 of file kde-menu.cpp.
Variable Documentation
const char appName[] = "kde-menu" [static] |
Definition at line 45 of file kde-menu.cpp.
const char appVersion[] = "1.0" [static] |
Definition at line 46 of file kde-menu.cpp.
bool bHighlight [static] |
Definition at line 51 of file kde-menu.cpp.
bool bPrintMenuId [static] |
Definition at line 49 of file kde-menu.cpp.
bool bPrintMenuName [static] |
Definition at line 50 of file kde-menu.cpp.
KCmdLineOptions options[] [static] |
Initial value:
{ { "utf8", I18N_NOOP("Output data in UTF-8 instead of local encoding"), 0 }, { "print-menu-id", I18N_NOOP("Print menu-id of the menu that contains\nthe application"), 0 }, { "print-menu-name", I18N_NOOP("Print menu name (caption) of the menu that\ncontains the application"), 0 }, { "highlight", I18N_NOOP("Highlight the entry in the menu"), 0 }, { "nocache-update", I18N_NOOP("Do not check if sycoca database is up to date"), 0 }, { "+<application-id>", I18N_NOOP("The id of the menu entry to locate"), 0 }, KCmdLineLastOption }
Definition at line 35 of file kde-menu.cpp.
Definition at line 47 of file kde-menu.cpp.