kget
btspeedlimits.cpp
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 00003 Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 */ 00010 #include "btspeedlimits.h" 00011 00012 #include <KDebug> 00013 00014 BTSpeedLimits::BTSpeedLimits(BTTransferHandler * handler, QWidget * parent) 00015 : KDialog(parent), 00016 m_handler(handler) 00017 { 00018 connect(this, SIGNAL(accepted()), SLOT(setSpeedLimits())); 00019 } 00020 00021 void BTSpeedLimits::setSpeedLimits() 00022 { 00023 m_handler->setTrafficLimits(dlBox->value(), ulBox->value()); 00024 m_handler->setMaxShareRatio(shareRatioSpin->value()); 00025 }
KDE 4.0 API Reference