~renatofilho/+junk/buteo-syncfw

« back to all changes in this revision

Viewing changes to msyncd/AccountsHelper.h

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2015-06-22 19:13:00 UTC
  • Revision ID: renato.filho@canonical.com-20150622191300-1k3j7n2s3ge0o0bq
Make sure that AccountsHelper signals are fired after class constructor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <Accounts/account.h>
30
30
 
31
31
namespace Buteo {
32
 
                 
 
32
 
33
33
class Profile;
34
34
class AccountsHelperTest;
35
35
class ProfileManager;
36
36
class SyncProfile;
37
 
    
 
37
 
38
38
const QString REMOTE_SERVICE_NAME("remote_service_name");
39
39
 
40
40
/*! \brief Helper Class towards Accounts::Manager and various SSO related
57
57
     *
58
58
     */
59
59
    virtual ~AccountsHelper();
60
 
    
 
60
 
61
61
    /*! \brief Returns sync profiles that correspond to a given account ID
62
62
     *
63
63
     * \param id - The account ID.
68
68
 
69
69
public Q_SLOTS:
70
70
 
71
 
        /*! \brief slot for Accounts::Manager accountCreated signal
72
 
         *
73
 
         * \param id Accounts Id
74
 
         */
 
71
    /*! \brief slot for Accounts::Manager accountCreated signal
 
72
     *
 
73
     * \param id Accounts Id
 
74
     */
75
75
    void slotAccountCreated(Accounts::AccountId id);
76
76
 
77
 
        /*! \brief slot for Accounts::Manager accountRemoved signal
78
 
         *
79
 
         * \param id of the accounts
80
 
         */
 
77
    /*! \brief slot for Accounts::Manager accountRemoved signal
 
78
     *
 
79
     * \param id of the accounts
 
80
     */
81
81
    void slotAccountRemoved(Accounts::AccountId id);
82
82
 
83
 
        /*! \brief slot for Accounts::Account enabledChanged signal
84
 
         *
85
 
         * \param serviceName The service that was enabled/disabled. Empty if the
 
83
    /*! \brief slot for Accounts::Account enabledChanged signal
 
84
     *
 
85
     * \param serviceName The service that was enabled/disabled. Empty if the
86
86
     * entire account is enabled/disabled
87
87
     * \param enabled Boolean indicating enabled (true) or disabled (false)
88
 
         */
 
88
     */
89
89
    void slotAccountEnabledChanged(const QString &serviceName, bool enabled);
90
 
    
91
 
        /*! \brief slot for Accounts::Manager displayNameChanged signal
92
 
         * *
93
 
         * \param id of the accounts
94
 
         */
 
90
 
 
91
    /*! \brief slot for Accounts::Manager displayNameChanged signal
 
92
     * *
 
93
     * \param id of the accounts
 
94
     */
95
95
    void slotAccountUpdated(Accounts::AccountId id);
96
96
 
97
97
    void slotSchedulerSettingsChanged(const char *aKey);
102
102
    void removeProfile(QString profileId);
103
103
    void removeScheduledSync(const QString& profileId);
104
104
 
 
105
private Q_SLOTS:
 
106
    void registerAccountListeners();
 
107
 
105
108
private:
106
109
 
107
110
    /*!
117
120
                               const SyncProfile *baseProfile);
118
121
 
119
122
    void setSyncSchedule(SyncProfile *syncProfile, Accounts::AccountId id, bool aCreateNew = false);
120
 
    void registerAccountListeners();
 
123
 
121
124
 
122
125
    void addSetting(Accounts::AccountId id, QString key, QVariant value);
123
126