// SPDX-FileCopyrightText: 2021 Alexey Andreyev // // SPDX-License-Identifier: LicenseRef-KDE-Accepted-GPL #pragma once #include #include #include "callutilsinterface.h" class ModemController; class CallHistoryDatabase; class CallHistoryManager : public QObject { Q_OBJECT public: explicit CallHistoryManager(QObject *parent = nullptr); void setCallHistoryDatabase(CallHistoryDatabase *callHistoryDatabase); void setCallUtils(org::kde::telephony::CallUtils *callUtils); private Q_SLOTS: void onCallStateChanged(const DialerTypes::CallData &callData); private: org::kde::telephony::CallUtils *m_callUtils; CallHistoryDatabase *m_callHistoryDatabase; };