{"action":"created","comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments/226878418","pull_request_review_id":166801143,"id":226878418,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjg3ODQxOA==","diff_hunk":"@@ -0,0 +1,46 @@\n+/*\n+ * Bittorrent Client using Qt and libtorrent.\n+ * Copyright (C) 2018  Thomas Piccirello <thomas.piccirello@gmail.com>\n+ *\n+ * This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version 2\n+ * of the License, or (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program; if not, write to the Free Software\n+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n+ *\n+ * In addition, as a special exception, the copyright holders give permission to\n+ * link this program with the OpenSSL project's \"OpenSSL\" library (or with\n+ * modified versions of it that use the same license as the \"OpenSSL\" library),\n+ * and distribute the linked executables. You must obey the GNU General Public\n+ * License in all respects for all of the code used other than \"OpenSSL\".  If you\n+ * modify file(s), you may extend this exception to your version of the file(s),\n+ * but you are not obligated to do so. If you do not wish to do so, delete this\n+ * exception statement from your version.\n+ */\n+\n+#pragma once\n+\n+#include <QObject>\n+\n+class FreeDiskSpaceChecker : public QObject\n+{\n+    Q_OBJECT\n+    Q_DISABLE_COPY(FreeDiskSpaceChecker)\n+\n+public:\n+    FreeDiskSpaceChecker() = default;","path":"src/webui/api/freediskspacechecker.h","position":39,"original_position":39,"commit_id":"cee7d5991e7e462f5e34c04360fe3d911e261dd8","original_commit_id":"cee7d5991e7e462f5e34c04360fe3d911e261dd8","user":{"login":"Piccirello","id":8296030,"node_id":"MDQ6VXNlcjgyOTYwMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8296030?v=4","gravatar_id":"","url":"https://api.github.com/users/Piccirello","html_url":"https://github.com/Piccirello","followers_url":"https://api.github.com/users/Piccirello/followers","following_url":"https://api.github.com/users/Piccirello/following{/other_user}","gists_url":"https://api.github.com/users/Piccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/Piccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piccirello/subscriptions","organizations_url":"https://api.github.com/users/Piccirello/orgs","repos_url":"https://api.github.com/users/Piccirello/repos","events_url":"https://api.github.com/users/Piccirello/events{/privacy}","received_events_url":"https://api.github.com/users/Piccirello/received_events","type":"User","site_admin":false},"body":"Without the explicit constructor I get this error\r\n\r\n```\r\nwebui/api/synccontroller.cpp: In constructor ‘SyncController::SyncController(ISessionManager*, QObject*)’:\r\nwebui/api/synccontroller.cpp:323:55: error: no matching function for call to ‘FreeDiskSpaceChecker::FreeDiskSpaceChecker()’\r\n     m_freeDiskSpaceChecker = new FreeDiskSpaceChecker();\r\n```","created_at":"2018-10-21T21:15:50Z","updated_at":"2018-10-21T21:15:50Z","html_url":"https://github.com/qbittorrent/qBittorrent/pull/8217#discussion_r226878418","pull_request_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments/226878418"},"html":{"href":"https://github.com/qbittorrent/qBittorrent/pull/8217#discussion_r226878418"},"pull_request":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217"}},"in_reply_to_id":226600039},"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217","id":161269078,"node_id":"MDExOlB1bGxSZXF1ZXN0MTYxMjY5MDc4","html_url":"https://github.com/qbittorrent/qBittorrent/pull/8217","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/8217.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/8217.patch","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8217","number":8217,"state":"open","locked":false,"title":"Free disk space in WebUI status bar","user":{"login":"Piccirello","id":8296030,"node_id":"MDQ6VXNlcjgyOTYwMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8296030?v=4","gravatar_id":"","url":"https://api.github.com/users/Piccirello","html_url":"https://github.com/Piccirello","followers_url":"https://api.github.com/users/Piccirello/followers","following_url":"https://api.github.com/users/Piccirello/following{/other_user}","gists_url":"https://api.github.com/users/Piccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/Piccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piccirello/subscriptions","organizations_url":"https://api.github.com/users/Piccirello/orgs","repos_url":"https://api.github.com/users/Piccirello/repos","events_url":"https://api.github.com/users/Piccirello/events{/privacy}","received_events_url":"https://api.github.com/users/Piccirello/received_events","type":"User","site_admin":false},"body":"> Puts free space on disk (Default save path) in WebUI's status \r\n\r\nThis is a continuation of #6829 and addresses the need to poll for free disk space on a separate thread. Comments/suggestions on the QThread implementation are welcome.\r\n\r\n<img width=\"376\" alt=\"screen shot 2018-09-22 at 8 21 36 pm\" src=\"https://user-images.githubusercontent.com/8296030/45922858-2ab22780-bea5-11e8-947b-94273eb7161f.png\">\r\n\r\nCloses #9680 ","created_at":"2018-01-05T04:21:34Z","updated_at":"2018-10-21T21:15:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68e3a1d9945e62fe6ae8bfb75fa965c8bd5d64af","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":36746818,"node_id":"MDU6TGFiZWwzNjc0NjgxOA==","url":"https://api.github.com/repos/qbittorrent/qBittorrent/labels/WebUI","name":"WebUI","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217/commits","review_comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217/comments","review_comment_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8217/comments","statuses_url":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/cee7d5991e7e462f5e34c04360fe3d911e261dd8","head":{"label":"Piccirello:webui-statusbar-freespace","ref":"webui-statusbar-freespace","sha":"cee7d5991e7e462f5e34c04360fe3d911e261dd8","user":{"login":"Piccirello","id":8296030,"node_id":"MDQ6VXNlcjgyOTYwMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8296030?v=4","gravatar_id":"","url":"https://api.github.com/users/Piccirello","html_url":"https://github.com/Piccirello","followers_url":"https://api.github.com/users/Piccirello/followers","following_url":"https://api.github.com/users/Piccirello/following{/other_user}","gists_url":"https://api.github.com/users/Piccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/Piccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piccirello/subscriptions","organizations_url":"https://api.github.com/users/Piccirello/orgs","repos_url":"https://api.github.com/users/Piccirello/repos","events_url":"https://api.github.com/users/Piccirello/events{/privacy}","received_events_url":"https://api.github.com/users/Piccirello/received_events","type":"User","site_admin":false},"repo":{"id":91165294,"node_id":"MDEwOlJlcG9zaXRvcnk5MTE2NTI5NA==","name":"qBittorrent","full_name":"Piccirello/qBittorrent","private":false,"owner":{"login":"Piccirello","id":8296030,"node_id":"MDQ6VXNlcjgyOTYwMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8296030?v=4","gravatar_id":"","url":"https://api.github.com/users/Piccirello","html_url":"https://github.com/Piccirello","followers_url":"https://api.github.com/users/Piccirello/followers","following_url":"https://api.github.com/users/Piccirello/following{/other_user}","gists_url":"https://api.github.com/users/Piccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/Piccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piccirello/subscriptions","organizations_url":"https://api.github.com/users/Piccirello/orgs","repos_url":"https://api.github.com/users/Piccirello/repos","events_url":"https://api.github.com/users/Piccirello/events{/privacy}","received_events_url":"https://api.github.com/users/Piccirello/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Piccirello/qBittorrent","description":"qBittorrent BitTorrent client","fork":true,"url":"https://api.github.com/repos/Piccirello/qBittorrent","forks_url":"https://api.github.com/repos/Piccirello/qBittorrent/forks","keys_url":"https://api.github.com/repos/Piccirello/qBittorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Piccirello/qBittorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Piccirello/qBittorrent/teams","hooks_url":"https://api.github.com/repos/Piccirello/qBittorrent/hooks","issue_events_url":"https://api.github.com/repos/Piccirello/qBittorrent/issues/events{/number}","events_url":"https://api.github.com/repos/Piccirello/qBittorrent/events","assignees_url":"https://api.github.com/repos/Piccirello/qBittorrent/assignees{/user}","branches_url":"https://api.github.com/repos/Piccirello/qBittorrent/branches{/branch}","tags_url":"https://api.github.com/repos/Piccirello/qBittorrent/tags","blobs_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Piccirello/qBittorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/Piccirello/qBittorrent/languages","stargazers_url":"https://api.github.com/repos/Piccirello/qBittorrent/stargazers","contributors_url":"https://api.github.com/repos/Piccirello/qBittorrent/contributors","subscribers_url":"https://api.github.com/repos/Piccirello/qBittorrent/subscribers","subscription_url":"https://api.github.com/repos/Piccirello/qBittorrent/subscription","commits_url":"https://api.github.com/repos/Piccirello/qBittorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/Piccirello/qBittorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/Piccirello/qBittorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/Piccirello/qBittorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/Piccirello/qBittorrent/contents/{+path}","compare_url":"https://api.github.com/repos/Piccirello/qBittorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Piccirello/qBittorrent/merges","archive_url":"https://api.github.com/repos/Piccirello/qBittorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Piccirello/qBittorrent/downloads","issues_url":"https://api.github.com/repos/Piccirello/qBittorrent/issues{/number}","pulls_url":"https://api.github.com/repos/Piccirello/qBittorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/Piccirello/qBittorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/Piccirello/qBittorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Piccirello/qBittorrent/labels{/name}","releases_url":"https://api.github.com/repos/Piccirello/qBittorrent/releases{/id}","deployments_url":"https://api.github.com/repos/Piccirello/qBittorrent/deployments","created_at":"2017-05-13T10:03:54Z","updated_at":"2018-10-16T01:11:47Z","pushed_at":"2018-10-19T06:57:50Z","git_url":"git://github.com/Piccirello/qBittorrent.git","ssh_url":"git@github.com:Piccirello/qBittorrent.git","clone_url":"https://github.com/Piccirello/qBittorrent.git","svn_url":"https://github.com/Piccirello/qBittorrent","homepage":"http://www.qbittorrent.org","size":167362,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"qbittorrent:master","ref":"master","sha":"c57a7292b68da14d51b2c31d789779b1a3923b3a","user":{"login":"qbittorrent","id":2131270,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMzEyNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2131270?v=4","gravatar_id":"","url":"https://api.github.com/users/qbittorrent","html_url":"https://github.com/qbittorrent","followers_url":"https://api.github.com/users/qbittorrent/followers","following_url":"https://api.github.com/users/qbittorrent/following{/other_user}","gists_url":"https://api.github.com/users/qbittorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/qbittorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qbittorrent/subscriptions","organizations_url":"https://api.github.com/users/qbittorrent/orgs","repos_url":"https://api.github.com/users/qbittorrent/repos","events_url":"https://api.github.com/users/qbittorrent/events{/privacy}","received_events_url":"https://api.github.com/users/qbittorrent/received_events","type":"Organization","site_admin":false},"repo":{"id":3351871,"node_id":"MDEwOlJlcG9zaXRvcnkzMzUxODcx","name":"qBittorrent","full_name":"qbittorrent/qBittorrent","private":false,"owner":{"login":"qbittorrent","id":2131270,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMzEyNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2131270?v=4","gravatar_id":"","url":"https://api.github.com/users/qbittorrent","html_url":"https://github.com/qbittorrent","followers_url":"https://api.github.com/users/qbittorrent/followers","following_url":"https://api.github.com/users/qbittorrent/following{/other_user}","gists_url":"https://api.github.com/users/qbittorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/qbittorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qbittorrent/subscriptions","organizations_url":"https://api.github.com/users/qbittorrent/orgs","repos_url":"https://api.github.com/users/qbittorrent/repos","events_url":"https://api.github.com/users/qbittorrent/events{/privacy}","received_events_url":"https://api.github.com/users/qbittorrent/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/qbittorrent/qBittorrent","description":"qBittorrent BitTorrent client","fork":false,"url":"https://api.github.com/repos/qbittorrent/qBittorrent","forks_url":"https://api.github.com/repos/qbittorrent/qBittorrent/forks","keys_url":"https://api.github.com/repos/qbittorrent/qBittorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qbittorrent/qBittorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qbittorrent/qBittorrent/teams","hooks_url":"https://api.github.com/repos/qbittorrent/qBittorrent/hooks","issue_events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/events{/number}","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/events","assignees_url":"https://api.github.com/repos/qbittorrent/qBittorrent/assignees{/user}","branches_url":"https://api.github.com/repos/qbittorrent/qBittorrent/branches{/branch}","tags_url":"https://api.github.com/repos/qbittorrent/qBittorrent/tags","blobs_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/qbittorrent/qBittorrent/languages","stargazers_url":"https://api.github.com/repos/qbittorrent/qBittorrent/stargazers","contributors_url":"https://api.github.com/repos/qbittorrent/qBittorrent/contributors","subscribers_url":"https://api.github.com/repos/qbittorrent/qBittorrent/subscribers","subscription_url":"https://api.github.com/repos/qbittorrent/qBittorrent/subscription","commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/qbittorrent/qBittorrent/contents/{+path}","compare_url":"https://api.github.com/repos/qbittorrent/qBittorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qbittorrent/qBittorrent/merges","archive_url":"https://api.github.com/repos/qbittorrent/qBittorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qbittorrent/qBittorrent/downloads","issues_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues{/number}","pulls_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/qbittorrent/qBittorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/qbittorrent/qBittorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/labels{/name}","releases_url":"https://api.github.com/repos/qbittorrent/qBittorrent/releases{/id}","deployments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/deployments","created_at":"2012-02-04T09:37:46Z","updated_at":"2018-10-21T15:18:30Z","pushed_at":"2018-10-21T11:52:41Z","git_url":"git://github.com/qbittorrent/qBittorrent.git","ssh_url":"git@github.com:qbittorrent/qBittorrent.git","clone_url":"https://github.com/qbittorrent/qBittorrent.git","svn_url":"https://github.com/qbittorrent/qBittorrent","homepage":"https://www.qbittorrent.org","size":167223,"stargazers_count":5103,"watchers_count":5103,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":903,"mirror_url":null,"archived":false,"open_issues_count":2204,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":903,"open_issues":2204,"watchers":5103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217"},"html":{"href":"https://github.com/qbittorrent/qBittorrent/pull/8217"},"issue":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8217"},"comments":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/8217/comments"},"review_comments":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217/comments"},"review_comment":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/8217/commits"},"statuses":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/cee7d5991e7e462f5e34c04360fe3d911e261dd8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Piccirello"}}