KDECore
kglobal.cpp File Reference
#include "kglobal.h"
#include "kglobal_p.h"
#include <config.h>
#include <QtCore/QList>
#include <QtCore/QSet>
#include <kaboutdata.h>
#include <kconfig.h>
#include <klocale.h>
#include <kcharsets.h>
#include <kstandarddirs.h>
#include <kcomponentdata.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QTextCodec>
#include "kcmdlineargs.h"
#include <unistd.h>

Go to the source code of this file.
Defines | |
#define | MYASSERT(x) |
#define | PRIVATE_DATA KGlobalPrivate *d = globalData |
Typedefs | |
typedef QSet< QString > | KStringDict |
Functions | |
KComponentData | KGlobal::activeComponent () |
QString | KGlobal::caption () |
KCharsets * | KGlobal::charsets () |
KSharedConfig::Ptr | KGlobal::config () |
void | KGlobal::deref () |
KStandardDirs * | KGlobal::dirs () |
bool | KGlobal::hasLocale () |
bool | KGlobal::hasMainComponent () |
KLocale * | KGlobal::locale () |
const KComponentData & | KGlobal::mainComponent () |
void | KGlobal::newComponentData (const KComponentData &c) |
void | KGlobal::ref () |
void | KGlobal::setActiveComponent (const KComponentData &d) |
void | KGlobal::setAllowQuit (bool allowQuit) |
void | KGlobal::setLocale (KLocale *locale, CopyCatalogs copy) |
const QString & | KGlobal::staticQString (const QString &str) |
const QString & | KGlobal::staticQString (const char *str) |
mode_t | KGlobal::umask () |
Variables | |
static bool | s_allowQuit = false |
static int | s_refCount = 0 |
mode_t | s_umsk |
Define Documentation
#define MYASSERT | ( | x | ) |
Value:
if (!x) \ qFatal("Fatal error: you need to have a KComponentData object before\n" \ "you do anything that requires it! Examples of this are config\n" \ "objects, standard directories or translations.");
Definition at line 52 of file kglobal.cpp.
#define PRIVATE_DATA KGlobalPrivate *d = globalData |
Definition at line 99 of file kglobal.cpp.
Typedef Documentation
typedef QSet<QString> KStringDict |
Definition at line 63 of file kglobal.cpp.
Variable Documentation
bool s_allowQuit = false [static] |
Definition at line 260 of file kglobal.cpp.
int s_refCount = 0 [static] |
This counter indicates when to quit the application.
It starts at 0, is incremented by KMainWindow, systray icons, running jobs, etc. and decremented again when those things are destroyed. This mechanism allows dialogs and jobs to outlive the last window closed e.g. a file copy for a file manager, or 'compacting folders on exit' for a mail client, the job progress widget with "keep open" checked, etc.
Definition at line 259 of file kglobal.cpp.
mode_t s_umsk |
Definition at line 64 of file kglobal.cpp.