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

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • kernel
Macros | Typedefs | Functions | Variables
kglobal.cpp File Reference
#include "kglobal.h"
#include "kglobal_p.h"
#include <QThread>
#include <QAtomicInt>
#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/QDebug>
#include <QtCore/QTextCodec>
#include "kcmdlineargs.h"
#include <unistd.h>
Include dependency graph for kglobal.cpp:

Go to the source code of this file.

Macros

#define MYASSERT(x)
 
#define PRIVATE_DATA   KGlobalPrivate *d = globalData
 
#define QT_NO_TRANSLATION
 

Typedefs

typedef QSet< QString > KStringDict
 

Functions

 K_GLOBAL_STATIC_WITH_ARGS (KComponentData, fakeComponent,(KGlobalPrivate::initFakeComponent())) KStandardDirs *KGlobal
 

Variables

static QBasicAtomicInt s_allowQuit = Q_BASIC_ATOMIC_INITIALIZER(false)
 
static QBasicAtomicInt s_refCount = Q_BASIC_ATOMIC_INITIALIZER(0)
 
mode_t s_umsk
 

Macro Definition 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 58 of file kglobal.cpp.

#define PRIVATE_DATA   KGlobalPrivate *d = globalData
#define QT_NO_TRANSLATION

Definition at line 51 of file kglobal.cpp.

Typedef Documentation

typedef QSet<QString> KStringDict

Definition at line 70 of file kglobal.cpp.

Function Documentation

K_GLOBAL_STATIC_WITH_ARGS ( KComponentData  ,
fakeComponent  ,
(KGlobalPrivate::initFakeComponent())   
)

Definition at line 129 of file kglobal.cpp.

Variable Documentation

QBasicAtomicInt s_allowQuit = Q_BASIC_ATOMIC_INITIALIZER(false)
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 318 of file kglobal.cpp.

QBasicAtomicInt s_refCount = Q_BASIC_ATOMIC_INITIALIZER(0)
static

Definition at line 319 of file kglobal.cpp.

mode_t s_umsk

Definition at line 71 of file kglobal.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal