~timo-jyrinki/libaccounts-qt/rebuild_against_qt521

« back to all changes in this revision

Viewing changes to Accounts/account.cpp

  • Committer: Tarmac
  • Author(s): Alberto Mardegan, Àlex Fiestas
  • Date: 2013-09-04 15:13:14 UTC
  • mfrom: (130.1.1 packaging)
  • Revision ID: tarmac-20130904151314-7irf3fp5z27bjdgz
New upstream release.

- Application: add a method to return the .desktop file
- Add Account::isEnabled(), along with the existing Account::enabled() 
.

Approved by Ken VanDine, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
350
350
 *
351
351
 * This method operates on the currently selected service or
352
352
 * globally, if none selected.
 
353
 *
 
354
 * @note this is just a wrapper of isEnabled
 
355
 * @see isEnabled()
 
356
 * @deprecated use isEnabled instead
353
357
 */
354
358
bool Account::enabled() const
355
359
{
 
360
    return isEnabled();
 
361
}
 
362
 
 
363
/*!
 
364
 * Checks whether the account or selected service is enabled.
 
365
 *
 
366
 * This method operates on the currently selected service or
 
367
 * globally, if none selected.
 
368
 */
 
369
bool Account::isEnabled() const
 
370
{
356
371
    return ag_account_get_enabled(d->m_account);
357
372
}
358
373