calendarui/caleneditor/inc/caleneditor.h
changeset 55 2c54b51f39c4
parent 45 b6db4fd4947b
--- a/calendarui/caleneditor/inc/caleneditor.h	Mon Jul 12 02:32:28 2010 +0530
+++ b/calendarui/caleneditor/inc/caleneditor.h	Mon Jul 26 13:54:38 2010 +0530
@@ -38,7 +38,7 @@
 #   define CALENEDITOR_EXPORT Q_DECL_IMPORT
 #endif
 
-class CALENEDITOR_EXPORT CalenEditor : public QObject //HbView
+class CalenEditor : public QObject //HbView
 {
 	Q_OBJECT
 
@@ -49,20 +49,23 @@
 		TypeUnKnown = -1
 	};
 	
-	explicit CalenEditor(QObject *parent = 0);
-	explicit CalenEditor(AgendaUtil *agendaUtil, QObject *parent = 0);
-	virtual ~CalenEditor();
-
-public:
-	void edit(const QFile &handle, bool launchCalendar);
-	void edit(AgendaEntry entry, bool launchCalendar);
-	void edit(ulong id, bool launchCalendar);
-	void create(QDateTime newEntryDateTime,
+	CALENEDITOR_EXPORT explicit CalenEditor(QObject *parent = 0);
+	CALENEDITOR_EXPORT explicit CalenEditor(AgendaUtil *agendaUtil, QObject *parent = 0);
+	CALENEDITOR_EXPORT virtual ~CalenEditor();
+	CALENEDITOR_EXPORT void edit(const QFile &handle, bool launchCalendar);
+	CALENEDITOR_EXPORT void edit(AgendaEntry entry, bool launchCalendar);
+	CALENEDITOR_EXPORT void edit(ulong id, bool launchCalendar);
+	CALENEDITOR_EXPORT void create(QDateTime newEntryDateTime,
 	            bool launchCalendar,
 	            CalenEditor::CreateType type = TypeAppointment);
-	void create(AgendaEntry entry,
+	CALENEDITOR_EXPORT void create(AgendaEntry entry,
 	            bool launchCalendar,
 	            CalenEditor::CreateType type = TypeAppointment);
+    /**
+    * This Function saves the entries
+    * should only calls after edit or create function has called 
+    */
+	CALENEDITOR_EXPORT void saveAndCloseEditor();
 
 signals:
 	void entrySaved();