}
]);
+ // TODO handling exceptions
+
native_.call('Account_getExtendedData', { accountId: this.id },
function(result) {
if (native_.isFailure(result)) {
{ name: 'applicationId', type: types_.STRING, optional: true, nullable: true }
]);
+ // TODO handling exceptions
+
native_.call('AccountManager_getAccounts',
{
applicationId: args.applicationId
{ name: 'capability', type: types_.STRING, optional: true, nullable: true }
]);
+ // TODO handling exceptions
+
native_.call( 'AccountManager_getProviders',
{
capability: args.capability
#include "account/account_manager.h"
#include <functional>
-#include <locale>
#include "common/logger.h"
#include "common/scope_exit.h"
out["applicationId"] = picojson::value(provider_id);
free(provider_id);
- std::string language("default");
- std::locale loc("");
- if (loc.name().length() >= 5) {
- language = loc.name().substr(0, 5);
- }
-
- ret = account_type_get_label_by_locale(provider, language.c_str(), &display_name);
+ // TODO: Which label should be returned?
+ ret = account_type_get_label_by_locale(provider, "default", &display_name);
if (ret == ACCOUNT_ERROR_NONE) {
out["displayName"] = picojson::value(display_name);
free(display_name);