{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/client/pulls/comments/22654653","id":22654653,"diff_hunk":"@@ -0,0 +1,308 @@\n+#include \"sharedialog.h\"\n+#include \"ui_sharedialog.h\"\n+#include \"networkjobs.h\"\n+#include \"account.h\"\n+#include \"json.h\"\n+#include \"folderman.h\"\n+#include <QBuffer>\n+#include <QMovie>\n+\n+namespace {\n+    int SHARETYPE_PUBLIC = 3;\n+}\n+\n+namespace OCC {\n+\n+ShareDialog::ShareDialog(QWidget *parent) :\n+    QDialog(parent),\n+    _ui(new Ui::ShareDialog)\n+{\n+    setAttribute(Qt::WA_DeleteOnClose);\n+    _ui->setupUi(this);\n+    _ui->pushButton_copy->setIcon(QIcon::fromTheme(\"edit-copy\"));\n+    layout()->setSizeConstraint(QLayout::SetFixedSize);\n+    QMovie *movie = new QMovie(\"/home/azelphur/ownCloud-share-tools/loading-icon.gif\");\n+    movie->start();\n+    _ui->labelShareSpinner->setMovie(movie);\n+    _ui->labelShareSpinner->hide();\n+\n+    _ui->labelPasswordSpinner->setMovie(movie);\n+    _ui->labelPasswordSpinner->hide();\n+\n+    _ui->labelCalendarSpinner->setMovie(movie);\n+    _ui->labelCalendarSpinner->hide();\n+    connect(_ui->checkBox_shareLink, SIGNAL(clicked()), this, SLOT(slotCheckBoxShareLinkClicked()));\n+    connect(_ui->checkBox_password, SIGNAL(clicked()), this, SLOT(slotCheckBoxPasswordClicked()));\n+    connect(_ui->lineEdit_password, SIGNAL(returnPressed()), this, SLOT(slotPasswordReturnPressed()));\n+    connect(_ui->checkBox_expire, SIGNAL(clicked()), this, SLOT(slotCheckBoxExpireClicked()));\n+    connect(_ui->calendar, SIGNAL(clicked(QDate)), SLOT(slotCalendarClicked(QDate)));\n+\n+    _ui->labelShareSpinner->hide();\n+    _ui->lineEdit_shareLink->hide();\n+    _ui->pushButton_copy->hide();\n+    _ui->lineEdit_password->hide();\n+    _ui->checkBox_password->hide();\n+    _ui->checkBox_expire->hide();\n+    _ui->calendar->hide();\n+    _ui->lineEdit_shareGroup->setPlaceholderText(\"Share with group...\");\n+    _ui->lineEdit_shareUser->setPlaceholderText(\"Share with user...\");\n+    _ui->lineEdit_password->setPlaceholderText(\"Choose a password for the public link\");\n+}\n+\n+void ShareDialog::setExpireDate(QString date)","path":"src/gui/sharedialog.cpp","position":52,"original_position":52,"commit_id":"ee2e6e5dce6be2caa0f4d3de72fc4bbddaef3d74","original_commit_id":"ee2e6e5dce6be2caa0f4d3de72fc4bbddaef3d74","user":{"login":"danimo","id":1315934,"avatar_url":"https://avatars.githubusercontent.com/u/1315934?v=3","gravatar_id":"","url":"https://api.github.com/users/danimo","html_url":"https://github.com/danimo","followers_url":"https://api.github.com/users/danimo/followers","following_url":"https://api.github.com/users/danimo/following{/other_user}","gists_url":"https://api.github.com/users/danimo/gists{/gist_id}","starred_url":"https://api.github.com/users/danimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimo/subscriptions","organizations_url":"https://api.github.com/users/danimo/orgs","repos_url":"https://api.github.com/users/danimo/repos","events_url":"https://api.github.com/users/danimo/events{/privacy}","received_events_url":"https://api.github.com/users/danimo/received_events","type":"User","site_admin":false},"body":"Please use `const String&`","created_at":"2015-01-08T14:43:11Z","updated_at":"2015-01-08T14:43:11Z","html_url":"https://github.com/owncloud/client/pull/2674#discussion_r22654653","pull_request_url":"https://api.github.com/repos/owncloud/client/pulls/2674","_links":{"self":{"href":"https://api.github.com/repos/owncloud/client/pulls/comments/22654653"},"html":{"href":"https://github.com/owncloud/client/pull/2674#discussion_r22654653"},"pull_request":{"href":"https://api.github.com/repos/owncloud/client/pulls/2674"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/client/pulls/2674","id":26971360,"html_url":"https://github.com/owncloud/client/pull/2674","diff_url":"https://github.com/owncloud/client/pull/2674.diff","patch_url":"https://github.com/owncloud/client/pull/2674.patch","issue_url":"https://api.github.com/repos/owncloud/client/issues/2674","number":2674,"state":"open","locked":false,"title":"Filebrowser integration","user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"body":"Initial pull request for filebrowser intergration sharing.\r\nA lot of stuff still needs to be tested and verified.","created_at":"2015-01-07T17:07:22Z","updated_at":"2015-01-08T14:43:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab53611a86439a96f692dea7ca802ecb680c3a43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/owncloud/client/pulls/2674/commits","review_comments_url":"https://api.github.com/repos/owncloud/client/pulls/2674/comments","review_comment_url":"https://api.github.com/repos/owncloud/client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/owncloud/client/issues/2674/comments","statuses_url":"https://api.github.com/repos/owncloud/client/statuses/ee2e6e5dce6be2caa0f4d3de72fc4bbddaef3d74","head":{"label":"rullzer:filebrowser_integration","ref":"filebrowser_integration","sha":"ee2e6e5dce6be2caa0f4d3de72fc4bbddaef3d74","user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"repo":{"id":27812960,"name":"client","full_name":"rullzer/client","owner":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rullzer/client","description":"Repository for the ownCloud Desktop Syncing Client","fork":true,"url":"https://api.github.com/repos/rullzer/client","forks_url":"https://api.github.com/repos/rullzer/client/forks","keys_url":"https://api.github.com/repos/rullzer/client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rullzer/client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rullzer/client/teams","hooks_url":"https://api.github.com/repos/rullzer/client/hooks","issue_events_url":"https://api.github.com/repos/rullzer/client/issues/events{/number}","events_url":"https://api.github.com/repos/rullzer/client/events","assignees_url":"https://api.github.com/repos/rullzer/client/assignees{/user}","branches_url":"https://api.github.com/repos/rullzer/client/branches{/branch}","tags_url":"https://api.github.com/repos/rullzer/client/tags","blobs_url":"https://api.github.com/repos/rullzer/client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rullzer/client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rullzer/client/git/refs{/sha}","trees_url":"https://api.github.com/repos/rullzer/client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rullzer/client/statuses/{sha}","languages_url":"https://api.github.com/repos/rullzer/client/languages","stargazers_url":"https://api.github.com/repos/rullzer/client/stargazers","contributors_url":"https://api.github.com/repos/rullzer/client/contributors","subscribers_url":"https://api.github.com/repos/rullzer/client/subscribers","subscription_url":"https://api.github.com/repos/rullzer/client/subscription","commits_url":"https://api.github.com/repos/rullzer/client/commits{/sha}","git_commits_url":"https://api.github.com/repos/rullzer/client/git/commits{/sha}","comments_url":"https://api.github.com/repos/rullzer/client/comments{/number}","issue_comment_url":"https://api.github.com/repos/rullzer/client/issues/comments/{number}","contents_url":"https://api.github.com/repos/rullzer/client/contents/{+path}","compare_url":"https://api.github.com/repos/rullzer/client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rullzer/client/merges","archive_url":"https://api.github.com/repos/rullzer/client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rullzer/client/downloads","issues_url":"https://api.github.com/repos/rullzer/client/issues{/number}","pulls_url":"https://api.github.com/repos/rullzer/client/pulls{/number}","milestones_url":"https://api.github.com/repos/rullzer/client/milestones{/number}","notifications_url":"https://api.github.com/repos/rullzer/client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rullzer/client/labels{/name}","releases_url":"https://api.github.com/repos/rullzer/client/releases{/id}","created_at":"2014-12-10T09:46:38Z","updated_at":"2014-12-19T13:54:47Z","pushed_at":"2014-12-28T19:11:29Z","git_url":"git://github.com/rullzer/client.git","ssh_url":"git@github.com:rullzer/client.git","clone_url":"https://github.com/rullzer/client.git","svn_url":"https://github.com/rullzer/client","homepage":null,"size":76578,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"5c4f706fe42c3adf95f01dc4f5cfcf716aea8f0a","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550623,"name":"client","full_name":"owncloud/client","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/client","description":"Repository for the ownCloud Desktop Syncing Client","fork":false,"url":"https://api.github.com/repos/owncloud/client","forks_url":"https://api.github.com/repos/owncloud/client/forks","keys_url":"https://api.github.com/repos/owncloud/client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/client/teams","hooks_url":"https://api.github.com/repos/owncloud/client/hooks","issue_events_url":"https://api.github.com/repos/owncloud/client/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/client/events","assignees_url":"https://api.github.com/repos/owncloud/client/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/client/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/client/tags","blobs_url":"https://api.github.com/repos/owncloud/client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/client/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/client/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/client/languages","stargazers_url":"https://api.github.com/repos/owncloud/client/stargazers","contributors_url":"https://api.github.com/repos/owncloud/client/contributors","subscribers_url":"https://api.github.com/repos/owncloud/client/subscribers","subscription_url":"https://api.github.com/repos/owncloud/client/subscription","commits_url":"https://api.github.com/repos/owncloud/client/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/client/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/client/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/client/issues/comments/{number}","contents_url":"https://api.github.com/repos/owncloud/client/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/client/merges","archive_url":"https://api.github.com/repos/owncloud/client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/client/downloads","issues_url":"https://api.github.com/repos/owncloud/client/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/client/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/client/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/client/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/client/releases{/id}","created_at":"2012-08-25T10:44:53Z","updated_at":"2015-01-08T14:39:09Z","pushed_at":"2015-01-08T14:39:12Z","git_url":"git://github.com/owncloud/client.git","ssh_url":"git@github.com:owncloud/client.git","clone_url":"https://github.com/owncloud/client.git","svn_url":"https://github.com/owncloud/client","homepage":null,"size":95929,"stargazers_count":407,"watchers_count":407,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":222,"mirror_url":null,"open_issues_count":415,"forks":222,"open_issues":415,"watchers":407,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/client/pulls/2674"},"html":{"href":"https://github.com/owncloud/client/pull/2674"},"issue":{"href":"https://api.github.com/repos/owncloud/client/issues/2674"},"comments":{"href":"https://api.github.com/repos/owncloud/client/issues/2674/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/client/pulls/2674/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/owncloud/client/pulls/2674/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/client/statuses/ee2e6e5dce6be2caa0f4d3de72fc4bbddaef3d74"}}}}