File indexing completed on 2025-01-05 05:01:15
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2022-2023 Harald Sitter <sitter@kde.org> 0003 0004 #pragma once 0005 0006 #include "sentryconnection.h" 0007 0008 // Collects not sent envelopes and sends them off to sentry every once in a while. 0009 // Will just fail when there is no network connectivity. 0010 // Should things go wrong we'll eventually get killed by systemd. 0011 class SentryPostman : public QObject 0012 { 0013 Q_OBJECT 0014 public: 0015 using QObject::QObject; 0016 void run(); 0017 0018 private: 0019 void post(const QString &path, const QString &filename, const QDateTime &mtime); 0020 SentryNetworkConnection m_connection; 0021 };