kdecore Globals

# kdecore Globals |
Annotated List
Files
Globals
Hierarchy
Index

### kaccelmanager_private.h

- typedef QValueList KAccelStringList

### kapplication.h

- typedef unsigned long Atom
- typedef void Display
- bool checkAccess (const QString& pathname, int mode)

### kckey.h

- typedef struct --

### kcmdlineargs.h

- typedef QValueList QCStringList

### kcompletion.h

- typedef KSortableValueList KCompletionMatchesList

### kcompletion_private.h

- typedef KCompTreeNodeList KCompTreeChildren
- typedef KSortableValueList KCompletionMatchesList

### kconfigdata.h

- inline bool operator < (const KEntryKey &k1, const KEntryKey &k2)
- typedef QMap KEntryMap
- typedef QMap::Iterator KEntryMapIterator
- typedef QMap::ConstIterator KEntryMapConstIterator

### kde_dmalloc.h

- void * operator new (size_t size, const char *file, const int line)
- void * operator new[] (size_t size, const char *file, const int line)

### kdebug.h

- typedef kdbgstream & (*KDBGFUNC) (kdbgstream &)
- typedef kndbgstream & (*KNDBGFUNC) (kndbgstream &)
- inline kdbgstream & endl ( kdbgstream &s)
- inline kdbgstream & flush ( kdbgstream &s)
- kdbgstream & perror ( kdbgstream &s)
- inline kndbgstream & endl ( kndbgstream & s)
- inline kndbgstream & flush ( kndbgstream & s)
- inline kndbgstream & perror ( kndbgstream & s)
- kdbgstream kdDebug (int area = 0)
- kdbgstream kdDebug (bool cond, int area = 0)
- QString kdBacktrace ()
- QString kdBacktrace (int levels)
- inline kndbgstream kndDebug (int = 0)
- inline kndbgstream kndDebug (bool , int = 0)
- inline QString kndBacktrace ()
- inline QString kndBacktrace (int)
- kdbgstream kdWarning (int area = 0)
- kdbgstream kdWarning (bool cond, int area = 0)
- kdbgstream kdError (int area = 0)
- kdbgstream kdError (bool cond, int area = 0)
- kdbgstream kdFatal (int area = 0)
- kdbgstream kdFatal (bool cond, int area = 0)

### kdebugclasses.h

- inline kdbgstream operator<< ( kdbgstream str, const QPoint & p )
- inline kdbgstream operator<< ( kdbgstream str, const QSize & s )
- inline kdbgstream operator<< ( kdbgstream str, const QRect & r )
- inline kdbgstream operator<< ( kdbgstream str, const QRegion & reg )
- inline kdbgstream operator<< ( kdbgstream str, const KURL & u )
- inline kdbgstream operator<< ( kdbgstream str, const QStringList & l )
- inline kdbgstream operator<< ( kdbgstream str, const QColor &c )
- inline kdbgstream operator<< ( kdbgstream str, const QBrush &b )
- inline kndbgstream operator<< ( kndbgstream str, const QPoint & )
- inline kndbgstream operator<< ( kndbgstream str, const QSize & )
- inline kndbgstream operator<< ( kndbgstream str, const QRect & )
- inline kndbgstream operator<< ( kndbgstream str, const QRegion & )
- inline kndbgstream operator<< ( kndbgstream str, const KURL & )
- inline kndbgstream operator<< ( kndbgstream str, const QStringList & )
- inline kndbgstream operator<< ( kndbgstream str, const QColor & )
- inline kndbgstream operator<< ( kndbgstream str, const QBrush & )

### kglobal.h

- template inline const T& kMin (const T& a, const T& b)
- template inline const T& kMax (const T& a, const T& b)
- template inline T kAbs (const T& a)

### kglobalaccel_x11.h

- typedef QMap CodeModMap

### kiconloader.h

- QPixmap DesktopIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance())
- QPixmap DesktopIcon (const QString& name, KInstance *instance)
- QIconSet DesktopIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance())
- QPixmap BarIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance())
- QPixmap BarIcon (const QString& name, KInstance *instance)
- QIconSet BarIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance())
- QPixmap SmallIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance())
- QPixmap SmallIcon (const QString& name, KInstance *instance)
- QIconSet SmallIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance())
- QPixmap MainBarIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance())
- QPixmap MainBarIcon (const QString& name, KInstance *instance)
- QIconSet MainBarIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance())
- QPixmap UserIcon (const QString& name, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance())
- QPixmap UserIcon (const QString& name, KInstance *instance)
- QIconSet UserIconSet (const QString& name, KInstance *instance=KGlobal::instance())
- int IconSize (KIcon::Group group, KInstance *instance=KGlobal::instance())

### kicontheme.h

- inline KIcon::Group& operator++ (KIcon::Group& group)
- inline KIcon::Group operator++ (KIcon::Group& group,int)

### kkeynative.h

- typedef union _XEvent XEvent

### klocale.h

- QString i18n (const char *text)
- QString i18n (const char *index, const char *text)
- QString i18n (const char *singular, const char *plural, unsigned long n)
- inline QString tr2i18n (const char* message, const char* =0)

### krootprop.h

- typedef unsigned long Atom

### ksock.h

- typedef sockaddr_in ksockaddr_in

### ksockaddr.h

- typedef unsigned ksocklen_t
- extern const KInetSocketAddress addressLoopback

### kstandarddirs.h

- QString locate ( const char *type, const QString& filename, const KInstance* instance = KGlobal::instance() )
- QString locateLocal ( const char *type, const QString& filename, const KInstance* instance = KGlobal::instance() )

### ksycocafactory.h

- typedef QDict KSycocaEntryDict

### ksycocatype.h

- enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3, KST_KFolderType = 4, KST_KDEDesktopMimeType = 5, KST_KExecMimeType = 6, KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9, KST_KCustom = 1000 }
- enum KSycocaFactoryId { KST_KServiceFactory = 1, KST_KServiceTypeFactory = 2, KST_KServiceGroupFactory = 3, KST_KImageIO = 4, KST_KProtocolInfoFactory = 5, KST_CTimeInfo = 100 }

### kurl.h

- bool urlcmp ( const QString& _url1, const QString& _url2 )
- bool urlcmp ( const QString& _url1, const QString& _url2, bool _ignore_trailing, bool _ignore_ref )
- QDataStream & operator<< (QDataStream & s, const KURL & a)
- QDataStream & operator>> (QDataStream & s, KURL & a)

### netsupp.h

- extern int kde_getaddrinfo (const char *name, const char *service, const struct addrinfo* hint, struct kde_addrinfo** result)
- extern void kde_freeaddrinfo (struct kde_addrinfo *p)

## Global member Documentation

typedef QValueList<KAccelString> KAccelStringList | ### KAccelStringList

`#include <kaccelmanager_private.h>`

typedef unsigned long Atom | ### Atom

`#include <kapplication.h>`

typedef void Display | ### Display

`#include <kapplication.h>`

bool checkAccess (const QString& pathname, int mode) | ### checkAccess

`#include <kapplication.h>`

Check, if a file may be accessed in a given mode. This is a wrapper around the access() system call. checkAccess() calls access() with the given parameters. If this is OK, checkAccess() returns true. If not, and W_OK is part of mode, it is checked if there is write access to the directory. If yes, checkAccess() returns true. In all other cases checkAccess() returns false.

Other than access() this function EXPLICITLY ignores non-existant files if checking for write access.

Parameters:

pathname | The full path of the file you want to test
mode | The access mode, as in the access() system call.

Returns: Whether the access is allowed, true = Access allowed

typedef struct -- | ### --

`#include <kckey.h>`

typedef QValueList<QCString> QCStringList | ### QCStringList

`#include <kcmdlineargs.h>`

typedef KSortableValueList<QString> KCompletionMatchesList | ### KCompletionMatchesList

`#include <kcompletion.h>`

typedef KCompTreeNodeList KCompTreeChildren | ### KCompTreeChildren

`#include <kcompletion_private.h>`

typedef KSortableValueList<QString> KCompletionMatchesList | ### KCompletionMatchesList

`#include <kcompletion_private.h>`

inline bool operator < (const KEntryKey &k1, const KEntryKey &k2) | ### operator <

`#include <kconfigdata.h>`

compares two KEntryKeys (needed for QMap).

typedef QMap<KEntryKey, KEntry> KEntryMap | ### KEntryMap

`#include <kconfigdata.h>`

type specifying a map of entries (key,value pairs). The keys are actually a key in a particular config file group together with the group name.

typedef QMap<KEntryKey, KEntry>::Iterator KEntryMapIterator | ### KEntryMapIterator

`#include <kconfigdata.h>`

type for iterating over keys in a KEntryMap in sorted order.

typedef QMap<KEntryKey, KEntry>::ConstIterator KEntryMapConstIterator | ### KEntryMapConstIterator

`#include <kconfigdata.h>`

type for iterating over keys in a KEntryMap in sorted order. It is const, thus you cannot change the entries in the iterator, only examine them.

void * operator new (size_t size, const char *file, const int line) | ### operator new

`#include <kde_dmalloc.h>`

void * operator new[] (size_t size, const char *file, const int line) | ### operator new[]

`#include <kde_dmalloc.h>`

typedef kdbgstream & (*KDBGFUNC) (kdbgstream &) | ### (*KDBGFUNC)

`#include <kdebug.h>`

typedef kndbgstream & (*KNDBGFUNC) (kndbgstream &) | ### (*KNDBGFUNC)

`#include <kdebug.h>`

inline kdbgstream & endl ( kdbgstream &s) | ### endl

`#include <kdebug.h>`

Prints an "\n".

Parameters:

s | the debug stream to write to

Returns: the debug stream (`s`)

inline kdbgstream & flush ( kdbgstream &s) | ### flush

`#include <kdebug.h>`

Flushes the stream.

Parameters:

s | the debug stream to write to

Returns: the debug stream (`s`)

kdbgstream & perror ( kdbgstream &s) | ### perror

`#include <kdebug.h>`

inline kndbgstream & endl ( kndbgstream & s) | ### endl

`#include <kdebug.h>`

Does nothing.

Parameters:

a | stream

Returns: the given `s`

inline kndbgstream & flush ( kndbgstream & s) | ### flush

`#include <kdebug.h>`

Does nothing.

Parameters:

a | stream

Returns: the given `s`

inline kndbgstream & perror ( kndbgstream & s) | ### perror

`#include <kdebug.h>`

kdbgstream kdDebug (int area = 0) | ### kdDebug

`#include <kdebug.h>`

Returns a debug stream. You can use it to print debug information.

Parameters:

area | an id to identify the output, 0 for default

See also: kndDebug()

kdbgstream kdDebug (bool cond, int area = 0) | ### kdDebug

`#include <kdebug.h>`

QString kdBacktrace () | ### kdBacktrace

`#include <kdebug.h>`

Returns a backtrace.

Returns: a backtrace

QString kdBacktrace (int levels) | ### kdBacktrace

`#include <kdebug.h>`

Returns a backtrace.

Parameters:

levels | the number of levels of the backtrace

Returns: a backtrace

inline kndbgstream kndDebug (int = 0) | ### kndDebug

`#include <kdebug.h>`

Returns a dummy debug stream. The stream does not print anything.

Parameters:

area | an id to identify the output, 0 for default

See also: kdDebug()

inline kndbgstream kndDebug (bool , int = 0) | ### kndDebug

`#include <kdebug.h>`

inline QString kndBacktrace () | ### kndBacktrace

`#include <kdebug.h>`

inline QString kndBacktrace (int) | ### kndBacktrace

`#include <kdebug.h>`

kdbgstream kdWarning (int area = 0) | ### kdWarning

`#include <kdebug.h>`

Returns a warning stream. You can use it to print warning information.

Parameters:

area | an id to identify the output, 0 for default

kdbgstream kdWarning (bool cond, int area = 0) | ### kdWarning

`#include <kdebug.h>`

kdbgstream kdError (int area = 0) | ### kdError

`#include <kdebug.h>`

Returns an error stream. You can use it to print error information.

Parameters:

area | an id to identify the output, 0 for default

kdbgstream kdError (bool cond, int area = 0) | ### kdError

`#include <kdebug.h>`

kdbgstream kdFatal (int area = 0) | ### kdFatal

`#include <kdebug.h>`

Returns a fatal error stream. You can use it to print fatal error information.

Parameters:

area | an id to identify the output, 0 for default

kdbgstream kdFatal (bool cond, int area = 0) | ### kdFatal

`#include <kdebug.h>`

inline kdbgstream operator<< ( kdbgstream str, const QPoint & p ) | ### operator<<

`#include <kdebugclasses.h>`

inline kdbgstream operator<< ( kdbgstream str, const QSize & s ) | ### operator<<

`#include <kdebugclasses.h>`

inline kdbgstream operator<< ( kdbgstream str, const QRect & r ) | ### operator<<

`#include <kdebugclasses.h>`

inline kdbgstream operator<< ( kdbgstream str, const QRegion & reg ) | ### operator<<

`#include <kdebugclasses.h>`

inline kdbgstream operator<< ( kdbgstream str, const KURL & u ) | ### operator<<

`#include <kdebugclasses.h>`

inline kdbgstream operator<< ( kdbgstream str, const QStringList & l ) | ### operator<<

`#include <kdebugclasses.h>`

inline kdbgstream operator<< ( kdbgstream str, const QColor &c ) | ### operator<<

`#include <kdebugclasses.h>`

inline kdbgstream operator<< ( kdbgstream str, const QBrush &b ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const QPoint & ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const QSize & ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const QRect & ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const QRegion & ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const KURL & ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const QStringList & ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const QColor & ) | ### operator<<

`#include <kdebugclasses.h>`

inline kndbgstream operator<< ( kndbgstream str, const QBrush & ) | ### operator<<

`#include <kdebugclasses.h>`

template inline const T& kMin (const T& a, const T& b) | ### kMin

`#include <kglobal.h>`

KGlobal A typesafe function to determine the absolute value of the argument.

template inline const T& kMax (const T& a, const T& b) | ### kMax

`#include <kglobal.h>`

template inline T kAbs (const T& a) | ### kAbs

`#include <kglobal.h>`

typedef QMap<CodeMod, KAccelAction*> CodeModMap | ### CodeModMap

`#include <kglobalaccel_x11.h>`

QPixmap DesktopIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance()) | ### DesktopIcon

`#include <kiconloader.h>`

Load a desktop icon.

QPixmap DesktopIcon (const QString& name, KInstance *instance) | ### DesktopIcon

`#include <kiconloader.h>`

Load a desktop icon.

QIconSet DesktopIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance()) | ### DesktopIconSet

`#include <kiconloader.h>`

Load a desktop icon, and apply the necessary effects to get an IconSet.

QPixmap BarIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance()) | ### BarIcon

`#include <kiconloader.h>`

Load a toolbar icon.

QPixmap BarIcon (const QString& name, KInstance *instance) | ### BarIcon

`#include <kiconloader.h>`

Load a toolbar icon.

QIconSet BarIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance()) | ### BarIconSet

`#include <kiconloader.h>`

Load a toolbar icon, and apply the neccesary effects to get an IconSet.

QPixmap SmallIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance()) | ### SmallIcon

`#include <kiconloader.h>`

Load a small icon.

QPixmap SmallIcon (const QString& name, KInstance *instance) | ### SmallIcon

`#include <kiconloader.h>`

Load a small icon.

QIconSet SmallIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance()) | ### SmallIconSet

`#include <kiconloader.h>`

Load a small icon, and apply the neccesary effects to get an IconSet.

QPixmap MainBarIcon (const QString& name, int size=0, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance()) | ### MainBarIcon

`#include <kiconloader.h>`

Load a main toolbar icon.

QPixmap MainBarIcon (const QString& name, KInstance *instance) | ### MainBarIcon

`#include <kiconloader.h>`

Load a main toolbar icon.

QIconSet MainBarIconSet (const QString& name, int size=0, KInstance *instance=KGlobal::instance()) | ### MainBarIconSet

`#include <kiconloader.h>`

Load a main toolbar icon, and apply the effects to get an IconSet.

QPixmap UserIcon (const QString& name, int state=KIcon::DefaultState, KInstance *instance=KGlobal::instance()) | ### UserIcon

`#include <kiconloader.h>`

Load a user icon.

QPixmap UserIcon (const QString& name, KInstance *instance) | ### UserIcon

`#include <kiconloader.h>`

Load a user icon.

QIconSet UserIconSet (const QString& name, KInstance *instance=KGlobal::instance()) | ### UserIconSet

`#include <kiconloader.h>`

Load a user icon, and apply the effects to get an IconSet.

int IconSize (KIcon::Group group, KInstance *instance=KGlobal::instance()) | ### IconSize

`#include <kiconloader.h>`

Returns the current icon size for a specific group.

inline KIcon::Group& operator++ (KIcon::Group& group) | ### operator++

`#include <kicontheme.h>`

The full path of the icon.

inline KIcon::Group operator++ (KIcon::Group& group,int) | ### operator++

`#include <kicontheme.h>`

typedef union _XEvent XEvent | ### XEvent

`#include <kkeynative.h>`

QString i18n (const char *text) | ### i18n

`#include <klocale.h>`

i18n is the function that does everything you need to translate a string. You just wrap around every user visible string a i18n call to get a QString with the string in the user's preferred language.

The argument must be an UTF-8 encoded string (If you only use characters that are in US-ASCII, you're on the safe side. But for e.g. german umlauts or french accents should be recoded to UTF-8)

QString i18n (const char *index, const char *text) | ### i18n

`#include <klocale.h>`

If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.

See also: translate

QString i18n (const char *singular, const char *plural, unsigned long n) | ### i18n

`#include <klocale.h>`

If you want to handle plural forms, use this form of i18n. The plural has to contain a %n where n fits into.

See also: translate

inline QString tr2i18n (const char* message, const char* =0) | ### tr2i18n

`#include <klocale.h>`

Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method. We use uic -tr tr2i18n to redirect to the right i18n() function

typedef unsigned long Atom | ### Atom

`#include <krootprop.h>`

typedef sockaddr_in ksockaddr_in | ### ksockaddr_in

`#include <ksock.h>`

typedef unsigned ksocklen_t | ### ksocklen_t

`#include <ksockaddr.h>`

extern const KInetSocketAddress addressLoopback | ### addressLoopback

`#include <ksockaddr.h>`

QString locate ( const char *type, const QString& filename, const KInstance* instance = KGlobal::instance() ) | ### locate

`#include <kstandarddirs.h>`

\addtogroup locates Locate Functions @{ On The Usage Of 'locate' and 'locateLocal'

Typical KDE applications use resource files in one out of three ways:

1) A resource file is read but is never written. A system default is supplied but the user can override this default in his local .kde directory:

\code // Code example myFile = locate("appdata", "groups.lst"); myData = myReadGroups(myFile); // myFile may be null \endcode

2) A resource file is read and written. If the user has no local version of the file the system default is used. The resource file is always written to the users local .kde directory.

\code // Code example myFile = locate("appdata", "groups.lst") myData = myReadGroups(myFile); ... doSomething(myData); ... myFile = locateLocal("appdata", "groups.lst"); myWriteGroups(myFile, myData); \endcode

3) A resource file is read and written. No system default is used if the user has no local version of the file. The resource file is always written to the users local .kde directory.

\code // Code example myFile = locateLocal("appdata", "groups.lst"); myData = myReadGroups(myFile); ... doSomething(myData); ... myFile = locateLocal("appdata", "groups.lst"); myWriteGroups(myFile, myData); \endcode

QString locateLocal ( const char *type, const QString& filename, const KInstance* instance = KGlobal::instance() ) | ### locateLocal

`#include <kstandarddirs.h>`

typedef QDict<KSycocaEntry::Ptr> KSycocaEntryDict | ### KSycocaEntryDict

`#include <ksycocafactory.h>`

enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3, KST_KFolderType = 4, KST_KDEDesktopMimeType = 5, KST_KExecMimeType = 6, KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9, KST_KCustom = 1000 } | ### KSycocaType

`#include <ksycocatype.h>`

A KSycocaType is a code (out of the KSycocaType enum) assigned to each class type derived from KSycocaEntry . To use it, call the macro K_SYCOCATYPE( your_typecode, parent_class ) at the top of your class definition.

enum KSycocaFactoryId { KST_KServiceFactory = 1, KST_KServiceTypeFactory = 2, KST_KServiceGroupFactory = 3, KST_KImageIO = 4, KST_KProtocolInfoFactory = 5, KST_CTimeInfo = 100 } | ### KSycocaFactoryId

`#include <ksycocatype.h>`

A KSycocaFactoryId is a code (out of the KSycocaFactoryId enum) assigned to each class type derived from KSycocaFactory. To use it, call the macro K_SYCOCAFACTORY( your_factory_id ) at the top of your class definition.

bool urlcmp ( const QString& _url1, const QString& _url2 ) | ### urlcmp

`#include <kurl.h>`

Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else.

bool urlcmp ( const QString& _url1, const QString& _url2, bool _ignore_trailing, bool _ignore_ref ) | ### urlcmp

`#include <kurl.h>`

Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else.

Parameters:

_ignore_trailing | Described in KURL::cmp
_ignore_ref | If true, disables comparison of HTML-style references.

QDataStream & operator<< (QDataStream & s, const KURL & a) | ### operator<<

`#include <kurl.h>`

QDataStream & operator>> (QDataStream & s, KURL & a) | ### operator>>

`#include <kurl.h>`

extern int kde_getaddrinfo (const char *name, const char *service, const struct addrinfo* hint, struct kde_addrinfo** result) | ### kde_getaddrinfo

`#include <netsupp.h>`

extern void kde_freeaddrinfo (struct kde_addrinfo *p) | ### kde_freeaddrinfo

`#include <netsupp.h>`

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.