/* * Copyright (C) by Klaas Freitag * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ #ifndef FILEITEMDIALOG_H #define FILEITEMDIALOG_H #include #include #include #include "mirall/syncfileitem.h" #include "ui_fileitemdialog.h" namespace Mirall { class Theme; class SyncResult; class FileItemDialog : public QDialog, public Ui::_fileItemDialog { Q_OBJECT public: explicit FileItemDialog(Theme*, QWidget *parent = 0); void setSyncResult( const SyncResult& ); signals: public slots: void accept(); protected slots: void slotSetFolderMessage(); void copyToClipboard(); private: void setSyncFileItems( const SyncFileItemVector& list ); void formatHeaderItem( QTreeWidgetItem *, const QList& ); QTreeWidgetItem *_newFileItem; QTreeWidgetItem *_syncedFileItem; QTreeWidgetItem *_deletedFileItem; QTreeWidgetItem *_renamedFileItem; QTreeWidgetItem *_errorFileItem; QTreeWidgetItem *_conflictFileItem; QTreeWidgetItem *_ignoredFileItem; Theme *_theme; QString _folderMessage; QDateTime _lastSyncTime; QTimer _timer; }; } #endif // FILEITEMDIALOG_H