|
|
@ -25,6 +25,8 @@
|
|
|
|
#include "kcharsets.h"
|
|
|
|
#include "kcharsets.h"
|
|
|
|
#include "kiconloader.h"
|
|
|
|
#include "kiconloader.h"
|
|
|
|
#ifdef __TDE_HAVE_TDEHWLIB
|
|
|
|
#ifdef __TDE_HAVE_TDEHWLIB
|
|
|
|
|
|
|
|
#include "klibloader.h"
|
|
|
|
|
|
|
|
#include "tdeversion.h"
|
|
|
|
#include "tdehardwaredevices.h"
|
|
|
|
#include "tdehardwaredevices.h"
|
|
|
|
#include "tdenetworkconnections.h"
|
|
|
|
#include "tdenetworkconnections.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -285,22 +287,42 @@ TDEIconLoader *TDEInstance::iconLoader() const
|
|
|
|
#ifdef __TDE_HAVE_TDEHWLIB
|
|
|
|
#ifdef __TDE_HAVE_TDEHWLIB
|
|
|
|
TDEHardwareDevices *TDEInstance::hardwareDevices() const
|
|
|
|
TDEHardwareDevices *TDEInstance::hardwareDevices() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DEBUG_CHECK_ALIVE
|
|
|
|
DEBUG_CHECK_ALIVE
|
|
|
|
if( _hardwaredevices == 0 ) {
|
|
|
|
if (_hardwaredevices == 0)
|
|
|
|
_hardwaredevices = new TDEHardwareDevices( );
|
|
|
|
{
|
|
|
|
}
|
|
|
|
TQString libName = TQString("libtdehw.so.%1").arg(TDE_VERSION_MAJOR);
|
|
|
|
|
|
|
|
KLibrary *lib = KLibLoader::self()->library(libName.latin1());
|
|
|
|
|
|
|
|
if (lib)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TDEHardwareDevices* (*create)() = (TDEHardwareDevices* (*)())lib->symbol("create_tdeHardwareDevices");
|
|
|
|
|
|
|
|
if (create)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_hardwaredevices = create();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return _hardwaredevices;
|
|
|
|
return _hardwaredevices;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TDEGlobalNetworkManager *TDEInstance::networkManager() const
|
|
|
|
TDEGlobalNetworkManager *TDEInstance::networkManager() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DEBUG_CHECK_ALIVE
|
|
|
|
DEBUG_CHECK_ALIVE
|
|
|
|
if( _networkmanager == 0 ) {
|
|
|
|
if (_networkmanager == 0)
|
|
|
|
_networkmanager = new TDEGlobalNetworkManager( );
|
|
|
|
{
|
|
|
|
}
|
|
|
|
TQString libName = TQString("libtdehw.so.%1").arg(TDE_VERSION_MAJOR);
|
|
|
|
|
|
|
|
KLibrary *lib = KLibLoader::self()->library(libName.latin1());
|
|
|
|
|
|
|
|
if (lib)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TDEGlobalNetworkManager* (*create)() = (TDEGlobalNetworkManager* (*)())lib->symbol("create_tdeGlobalNetworkManager");
|
|
|
|
|
|
|
|
if (create)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_networkmanager = create();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return _networkmanager;
|
|
|
|
return _networkmanager;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|