23#ifndef ACCOUNTSHELPER_H
24#define ACCOUNTSHELPER_H
28#include <Accounts/manager.h>
29#include <Accounts/account.h>
34class AccountsHelperTest;
81 void slotSchedulerSettingsChanged(
const char *aKey);
84 void enableSOC(
const QString &aProfileName);
85 void scheduleUpdated(
const QString &aProfileName);
86 void removeProfile(QString profileId);
87 void removeScheduledSync(
const QString &profileId);
91 void registerAccountListeners();
94 void syncEnableWithAccount(Accounts::Account *account);
95 bool addProfileForAccount(Accounts::Account *account,
96 const QString &serviceName,
98 const QString &label = QString());
100 void setSyncSchedule(
SyncProfile *syncProfile, Accounts::AccountId
id,
bool aCreateNew =
false);
102 void registerAccountListener(Accounts::AccountId
id);
104 Accounts::Manager *iAccountManager;
109 QMap <Accounts::Watch *, Accounts::AccountId> iAcctWatchMap;
111#ifdef SYNCFW_UNIT_TESTS
112 friend class AccountsHelperTest;
Helper Class towards Accounts::Manager and various SSO related operations.
Definition AccountsHelper.h:42
void slotAccountRemoved(Accounts::AccountId id)
slot for Accounts::Manager accountRemoved signal
Definition AccountsHelper.cpp:95
virtual ~AccountsHelper()
Destructor.
Definition AccountsHelper.cpp:52
void createProfileForAccount(Accounts::AccountId id)
This method is used to create profiles for a specified account.
Definition AccountsHelper.cpp:61
QList< SyncProfile * > getProfilesByAccountId(Accounts::AccountId id)
Returns sync profiles that correspond to a given account ID.
Definition AccountsHelper.cpp:233
ProfileManager is responsible for storing and retrieving the profiles.
Definition ProfileManager.h:46
A top level synchronization profile.
Definition SyncProfile.h:54
Definition SyncBackupAdaptor.h:40