kpilot Library API Documentation

pilotComponent.h

00001 #ifndef _KPILOT_PILOTCOMPONENT_H
00002 #define _KPILOT_PILOTCOMPONENT_H
00003 /* pilotComponent.h                     KPilot
00004 **
00005 ** Copyright (C) 1998-2001 by Dan Pilone
00006 **
00007 ** See the .cc file for an explanation of what this file is for.
00008 */
00009 
00010 /*
00011 ** This program is free software; you can redistribute it and/or modify
00012 ** it under the terms of the GNU General Public License as published by
00013 ** the Free Software Foundation; either version 2 of the License, or
00014 ** (at your option) any later version.
00015 **
00016 ** This program is distributed in the hope that it will be useful,
00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 ** GNU General Public License for more details.
00020 **
00021 ** You should have received a copy of the GNU General Public License
00022 ** along with this program in a file called COPYING; if not, write to
00023 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
00024 ** MA 02111-1307, USA.
00025 */
00026 
00027 /*
00028 ** Bug reports and questions can be sent to kde-pim@kde.org
00029 */
00030 
00034 #ifndef QWIDGET_H
00035 #include <qwidget.h>
00036 #endif
00037 
00038 #ifndef QSTRING_H
00039 #include <qstring.h>
00040 #endif
00041 
00042 struct CategoryAppInfo;
00043 class QComboBox;
00044 
00045 class PilotComponent : public QWidget
00046 {
00047 Q_OBJECT
00048 
00049 public:
00050         PilotComponent(QWidget* parent, 
00051                 const char *id,
00052                 const QString& dbPath);
00053 
00058         virtual void initialize() = 0;
00059 
00074         virtual bool preHotSync(QString &s) ;
00075 
00079         virtual void postHotSync() { } ;
00080 
00081 protected:
00095         int findSelectedCategory(QComboBox *,
00096                 CategoryAppInfo *,
00097                 bool AllIsUnfiled=false);
00098 
00109         void populateCategories(QComboBox *,
00110                 CategoryAppInfo *info=0);
00111 
00112         const QString& dbPath() const { return fDBPath; } ;
00113 
00114 public slots:
00115         void slotShowComponent();
00116 
00117 signals:
00118         void showComponent(PilotComponent *);
00119 
00120 private:
00121         QString fDBPath;
00122 } ;
00123 
00124 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:14 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001