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

akregator

akregator_config_advanced.cpp

Go to the documentation of this file.
00001 /*
00002     This file is part of Akregator.
00003     Copyright (c) 2008 Frank Osterfeld <osterfeld@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018 
00019     As a special exception, permission is given to link this program
00020     with any edition of Qt, and distribute the resulting executable,
00021     without including the source code for Qt in the source distribution.
00022 */
00023 
00024 #include "akregator_config_advanced.h"
00025 #include "akregatorconfig.h"
00026 
00027 #include "settings_advanced.h"
00028 
00029 #include <KAboutData>
00030 #include <KConfigDialogManager>
00031 #include <KGenericFactory>
00032 #include <KLocalizedString>
00033 #include <kdemacros.h>
00034 
00035 #include <QVBoxLayout>
00036 
00037 using namespace Akregator;
00038 
00039 K_PLUGIN_FACTORY(KCMAkregatorAdvancedConfigFactory, registerPlugin<KCMAkregatorAdvancedConfig>();)
00040 K_EXPORT_PLUGIN(KCMAkregatorAdvancedConfigFactory( "kcmakradvancedconfig" ))
00041 
00042 KCMAkregatorAdvancedConfig::KCMAkregatorAdvancedConfig( QWidget* parent, const QVariantList& args )
00043     : KCModule( KCMAkregatorAdvancedConfigFactory::componentData(), parent, args ), m_widget( new SettingsAdvanced )
00044 {  
00045     QVBoxLayout* layout = new QVBoxLayout( this );
00046     layout->addWidget( m_widget );
00047    
00048     KAboutData *about = new KAboutData( I18N_NOOP( "kcmakradvancedconfig" ), 0,
00049                                         ki18n( "Advanced Feed Reader Settings" ),
00050                                         0, KLocalizedString(), KAboutData::License_GPL,
00051                                         ki18n( "(c), 2004 - 2008 Frank Osterfeld" ) );
00052 
00053     about->addAuthor( ki18n( "Frank Osterfeld" ), KLocalizedString(), "osterfeld@kde.org" );
00054     setAboutData( about );
00055 
00056     addConfig( Settings::self(), m_widget );
00057 }
00058 
00059 
00060 void KCMAkregatorAdvancedConfig::load()
00061 {
00062     KCModule::load();
00063     m_widget->selectFactory(Settings::archiveBackend());
00064 }
00065 
00066 void KCMAkregatorAdvancedConfig::save()
00067 {
00068     Settings::setArchiveBackend( m_widget->selectedFactory() );
00069     KCModule::save();
00070 }
00071 
00072 #include "akregator_config_advanced.moc"

akregator

Skip menu "akregator"
  • 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
  • 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