/* * Copyright (C) 2012-2013 Canonical, Ltd. * * Authors: * Ugo Riboni * * 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 PHONEAPPDBUS_H #define PHONEAPPDBUS_H #include #include /** * DBus interface for the phone app */ class PhoneAppDBus : public QObject, protected QDBusContext { Q_OBJECT public: PhoneAppDBus(QObject* parent=0); ~PhoneAppDBus(); bool connectToBus(); public Q_SLOTS: Q_NOREPLY void ShowMessages(const QString &number); Q_NOREPLY void ShowMessage(const QString &messageId); Q_NOREPLY void NewMessage(); Q_NOREPLY void SendMessage(const QString &number, const QString &message); Q_NOREPLY void ShowVoicemail(); Q_NOREPLY void CallNumber(const QString &number); Q_NOREPLY void SendAppMessage(const QString &message); Q_SIGNALS: void request(const QString &message); void messageSendRequested(const QString &phoneNumber, const QString &message); }; #endif // PHONEAPPDBUS_H