summaryrefslogtreecommitdiffstats
path: root/plugins/stats/StatsPluginPrefs.cc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-02-04 12:07:16 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-02-04 12:07:16 +0900
commit286e9fe2ad29b5a1b6520efaed7ed2a54198ae17 (patch)
treeb8a82a7b82e7e2d51d3e349f9f041173b8f67a02 /plugins/stats/StatsPluginPrefs.cc
parent96d3bd400c19e35de3b9ae9d90cf93b339c06d1a (diff)
downloadktorrent-286e9fe2ad29b5a1b6520efaed7ed2a54198ae17.tar.gz
ktorrent-286e9fe2ad29b5a1b6520efaed7ed2a54198ae17.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'plugins/stats/StatsPluginPrefs.cc')
-rw-r--r--plugins/stats/StatsPluginPrefs.cc88
1 files changed, 0 insertions, 88 deletions
diff --git a/plugins/stats/StatsPluginPrefs.cc b/plugins/stats/StatsPluginPrefs.cc
deleted file mode 100644
index e9becd6..0000000
--- a/plugins/stats/StatsPluginPrefs.cc
+++ /dev/null
@@ -1,88 +0,0 @@
-/***************************************************************************
- * Copyright © 2007 by Krzysztof Kundzicz *
- * athantor@gmail.com *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
-
-#include "StatsPluginPrefs.h"
-
-namespace kt {
-
-StatsPluginPrefs::StatsPluginPrefs() : PrefPageInterface(i18n("Statistics"), i18n("Statistics options"), TDEGlobal::iconLoader()->loadIcon("ktimemon",TDEIcon::NoGroup)), pmUi(0)
-{
-}
-
-StatsPluginPrefs::~StatsPluginPrefs()
-{
-}
-
-bool StatsPluginPrefs::apply ()
-{
- StatsPluginSettings::setUpdateChartsEveryGuiUpdates(pmUi -> GuiUpdatesSbw -> value());
- StatsPluginSettings::setGatherDataEveryMs(pmUi -> DataIvalSbw -> value());
- StatsPluginSettings::setPeersSpeedDataIval(pmUi -> PeersSpdUpdIvalSbw -> value());
-
- StatsPluginSettings::setPeersSpeed(pmUi -> PeersSpdCbw -> isChecked());
- StatsPluginSettings::setDrawSeedersInSwarms(pmUi -> ConnSdrInSwaCbw -> isChecked());
- StatsPluginSettings::setDrawLeechersInSwarms(pmUi -> ConnLchInSwaCbw -> isChecked());
-
- StatsPluginSettings::setDownloadMeasurements(pmUi -> DownloadMrmtSbw -> value());
- StatsPluginSettings::setPeersSpeedMeasurements(pmUi -> PeersSpdMrmtSbw -> value());
- StatsPluginSettings::setUploadMeasurements(pmUi -> UploadMrmtSbw -> value());
- StatsPluginSettings::setConnectionsMeasurements(pmUi -> ConnsMrmtSbw -> value());
- StatsPluginSettings::setDHTMeasurements(pmUi -> DHTMrmtSbw -> value());
- StatsPluginSettings::setMaxSpdMode(pmUi -> MaxSpdModeCbw -> currentItem());
-
- StatsPluginSettings::writeConfig();
-
- emit Applied();
-
- return true;
-}
-
-void StatsPluginPrefs::createWidget (TQWidget *parent)
-{
- pmUi = new StatsPluginPrefsPage(parent);
-}
-
-void StatsPluginPrefs::updateData ()
-{
- pmUi -> GuiUpdatesSbw -> setValue(StatsPluginSettings::updateChartsEveryGuiUpdates());
- pmUi -> DataIvalSbw -> setValue(StatsPluginSettings::gatherDataEveryMs());
- pmUi -> PeersSpdUpdIvalSbw -> setValue(StatsPluginSettings::peersSpeedDataIval());
-
- pmUi -> PeersSpdCbw -> setChecked(StatsPluginSettings::peersSpeed());
- pmUi -> ConnSdrInSwaCbw -> setChecked(StatsPluginSettings::drawSeedersInSwarms());
- pmUi -> ConnLchInSwaCbw -> setChecked(StatsPluginSettings::drawLeechersInSwarms());
-
- pmUi -> DownloadMrmtSbw -> setValue(StatsPluginSettings::downloadMeasurements());
- pmUi -> PeersSpdMrmtSbw -> setValue(StatsPluginSettings::peersSpeedMeasurements());
- pmUi -> UploadMrmtSbw -> setValue(StatsPluginSettings::uploadMeasurements());
- pmUi -> ConnsMrmtSbw -> setValue(StatsPluginSettings::connectionsMeasurements());
- pmUi -> DHTMrmtSbw -> setValue(StatsPluginSettings::dHTMeasurements());
- pmUi -> MaxSpdModeCbw -> setCurrentItem(StatsPluginSettings::maxSpdMode());
-}
-
-void StatsPluginPrefs::deleteWidget ()
-{
- delete pmUi;
-}
-
-
-} //NS end
-
-#include "StatsPluginPrefs.moc"