knode
knconfigmanager.h
Go to the documentation of this file.00001 /* 00002 KNode, the KDE newsreader 00003 Copyright (c) 1999-2005 the KNode authors. 00004 See file AUTHORS for details 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 You should have received a copy of the GNU General Public License 00011 along with this program; if not, write to the Free Software Foundation, 00012 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US 00013 */ 00014 00015 #ifndef KNCONFIGMANAGER_H 00016 #define KNCONFIGMANAGER_H 00017 00018 #include <kcmultidialog.h> 00019 00020 #include "knconfig.h" 00021 00022 class KNConfigDialog; 00023 00024 00028 class KNConfigManager : QObject { 00029 00030 Q_OBJECT 00031 00032 public: 00033 KNConfigManager( QObject *parent = 0 ); 00034 ~KNConfigManager(); 00035 00036 KNode::Appearance* appearance()const { return a_ppearance; } 00037 KNode::DisplayedHeaders* displayedHeaders()const { return d_isplayedHeaders; } 00038 KNode::Cleanup* cleanup()const { return c_leanup; } 00039 00040 void configure(); 00041 void syncConfig(); 00042 00043 protected: 00044 KNode::Appearance *a_ppearance; 00045 KNode::DisplayedHeaders *d_isplayedHeaders; 00046 KNode::Cleanup *c_leanup; 00047 00048 KNConfigDialog *d_ialog; 00049 00050 protected slots: 00051 void slotDialogDone(); 00052 00053 }; 00054 00055 00057 class KNConfigDialog : public KCMultiDialog 00058 { 00059 Q_OBJECT 00060 public: 00064 KNConfigDialog( QWidget *parent = 0 ); 00065 00066 protected slots: 00068 void slotConfigCommitted(); 00069 00070 }; 00071 00072 #endif //KNCONFIGMANAGER_H
KDE 4.5 API Reference