summaryrefslogtreecommitdiff
path: root/src/location/places/qplaceweekdayhours.h
blob: 264df5b8715de1e1c389a96e442abf83be21a70a (plain)
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
#ifndef QPLACEWEEKDAYHOURS_H
#define QPLACEWEEKDAYHOURS_H

#include <QSharedDataPointer>
#include "qmobilityglobal.h"
#include "qplaceperiod.h"

QTM_BEGIN_NAMESPACE

class QPlaceWeekdayHoursPrivate;

class Q_LOCATION_EXPORT QPlaceWeekdayHours
{
public:
    QPlaceWeekdayHours();
    QPlaceWeekdayHours(const QPlaceWeekdayHours &other);

    virtual ~QPlaceWeekdayHours();

    QPlaceWeekdayHours &operator=(const QPlaceWeekdayHours &other);

    bool operator==(const QPlaceWeekdayHours &other) const;
    bool operator!=(const QPlaceWeekdayHours &other) const {
        return !(other == *this);
    }

    QPlacePeriod period() const;
    void setPeriod(const QPlacePeriod &period);
    Qt::DayOfWeek weekday() const;
    void setWeekday(const Qt::DayOfWeek &weekday);

private:
    QSharedDataPointer<QPlaceWeekdayHoursPrivate> d;
};

QTM_END_NAMESPACE

#endif // QPLACEWEEKDAYHOURS_H