Skip to content

Instantly share code, notes, and snippets.

@funkycode
Created June 15, 2012 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funkycode/cbacc73b66f4955928ea to your computer and use it in GitHub Desktop.
Save funkycode/cbacc73b66f4955928ea to your computer and use it in GitHub Desktop.
qDebug("account test");
Accounts::Account* m_account = 0;
Accounts::Manager m_manager;
Accounts::AccountIdList accounts = m_manager.accountList();
foreach (Accounts::AccountId id, accounts) {
Accounts::Account* account = m_manager.account(id);
QString test1 = account->displayName();
qDebug() << "Accounts";
if (m_account->providerName() == "imgur") {
qDebug() << "Accounts found?";
m_account = account;
break;
}
}
@funkycode
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment