kdecore Globals

# kdecore Globals |
Annotated List
Files
Globals
Hierarchy
Index
Main

## kaccel.h

- typedef KKeyEntryMap

## kapp.h

- typedef Atom
- bool checkAccess (const QString& pathname, int mode)

## kckey.h

- typedef KKeys

## kcmdlineargs.h

- typedef QCStringList

## kcompletion_private.h

- typedef KCompTreeChildren

## kconfigdata.h

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

## kdatastream.h

- inline QDataStream & operator << (QDataStream & str, bool b)
- inline QDataStream & operator >> (QDataStream & str, bool & b)

## 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

- void kDebugFatal ( const char* fmt, ... )
- void kDebugFatal ( unsigned short area, const char* fmt, ... )
- 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)
- inline kndbgstream kdDebug (int = 0)
- inline kndbgstream kdDebug (bool , int = 0)
- 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)

## kglobalaccel.h

- uint keyToXMod ( int keyCode )
- uint keyToXSym ( int keyCode )

## 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 (int group, KInstance *instance=KGlobal::instance())

## klocale.h

- QString i18n (const char *text)
- QString i18n (const char *index, const char *text)

## krootprop.h

- typedef Atom

## ksock.h

- typedef ksockaddr_in
- typedef ksockaddr_in

## kstddirs.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() )

## 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)

typedef QMap<QString, KKeyEntry> KKeyEntryMap

`#include <kaccel.h>`

Accelerator information, similar to an action.

It is used internally by KAccel.

bool checkAccess (const QString& pathname, int mode)

`#include <kapp.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 EXPLICITELY 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 KKeys

`#include <kckey.h>`

Charset font and encoder/decoder handling.

This is needed, because Qt's font matching algorithm gives the font family a higher priority than the charset. For many applications this is not acceptable, since it can totally obscure the output, in languages which use non iso-8859-1 charsets.

typedef QValueList<KCompTreeNode *> KCompTreeChildren

`#include <kcompletion_private.h>`

An abstract base class for adding a completion feature into widgets.

This is a convienence class that provides the basic functions needed to add text completion support into widgets. All that is required is an implementation for the pure virtual function setCompletionText. Refer to KLineEdit or KComboBox to see how easily such support can be added using this as a base class.

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

`#include <kconfigdata.h>`

compares two KEntryKeys (needed for QMap).

typedef QMap<KEntryKey, KEntry> 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

`#include <kconfigdata.h>`

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

typedef QMap<KEntryKey, KEntry>::ConstIterator 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.

inline QDataStream & operator << (QDataStream & str, bool b)

`#include <kdatastream.h>`

This class handles segmentation-faults. By default it displays a message-box saying the application crashed. This default can be overridden by setting a custom crash handler with setCrashHandler(). If a function is specified with setEmergencySaveFunction() it will be called by the default crash handler, giving the application a chance to save its data.

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

`#include <kde_dmalloc.h>`

These operators are used in conjunction with the dmalloc memory debugging library.

uint keyToXMod ( int keyCode )

`#include <kglobalaccel.h>`

Returns the X key modifier for the key code keyCode.

uint keyToXSym ( int keyCode )

`#include <kglobalaccel.h>`

Returns the X key sym for the key code keyCode.

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

`#include <kiconloader.h>`

Load a desktop icon.

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

`#include <kiconloader.h>`

Load a desktop icon.

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

`#include <kiconloader.h>`

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

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

`#include <kiconloader.h>`

Load a toolbar icon.

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

`#include <kiconloader.h>`

Load a toolbar icon.

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

`#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())

`#include <kiconloader.h>`

Load a small icon.

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

`#include <kiconloader.h>`

Load a small icon.

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

`#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())

`#include <kiconloader.h>`

Load a main toolbar icon.

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

`#include <kiconloader.h>`

Load a main toolbar icon.

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

`#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())

`#include <kiconloader.h>`

Load a user icon.

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

`#include <kiconloader.h>`

Load a user icon.

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

`#include <kiconloader.h>`

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

int IconSize (int group, KInstance *instance=KGlobal::instance())

`#include <kiconloader.h>`

Returns the current icon size for a specific group.

QString i18n (const char *text)

`#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 prefered language.

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

`#include <klocale.h>`

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

typedef unsigned long Atom

`#include <krootprop.h>`

The KDate class contains functions related to the parsing of dates.

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

`#include <kstddirs.h>`

This function is just for convience. It simply calls instance->dirs()->findResource(type, filename).

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

`#include <kstddirs.h>`

This function is much like locate. However it returns a filename suitable for writing to. No check is made if the specified filename actually exists. Missing directories are created. If filename is only a directory, without a specific file, filename must have a trailing slash.

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

`#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 )

`#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.