23#ifndef ACCOUNTSHELPER_H
24#define ACCOUNTSHELPER_H
28#include <Accounts/manager.h>
29#include <Accounts/account.h>
34class AccountsHelperTest;
38const QString REMOTE_SERVICE_NAME(
"remote_service_name");
83 void slotSchedulerSettingsChanged(
const char *aKey);
86 void enableSOC(
const QString &aProfileName);
87 void scheduleUpdated(
const QString &aProfileName);
88 void removeProfile(QString profileId);
89 void removeScheduledSync(
const QString &profileId);
93 void registerAccountListeners();
96 void syncEnableWithAccount(Accounts::Account *account);
97 bool addProfileForAccount(Accounts::Account *account,
98 const QString &serviceName,
100 const QString &label = QString());
102 void setSyncSchedule(
SyncProfile *syncProfile, Accounts::AccountId
id,
bool aCreateNew =
false);
104 void registerAccountListener(Accounts::AccountId
id);
106 Accounts::Manager *iAccountManager;
113#ifdef SYNCFW_UNIT_TESTS
114 friend class AccountsHelperTest;
Helper Class towards Accounts::Manager and various SSO related operations.
Definition: AccountsHelper.h:44
AccountsHelper(ProfileManager &aProfileManager, QObject *aParent=NULL)
Constructor.
Definition: AccountsHelper.cpp:35
void slotAccountRemoved(Accounts::AccountId id)
slot for Accounts::Manager accountRemoved signal
Definition: AccountsHelper.cpp:94
virtual ~AccountsHelper()
Destructor.
Definition: AccountsHelper.cpp:51
void createProfileForAccount(Accounts::AccountId id)
This method is used to create profiles for a specified account.
Definition: AccountsHelper.cpp:60
QList< SyncProfile * > getProfilesByAccountId(Accounts::AccountId id)
Returns sync profiles that correspond to a given account ID.
Definition: AccountsHelper.cpp:232
ProfileManager is responsible for storing and retrieving the profiles.
Definition: ProfileManager.h:46
A top level synchronization profile.
Definition: SyncProfile.h:49
Definition: SyncBackupAdaptor.h:40