• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • transfer-plugins
  • mmsthreads
dlgmms.cpp
Go to the documentation of this file.
1 /*
2  This file is part of the KDE project
3  Copyright (C) 2011 Ernesto Rodriguez Ortiz <eortiz@uci.cu>
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18 */
19 
20 #include "dlgmms.h"
21 #include "mmssettings.h"
22 #include "kget_export.h"
23 
24 KGET_EXPORT_PLUGIN_CONFIG(DlgMmsSettings)
25 
26 DlgMmsSettings::DlgMmsSettings(QWidget *parent, const QVariantList &args)
27  : KCModule(KGetFactory::componentData(), parent, args)
28 {
29  ui.setupUi(this);
30  connect(ui.numThreadSpinBox, SIGNAL(valueChanged(int)), SLOT(changed()));
31 }
32 
33 void DlgMmsSettings::load()
34 {
35  ui.numThreadSpinBox->setValue(MmsSettings::threads());
36 }
37 
38 void DlgMmsSettings::save()
39 {
40  qDebug() << "Saving Multithreaded config";
41  MmsSettings::setThreads(ui.numThreadSpinBox->value());
42  MmsSettings::self()->writeConfig();
43 }
44 
45 #include "dlgmms.moc"
46 
MmsSettings::setThreads
static void setThreads(int v)
Set Threads.
Definition: mmssettings.h:20
DlgMmsSettings::save
virtual void save()
Definition: dlgmms.cpp:38
QWidget
DlgMmsSettings::load
virtual void load()
Definition: dlgmms.cpp:33
mmssettings.h
kget_export.h
MmsSettings::threads
static int threads()
Get Threads.
Definition: mmssettings.h:30
MmsSettings::self
static MmsSettings * self()
Definition: mmssettings.cpp:17
DlgMmsSettings
Definition: dlgmms.h:26
dlgmms.h
KCModule
KGET_EXPORT_PLUGIN_CONFIG
#define KGET_EXPORT_PLUGIN_CONFIG(classname)
Definition: kget_export.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal