mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
- Display console messages on Terminal
- Program seems to be working
This commit is contained in:
parent
1923a51c59
commit
8e39eef7aa
3 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,7 @@ class HeadlessLoader: QObject {
|
|||
// TODO: Listen on socket for parameters
|
||||
// Instanciate Bittorrent Object
|
||||
BTSession = new Bittorrent();
|
||||
connect(BTSession, SIGNAL(newConsoleMessage(QString)), this, SLOT(displayConsoleMessage(QString)));
|
||||
// Resume unfinished torrents
|
||||
BTSession->startUpTorrents();
|
||||
// TODO: Process command line parameter
|
||||
|
@ -64,6 +65,10 @@ class HeadlessLoader: QObject {
|
|||
void exit() {
|
||||
qApp->quit();
|
||||
}
|
||||
|
||||
void displayConsoleMessage(QString msg) {
|
||||
std::cout << msg.toLocal8Bit().data() << std::endl;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue