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 showComponent() {} 00066 virtual void hideComponent() {} 00067 00072 void showKPilotComponent( bool toShow ); 00073 00074 00089 virtual bool preHotSync(QString &s) ; 00090 00094 virtual void postHotSync() { } ; 00095 00096 protected: 00110 int findSelectedCategory(QComboBox *, 00111 CategoryAppInfo *, 00112 bool AllIsUnfiled=false); 00113 00124 void populateCategories(QComboBox *, 00125 CategoryAppInfo *info=0); 00126 00127 const QString& dbPath() const { return fDBPath; } ; 00128 void markDBDirty(const QString db); 00129 00130 public slots: 00131 void slotShowComponent(); 00132 00133 signals: 00134 void showComponent(PilotComponent *); 00135 00136 private: 00137 QString fDBPath; 00138 protected: 00139 bool shown; 00140 } ; 00141 00142 #endif
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:57:49 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003