kpilot Library API Documentation

fileInstallWidget.h

00001 #ifndef _KPILOT_FILEINSTALLWIDGET_H
00002 #define _KPILOT_FILEINSTALLWIDGET_H
00003 /* fileInstallWidget.h          KPilot
00004 **
00005 ** Copyright (C) 1998-2001 by Dan Pilone
00006 **
00007 ** This file defines the file install widget, which is the thing
00008 ** that accepts file drags for later installation into the Pilot.
00009 **
00010 ** This file also defines the log window widget, which logs
00011 ** sync-messages during a HotSync.
00012 */
00013 
00014 /*
00015 ** This program is free software; you can redistribute it and/or modify
00016 ** it under the terms of the GNU General Public License as published by
00017 ** the Free Software Foundation; either version 2 of the License, or
00018 ** (at your option) any later version.
00019 **
00020 ** This program is distributed in the hope that it will be useful,
00021 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00023 ** GNU General Public License for more details.
00024 **
00025 ** You should have received a copy of the GNU General Public License
00026 ** along with this program in a file called COPYING; if not, write to
00027 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
00028 ** MA 02111-1307, USA.
00029 */
00030 
00031 /*
00032 ** Bug reports and questions can be sent to kde-pim@kde.org
00033 */
00034 
00035 #ifndef _KPILOT_PILOTCOMPONENT_H
00036 #include "pilotComponent.h"
00037 #endif
00038 
00039 class QMultiLineEdit;
00040 class QPushButton;
00041 
00042 class KPilotInstaller;
00043 class FileInstaller;
00044 
00045 class FileInstallWidget : public PilotComponent
00046 {
00047 Q_OBJECT
00048 
00049 public:
00050     FileInstallWidget(QWidget* parent, const QString& dbPath);
00051     virtual ~FileInstallWidget();
00052 
00053     // Pilot Component Methods:
00054     void showComponent();
00055     bool preHotSync(QString &);
00056     void postHotSync();
00057 
00058 
00059 signals:
00060     void fileInstallWidgetDone();
00061 
00062 protected:
00063     void setSaveFileList(bool saveIt) { fSaveFileList = saveIt; }
00064     bool getSaveFileList() { return fSaveFileList; }
00065 
00066     /* virtual */ void dragEnterEvent(QDragEnterEvent* event);
00067     /* virtual */ void dropEvent(QDropEvent* drop);
00068 
00069     KPilotInstaller* getPilotInstallerApp() { return fKPilotInstaller; }
00070 
00071 private:
00072     QListBox*   fListBox;
00073     bool        fSaveFileList;
00074 
00075     KPilotInstaller* fKPilotInstaller;
00076     FileInstaller *fInstaller;
00077     QPushButton *clearButton,*addButton;
00078 
00079 protected slots:
00080     void slotClearButton();
00081     void slotAddFile();
00082 
00083 public slots:
00084     void refreshFileInstallList();
00085 };
00086 
00087 
00088 
00089 #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 Sat May 1 11:36:47 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003