equal
deleted
inserted
replaced
46 |
46 |
47 /*! |
47 /*! |
48 Destructor. |
48 Destructor. |
49 */ |
49 */ |
50 HsBackupRestoreObserverPrivate::~HsBackupRestoreObserverPrivate() |
50 HsBackupRestoreObserverPrivate::~HsBackupRestoreObserverPrivate() |
51 { |
51 { |
52 disconnect(sender(), SIGNAL(valueChanged(XQSettingsKey, const QVariant &)), |
|
53 this, SLOT(handleKeyChange(XQSettingsKey, const QVariant&))); |
|
54 delete mCallBack; |
52 delete mCallBack; |
55 delete mActiveBackupClient; |
53 delete mActiveBackupClient; |
56 } |
54 } |
57 |
55 |
58 /*! |
56 /*! |
128 Singleton. |
126 Singleton. |
129 */ |
127 */ |
130 HsBackupRestoreObserver *HsBackupRestoreObserver::instance() |
128 HsBackupRestoreObserver *HsBackupRestoreObserver::instance() |
131 { |
129 { |
132 if (!mInstance) { |
130 if (!mInstance) { |
133 mInstance.reset(new HsBackupRestoreObserver); |
131 mInstance = new HsBackupRestoreObserver(); |
134 } |
132 } |
135 return mInstance.data(); |
133 return mInstance; |
136 } |
134 } |
137 |
135 |
138 /*! |
136 /*! |
139 Constructs a new observer with the given \a parent object. |
137 Constructs a new observer with the given \a parent object. |
140 */ |
138 */ |
193 return mBUROngoing; |
191 return mBUROngoing; |
194 } |
192 } |
195 /*! |
193 /*! |
196 Points to the observer instance. |
194 Points to the observer instance. |
197 */ |
195 */ |
198 QScopedPointer<HsBackupRestoreObserver> HsBackupRestoreObserver::mInstance(0); |
196 HsBackupRestoreObserver *HsBackupRestoreObserver::mInstance(0); |
199 |
197 |
200 // End of File |
198 // End of File |