|
1 /* |
|
2 * Copyright (c) 2008 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: calendar multiple db |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CALENMULTIPLEDBMANAGER_H_ |
|
20 #define CALENMULTIPLEDBMANAGER_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <calencommandhandler.h> |
|
25 #include <calennotificationhandler.h> // MCalenNotificationHandler |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CCalenController; |
|
29 |
|
30 class CCalenMultipleDbManager : public CBase, |
|
31 public MCalenNotificationHandler, |
|
32 public MCalenCommandHandler |
|
33 { |
|
34 |
|
35 public: // Construction and destruction |
|
36 /** |
|
37 * Symbian 1st phase constructor |
|
38 * @param aController Reference to the CCalenController |
|
39 * @return Pointer to CCalenMultipleDbManager |
|
40 */ |
|
41 static CCalenMultipleDbManager* NewL(); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 virtual ~CCalenMultipleDbManager(); |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 /** |
|
51 * From MCalenCommandHandler. |
|
52 * Handles key presses. |
|
53 * |
|
54 * @param aCommand The command Id of the key. |
|
55 */ |
|
56 TBool HandleCommandL( const TCalenCommand& aCommand ); |
|
57 |
|
58 /** |
|
59 * From MCalenCommandHandler. |
|
60 * Allows extending this API without breaking BC. |
|
61 * |
|
62 * @param aExtensionUid specifies |
|
63 * @return extension of the requested type |
|
64 */ |
|
65 TAny* CalenCommandHandlerExtensionL( TUid aExtensionUid ); |
|
66 |
|
67 /** |
|
68 * Handles notifications (Leaving) |
|
69 */ |
|
70 void HandleNotification( TCalenNotification aNotification ); |
|
71 |
|
72 private: |
|
73 |
|
74 CCalenMultipleDbManager(); |
|
75 |
|
76 void ConstructL(); |
|
77 }; |
|
78 |
|
79 #endif /*CALENMULTIPLEDBMANAGER_H_*/ |