File indexing completed on 2025-01-19 03:55:40
0001 #include "o2spotify.h" 0002 0003 static const char *SpotifyEndpoint = "https://accounts.spotify.com/authorize"; 0004 static const char *SpotifyTokenUrl = "https://accounts.spotify.com/api/token"; 0005 0006 O2Spotify::O2Spotify(QObject *parent): O2(parent) { 0007 setRequestUrl(SpotifyEndpoint); 0008 setTokenUrl(SpotifyTokenUrl); 0009 setRefreshTokenUrl(SpotifyTokenUrl); 0010 } 0011 0012 const QString O2Spotify::Scope::PLAYLIST_READ_PRIVATE = "playlist-read-private"; 0013 const QString O2Spotify::Scope::PLAYLIST_READ_COLLABORATIVE = "playlist-read-collaborative"; 0014 const QString O2Spotify::Scope::PLAYLIST_MODIFY_PUBLIC = "playlist-modify-public"; 0015 const QString O2Spotify::Scope::PLAYLIST_MODIFY_PRIVATE = "playlist-modify-private"; 0016 const QString O2Spotify::Scope::STREAMING = "streaming"; 0017 const QString O2Spotify::Scope::USER_FOLLOW_MODIFY = "user-follow-modify"; 0018 const QString O2Spotify::Scope::USER_FOLLOW_READ = "user-follow-read"; 0019 const QString O2Spotify::Scope::USER_LIBRARY_READ = "user-library-read"; 0020 const QString O2Spotify::Scope::USER_LIBRARY_MODIFY = "user-library-modify"; 0021 const QString O2Spotify::Scope::USER_READ_PRIVATE = "user-read-private"; 0022 const QString O2Spotify::Scope::USER_READ_BIRTHDATE = "user-read-birthdate"; 0023 const QString O2Spotify::Scope::USER_READ_EMAIL = "user-read-email"; 0024 const QString O2Spotify::Scope::USER_TOP_READ = "user-top-read"; 0025 0026 QStringList O2Spotify::Scope::allScopesList() { 0027 QStringList result; 0028 return result 0029 << PLAYLIST_READ_PRIVATE 0030 << PLAYLIST_READ_COLLABORATIVE 0031 << PLAYLIST_MODIFY_PUBLIC 0032 << PLAYLIST_MODIFY_PRIVATE 0033 << STREAMING 0034 << USER_FOLLOW_MODIFY 0035 << USER_FOLLOW_READ 0036 << USER_LIBRARY_READ 0037 << USER_LIBRARY_MODIFY 0038 << USER_READ_PRIVATE 0039 << USER_READ_BIRTHDATE 0040 << USER_READ_EMAIL 0041 << USER_TOP_READ; 0042 } 0043 0044 #include "moc_o2spotify.cpp"