• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kresources

kcmkresources.cpp

00001 /*
00002     This file is part of libkresources.
00003 
00004     Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 #include "kcmkresources.h"
00022 
00023 #include <QtGui/QLayout>
00024 
00025 #include <kaboutdata.h>
00026 #include <kpluginfactory.h>
00027 #include <kpluginloader.h>
00028 #include <klocale.h>
00029 
00030 #include "configpage.h"
00031 
00032 K_PLUGIN_FACTORY( ResourcesFactory, registerPlugin<KCMKResources>(); )
00033 K_EXPORT_PLUGIN( ResourcesFactory( "kcmkresources" ) )
00034 
00035 KCMKResources::KCMKResources( QWidget *parent, const QVariantList &l )
00036   : KCModule( ResourcesFactory::componentData(), parent, QVariantList() )
00037 {
00038   Q_UNUSED( l );
00039   KGlobal::locale()->insertCatalog( "libkresources" );
00040   QVBoxLayout *layout = new QVBoxLayout( this );
00041   mConfigPage = new KRES::ConfigPage( this );
00042   layout->addWidget( mConfigPage );
00043   connect( mConfigPage, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) );
00044   setButtons( Help | Apply );
00045   KAboutData *about =
00046    new KAboutData( I18N_NOOP( "kcmkresources" ), 0,
00047                    ki18n( "KDE Resources configuration module" ),
00048                    0, KLocalizedString(), KAboutData::License_GPL,
00049                    ki18n( "(c) 2003 Tobias Koenig" ) );
00050 
00051   about->addAuthor( ki18n( "Tobias Koenig" ), KLocalizedString(), "tokoe@kde.org" );
00052   setAboutData( about );
00053 }
00054 
00055 void KCMKResources::load()
00056 {
00057   mConfigPage->load();
00058 }
00059 
00060 void KCMKResources::save()
00061 {
00062   mConfigPage->save();
00063 }
00064 
00065 void KCMKResources::defaults()
00066 {
00067   mConfigPage->defaults();
00068 }
00069 
00070 #include "kcmkresources.moc"

kresources

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
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