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
42
43
44
45
46
47
48
49
50
|
#ifndef QPLACEPERIOD_H
#define QPLACEPERIOD_H
#include <QDateTime>
#include <QSharedDataPointer>
#include "qplaceglobal.h"
namespace QT_PLACES_NAMESPACE {
class QPlacePeriodPrivate;
class Q_PLACES_EXPORT QPlacePeriod
{
public:
QPlacePeriod();
QPlacePeriod(int startHour, int startMinute, int endHour, int endMinute);
QPlacePeriod(int startMonth, int startDay, int startHour, int startMinute,
int endMonth, int endDay, int endHour, int endMinute);
QPlacePeriod(int startYear, int startMonth, int startDay, int startHour, int startMinute,
int endYear, int endMonth, int endDay, int endHour, int endMinute);
QPlacePeriod(const QPlacePeriod &other);
virtual ~QPlacePeriod();
QPlacePeriod &operator=(const QPlacePeriod &other);
bool operator==(const QPlacePeriod &other) const;
bool operator!=(const QPlacePeriod &other) const {
return !(other == *this);
}
int startYear() const;
int startMonth() const;
int startDay() const;
int startHour() const;
int startMinute() const;
int endYear() const;
int endMonth() const;
int endDay() const;
int endHour() const;
int endMinute() const;
private:
QSharedDataPointer<QPlacePeriodPrivate> d;
};
} // QT_PLACES_NAMESPACE
#endif // QPLACEPERIOD_H
|