2018-11-14 20:54:37 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* retroshare-gui/src/gui/FileTransfer/DetailsDialog.h *
|
|
|
|
* *
|
|
|
|
* Copyright 2010 by Retroshare Team <retroshare.project@gmail.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 of the *
|
|
|
|
* License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* 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 Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
2010-01-06 00:10:15 +00:00
|
|
|
|
|
|
|
#ifndef _DETAILSDIALOG_H
|
|
|
|
#define _DETAILSDIALOG_H
|
|
|
|
|
2010-05-06 13:01:40 +00:00
|
|
|
#include <stdint.h>
|
2010-01-06 00:10:15 +00:00
|
|
|
#include "ui_DetailsDialog.h"
|
2014-03-17 20:56:06 +00:00
|
|
|
#include <retroshare/rstypes.h>
|
2010-01-06 00:10:15 +00:00
|
|
|
|
2019-02-14 23:47:37 +01:00
|
|
|
struct FileChunksInfo ;
|
2010-01-06 00:10:15 +00:00
|
|
|
|
|
|
|
class DetailsDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
/** Default constructor */
|
2014-11-28 16:33:56 +00:00
|
|
|
DetailsDialog(QWidget *parent = 0);
|
2010-01-06 00:10:15 +00:00
|
|
|
/** Default destructor */
|
2013-02-22 21:42:27 +00:00
|
|
|
~DetailsDialog() {}
|
2010-01-26 14:57:05 +00:00
|
|
|
|
2014-03-17 20:56:06 +00:00
|
|
|
void setFileHash(const RsFileHash &hash) ;
|
2010-01-06 00:10:15 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
/** Overloaded QWidget.show */
|
|
|
|
void show();
|
2013-02-22 21:42:27 +00:00
|
|
|
void copyLink() ;
|
2010-01-06 00:10:15 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_ok_dButton_clicked();
|
|
|
|
void on_cancel_dButton_clicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
class QStandardItemModel *CommentsModel;
|
|
|
|
|
2014-03-17 20:56:06 +00:00
|
|
|
RsFileHash _file_hash ;
|
2010-01-06 00:10:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::DetailsDialog ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|