forked from AdunanzA/Tsunami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitemdetails.h.bak
45 lines (33 loc) · 843 Bytes
/
itemdetails.h.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef ITEMDETAILS_H
#define ITEMDETAILS_H
#include <QDialog>
#include <QTimer>
#include <libtorrent/torrent_handle.hpp>
#include <libtorrent/torrent_status.hpp>
#include <libtorrent/torrent_info.hpp>
#include <libtorrent/bitfield.hpp>
namespace Ui {
class itemDetails;
}
class itemDetails : public QDialog
{
Q_OBJECT
public:
explicit itemDetails(QWidget *parent = 0);
~itemDetails();
void setHash(const std::string &hash);
void update();
private:
Ui::itemDetails *ui;
std::string p_hash;
QSharedPointer<lt::torrent_handle> th;
QTimer *p_refreshTimer;
private slots:
void timerTick();
// QWidget interface
void on_checkBox_toggled(bool checked);
protected:
void closeEvent(QCloseEvent *event) override;
void showEvent(QShowEvent *event) override;
};
#endif // ITEMDETAILS_H