{"pull_request":{"created_at":"2011-12-15T22:23:34Z","user":{"id":441072,"login":"eisnerd","url":"https://api.github.com/users/eisnerd","avatar_url":"https://secure.gravatar.com/avatar/570b45f33d0b1a5b1ffc9b34cf4803eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"570b45f33d0b1a5b1ffc9b34cf4803eb"},"title":"Volume/device attachment and removal events","merged_at":null,"review_comments":0,"state":"open","updated_at":"2011-12-15T22:23:34Z","id":600505,"patch_url":"https://github.com/appcelerator/titanium_desktop/pull/4.patch","html_url":"https://github.com/appcelerator/titanium_desktop/pull/4","closed_at":null,"deletions":0,"mergeable":null,"base":{"user":{"id":82188,"login":"appcelerator","url":"https://api.github.com/users/appcelerator","avatar_url":"https://secure.gravatar.com/avatar/01d8a2b8546d6479cf4323d72cbed363?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"01d8a2b8546d6479cf4323d72cbed363"},"ref":"v1.2-windows","sha":"1b1dcf3bc3de2326363e0324ab6945dd0be9cd89","repo":{"created_at":"2009-06-15T22:28:48Z","git_url":"git://github.com/appcelerator/titanium_desktop.git","open_issues":2,"watchers":239,"fork":false,"updated_at":"2011-12-12T20:51:59Z","id":228068,"language":"C++","html_url":"https://github.com/appcelerator/titanium_desktop","name":"titanium_desktop","description":"Appcelerator Titanium Desktop","master_branch":null,"forks":38,"url":"https://api.github.com/repos/appcelerator/titanium_desktop","pushed_at":"2011-11-24T07:12:20Z","ssh_url":"git@github.com:appcelerator/titanium_desktop.git","clone_url":"https://github.com/appcelerator/titanium_desktop.git","owner":{"id":82188,"login":"appcelerator","url":"https://api.github.com/users/appcelerator","avatar_url":"https://secure.gravatar.com/avatar/01d8a2b8546d6479cf4323d72cbed363?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"01d8a2b8546d6479cf4323d72cbed363"},"homepage":"http://www.appcelerator.com","size":216,"private":false,"svn_url":"https://svn.github.com/appcelerator/titanium_desktop"},"label":"appcelerator:v1.2-windows"},"issue_url":"https://github.com/appcelerator/titanium_desktop/issues/4","number":4,"additions":15,"commits":1,"body":"This adds platform-specific code to fire global \"volume.added\" and \"volume.removed\" events when removable devices containing filesystems are attached or ejected/removed. One event is fired per device, rather than per filesystem, and no specific information about the device(s) in question is provided.\r\n\r\nI have added these same simple, you might say crude, system-related events to this branch for Windows and to the master branch with a similar implementation for Mac. Rather than providing a full device/volume information API, we have found simply being notified that some kind of change has occurred very useful in our application, with further platform-specific code that it may not be worth lumbering the SDK with being used in response to these events to identify and examine the devices of interest, such as USB flash drives.\r\n\r\nThough this may not seem very polished or broadly useful, it would be useful to have this small additional feature incorporated in the official SDK, particularly on Windows where it is by far easiest to get this information from the message pumping code of the main application window than to achieve the same without it.\r\n\r\nThank you for considering this submission.","url":"https://api.github.com/repos/appcelerator/titanium_desktop/pulls/4","_links":{"review_comments":{"href":"https://api.github.com/repos/appcelerator/titanium_desktop/pulls/4/comments"},"html":{"href":"https://github.com/appcelerator/titanium_desktop/pull/4"},"self":{"href":"https://api.github.com/repos/appcelerator/titanium_desktop/pulls/4"},"comments":{"href":"https://api.github.com/repos/appcelerator/titanium_desktop/issues/4/comments"}},"diff_url":"https://github.com/appcelerator/titanium_desktop/pull/4.diff","merged_by":null,"comments":0,"changed_files":1,"head":{"user":{"id":441072,"login":"eisnerd","url":"https://api.github.com/users/eisnerd","avatar_url":"https://secure.gravatar.com/avatar/570b45f33d0b1a5b1ffc9b34cf4803eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"570b45f33d0b1a5b1ffc9b34cf4803eb"},"ref":"vol-events-win","sha":"72b040887bb87be63e59f121b8dcb67a9d89e1ec","repo":{"created_at":"2011-11-15T19:00:08Z","git_url":"git://github.com/eisnerd/titanium_desktop.git","open_issues":0,"watchers":1,"fork":true,"updated_at":"2011-12-15T22:05:31Z","id":2782469,"language":"C++","html_url":"https://github.com/eisnerd/titanium_desktop","name":"titanium_desktop","description":"Appcelerator Titanium Desktop","master_branch":null,"forks":0,"url":"https://api.github.com/repos/eisnerd/titanium_desktop","pushed_at":"2011-12-15T22:05:31Z","ssh_url":"git@github.com:eisnerd/titanium_desktop.git","clone_url":"https://github.com/eisnerd/titanium_desktop.git","owner":{"id":441072,"login":"eisnerd","url":"https://api.github.com/users/eisnerd","avatar_url":"https://secure.gravatar.com/avatar/570b45f33d0b1a5b1ffc9b34cf4803eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"570b45f33d0b1a5b1ffc9b34cf4803eb"},"homepage":"http://www.appcelerator.com","size":83242,"private":false,"svn_url":"https://svn.github.com/eisnerd/titanium_desktop"},"label":"eisnerd:vol-events-win"},"merged":false},"number":4,"action":"opened"}