23 #ifndef ACCOUNTSHELPER_H
24 #define ACCOUNTSHELPER_H
28 #include <Accounts/manager.h>
29 #include <Accounts/account.h>
34 class AccountsHelperTest;
38 const QString REMOTE_SERVICE_NAME(
"remote_service_name");
98 void slotSchedulerSettingsChanged(
const char *aKey);
101 void enableSOC(
const QString& aProfileName);
102 void scheduleUpdated(
const QString& aProfileName);
103 void removeProfile(QString profileId);
104 void removeScheduledSync(
const QString& profileId);
108 void registerAccountListeners();
112 const QString profileName,
115 QString addAccountIfNotExists(Accounts::Account *account,
116 Accounts::Service service,
119 void setSyncSchedule(
SyncProfile *syncProfile, Accounts::AccountId
id,
bool aCreateNew =
false);
121 void addSetting(Accounts::AccountId
id, QString key, QVariant value);
123 void registerAccountListener(Accounts::AccountId
id);
125 Accounts::Manager *iAccountManager;
132 #ifdef SYNCFW_UNIT_TESTS
133 friend class AccountsHelperTest;
139 #endif // ACCOUNTSHELPER_H
void slotAccountRemoved(Accounts::AccountId id)
slot for Accounts::Manager accountRemoved signal
Definition: AccountsHelper.cpp:116
Definition: AccountsHelper.h:31
void slotAccountUpdated(Accounts::AccountId id)
slot for Accounts::Manager displayNameChanged signal
Definition: AccountsHelper.cpp:280
AccountsHelper(ProfileManager &aProfileManager, QObject *aParent=NULL)
Constructor.
Definition: AccountsHelper.cpp:35
QString createProfileForAccount(Accounts::AccountId id)
This method is used to create a profile for a specified account.
Definition: AccountsHelper.cpp:61
Helper Class towards Accounts::Manager and various SSO related operations.
Definition: AccountsHelper.h:43
ProfileManager is responsible for storing and retrieving the profiles.
Definition: ProfileManager.h:45
void slotAccountEnabledChanged(const QString &serviceName, bool enabled)
slot for Accounts::Account enabledChanged signal
Definition: AccountsHelper.cpp:138
virtual ~AccountsHelper()
Destructor.
Definition: AccountsHelper.cpp:52
A top level synchronization profile.
Definition: SyncProfile.h:47
Definition: SyncBackupAdaptor.h:40
QList< SyncProfile * > getProfilesByAccountId(Accounts::AccountId id)
Returns sync profiles that correspond to a given account ID.
Definition: AccountsHelper.cpp:299