ark
extractiondialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef EXTRACTIONDIALOG_H
00022 #define EXTRACTIONDIALOG_H
00023
00024 #include "kerfuffle_export.h"
00025
00026 #include <KDirSelectDialog>
00027
00028 #include <KDialog>
00029
00030 namespace Kerfuffle
00031 {
00032 class KERFUFFLE_EXPORT ExtractionDialog: public KDirSelectDialog
00033 {
00034 Q_OBJECT
00035 public:
00036 ExtractionDialog( QWidget *parent = 0 );
00037 ~ExtractionDialog();
00038
00039 void setShowSelectedFiles(bool);
00040 void setSingleFolderArchive(bool);
00041 void setPreservePaths(bool);
00042 void batchModeOption();
00043 void setOpenDestinationFolderAfterExtraction(bool);
00044 void setAutoSubfolder(bool value);
00045
00046 bool extractAllFiles();
00047 bool openDestinationAfterExtraction();
00048 bool extractToSubfolder();
00049 bool autoSubfolders();
00050 bool preservePaths();
00051 KUrl destinationDirectory();
00052 QString subfolder() const;
00053
00054 public Q_SLOTS:
00055 void setCurrentUrl(const QString& url);
00056 void setSubfolder(QString subfolder);
00057
00058 private:
00059 class ExtractionDialogUI *m_ui;
00060
00061 };
00062 }
00063
00064 #endif // EXTRACTIONDIALOG_H