#include <tdeglobal.h>
Static Public Member Functions | |
| static TDEInstance * | instance () |
| static TDEStandardDirs * | dirs () |
| static TDEConfig * | config () |
| static TDESharedConfig * | sharedConfig () |
| static TDEIconLoader * | iconLoader () |
| static TDEHardwareDevices * | hardwareDevices () |
| static TDEGlobalNetworkManager * | networkManager () |
| static TDELocale * | locale () |
| static KCharsets * | charsets () |
| static const TQString & | staticQString (const char *str) |
| static const TQString & | staticQString (const TQString &str) |
| static void | registerStaticDeleter (KStaticDeleterBase *d) |
| static void | unregisterStaticDeleter (KStaticDeleterBase *d) |
| static void | deleteStaticDeleters () |
| static void | setActiveInstance (TDEInstance *d) |
| static TDEInstance * | activeInstance () |
Static Public Attributes | |
| static KStringDict * | _stringDict = 0 |
| static TDEInstance * | _instance = 0 |
| static TDELocale * | _locale = 0 |
| static KCharsets * | _charsets = 0 |
| static KStaticDeleterList * | _staticDeleters = 0 |
| static TDEInstance * | _activeInstance = 0 |
Related Functions | |
(Note that these are not member functions.) | |
| kdbgstream & | endl (kdbgstream &s) |
| kdbgstream & | flush (kdbgstream &s) |
| kdbgstream | kdDebug (int area=0) |
| TQString | kdBacktrace () |
| TQString | kdBacktrace (int levels) |
| kdbgstream | kdWarning (int area=0) |
| kdbgstream | kdError (int area=0) |
| kdbgstream | kdFatal (int area=0) |
| void | kdClearDebugConfig () |
| bool | checkAccess (const TQString &pathname, int mode) |
| #define | KMIN(a, b) kMin(a,b) |
| #define | KMAX(a, b) kMax(a,b) |
| #define | KABS(a) kAbs(a) |
| #define | KCLAMP(x, low, high) kClamp(x,low,high) |
Detailed Description
Access to the KDE global objects.
TDEGlobal provides you with pointers of many central objects that exist only once in the process. It is also responsible for managing instances of KStaticDeleterBase.
- See Also
- KStaticDeleterBase
Definition at line 46 of file tdeglobal.h.
Member Function Documentation
|
static |
The global charset manager.
- Returns
- the global charset manager
Definition at line 120 of file tdeglobal.cpp.
|
static |
Returns the general config object.
- Returns
- the global configuration object.
Definition at line 63 of file tdeglobal.cpp.
|
static |
Calls KStaticDeleterBase::destructObject() on all registered static deleters and unregisters them all.
- See Also
- KStaticDeleterBase
- KStaticDeleter
Definition at line 201 of file tdeglobal.cpp.
|
static |
Returns the application standard dirs object.
- Returns
- the global standard dir object
Definition at line 56 of file tdeglobal.cpp.
|
static |
Returns a TDEHardwareDevices object.
- Returns
- the global hardware devices object
Definition at line 84 of file tdeglobal.cpp.
|
static |
Returns an iconloader object.
- Returns
- the global iconloader object
Definition at line 77 of file tdeglobal.cpp.
|
static |
Returns the global instance.
There is always at least one instance of a component in one application (in most cases the application itself).
- Returns
- the global instance
Definition at line 98 of file tdeglobal.cpp.
|
static |
Returns the global locale object.
- Returns
- the global locale object
Definition at line 104 of file tdeglobal.cpp.
|
static |
Returns a TDEGlobalNetworkManager object.
- Returns
- the global network manager object
Definition at line 91 of file tdeglobal.cpp.
|
static |
Registers a static deleter.
- Parameters
-
d the static deleter to register
- See Also
- KStaticDeleterBase
- KStaticDeleter
Definition at line 185 of file tdeglobal.cpp.
|
static |
The instance currently active (useful in a multi-instance application, such as a KParts application).
Don't use this - it's mainly for TDEAboutDialog and KBugReport.
Definition at line 130 of file tdeglobal.cpp.
|
static |
Returns the general config object.
- Returns
- the global configuration object.
Definition at line 70 of file tdeglobal.cpp.
|
static |
Creates a static TQString.
Create a static QString.
To be used inside functions(!) like:
!!! Do NOT use: !!!
This creates a static object (instead of a static reference) and as you know static objects are EVIL.
- Parameters
-
str the string to create
- Returns
- the static string
To be used inside functions(!) like: static const TQString &myString = TDEGlobal::staticQString("myText");
Definition at line 144 of file tdeglobal.cpp.
|
static |
Creates a static TQString.
Create a static QString.
To be used inside functions(!) like:
!!! Do NOT use: !!!
This creates a static object (instead of a static reference) and as you know static objects are EVIL.
- Parameters
-
str the string to create
- Returns
- the static string
To be used inside functions(!) like: static const TQString &myString = TDEGlobal::staticQString(i18n("My Text"));
Definition at line 162 of file tdeglobal.cpp.
|
static |
Unregisters a static deleter.
- Parameters
-
d the static deleter to unregister
- See Also
- KStaticDeleterBase
- KStaticDeleter
Definition at line 194 of file tdeglobal.cpp.
Friends And Related Function Documentation
|
related |
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
Definition at line 3218 of file tdeapplication.cpp.
|
related |
A typesafe function to determine the absolute value of the argument.
Definition at line 201 of file tdeglobal.h.
|
related |
A typesafe function that returns x if it's between low and high values. low if x is smaller than then low and high if x is bigger than high.
Definition at line 207 of file tdeglobal.h.
|
related |
A typesafe function to find the maximum of the two arguments.
Definition at line 196 of file tdeglobal.h.
|
related |
A typesafe function to find the minimum of the two arguments.
Definition at line 191 of file tdeglobal.h.
The documentation for this class was generated from the following files:
Trinity API Reference