Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

QY2FloppyMountDialog.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                          contributed Qt widgets                      |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       QY2FloppyMountDialog.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017   This is a pure Qt widget - it can be used independently of YaST2.
00018 
00019 /-*/
00020 
00021 // -*- c++ -*-
00022 
00023 
00024 #ifndef QY2FloppyMountDialog_h
00025 #define QY2FloppyMountDialog_h
00026 
00027 #include <qdialog.h>
00028 
00029 
00030 class QRadioButton;
00031 class QComboBox;
00032 class QLineEdit;
00033 class QFrame;
00034 
00035 
00040 class QY2FloppyMountDialog : public QDialog
00041 {
00042     Q_OBJECT
00043 
00044 public:
00045 
00070     QY2FloppyMountDialog( QWidget *             parent,
00071                           const QString &       startWith,
00072                           const QString &       filter,
00073                           const QString &       headline,
00074                           const QString &       floppyDevice     = QString::null,
00075                           const QString &       floppyMountPoint = QString::null,
00076                           bool                  startWithFloppy  = false );
00077 
00081     virtual ~QY2FloppyMountDialog();
00082 
00090     QString askForSaveFileName();
00091 
00098     QString askForExistingFile();
00099 
00100 
00101 public slots:
00102 
00110     bool mount();
00111 
00116     void unmount( bool verbose = false );
00117 
00118     
00119 protected slots:
00120 
00125     void browse();
00126 
00130     void enableWidgets();
00131 
00132     
00133 protected:
00134 
00138     QString askForFile( bool wantExistingFile );
00139     
00143     void error( const QString & msg );
00144     
00145 
00146     // Data members
00147 
00148     QRadioButton *      _useHardDisk;
00149     QRadioButton *      _useFloppy;
00150     QFrame *            _floppyParams;
00151     QComboBox *         _floppyDeviceField;
00152     QComboBox *         _floppyMountPointField;
00153     QLineEdit *         _pathField;
00154 
00155     QString             _startWith;
00156     QString             _filter;
00157     QString             _floppyDevice;
00158     QString             _floppyMountPoint;
00159     bool                _floppyMounted;
00160     bool                _wantExistingFile;
00161 };
00162 
00163 
00164 
00165 
00166 #endif // ifndef QY2FloppyMountDialog_h

Generated on Wed Nov 12 06:11:15 2008 for yast2-qt by  doxygen 1.3.9.1