2013-01-15 23:41:52 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Klaas Freitag <freitag@owncloud.com>
|
|
|
|
*
|
|
|
|
* 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 <QDialog>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QTimer>
|
|
|
|
|
|
|
|
#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();
|
2013-01-17 13:34:30 +04:00
|
|
|
void copyToClipboard();
|
2013-01-15 23:41:52 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
void setSyncFileItems( const SyncFileItemVector& list );
|
|
|
|
void formatHeaderItem( QTreeWidgetItem *, const QList<QTreeWidgetItem*>& );
|
|
|
|
|
|
|
|
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
|