-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract and delete workers - intro screen minimize / maximize - parti…
…al download / extract cleanup ops
- Loading branch information
1 parent
a619e74
commit 50a9f5c
Showing
17 changed files
with
556 additions
and
877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
#ifndef OSXHIDETITLEBAR_H | ||
#define OSXHIDETITLEBAR_H | ||
|
||
#include "iocoingui.h" | ||
|
||
class IocoinGUI; | ||
|
||
class OSXHideTitleBar | ||
{ | ||
public: | ||
static void HideTitleBar(long winid); | ||
static void min(IocoinGUI*); | ||
|
||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "deleteworker.h" | ||
#include "JlCompress.h" | ||
#include<QFile> | ||
#include<QDir> | ||
#include <boost/filesystem.hpp> | ||
|
||
void DeleteWorker::init(QFileInfo& f1) | ||
{ | ||
QString path = f1.filePath(); | ||
this->qfi1_= path + "/blk0001.dat"; | ||
this->qfi2_= path + "/txleveldb"; | ||
std::cout << "file " << (this->qfi1_).toStdString() << std::endl; | ||
std::cout << "dir " << (this->qfi2_).toStdString() << std::endl; | ||
} | ||
void DeleteWorker::removeFiles() | ||
{ | ||
QFile::remove(this->qfi1_); | ||
|
||
//QDir txdbDir((this->qfi2_).toStdString().c_str()); | ||
//txdbDir.removeRecursively(); | ||
|
||
boost::filesystem::remove_all((this->qfi2_).toStdString().c_str()); | ||
|
||
emit completed(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef DELETEWORKER_H | ||
#define DELETEWORKER_H | ||
|
||
#include<QObject> | ||
#include<QThread> | ||
#include<QString> | ||
#include<QFileInfo> | ||
#include<QDir> | ||
#include<QFile> | ||
#include<iostream> | ||
|
||
class DeleteWorker : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
DeleteWorker() = default; | ||
~DeleteWorker() = default; | ||
|
||
void init(QFileInfo&); | ||
public slots: | ||
void removeFiles(); | ||
signals: | ||
void completed(); | ||
|
||
private: | ||
QString qfi1_; | ||
QString qfi2_; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.