homescreenapp/stateplugins/hsmenuworkerstateplugin/tsrc/t_hsmenuworkerstateplugin/src/hsbackuprestoreobserver_mock.cpp
equal
deleted
inserted
replaced
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Home screen Backup/Restore observer. |
14 * Description: Home screen Backup/Restore observer. |
15 * |
15 * |
16 */ |
16 */ |
17 |
|
18 |
17 |
19 #include "hsdatabase.h" |
18 #include "hsdatabase.h" |
20 #include "hsbackuprestoreobserver.h" |
19 #include "hsbackuprestoreobserver.h" |
21 |
20 |
22 |
21 |
50 /*! |
49 /*! |
51 Called when backup/restore is started. |
50 Called when backup/restore is started. |
52 */ |
51 */ |
53 void HsBackupRestoreObserver::backupRestoreStarted() |
52 void HsBackupRestoreObserver::backupRestoreStarted() |
54 { |
53 { |
55 mBUROngoing = true; |
54 mBUROngoing = true; |
56 emit event_backupRestoreStarted(); |
55 emit event_backupRestoreStarted(); |
57 } |
56 } |
58 |
57 |
59 /*! |
58 /*! |
60 Called when backup/restore is completed. |
59 Called when backup/restore is completed. |
61 */ |
60 */ |
62 void HsBackupRestoreObserver::backupRestoreCompleted() |
61 void HsBackupRestoreObserver::backupRestoreCompleted() |
63 { |
62 { |
64 mBUROngoing = false; |
63 mBUROngoing = false; |
65 emit event_backupRestoreCompleted(); |
64 emit event_backupRestoreCompleted(); |
66 } |
65 } |
67 |
66 |
68 /*! |
67 /*! |
69 Called when Home screen is ready for backup/restore. |
68 Called when Home screen is ready for backup/restore. |
70 */ |
69 */ |
75 /*! |
74 /*! |
76 Returns true if bacup/restore is ongoing. |
75 Returns true if bacup/restore is ongoing. |
77 */ |
76 */ |
78 bool HsBackupRestoreObserver::checkBUR() |
77 bool HsBackupRestoreObserver::checkBUR() |
79 { |
78 { |
80 if (mBUROngoing) { |
79 if (mBUROngoing) { |
81 return true; |
80 return true; |
82 } |
81 } |
83 return false; |
82 return false; |
84 } |
83 } |
85 /*! |
84 /*! |
86 Points to the observer instance. |
85 Points to the observer instance. |
87 */ |
86 */ |