-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappointmentform.h
41 lines (32 loc) · 917 Bytes
/
appointmentform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef APPOINTMENTFORM_H
#define APPOINTMENTFORM_H
#include <QDialog>
#include "appointment.h"
#include "calendar.h"
#include "contactdatabase.h"
#include "accessibledatetimeedit.h"
namespace Ui {
class AppointmentForm;
}
class AppointmentForm : public QDialog
{
Q_OBJECT
public:
explicit AppointmentForm(QWidget *parent = 0);
~AppointmentForm();
void setName(QString name) ;
void setupForm(ContactDatabase &db, QString contactid, Appointment &editing, Appointment &reference, bool createNew) ;
Appointment& getAppointmentDetails() ;
private slots:
void on_editWhenFrom_valueChanged(const QDateTime &, int );
void on_editWhenTo_valueChanged(const QDateTime &, int );
private:
bool mutex ;
void setupForm() ;
ContactDatabase *database ;
Ui::AppointmentForm *ui;
Calendar *cal;
Appointment appt ;
void updateTimes() ;
};
#endif // APPOINTMENTFORM_H