/* * Copyright (C) 2012 Canonical, Ltd. * * Authors: * Gustavo Pichorim Boiko * * This file is part of phone-app. * * phone-app is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3. * * phone-app 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. If not, see . */ #ifndef VOICEMAILINDICATOR_H #define VOICEMAILINDICATOR_H #include #include #include class VoiceMailIndicator : public QObject { Q_OBJECT public: explicit VoiceMailIndicator(QObject *parent = 0); void showVoicemailOnApp(); public Q_SLOTS: void onVoicemailCountChanged(int count); void onVoicemailIndicatorChanged(bool active); void onAccountReady(); private: bool voicemailIndicatorVisible(); int voicemailCount(); bool checkConnected(); QDBusConnection mConnection; }; #endif // VOICEMAILINDICATOR_H