• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kleopatra

dnorderconfigpage.cpp

Go to the documentation of this file.
00001 /* -*- mode: c++; c-basic-offset:4 -*-
00002     conf/dnorderconfigpage.cpp
00003 
00004     This file is part of Kleopatra, the KDE keymanager
00005     Copyright (c) 2004,2008 Klarälvdalens Datakonsult AB
00006 
00007     Kleopatra is free software; you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation; either version 2 of the License, or
00010     (at your option) any later version.
00011 
00012     Kleopatra is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program; if not, write to the Free Software
00019     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020 
00021     In addition, as a special exception, the copyright holders give
00022     permission to link the code of this program with any edition of
00023     the Qt library by Trolltech AS, Norway (or with modified versions
00024     of Qt that use the same license as Qt), and distribute linked
00025     combinations including the two.  You must obey the GNU General
00026     Public License in all respects for all of the code used other than
00027     Qt.  If you modify this file, you may extend this exception to
00028     your version of the file, but you are not obligated to do so.  If
00029     you do not wish to do so, delete this exception statement from
00030     your version.
00031 */
00032 
00033 #include <config-kleopatra.h>
00034 
00035 #include "dnorderconfigpage.h"
00036 
00037 #include "libkleo/ui/dnattributeorderconfigwidget.h"
00038 #include "libkleo/kleo/dn.h"
00039 
00040 #include <kcomponentdata.h>
00041 
00042 #include <QLayout>
00043 #include <QVBoxLayout>
00044 
00045 DNOrderConfigPage::DNOrderConfigPage( const KComponentData &instance, QWidget *parent, const QVariantList &args )
00046   : KCModule( instance, parent, args )
00047 {
00048   QVBoxLayout * vlay = new QVBoxLayout( this );
00049   mWidget = Kleo::DNAttributeMapper::instance()->configWidget( this );
00050   mWidget->setObjectName( "mWidget" );
00051   vlay->addWidget( mWidget );
00052 
00053   connect( mWidget, SIGNAL(changed()), SLOT(changed()) );
00054 
00055 #ifndef HAVE_UNBROKEN_KCMULTIDIALOG
00056   load();
00057 #endif
00058 }
00059 
00060 
00061 void DNOrderConfigPage::load() {
00062   mWidget->load();
00063 }
00064 
00065 void DNOrderConfigPage::save() {
00066   mWidget->save();
00067 }
00068 
00069 void DNOrderConfigPage::defaults() {
00070   mWidget->defaults();
00071 }
00072 
00073 extern "C" KDE_EXPORT KCModule * create_kleopatra_config_dnorder( QWidget * parent, const QVariantList & args ) {
00074     DNOrderConfigPage *page = new DNOrderConfigPage( KComponentData( "kleopatra" ), parent, args );
00075     page->setObjectName( "kleopatra_config_dnorder" );
00076     return page;
00077 }
00078 
00079 #include "dnorderconfigpage.moc"

kleopatra

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal