ButeoSynchronizationFramework
Public Slots | Signals | Public Member Functions | List of all members
Buteo::AccountsHelper Class Reference

Helper Class towards Accounts::Manager and various SSO related operations. More...

#include <AccountsHelper.h>

Inheritance diagram for Buteo::AccountsHelper:

Public Slots

QString createProfileForAccount (Accounts::AccountId id)
 This method is used to create a profile for a specified account. More...
 
void slotAccountRemoved (Accounts::AccountId id)
 slot for Accounts::Manager accountRemoved signal More...
 
void slotAccountEnabledChanged (const QString &serviceName, bool enabled)
 slot for Accounts::Account enabledChanged signal More...
 
void slotAccountUpdated (Accounts::AccountId id)
 slot for Accounts::Manager displayNameChanged signal

More...
 
void slotSchedulerSettingsChanged (const char *aKey)
 

Signals

void enableSOC (const QString &aProfileName)
 
void scheduleUpdated (const QString &aProfileName)
 
void removeProfile (QString profileId)
 
void removeScheduledSync (const QString &profileId)
 

Public Member Functions

 AccountsHelper (ProfileManager &aProfileManager, QObject *aParent=NULL)
 Constructor. More...
 
virtual ~AccountsHelper ()
 Destructor. More...
 
QList< SyncProfile * > getProfilesByAccountId (Accounts::AccountId id)
 Returns sync profiles that correspond to a given account ID. More...
 

Detailed Description

Helper Class towards Accounts::Manager and various SSO related operations.

Constructor & Destructor Documentation

AccountsHelper::AccountsHelper ( ProfileManager aProfileManager,
QObject *  aParent = NULL 
)

Constructor.

Parameters
aProfileManager- reference to Profile Manager Object
aParent- Parent object
AccountsHelper::~AccountsHelper ( )
virtual

Destructor.

Member Function Documentation

QString AccountsHelper::createProfileForAccount ( Accounts::AccountId  id)
slot

This method is used to create a profile for a specified account.

Parameters
idAccounts Id
Returns
A string with the new profile name
QList< SyncProfile * > AccountsHelper::getProfilesByAccountId ( Accounts::AccountId  id)

Returns sync profiles that correspond to a given account ID.

Parameters
id- The account ID.
Returns
A list of sync profiles. The caller should delete the profiles after use.
void AccountsHelper::slotAccountEnabledChanged ( const QString &  serviceName,
bool  enabled 
)
slot

slot for Accounts::Account enabledChanged signal

Parameters
serviceNameThe service that was enabled/disabled. Empty if the entire account is enabled/disabled
enabledBoolean indicating enabled (true) or disabled (false)
void AccountsHelper::slotAccountRemoved ( Accounts::AccountId  id)
slot

slot for Accounts::Manager accountRemoved signal

Parameters
idof the accounts
void AccountsHelper::slotAccountUpdated ( Accounts::AccountId  id)
slot

slot for Accounts::Manager displayNameChanged signal

Parameters
idof the accounts

The documentation for this class was generated from the following files: