69 const TUint KMsgStoreSystemEventMin = 1000; |
69 const TUint KMsgStoreSystemEventMin = 1000; |
70 |
70 |
71 /** Defines the system events of which observers receive notification. */ |
71 /** Defines the system events of which observers receive notification. */ |
72 enum TMsgStoreSystemEvent |
72 enum TMsgStoreSystemEvent |
73 { |
73 { |
74 // A backup or restore is in progress. The message store is unavailable. |
74 // Available and Unavailable events have been added which include the |
75 EMsgStoreBackupOrRestoreInProgress = KMsgStoreSystemEventMin, |
75 // status of backup/restore and Pointsec. It is recommended that these |
76 |
76 // new events be used to determine Msg Store availability. |
77 // The backup or restore completed. The message store is available again. |
77 // Backup/restore events and Pointsec events left for backwards compatibility. |
78 EMsgStoreBackupOrRestoreCompleted, |
78 |
|
79 // A backup or restore is in progress. |
|
80 EMsgStoreBackupOrRestoreInProgress = KMsgStoreSystemEventMin, |
|
81 |
|
82 // The backup or restore completed. |
|
83 EMsgStoreBackupOrRestoreCompleted, |
79 |
84 |
80 // PointSec has locked the file system, all operations are suspendded |
85 // PointSec has locked the file system, all operations are suspendded |
81 EMsgStorePointSecLockStarted, |
86 EMsgStorePointSecLockStarted, |
82 |
87 |
83 // PointSec has unlocked the file system, all operations are resumed |
88 // PointSec has unlocked the file system, all operations are resumed |
84 EMsgStorePointSecLockEnded, |
89 EMsgStorePointSecLockEnded, |
85 |
90 |
86 // The message store has been wiped, including the password. |
91 // The message store has been wiped, including the password. |
87 EMsgStoreDatabaseWiped, |
92 EMsgStoreDatabaseWiped, |
88 |
93 |
89 // The message store has transitioned from an authenticated state to an unauthenticated state. |
94 // The message store has transitioned from an authenticated state to an unauthenticated state. |
90 EMsgStoreNotAuthenticated, |
95 EMsgStoreNotAuthenticated, |
93 EMsgStoreAuthenticated, |
98 EMsgStoreAuthenticated, |
94 |
99 |
95 // The observer event queue has overflowed and has been reset, so events have been lost. This |
100 // The observer event queue has overflowed and has been reset, so events have been lost. This |
96 // shouldn't happen unless the client thread has been starved for an extended period of time, during |
101 // shouldn't happen unless the client thread has been starved for an extended period of time, during |
97 // which many message store operations have occurred. |
102 // which many message store operations have occurred. |
98 EObserverEventQueueOverflow |
103 EObserverEventQueueOverflow, |
|
104 |
|
105 // The message store is unavailable. This may be due to |
|
106 // a backup or restore being in progress, a Pointsec lock being issued, |
|
107 // the disk drive being unavailable, etc. |
|
108 EMsgStoreUnavailable, |
|
109 |
|
110 // All lock conditions have cleared and the message store is available again. |
|
111 EMsgStoreAvailable |
99 |
112 |
100 }; // end enum TMsgStoreSystemEvent |
113 }; // end enum TMsgStoreSystemEvent |
101 |
114 |
102 const TUint KMsgStoreAccountEventMin = 2000; |
115 const TUint KMsgStoreAccountEventMin = 2000; |
103 |
116 |