X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Farchivewidget.h;h=de4c1f54ba51021452626f89befd36db604e013b;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=e76aa669255c604749797f57666629cb32a62695;hpb=6dba0a505572faa186f55d406e93bf88302f409b;p=kdenlive diff --git a/src/archivewidget.h b/src/archivewidget.h index e76aa669..de4c1f54 100644 --- a/src/archivewidget.h +++ b/src/archivewidget.h @@ -26,11 +26,14 @@ #include "docclipbase.h" #include +#include +#include +#include + #include #include #include -#include -#include + class KJob; class KArchive; @@ -41,22 +44,26 @@ class KArchive; * @author Jean-Baptiste Mardelle */ +#if KDE_IS_VERSION(4,7,0) + class KMessageWidget; +#endif + class ArchiveWidget : public QDialog, public Ui::ArchiveWidget_UI { Q_OBJECT public: - ArchiveWidget(QString projectName, QDomDocument doc, QList list, QStringList luma_list, QWidget * parent = 0); + ArchiveWidget(const QString &projectName, const QDomDocument &doc, const QList &list, const QStringList &luma_list, QWidget * parent = 0); // Constructor for extracting widget - ArchiveWidget(const KUrl &url, QWidget * parent = 0); + explicit ArchiveWidget(const KUrl &url, QWidget * parent = 0); ~ArchiveWidget(); - QString extractedProjectFile(); + QString extractedProjectFile() const; private slots: void slotCheckSpace(); bool slotStartArchiving(bool firstPass = true); - void slotArchivingFinished(KJob *job = NULL); + void slotArchivingFinished(KJob *job = NULL, bool finished = false); void slotArchivingProgress(KJob *, qulonglong); virtual void done ( int r ); bool closeAccepted(); @@ -70,6 +77,8 @@ private slots: void slotGotProgress(KJob*); void openArchiveForExtraction(); void slotDisplayMessage(const QString &icon, const QString &text); + void slotJobResult(bool success, const QString &text); + void slotProxyOnly(int onlyProxy); protected: virtual void closeEvent ( QCloseEvent * e ); @@ -91,9 +100,16 @@ private: QString m_projectName; QTimer *m_progressTimer; KArchive *m_extractArchive; + int m_missingClips; + +#if KDE_IS_VERSION(4,7,0) + KMessageWidget *m_infoMessage; +#endif /** @brief Generate tree widget subitems from a string list of urls. */ - void generateItems(QTreeWidgetItem *parentItem, QStringList items); + void generateItems(QTreeWidgetItem *parentItem, const QStringList &items); + /** @brief Generate tree widget subitems from a map of clip ids / urls. */ + void generateItems(QTreeWidgetItem *parentItem, const QMap &items); /** @brief Replace urls in project file. */ bool processProjectFile();