{"action":"created","comment":{"url":"https://api.github.com/repos/nemomobile/qtmpris/pulls/comments/25073176","id":25073176,"diff_hunk":"@@ -0,0 +1,112 @@\n+/*!\n+ *\n+ * Copyright (C) 2015 Jolla Ltd.\n+ *\n+ * Contact: Valerio Valerio <valerio.valerio@jolla.com>\n+ * Author: Andres Gomez <andres.gomez@jolla.com>\n+ *\n+ * This library is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU Lesser General Public\n+ * License as published by the Free Software Foundation; either\n+ * version 2.1 of the License, or (at your option) any later version.\n+ *\n+ * This library 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 GNU\n+ * Lesser General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Lesser General Public\n+ * License along with this library; if not, write to the Free Software\n+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n+ */\n+\n+\n+import QtQuick 2.0\n+import org.nemomobile.qtmpris 1.0\n+\n+Item {\n+    id: controls\n+\n+    property MprisManager mprisManager\n+    property bool isPlaying: mprisManager.currentService && mprisManager.playbackStatus == Mpris.Playing\n+\n+    height: parent.height\n+    width: column.width\n+\n+    Column {\n+        id: column\n+\n+        Text {\n+            id: artistLabel\n+\n+            text: if (mprisManager.currentService) {\n+                var artistTag = mpris.metadataToString(Mpris.Artist)\n+\n+                return (artistTag in mprisManager.metadata) ? mprisManager.metadata[artistTag].toString() : \"\"\n+            }\n+            width: parent.width\n+            elide: Text.ElideRight\n+            horizontalAlignment: Text.AlignHCenter\n+        }\n+\n+        Text {\n+            id: songLabel\n+\n+            text: if (mprisManager.currentService) {\n+                var titleTag = mpris.metadataToString(Mpris.Title)\n+\n+                return (titleTag in mprisManager.metadata) ? mprisManager.metadata[titleTag].toString() : \"\"\n+            }\n+            width: parent.width\n+            elide: Text.ElideRight\n+            horizontalAlignment: Text.AlignHCenter\n+        }\n+\n+        Row {\n+\n+            MouseArea {\n+\n+                width: controls.parent.width * 0.25\n+                height: width\n+\n+                onClicked: if (mprisManager.canGoPrevious) mprisManager.previous()\n+\n+                Text {\n+                    anchors.centerIn: parent\n+                    text: \"⏮\"","path":"example/qml/MprisControls.qml","position":76,"original_position":76,"commit_id":"68eab6c89c7ec9d73af238a3870205d06e945fef","original_commit_id":"68eab6c89c7ec9d73af238a3870205d06e945fef","user":{"login":"tanty","id":1577005,"avatar_url":"https://avatars.githubusercontent.com/u/1577005?v=3","gravatar_id":"","url":"https://api.github.com/users/tanty","html_url":"https://github.com/tanty","followers_url":"https://api.github.com/users/tanty/followers","following_url":"https://api.github.com/users/tanty/following{/other_user}","gists_url":"https://api.github.com/users/tanty/gists{/gist_id}","starred_url":"https://api.github.com/users/tanty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanty/subscriptions","organizations_url":"https://api.github.com/users/tanty/orgs","repos_url":"https://api.github.com/users/tanty/repos","events_url":"https://api.github.com/users/tanty/events{/privacy}","received_events_url":"https://api.github.com/users/tanty/received_events","type":"User","site_admin":false},"body":"Nope. It is an unicode character and it should be interpreted correctly. I can replace with the unicode code, of course, but I don't think it is really needed:\r\nhttp://en.wikipedia.org/wiki/Miscellaneous_Technical#Compact_chart\r\n\r\nIt is U+23EE ","created_at":"2015-02-20T14:42:20Z","updated_at":"2015-02-20T14:42:20Z","html_url":"https://github.com/nemomobile/qtmpris/pull/1#discussion_r25073176","pull_request_url":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/nemomobile/qtmpris/pulls/comments/25073176"},"html":{"href":"https://github.com/nemomobile/qtmpris/pull/1#discussion_r25073176"},"pull_request":{"href":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1","id":29612244,"html_url":"https://github.com/nemomobile/qtmpris/pull/1","diff_url":"https://github.com/nemomobile/qtmpris/pull/1.diff","patch_url":"https://github.com/nemomobile/qtmpris/pull/1.patch","issue_url":"https://api.github.com/repos/nemomobile/qtmpris/issues/1","number":1,"state":"open","locked":false,"title":"Initial implementation","user":{"login":"tanty","id":1577005,"avatar_url":"https://avatars.githubusercontent.com/u/1577005?v=3","gravatar_id":"","url":"https://api.github.com/users/tanty","html_url":"https://github.com/tanty","followers_url":"https://api.github.com/users/tanty/followers","following_url":"https://api.github.com/users/tanty/following{/other_user}","gists_url":"https://api.github.com/users/tanty/gists{/gist_id}","starred_url":"https://api.github.com/users/tanty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanty/subscriptions","organizations_url":"https://api.github.com/users/tanty/orgs","repos_url":"https://api.github.com/users/tanty/repos","events_url":"https://api.github.com/users/tanty/events{/privacy}","received_events_url":"https://api.github.com/users/tanty/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-19T13:48:44Z","updated_at":"2015-02-20T14:42:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"814a0e47982ecaabd86a43829fa4b2877ae19bd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nemomobile/qtmpris/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nemomobile/qtmpris/issues/1/comments","statuses_url":"https://api.github.com/repos/nemomobile/qtmpris/statuses/68eab6c89c7ec9d73af238a3870205d06e945fef","head":{"label":"initial-implementation","ref":"initial-implementation","sha":"68eab6c89c7ec9d73af238a3870205d06e945fef","user":{"login":"nemomobile","id":1088947,"avatar_url":"https://avatars.githubusercontent.com/u/1088947?v=3","gravatar_id":"","url":"https://api.github.com/users/nemomobile","html_url":"https://github.com/nemomobile","followers_url":"https://api.github.com/users/nemomobile/followers","following_url":"https://api.github.com/users/nemomobile/following{/other_user}","gists_url":"https://api.github.com/users/nemomobile/gists{/gist_id}","starred_url":"https://api.github.com/users/nemomobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemomobile/subscriptions","organizations_url":"https://api.github.com/users/nemomobile/orgs","repos_url":"https://api.github.com/users/nemomobile/repos","events_url":"https://api.github.com/users/nemomobile/events{/privacy}","received_events_url":"https://api.github.com/users/nemomobile/received_events","type":"Organization","site_admin":false},"repo":{"id":31016133,"name":"qtmpris","full_name":"nemomobile/qtmpris","owner":{"login":"nemomobile","id":1088947,"avatar_url":"https://avatars.githubusercontent.com/u/1088947?v=3","gravatar_id":"","url":"https://api.github.com/users/nemomobile","html_url":"https://github.com/nemomobile","followers_url":"https://api.github.com/users/nemomobile/followers","following_url":"https://api.github.com/users/nemomobile/following{/other_user}","gists_url":"https://api.github.com/users/nemomobile/gists{/gist_id}","starred_url":"https://api.github.com/users/nemomobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemomobile/subscriptions","organizations_url":"https://api.github.com/users/nemomobile/orgs","repos_url":"https://api.github.com/users/nemomobile/repos","events_url":"https://api.github.com/users/nemomobile/events{/privacy}","received_events_url":"https://api.github.com/users/nemomobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nemomobile/qtmpris","description":null,"fork":false,"url":"https://api.github.com/repos/nemomobile/qtmpris","forks_url":"https://api.github.com/repos/nemomobile/qtmpris/forks","keys_url":"https://api.github.com/repos/nemomobile/qtmpris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nemomobile/qtmpris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nemomobile/qtmpris/teams","hooks_url":"https://api.github.com/repos/nemomobile/qtmpris/hooks","issue_events_url":"https://api.github.com/repos/nemomobile/qtmpris/issues/events{/number}","events_url":"https://api.github.com/repos/nemomobile/qtmpris/events","assignees_url":"https://api.github.com/repos/nemomobile/qtmpris/assignees{/user}","branches_url":"https://api.github.com/repos/nemomobile/qtmpris/branches{/branch}","tags_url":"https://api.github.com/repos/nemomobile/qtmpris/tags","blobs_url":"https://api.github.com/repos/nemomobile/qtmpris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nemomobile/qtmpris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nemomobile/qtmpris/git/refs{/sha}","trees_url":"https://api.github.com/repos/nemomobile/qtmpris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nemomobile/qtmpris/statuses/{sha}","languages_url":"https://api.github.com/repos/nemomobile/qtmpris/languages","stargazers_url":"https://api.github.com/repos/nemomobile/qtmpris/stargazers","contributors_url":"https://api.github.com/repos/nemomobile/qtmpris/contributors","subscribers_url":"https://api.github.com/repos/nemomobile/qtmpris/subscribers","subscription_url":"https://api.github.com/repos/nemomobile/qtmpris/subscription","commits_url":"https://api.github.com/repos/nemomobile/qtmpris/commits{/sha}","git_commits_url":"https://api.github.com/repos/nemomobile/qtmpris/git/commits{/sha}","comments_url":"https://api.github.com/repos/nemomobile/qtmpris/comments{/number}","issue_comment_url":"https://api.github.com/repos/nemomobile/qtmpris/issues/comments/{number}","contents_url":"https://api.github.com/repos/nemomobile/qtmpris/contents/{+path}","compare_url":"https://api.github.com/repos/nemomobile/qtmpris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nemomobile/qtmpris/merges","archive_url":"https://api.github.com/repos/nemomobile/qtmpris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nemomobile/qtmpris/downloads","issues_url":"https://api.github.com/repos/nemomobile/qtmpris/issues{/number}","pulls_url":"https://api.github.com/repos/nemomobile/qtmpris/pulls{/number}","milestones_url":"https://api.github.com/repos/nemomobile/qtmpris/milestones{/number}","notifications_url":"https://api.github.com/repos/nemomobile/qtmpris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nemomobile/qtmpris/labels{/name}","releases_url":"https://api.github.com/repos/nemomobile/qtmpris/releases{/id}","created_at":"2015-02-19T13:22:57Z","updated_at":"2015-02-19T13:22:57Z","pushed_at":"2015-02-19T13:48:24Z","git_url":"git://github.com/nemomobile/qtmpris.git","ssh_url":"git@github.com:nemomobile/qtmpris.git","clone_url":"https://github.com/nemomobile/qtmpris.git","svn_url":"https://github.com/nemomobile/qtmpris","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"master","ref":"master","sha":"70fcd1c446d7fa07f6a54a69c5f092d2e85b480e","user":{"login":"nemomobile","id":1088947,"avatar_url":"https://avatars.githubusercontent.com/u/1088947?v=3","gravatar_id":"","url":"https://api.github.com/users/nemomobile","html_url":"https://github.com/nemomobile","followers_url":"https://api.github.com/users/nemomobile/followers","following_url":"https://api.github.com/users/nemomobile/following{/other_user}","gists_url":"https://api.github.com/users/nemomobile/gists{/gist_id}","starred_url":"https://api.github.com/users/nemomobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemomobile/subscriptions","organizations_url":"https://api.github.com/users/nemomobile/orgs","repos_url":"https://api.github.com/users/nemomobile/repos","events_url":"https://api.github.com/users/nemomobile/events{/privacy}","received_events_url":"https://api.github.com/users/nemomobile/received_events","type":"Organization","site_admin":false},"repo":{"id":31016133,"name":"qtmpris","full_name":"nemomobile/qtmpris","owner":{"login":"nemomobile","id":1088947,"avatar_url":"https://avatars.githubusercontent.com/u/1088947?v=3","gravatar_id":"","url":"https://api.github.com/users/nemomobile","html_url":"https://github.com/nemomobile","followers_url":"https://api.github.com/users/nemomobile/followers","following_url":"https://api.github.com/users/nemomobile/following{/other_user}","gists_url":"https://api.github.com/users/nemomobile/gists{/gist_id}","starred_url":"https://api.github.com/users/nemomobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemomobile/subscriptions","organizations_url":"https://api.github.com/users/nemomobile/orgs","repos_url":"https://api.github.com/users/nemomobile/repos","events_url":"https://api.github.com/users/nemomobile/events{/privacy}","received_events_url":"https://api.github.com/users/nemomobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nemomobile/qtmpris","description":null,"fork":false,"url":"https://api.github.com/repos/nemomobile/qtmpris","forks_url":"https://api.github.com/repos/nemomobile/qtmpris/forks","keys_url":"https://api.github.com/repos/nemomobile/qtmpris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nemomobile/qtmpris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nemomobile/qtmpris/teams","hooks_url":"https://api.github.com/repos/nemomobile/qtmpris/hooks","issue_events_url":"https://api.github.com/repos/nemomobile/qtmpris/issues/events{/number}","events_url":"https://api.github.com/repos/nemomobile/qtmpris/events","assignees_url":"https://api.github.com/repos/nemomobile/qtmpris/assignees{/user}","branches_url":"https://api.github.com/repos/nemomobile/qtmpris/branches{/branch}","tags_url":"https://api.github.com/repos/nemomobile/qtmpris/tags","blobs_url":"https://api.github.com/repos/nemomobile/qtmpris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nemomobile/qtmpris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nemomobile/qtmpris/git/refs{/sha}","trees_url":"https://api.github.com/repos/nemomobile/qtmpris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nemomobile/qtmpris/statuses/{sha}","languages_url":"https://api.github.com/repos/nemomobile/qtmpris/languages","stargazers_url":"https://api.github.com/repos/nemomobile/qtmpris/stargazers","contributors_url":"https://api.github.com/repos/nemomobile/qtmpris/contributors","subscribers_url":"https://api.github.com/repos/nemomobile/qtmpris/subscribers","subscription_url":"https://api.github.com/repos/nemomobile/qtmpris/subscription","commits_url":"https://api.github.com/repos/nemomobile/qtmpris/commits{/sha}","git_commits_url":"https://api.github.com/repos/nemomobile/qtmpris/git/commits{/sha}","comments_url":"https://api.github.com/repos/nemomobile/qtmpris/comments{/number}","issue_comment_url":"https://api.github.com/repos/nemomobile/qtmpris/issues/comments/{number}","contents_url":"https://api.github.com/repos/nemomobile/qtmpris/contents/{+path}","compare_url":"https://api.github.com/repos/nemomobile/qtmpris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nemomobile/qtmpris/merges","archive_url":"https://api.github.com/repos/nemomobile/qtmpris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nemomobile/qtmpris/downloads","issues_url":"https://api.github.com/repos/nemomobile/qtmpris/issues{/number}","pulls_url":"https://api.github.com/repos/nemomobile/qtmpris/pulls{/number}","milestones_url":"https://api.github.com/repos/nemomobile/qtmpris/milestones{/number}","notifications_url":"https://api.github.com/repos/nemomobile/qtmpris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nemomobile/qtmpris/labels{/name}","releases_url":"https://api.github.com/repos/nemomobile/qtmpris/releases{/id}","created_at":"2015-02-19T13:22:57Z","updated_at":"2015-02-19T13:22:57Z","pushed_at":"2015-02-19T13:48:24Z","git_url":"git://github.com/nemomobile/qtmpris.git","ssh_url":"git@github.com:nemomobile/qtmpris.git","clone_url":"https://github.com/nemomobile/qtmpris.git","svn_url":"https://github.com/nemomobile/qtmpris","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1"},"html":{"href":"https://github.com/nemomobile/qtmpris/pull/1"},"issue":{"href":"https://api.github.com/repos/nemomobile/qtmpris/issues/1"},"comments":{"href":"https://api.github.com/repos/nemomobile/qtmpris/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nemomobile/qtmpris/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nemomobile/qtmpris/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nemomobile/qtmpris/statuses/68eab6c89c7ec9d73af238a3870205d06e945fef"}}}}