mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 04:41:51 +03:00
65 lines
1.6 KiB
C++
65 lines
1.6 KiB
C++
/*
|
|
* 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();
|
|
void copyToClipboard();
|
|
|
|
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
|