|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * Tombstone database for deleted calendar entries. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __CMRUUTILSCALDBTOMBS_H__ |
|
22 #define __CMRUUTILSCALDBTOMBS_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include "CMRUtilsCalDbBase.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CCalSession; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Tombstone database for deleted calendar entries. |
|
35 */ |
|
36 class CMRUtilsCalDbTombs |
|
37 : public CMRUtilsCalDbBase |
|
38 { |
|
39 public: // Constructors and destructors |
|
40 |
|
41 /** |
|
42 * Symbian two-phased constructor. |
|
43 * @param aDbObserver database event/status observer |
|
44 * @param aCmdObserver asynchronous cmd progress observer |
|
45 */ |
|
46 static CMRUtilsCalDbTombs* NewL( MMRUtilsCalDbObserver& aDbObserver, |
|
47 MCalProgressCallBack& aCmdObserver ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CMRUtilsCalDbTombs(); |
|
53 |
|
54 protected: // From CMRUtilsCalDbBase |
|
55 |
|
56 void ResetDbL(); |
|
57 |
|
58 protected: // From MCalProgressCallBack |
|
59 |
|
60 void Completed( TInt aError ); |
|
61 |
|
62 protected: // New functions |
|
63 |
|
64 /** |
|
65 * Helper method for opening tombstone db. |
|
66 */ |
|
67 void OpenTombsFileWithEntryViewL(); |
|
68 |
|
69 protected: // Constructors and destructors |
|
70 |
|
71 /** |
|
72 * Constructor, second phase. |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 /** |
|
77 * C++ default constructor. |
|
78 * @param aDbObserver database event/status observer |
|
79 * @param aCmdObserver asynchronous cmd progress observer |
|
80 */ |
|
81 CMRUtilsCalDbTombs( MMRUtilsCalDbObserver& aDbObserver, |
|
82 MCalProgressCallBack& aCmdObserver ); |
|
83 }; |
|
84 |
|
85 #endif // __CMRUUTILSCALDBTOMBS_H__ |
|
86 |
|
87 // End of File |