File indexing completed on 2024-04-14 03:49:30

0001 /*
0002     This file is part of KDE.
0003 
0004     SPDX-FileCopyrightText: 2010 Intel Corporation
0005     SPDX-FileContributor: Mateu Batle Sastre <mbatle@collabora.co.uk>
0006 
0007     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0008 */
0009 
0010 #ifndef ATTICAUTILS_H
0011 #define ATTICAUTILS_H
0012 
0013 #include <QDateTime>
0014 #include <QNetworkAccessManager>
0015 #include <QString>
0016 
0017 namespace Attica
0018 {
0019 class Utils
0020 {
0021 public:
0022     /// parses the QtDateTime in ISO 8601 format correctly (recognizes TZ properly)
0023     static QDateTime parseQtDateTimeIso8601(const QString &str);
0024     static const char *toString(QNetworkAccessManager::Operation operation);
0025 };
0026 
0027 }
0028 
0029 #endif // ATTICAUTILS_H