1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

Add configTest to ResolverAccounts

This commit is contained in:
Dominik Schmidt
2014-12-10 19:59:34 +01:00
parent 7550d23431
commit 132c7d4cd2
8 changed files with 127 additions and 12 deletions

View File

@@ -196,6 +196,13 @@ var TomahawkResolver = {
},
collection: function () {
return {};
},
_testConfig: function (config) {
return Promise.resolve(this.testConfig(config)).then(function() {
return { result: Tomahawk.ConfigTestResultType.Success };
});
},
testConfig: function () {
}
};
@@ -638,3 +645,15 @@ Tomahawk.PluginManager = {
});
}
};
Tomahawk.ConfigTestResultType = {
Other: 0,
Success: 1,
Logout: 2,
CommunicationError: 3,
InvalidCredentials: 4,
InvalidAccount: 5,
PlayingElsewhere: 6,
AccountExpired: 7
};