kontact Library API Documentation

kcmkontactknt.h

00001 /*                                                                      
00002     This file is part of Kontact.                                  
00003     Copyright (c) 2003 Tobias Koenig <tokoe@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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 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 #ifndef KCMKONTACTKNT_H
00025 #define KCMKONTACTKNT_H
00026 
00027 #include <kcmodule.h>
00028 
00029 class QListViewItem;
00030 class QSpinxBox;
00031 
00032 class KAboutData;
00033 class KListView;
00034 class KPushButton;
00035 
00036 class NewsItem;
00037 
00038 class KCMKontactKNT : public KCModule
00039 {
00040   Q_OBJECT
00041 
00042   public:
00043     KCMKontactKNT( QWidget *parent = 0, const char *name = 0 );
00044 
00045     virtual void load();
00046     virtual void save();
00047     virtual void defaults();
00048     virtual const KAboutData* aboutData() const;
00049 
00050   private slots:
00051     void addNews();
00052     void removeNews();
00053     void newFeed();
00054     void deleteFeed();
00055 
00056     void selectedChanged( QListViewItem *item );
00057     void allCurrentChanged( QListViewItem *item );
00058 
00059     void modified();
00060 
00061   private:
00062     void initGUI();
00063     void loadNews();
00064     void loadCustomNews();
00065     void storeCustomNews();
00066     void scanNews();
00067 
00068     bool dcopActive() const;
00069 
00070     KListView *mAllNews;
00071     KListView *mSelectedNews;
00072     QListViewItem *mCustomItem;
00073 
00074     KPushButton *mAddButton;
00075     KPushButton *mRemoveButton;
00076     KPushButton *mNewButton;
00077     KPushButton *mDeleteButton;
00078     QSpinBox *mUpdateInterval;
00079     QSpinBox *mArticleCount;
00080 
00081     QMap<QString, QString> mFeedMap;
00082     QValueList<NewsItem*> mCustomFeeds;
00083 };
00084 
00085 #endif
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:21:31 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003