/* * Copyright 2015 Marco Martin * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef DIALERUTILS_H #define DIALERUTILS_H #include #include #include class DialerUtils : public QObject { Q_OBJECT public: DialerUtils(QObject *parent = 0); virtual ~DialerUtils(); Q_INVOKABLE void notifyMissedCall(const QString &caller, const QString &description); Q_INVOKABLE void resetMissedCalls(); Q_INVOKABLE void notifyRinging(); Q_INVOKABLE void stopRinging(); Q_SIGNALS: void missedCallsActionTriggered(); private: QPointer m_callsNotification; QPointer m_ringingNotification; int m_missedCalls; }; #endif