You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
691 B
34 lines
691 B
#include <QtGui> |
|
//#define BOOST_FILESYSTEM_NARROW_ONLY |
|
#include <libtorrent/torrent_info.hpp> |
|
#include <sys/types.h> |
|
#include <sys/stat.h> |
|
#include <fcntl.h> |
|
#include <unistd.h> |
|
#include <sys/mman.h> |
|
#include <iostream> |
|
|
|
class MainWindow:public QWidget |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
MainWindow(); |
|
private slots: |
|
void quit(); |
|
void openfile(); |
|
void copy(); |
|
void generate(); |
|
private: |
|
void setmagnet(const QString& fname); |
|
QLineEdit *filename; |
|
QPushButton *quitButton; |
|
QLabel *filenamelabel; |
|
QPushButton *openButton; |
|
QLineEdit *magnet; |
|
QLabel* magnetlabel; |
|
QPushButton* genButton; |
|
QPushButton* copyButton; |
|
}; |
|
|
|
int infohash(const char* file, QString& Qinfohash, bool& priv);
|
|
|