calendarui/agendaeventviewer/inc/agendaeventviewer.h
changeset 23 fd30d51f876b
parent 18 c198609911f9
child 63 a3cb48f6c889
equal deleted inserted replaced
18:c198609911f9 23:fd30d51f876b
    19 #define AGENDAEVENTVIEWER_H
    19 #define AGENDAEVENTVIEWER_H
    20 
    20 
    21 // System includes
    21 // System includes
    22 #include <QObject>
    22 #include <QObject>
    23 #include <qglobal.h>
    23 #include <qglobal.h>
    24 
    24 #include <QDate>
    25 
    25 
    26 // Forward declarations
    26 // Forward declarations
    27 class QFile;
    27 class QFile;
    28 class QString;
    28 class QString;
    29 class AgendaUtil;
    29 class AgendaUtil;
    42 	Q_OBJECT
    42 	Q_OBJECT
    43 	Q_ENUMS(Actions)
    43 	Q_ENUMS(Actions)
    44 
    44 
    45 public:
    45 public:
    46 	enum Actions {
    46 	enum Actions {
       
    47 		ActionNothing,
    47 		ActionEdit = 0x01,
    48 		ActionEdit = 0x01,
    48 		ActionDelete = 0x02,
    49 		ActionDelete = 0x02,
    49 		ActionEditDelete = ActionEdit | ActionDelete,
    50 		ActionEditDelete = ActionEdit | ActionDelete,
    50 		ActionSave = 0x04
    51 		ActionSave = 0x04
    51 	};
    52 	};
    53 	AGENDAEVENTVIEWER_EXPORT explicit AgendaEventViewer(AgendaUtil *agendaUtil, 
    54 	AGENDAEVENTVIEWER_EXPORT explicit AgendaEventViewer(AgendaUtil *agendaUtil, 
    54 	                                                    QObject *parent = 0);
    55 	                                                    QObject *parent = 0);
    55 	AGENDAEVENTVIEWER_EXPORT virtual ~AgendaEventViewer();
    56 	AGENDAEVENTVIEWER_EXPORT virtual ~AgendaEventViewer();
    56 
    57 
    57 public:
    58 public:
    58 	AGENDAEVENTVIEWER_EXPORT void view(const ulong id, Actions action);
    59 	AGENDAEVENTVIEWER_EXPORT void view(const ulong id, 
    59 	AGENDAEVENTVIEWER_EXPORT void view(const QFile &fileHandle, Actions action);
    60 	                                   Actions action = ActionNothing);
    60 	AGENDAEVENTVIEWER_EXPORT void view(AgendaEntry entry, Actions action);
    61 	AGENDAEVENTVIEWER_EXPORT void view(const QFile &fileHandle, 
       
    62 	                                   Actions action = ActionNothing);
       
    63 	AGENDAEVENTVIEWER_EXPORT void view(AgendaEntry entry, 
       
    64 	                                   Actions action = ActionNothing);
    61 
    65 
    62 signals:
    66 signals:
    63 	void viewingCompleted(bool status = true);
    67 	void viewingCompleted(const QDate date = QDate());
    64 	void editingStarted();
    68 	void editingStarted();
    65 	void editingCompleted();
    69 	void editingCompleted();
    66 	void deletingStarted();
    70 	void deletingStarted();
    67 	void deletingCompleted();
    71 	void deletingCompleted();
    68 
    72