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

KIO

  • 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
32K_PLUGIN_FACTORY(KcmSslFactory, registerPlugin<KcmSsl>();)
33K_EXPORT_PLUGIN(KcmSslFactory("kcm_ssl"))
34
35
36KcmSsl::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
60void KcmSsl::load()
61{
62 m_caCertificatesPage->load();
63}
64
65void KcmSsl::save()
66{
67 m_caCertificatesPage->save();
68}
69
70void KcmSsl::defaults()
71{
72 m_caCertificatesPage->defaults();
73}
74
75// slot
76void KcmSsl::pageChanged(bool isChanged)
77{
78 // HACK
79 emit changed(isChanged);
80}
81
82#include "kcmssl.moc"
cacertificatespage.h
CaCertificatesPage
Definition: cacertificatespage.h:30
CaCertificatesPage::defaults
void defaults()
Definition: cacertificatespage.cpp:188
CaCertificatesPage::load
void load()
Definition: cacertificatespage.cpp:124
CaCertificatesPage::save
void save()
Definition: cacertificatespage.cpp:162
KAboutData
KAboutData::addAuthor
KAboutData & addAuthor(const KLocalizedString &name, const KLocalizedString &task, const QByteArray &emailAddress, const QByteArray &webAddress, const QByteArray &ocsUsername)
KAboutData::License_GPL
License_GPL
KCModule
KCModule::changed
void changed(bool state)
KLocalizedString
K_EXPORT_PLUGIN
#define K_EXPORT_PLUGIN(factory)
KTabWidget
KcmSsl
Definition: kcmssl.h:29
KcmSsl::save
virtual void save()
Definition: kcmssl.cpp:65
KcmSsl::defaults
virtual void defaults()
Definition: kcmssl.cpp:70
KcmSsl::load
virtual void load()
Definition: kcmssl.cpp:60
QWidget
kaboutdata.h
kcmssl.h
ki18n
KLocalizedString ki18n(const char *msg)
i18n
QString i18n(const char *text)
kpluginfactory.h
kpluginloader.h
ktabwidget.h
Help
Help
Apply
Apply
K_PLUGIN_FACTORY
K_PLUGIN_FACTORY(ProxyScoutFactory, registerPlugin< KPAC::ProxyScout >();) namespace KPAC
Definition: proxyscout.cpp:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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