23#ifndef ACCOUNTSHELPER_H
24#define ACCOUNTSHELPER_H
28#include <Accounts/manager.h>
29#include <Accounts/account.h>
34class AccountsHelperTest;
79 void slotSchedulerSettingsChanged(
const char *aKey);
82 void enableSOC(
const QString &aProfileName);
83 void scheduleUpdated(
const QString &aProfileName);
84 void removeProfile(QString profileId);
85 void removeScheduledSync(
const QString &profileId);
88 void registerAccountListeners();
91 void syncEnableWithAccount(Accounts::Account *account);
92 void syncEnableWithService(Accounts::Account *account,
const QString &serviceName,
bool enabled);
93 bool addProfileForAccount(Accounts::Account *account,
94 const QString &serviceName,
96 const QString &label = QString());
98 void setSyncSchedule(
SyncProfile *syncProfile, Accounts::AccountId
id,
bool aCreateNew =
false);
100 void registerAccountListener(Accounts::AccountId
id);
102 Accounts::Manager *iAccountManager;
107 QMap <Accounts::Watch *, Accounts::AccountId> iAcctWatchMap;
109#ifdef SYNCFW_UNIT_TESTS
110 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:96
virtual ~AccountsHelper()
Destructor.
Definition AccountsHelper.cpp:53
void createProfileForAccount(Accounts::AccountId id)
This method is used to create profiles for a specified account.
Definition AccountsHelper.cpp:62
QList< SyncProfile * > getProfilesByAccountId(Accounts::AccountId id)
Returns sync profiles that correspond to a given account ID.
Definition AccountsHelper.cpp:270
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