• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

kresources

configpage.h
Go to the documentation of this file.
00001 /*
00002     This file is part of libkresources.
00003 
00004     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
00005     Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
00006     Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022 */
00033 #ifndef KRESOURCES_CONFIGPAGE_H
00034 #define KRESOURCES_CONFIGPAGE_H
00035 
00036 #include <QtCore/QStringList>
00037 #include <QtGui/QWidget>
00038 #include <QtCore/QList>
00039 
00040 #include <ksharedptr.h>
00041 
00042 #include "manager.h"
00043 
00044 class QTreeWidget;
00045 class QTreeWidgetItem;
00046 
00047 namespace KRES {
00048 
00049 class KRESOURCES_EXPORT ResourcePageInfo : public KShared
00050 {
00051   public:
00052     ResourcePageInfo();
00053     ~ResourcePageInfo();
00054     Manager<Resource> *mManager;
00055     KConfig *mConfig;
00056 
00057   private:
00058     class Private;
00059     Private *const d;
00060 };
00061 
00062 class Resource;
00063 class ConfigViewItem;
00064 
00071 class KRESOURCES_EXPORT ConfigPage : public QWidget, public ManagerObserver<Resource>
00072 {
00073   Q_OBJECT
00074 
00075   public:
00076     ConfigPage( QWidget *parent = 0 );
00077     virtual ~ConfigPage();
00078 
00079     void load();
00080     void save();
00081     virtual void defaults();
00082 
00083   public Q_SLOTS:
00084     void slotFamilyChanged( int pos );
00085     void slotAdd();
00086     void slotRemove();
00087     void slotEdit();
00088     void slotStandard();
00089     void slotSelectionChanged();
00090 
00091   public:
00092     // From ManagerObserver<Resource>
00093     virtual void resourceAdded( Resource *resource );
00094     virtual void resourceModified( Resource *resource );
00095     virtual void resourceDeleted( Resource *resource );
00096 
00097   protected:
00098     ConfigViewItem *findItem( Resource *resource );
00099 
00100   protected Q_SLOTS:
00101     void slotItemClicked( QTreeWidgetItem *item );
00102 
00103   Q_SIGNALS:
00104     void changed( bool );
00105 
00106   private:
00107     class Private;
00108     Private *const d;
00109 };
00110 
00111 }
00112 
00113 #endif

kresources

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
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