summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/winrt/winrtcommon.h
blob: 6f4c868ce0f8665280fc14ae861de1d7ee68347b (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
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef WINRTCOMMON_H
#define WINRTCOMMON_H

#include <QtCore/QLoggingCategory>

namespace ABI {
    namespace Windows {
        namespace Foundation {
            struct DateTime;
        }
    }
}

QT_USE_NAMESPACE

Q_DECLARE_LOGGING_CATEGORY(lcWinRtSensors)

quint64 dateTimeToMsSinceEpoch(const ABI::Windows::Foundation::DateTime &dateTime);

#endif // WINRTCOMMON_H