• 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
  • conf
pluginselector.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2008 Lukas Appelhans <l.appelhans@gmx.de>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 */
10 #include "pluginselector.h"
11 
12 #include "core/kget.h"
13 
14 #include <KServiceTypeTrader>
15 #include <KService>
16 #include <KLocale>
17 #include <KPluginInfo>
18 #include <KSharedConfig>
19 #include <KDialog>
20 
21 PluginSelector::PluginSelector(KDialog * parent)
22  : KPluginSelector(parent)
23 {
24  KService::List offers = KServiceTypeTrader::self()->query("KGet/Plugin");
25 
26  addPlugins(KPluginInfo::fromServices(offers), KPluginSelector::ReadConfigFile, i18n("Plugins"), "Service", KGlobal::config());
27 
28  load();
29 
30  connect(parent, SIGNAL(accepted()), SLOT(saveState()));
31  connect(parent, SIGNAL(rejected()), SLOT(loadDefaults()));
32 }
33 
34 PluginSelector::~PluginSelector()
35 {
36 }
37 
38 void PluginSelector::saveState()
39 {
40  save();
41  KGet::loadPlugins();
42 }
43 
44 void PluginSelector::loadDefaults()
45 {
46  defaults();
47 }
48 
49 #include "pluginselector.moc"
KGet::loadPlugins
static void loadPlugins()
Definition: kget.cpp:1144
PluginSelector::~PluginSelector
~PluginSelector()
Definition: pluginselector.cpp:34
KDialog
PluginSelector::PluginSelector
PluginSelector(KDialog *parent)
Definition: pluginselector.cpp:21
kget.h
pluginselector.h
KPluginSelector
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