Commit Graph

30 Commits

Author SHA1 Message Date
John Maguire 3323c2d094 Convert all instances of foreach() to a C++11 for
find ext src -name '*.cpp' -exec \
    sed -i -e 's/foreach(\([^,]\+\),/for (\1 :/' {} \;
2014-02-10 14:43:32 +01:00
John Maguire bebd781fdf Reformat all non-3rd-party C/C++/Objective-C++.
Command line:
find src ext -regex '.*\.\(h\|cpp\|mm\)' -exec clang-format -i
 -style='{BasedOnStyle: Google, DerivePointerBinding: false}' {} \;
2014-02-07 16:34:20 +01:00
John Maguire 941aaca87c Refactor cloud tagging into base class. 2012-12-06 14:23:27 +01:00
John Maguire 951cac2ad6 Use changes API instead of search API in Google Drive. 2012-12-05 14:17:03 +00:00
John Maguire b41a2b5308 Revert "Try out C++11 strongly typed enums."
This reverts commit 4e74c7af2b.
2012-12-05 09:36:22 +00:00
John Maguire 4e74c7af2b Try out C++11 strongly typed enums. 2012-12-04 16:22:09 +00:00
John Maguire 24b4319504 Fix crash in Google Drive. 2012-11-30 16:43:43 +01:00
John Maguire 9c7a3ab105 Rename google drive tagging methods to more appropriate generic names. 2012-11-28 16:34:10 +01:00
John Maguire db7679abe6 Refactor GoogleDriveService into a CloudFileService. 2012-11-28 16:22:54 +01:00
John Maguire db586ca00e Read tags from Ubuntu One files and add to local database. 2012-11-28 14:43:03 +01:00
John Maguire 371b63e159 Use access_token URL param instead of header hack for Google Drive. 2012-11-02 16:47:40 +01:00
John Maguire 07abe82ef3 Add a cover manager for the Google Drive library. 2012-10-01 16:39:58 +02:00
John Maguire 606bf71208 Disable automatic conversions to QUrl from strings. 2012-09-26 17:09:13 +02:00
David Sansome 7ca7ecbe99 When the user opens the Google Drive section for the first time, open the settings dialog to prompt them to login instead of opening a browser to start OAuth straight away. Also fix a bug where the user's email address would be lost on subsequent authentications. 2012-08-24 21:26:10 +01:00
David Sansome 252f1e38d8 Add a context menu to google drive items 2012-08-24 19:33:05 +01:00
David Sansome 4ec6da0570 Track google drive login state better: show the user's email address in the settings dialog and let him sign out. Also remove the drive folder model which wasn't used yet because uploads aren't done. 2012-08-17 21:50:54 +01:00
John Maguire 9ce8cf59d6 Make sure Google Drive is connected when converting URLs. 2012-08-10 11:46:26 -07:00
John Maguire c5b74c832e Add tasks for indexing Google Drive songs. 2012-08-06 14:00:54 +02:00
John Maguire 94878b4bd2 Slightly hacky support for AAC on Google Drive. 2012-07-31 17:57:17 +02:00
John Maguire e06ae8a282 Support reading OGG & FLAC files from Google Drive. 2012-07-31 15:18:14 +02:00
David Sansome fd1d70c644 Add a directory model for selecting a default upload directory on Google Drive. 2012-07-29 15:06:23 +01:00
David Sansome 9653a45f66 Read Google Drive metadata in the tagreader worker process 2012-07-28 19:35:12 +01:00
David Sansome 165cec1e86 Move some of the Google Drive bits out into a separate client class. 2012-07-28 17:18:03 +01:00
John Maguire f48383c73e Index Google Drive MP3s and write to local database. 2012-07-27 16:04:12 +02:00
John Maguire 1031482024 Refresh oauth token when possible to avoid reauthenticating with Drive
all the time.
2012-07-26 16:55:59 +02:00
John Maguire ecf7998f1c Add URL handler for googledrive URLs and fetch a new temporary
download URL for every play.
2012-07-26 16:35:57 +02:00
John Maguire 4a629e636b Cache taglib Drive requests in a google::sparsetable.
Requires sparsehash.
2012-07-26 16:15:19 +02:00
John Maguire bda3d0e033 Hacky support for reading tags from MP3s on Google Drive.
Requires TagLib 1.8
2012-07-26 11:36:07 +02:00
John Maguire 0c861da7a9 Almost working tagging from stream. 2012-07-25 17:57:50 +02:00
John Maguire 145f1efaf5 Basic support for Google Drive & OAuth. 2012-07-12 14:09:20 +02:00