DBus-1-TQt  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tqdbuserror.cpp File Reference
#include "tqdbuserror.h"
#include <dbus/dbus.h>
#include <tqmap.h>
+ Include dependency graph for tqdbuserror.cpp:

Go to the source code of this file.

Typedefs

typedef TQMap< TQString,
TQT_DBusError::ErrorType
ErrorNameMap

Functions

static TQString qDBusErrorNameForType (TQT_DBusError::ErrorType type)
static void qDBusErrorSetupNameMapping ()
static TQT_DBusError::ErrorType qDBusErrorTypeForName (const TQString &name)

Variables

static ErrorNameMap errorTypesByName

Typedef Documentation

typedef TQMap<TQString, TQT_DBusError::ErrorType> ErrorNameMap

Definition at line 31 of file tqdbuserror.cpp.

Function Documentation

static TQString qDBusErrorNameForType ( TQT_DBusError::ErrorType  type)
static

Definition at line 34 of file tqdbuserror.cpp.

References TQT_DBusError::AccessDenied, TQT_DBusError::AuthFailed, TQT_DBusError::BadAddress, TQT_DBusError::Disconnected, TQT_DBusError::Failed, TQT_DBusError::FileExists, TQT_DBusError::FileNotFound, TQT_DBusError::InvalidArgs, TQT_DBusError::InvalidError, TQT_DBusError::InvalidSignature, TQT_DBusError::IOError, TQT_DBusError::LimitsExceeded, TQT_DBusError::NameHasNoOwner, TQT_DBusError::NoMemory, TQT_DBusError::NoNetwork, TQT_DBusError::NoReply, TQT_DBusError::NoServer, TQT_DBusError::NotSupported, TQT_DBusError::ServiceUnknown, TQT_DBusError::TimedOut, TQT_DBusError::Timeout, TQT_DBusError::UnknownMethod, and TQT_DBusError::UserDefined.

{
switch (type)
{
Q_ASSERT(false);
return TQString();
return TQString::fromUtf8(DBUS_ERROR_FAILED);
return TQString::fromUtf8(DBUS_ERROR_NO_MEMORY);
return TQString::fromUtf8(DBUS_ERROR_SERVICE_UNKNOWN);
return TQString::fromUtf8(DBUS_ERROR_NAME_HAS_NO_OWNER);
return TQString::fromUtf8(DBUS_ERROR_NO_REPLY);
return TQString::fromUtf8(DBUS_ERROR_IO_ERROR);
return TQString::fromUtf8(DBUS_ERROR_BAD_ADDRESS);
return TQString::fromUtf8(DBUS_ERROR_NOT_SUPPORTED);
return TQString::fromUtf8(DBUS_ERROR_LIMITS_EXCEEDED);
return TQString::fromUtf8(DBUS_ERROR_ACCESS_DENIED);
return TQString::fromUtf8(DBUS_ERROR_AUTH_FAILED);
return TQString::fromUtf8(DBUS_ERROR_NO_SERVER);
return TQString::fromUtf8(DBUS_ERROR_TIMEOUT);
return TQString::fromUtf8(DBUS_ERROR_NO_NETWORK);
return TQString::fromUtf8(DBUS_ERROR_DISCONNECTED);
return TQString::fromUtf8(DBUS_ERROR_INVALID_ARGS);
return TQString::fromUtf8(DBUS_ERROR_FILE_NOT_FOUND);
return TQString::fromUtf8(DBUS_ERROR_FILE_EXISTS);
return TQString::fromUtf8(DBUS_ERROR_UNKNOWN_METHOD);
return TQString::fromUtf8(DBUS_ERROR_TIMED_OUT);
return TQString::fromUtf8(DBUS_ERROR_INVALID_SIGNATURE);
Q_ASSERT(false);
return TQString();
}
Q_ASSERT(false);
return TQString();
}

+ Here is the caller graph for this function:

static void qDBusErrorSetupNameMapping ( )
static

Definition at line 94 of file tqdbuserror.cpp.

References errorTypesByName, TQT_DBusError::InvalidError, qDBusErrorNameForType(), TQT_DBusData::type(), and TQT_DBusError::UserDefined.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static TQT_DBusError::ErrorType qDBusErrorTypeForName ( const TQString &  name)
static

Definition at line 103 of file tqdbuserror.cpp.

References errorTypesByName, TQT_DBusError::InvalidError, qDBusErrorSetupNameMapping(), and TQT_DBusError::UserDefined.

{
if (name.isEmpty()) return TQT_DBusError::InvalidError;
if (errorTypesByName.isEmpty())
ErrorNameMap::const_iterator it = errorTypesByName.find(name);
if (it != errorTypesByName.end()) return it.data();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

ErrorNameMap errorTypesByName
static

Definition at line 32 of file tqdbuserror.cpp.