|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __MBACKUPRESTORENOTIFICATIONOBSERVER_H__ |
|
17 #define __MBACKUPRESTORENOTIFICATIONOBSERVER_H__ |
|
18 |
|
19 |
|
20 class MBackupRestoreNotificationObserver |
|
21 /** |
|
22 The MBackupRestoreNotificationObserver |
|
23 This interface is an observer class for CBackupRestoreNotification. |
|
24 Use this observer to be notified of a backup/restore operation. |
|
25 |
|
26 @internalComponent |
|
27 @released |
|
28 */ |
|
29 { |
|
30 public: |
|
31 /** |
|
32 The Backup Server has notified that a Backup is about to begin. |
|
33 The Application should complete all existing operations on files which are to be backed up. |
|
34 It should block write access attempt to the file until BackupCompletedL is called. |
|
35 */ |
|
36 virtual void BackupBeginningL() = 0; |
|
37 |
|
38 /** |
|
39 The Backup Server has notified that a Backup operation has completed. |
|
40 Write access to application files should be allowed again. |
|
41 @pre BackupBeginningL had previously been called. |
|
42 */ |
|
43 virtual void BackupCompletedL() = 0; |
|
44 |
|
45 /** |
|
46 The Backup Server has notified that a Restore operation has completed. |
|
47 Files being backed up should be closed. Files should not be accessed until |
|
48 RestoreCompletedL is called. |
|
49 */ |
|
50 virtual void RestoreBeginningL() = 0; |
|
51 |
|
52 /** |
|
53 The Backup Server has notified that a Restore operation has completed. |
|
54 File can now be accessed. After a successful Restore (i.e.the Restore operation |
|
55 completed) file should be reopened. |
|
56 @pre RestoreBeginningL had previously been called. |
|
57 @param aRestoreResult Indicates if the Restore operation was successful. |
|
58 KErrAbort - Restore failed to complete for some reason. |
|
59 KErrNone - The Restore operation completed successfully. |
|
60 */ |
|
61 virtual void RestoreCompletedL(TInt aRestoreResult) = 0; |
|
62 }; |
|
63 |
|
64 |
|
65 #endif // __MBACKUPRESTORENOTIFICATIONOBSERVER_H__ |
|
66 |