summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-07-13 20:00:38 +0200
committergregory guy <gregory-tde@laposte.net>2021-07-15 17:30:06 +0200
commita9e1d50df4f4ce5ad1dbc74b49fc1c0f7b073a15 (patch)
tree91ee3d4291eb52ee7f1d820187046a864bc2576f /src
parent3813914451b56d52a7e1e2d3ea76e6fefcdf438b (diff)
downloadknemo-a9e1d50df4f4ce5ad1dbc74b49fc1c0f7b073a15.tar.gz
knemo-a9e1d50df4f4ce5ad1dbc74b49fc1c0f7b073a15.zip
Change default backend from Nettools to Sys.
Some indentation cosmetic. Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'src')
-rw-r--r--src/kcm/configdialog.cpp4
-rw-r--r--src/knemod/backends/daemonregistry.h2
-rw-r--r--src/knemod/backends/kcmregistry.h16
-rw-r--r--src/knemod/knemodaemon.cpp6
4 files changed, 11 insertions, 17 deletions
diff --git a/src/kcm/configdialog.cpp b/src/kcm/configdialog.cpp
index 3118ce6..589c65e 100644
--- a/src/kcm/configdialog.cpp
+++ b/src/kcm/configdialog.cpp
@@ -269,7 +269,7 @@ void ConfigDialog::load()
// select the backend from the config file
bool foundBackend = false;
- TQString backend = config->readEntry( "Backend", "Nettools" );
+ TQString backend = config->readEntry( "Backend", "Sys" );
int i;
for ( i = 0; KCMRegistry[i].name != TQString(); i++ )
{
@@ -282,7 +282,7 @@ void ConfigDialog::load()
if ( !foundBackend )
{
- i = 0; // use the first backend (Nettools)
+ i = 0; // use the first backend (Sys)
}
mDlg->comboBoxBackends->setCurrentItem( i );
mDlg->textLabelBackendDescription->setText( KCMRegistry[i].description );
diff --git a/src/knemod/backends/daemonregistry.h b/src/knemod/backends/daemonregistry.h
index 1c0674b..26af5ae 100644
--- a/src/knemod/backends/daemonregistry.h
+++ b/src/knemod/backends/daemonregistry.h
@@ -46,8 +46,8 @@ struct DaemonRegistryEntry
DaemonRegistryEntry DaemonRegistry[] =
{
- { "Nettools", NetToolsBackend::createInstance },
{ "Sys", SysBackend::createInstance },
+ { "Nettools", NetToolsBackend::createInstance },
{ TQString(), 0 }
};
diff --git a/src/knemod/backends/kcmregistry.h b/src/knemod/backends/kcmregistry.h
index 0dde2e8..28ffec4 100644
--- a/src/knemod/backends/kcmregistry.h
+++ b/src/knemod/backends/kcmregistry.h
@@ -42,19 +42,13 @@ struct KCMRegistryEntry
KCMRegistryEntry KCMRegistry[] =
{
- { "Nettools",
- i18n( "Uses the tools from the nettool packge like ifconfig, " \
- "iwconfig and route to read the necessary information " \
- "from the ouput of these commands.\n" \
- "This backend works rather stable but causes a relativly " \
- "high CPU load." ) },
{ "Sys",
i18n( "Uses the sys filesystem available in 2.6 kernels and " \
- "direct system calls to the Linux kernel.\n" \
- "This backend is rather new, so expect minor problems. " \
- "As an advantage this backend should reduce the CPU load " \
- "and should not access the harddisc while gathering " \
- "information." ) },
+ "direct system calls to the Linux kernel." ) },
+ { "Nettools",
+ i18n( "Uses the tools from the net-tools package like ifconfig, " \
+ "iwconfig and route to read the necessary information " \
+ "from the ouput of these commands.") },
{ TQString(), TQString() }
};
diff --git a/src/knemod/knemodaemon.cpp b/src/knemod/knemodaemon.cpp
index 4666476..0ad399e 100644
--- a/src/knemod/knemodaemon.cpp
+++ b/src/knemod/knemodaemon.cpp
@@ -58,7 +58,7 @@ KNemoDaemon::KNemoDaemon( const TQCString& name )
// select the backend from the config file
TDEConfig* config = new TDEConfig( "knemorc", true );
config->setGroup( "General" );
- mBackendName = config->readEntry( "Backend", "Nettools" );
+ mBackendName = config->readEntry( "Backend", "Sys" );
delete config;
bool foundBackend = false;
@@ -74,7 +74,7 @@ KNemoDaemon::KNemoDaemon( const TQCString& name )
if ( !foundBackend )
{
- i = 0; // use the first backend (Nettools)
+ i = 0; // use the first backend (Sys)
}
mBackend = ( *DaemonRegistry[i].function )( mInterfaceDict );
@@ -195,7 +195,7 @@ void KNemoDaemon::reparseConfiguration()
mPollTimer->changeInterval( mGeneralData.pollInterval * 1000 );
// select the backend from the config file
- TQString backend = config->readEntry( "Backend", "Nettools" );
+ TQString backend = config->readEntry( "Backend", "Sys" );
if ( mBackendName != backend )
{