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

KIO

  • sources
  • kde-4.12
  • kdelibs
  • kio
  • kssl
  • kcm
kcmssl.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2010 Andreas Hartmetz <ahartmetz@gmail.com>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #include "kcmssl.h"
21 #include "cacertificatespage.h"
22 
23 #include <kaboutdata.h>
24 #include <kdeversion.h>
25 #include <ktabwidget.h>
26 
27 #include <QVBoxLayout>
28 #include <kpluginfactory.h>
29 #include <kpluginloader.h>
30 
31 
32 K_PLUGIN_FACTORY(KcmSslFactory, registerPlugin<KcmSsl>();)
33 K_EXPORT_PLUGIN(KcmSslFactory("kcm_ssl"))
34 
35 
36 KcmSsl::KcmSsl(QWidget *parent, const QVariantList &args)
37  : KCModule(KcmSslFactory::componentData(), parent, args)
38 {
39  KAboutData *about = new KAboutData(
40  "kcm_ssl", 0, ki18n("SSL Configuration Module"),
41  KDE_VERSION_STRING, KLocalizedString(), KAboutData::License_GPL,
42  ki18n("Copyright 2010 Andreas Hartmetz"));
43  about->addAuthor(ki18n("Andreas Hartmetz"), KLocalizedString(), "ahartmetz@gmail.com");
44  setAboutData(about);
45  setButtons(Apply | Default | Help);
46 
47  m_tabs = new KTabWidget(this);
48  // tell the tab widget to resize itself to fill all space, basically...
49  setLayout(new QVBoxLayout);
50  layout()->setMargin(0);
51  layout()->setSpacing(0);
52  layout()->addWidget(m_tabs);
53 
54  m_caCertificatesPage = new CaCertificatesPage(m_tabs);
55  m_tabs->addTab(m_caCertificatesPage, i18n("SSL Signers"));
56 
57  connect(m_caCertificatesPage, SIGNAL(changed(bool)), SLOT(pageChanged(bool)));
58 }
59 
60 void KcmSsl::load()
61 {
62  m_caCertificatesPage->load();
63 }
64 
65 void KcmSsl::save()
66 {
67  m_caCertificatesPage->save();
68 }
69 
70 void KcmSsl::defaults()
71 {
72  m_caCertificatesPage->defaults();
73 }
74 
75 // slot
76 void KcmSsl::pageChanged(bool isChanged)
77 {
78  // HACK
79  emit changed(isChanged);
80 }
81 
82 #include "kcmssl.moc"
i18n
QString i18n(const char *text)
Apply
ktabwidget.h
KAboutData::addAuthor
KAboutData & addAuthor(const KLocalizedString &name, const KLocalizedString &task=KLocalizedString(), const QByteArray &emailAddress=QByteArray(), const QByteArray &webAddress=QByteArray())
CaCertificatesPage
Definition: cacertificatespage.h:29
ki18n
KLocalizedString ki18n(const char *msg)
K_PLUGIN_FACTORY
K_PLUGIN_FACTORY(ProxyScoutFactory, registerPlugin< KPAC::ProxyScout >();) namespace KPAC
Definition: proxyscout.cpp:44
QWidget
KDE_VERSION_STRING
#define KDE_VERSION_STRING
CaCertificatesPage::save
void save()
Definition: cacertificatespage.cpp:162
kpluginloader.h
cacertificatespage.h
KAboutData
CaCertificatesPage::load
void load()
Definition: cacertificatespage.cpp:124
kcmssl.h
CaCertificatesPage::defaults
void defaults()
Definition: cacertificatespage.cpp:188
kpluginfactory.h
Help
KAboutData::License_GPL
KcmSsl::load
virtual void load()
Definition: kcmssl.cpp:60
KcmSsl::save
virtual void save()
Definition: kcmssl.cpp:65
kaboutdata.h
KcmSsl::defaults
virtual void defaults()
Definition: kcmssl.cpp:70
KcmSsl
Definition: kcmssl.h:28
KLocalizedString
KCModule
K_EXPORT_PLUGIN
#define K_EXPORT_PLUGIN(factory)
KCModule::changed
void changed()
KTabWidget
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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