21#include "tdelibs_export.h"
22#include <tdeinstance.h>
28#ifdef __TDE_HAVE_TDEHWLIB
29class TDEHardwareDevices;
30class TDEGlobalNetworkManager;
35class KStaticDeleterList;
84#ifdef __TDE_HAVE_TDEHWLIB
89 static TDEHardwareDevices *hardwareDevices();
95 static TDEGlobalNetworkManager *networkManager();
173 static KStringDict *_stringDict;
177 static KStaticDeleterList *_staticDeleters;
186 static TDEInstance *activeInstance() {
return _activeInstance; }
195#define KMIN(a,b) kMin(a,b)
200#define KMAX(a,b) kMax(a,b)
205#define KABS(a) kAbs(a)
211#define KCLAMP(x,low,high) kClamp(x,low,high)
215inline const T& kMin (
const T& a,
const T& b) {
return a < b ? a : b; }
218inline const T& kMax (
const T& a,
const T& b) {
return b < a ? a : b; }
221inline T kAbs (
const T& a) {
return a < 0 ? -a : a; }
224inline const T& kClamp(
const T& x,
const T& low,
const T& high )
226 if ( x < low )
return low;
227 else if ( high < x )
return high;
237TDECORE_EXPORT
int kasciistricmp(
const char *str1,
const char *str2 );
246TDECORE_EXPORT
char* kasciitolower(
char *str );
255TDECORE_EXPORT
char* kasciitoupper(
char *str );
Charset font and encoder/decoder handling.
Static deleters are used to manage static resources.
Access KDE Configuration entries.
Access to the KDE global objects.
static TDEIconLoader * iconLoader()
Returns an iconloader object.
static TDEConfig * config()
Returns the general config object.
static void unregisterStaticDeleter(KStaticDeleterBase *d)
Unregisters a static deleter.
static TDEStandardDirs * dirs()
Returns the application standard dirs object.
static TDESharedConfig * sharedConfig()
Returns the general config object.
static KCharsets * charsets()
The global charset manager.
static TDEInstance * instance()
Returns the global instance.
static void registerStaticDeleter(KStaticDeleterBase *d)
Registers a static deleter.
static const TQString & staticTQString(const char *str)
Creates a static TQString.
static TDELocale * locale()
Returns the global locale object.
static void setActiveInstance(TDEInstance *d)
The instance currently active (useful in a multi-instance application, such as a KParts application).
static void deleteStaticDeleters()
Calls KStaticDeleterBase::destructObject() on all registered static deleters and unregisters them all...
Access to TDE global objects for use in shared libraries.
TDELocale provides support for country specific stuff like the national language.
TDEConfig variant using shared memory.
Site-independent access to standard TDE directories.