equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #ifndef CALENNATIVEVIEW_H |
19 #ifndef CALENNATIVEVIEW_H |
20 #define CALENNATIVEVIEW_H |
20 #define CALENNATIVEVIEW_H |
|
21 |
|
22 #ifdef CALENVIEWS_DLL |
|
23 #define CALENNATIVEVIEW_EXPORT Q_DECL_EXPORT |
|
24 #else |
|
25 #define CALENNATIVEVIEW_EXPORT Q_DECL_IMPORT |
|
26 #endif |
21 |
27 |
22 // System includes |
28 // System includes |
23 #include <hblabel.h> |
29 #include <hblabel.h> |
24 #include <hblistwidget.h> |
30 #include <hblistwidget.h> |
25 #include <hbabstractviewitem.h> |
31 #include <hbabstractviewitem.h> |
45 virtual ~CalenNativeView(); |
51 virtual ~CalenNativeView(); |
46 virtual void populationComplete(); |
52 virtual void populationComplete(); |
47 TBool pluginEnabled(); |
53 TBool pluginEnabled(); |
48 virtual void refreshViewOnGoToDate(); |
54 virtual void refreshViewOnGoToDate(); |
49 QString *pluginText(); |
55 QString *pluginText(); |
|
56 /** |
|
57 * captureScreenshot captures the current screenshot |
|
58 * \param viewId of the view for which screenshot is to be taken |
|
59 */ |
|
60 CALENNATIVEVIEW_EXPORT void captureScreenshot(bool captureScreenShot = false); |
50 |
61 |
51 protected: // New functions |
62 protected: // New functions |
52 CalenNativeView( MCalenServices& services ); |
63 CalenNativeView( MCalenServices& services ); |
53 |
64 |
54 void HandleNotification( const TCalenNotification notification ); |
65 void HandleNotification( const TCalenNotification notification ); |
61 void goToSelectedDate(); |
72 void goToSelectedDate(); |
62 void deleteBeforeDate(); |
73 void deleteBeforeDate(); |
63 void deleteAllEntries(); |
74 void deleteAllEntries(); |
64 void launchSettingsView(); |
75 void launchSettingsView(); |
65 virtual void changeOrientation(Qt::Orientation orientation); |
76 virtual void changeOrientation(Qt::Orientation orientation); |
|
77 /** |
|
78 * saveActivity saves the current view as an activity |
|
79 * \params viewId view Id to be saved as an activity |
|
80 * |
|
81 */ |
|
82 void saveActivity(); |
66 |
83 |
67 protected: |
84 protected: |
68 |
85 |
69 MCalenServices &mServices; // not owned. |
86 MCalenServices &mServices; // not owned. |
70 |
87 int mActivityId; // Recent Activity ID, currently it holdes wither of ECalenMonthView or ECalenDayView |
|
88 QVariantHash mScreenShotMetadata; // Screenshot |
71 private: |
89 private: |
72 HbDateTimePicker *mDatePicker; |
90 HbDateTimePicker *mDatePicker; |
|
91 bool mIsCapturedScreenShotValid; // to check if the captured screenshot is valid |
73 }; |
92 }; |
74 |
93 |
75 #endif // CALENNATIVEVIEW_H |
94 #endif // CALENNATIVEVIEW_H |
76 |
95 |
77 // End of file |
96 // End of file |