|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Defines class MNcnMsvSessionHandlerObserver. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef NCNMSVSESSIONHANDLEROBSERVER_H |
|
21 #define NCNMSVSESSIONHANDLEROBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <msvstd.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMsvSession; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Observer interface for Msv session handling. |
|
34 */ |
|
35 class MNcnMsvSessionHandlerObserver |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Notifies that Msv session is ready to use. |
|
40 * @param aMsvSession The Msv session. |
|
41 */ |
|
42 virtual void HandleMsvSessionReadyL( CMsvSession& aMsvSession ); |
|
43 |
|
44 /** |
|
45 * Notifies that Msv session is closed. |
|
46 */ |
|
47 virtual void HandleMsvSessionClosedL(); |
|
48 |
|
49 /** |
|
50 * Notifies that an entry has been created. |
|
51 * @apram aMsvId Id of the created entry. |
|
52 */ |
|
53 virtual void HandleMsvEntryCreatedL( const TMsvId& aMsvId ); |
|
54 |
|
55 /** |
|
56 * Notifies that an entry has been created. |
|
57 * @apram aMsvId Id of the deleted entry. |
|
58 */ |
|
59 virtual void HandleMsvEntryDeletedL( const TMsvId& aMsvId ); |
|
60 |
|
61 /** |
|
62 * Notifies that the Message Server has automatically changed the index |
|
63 * location to use the internal disk. |
|
64 * @param aDriveNumber The drive number where the message store moves |
|
65 */ |
|
66 virtual void HandleMsvMediaChangedL( const TDriveNumber& aDriveNumber ); |
|
67 |
|
68 /** |
|
69 * The disk containing the Message Store is Unavailable again. |
|
70 * Change the message store to default |
|
71 */ |
|
72 virtual void HandleMsvMediaUnavailableL(); |
|
73 |
|
74 |
|
75 /** |
|
76 * The disk containing the Message Store is available again. |
|
77 * The Message Server can now operate as normal |
|
78 * @param aDriveNumber is a TDriveNumber value that identifies the drive that is being used. |
|
79 */ |
|
80 virtual void HandleMsvMediaAvailableL( const TDriveNumber& aDriveNumber ); |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // NCNMSVSESSIONHANDLEROBSERVER_H |
|
85 |
|
86 // End of File |