/*
* Copyright (C) 2014 Canonical Ltd.
*
* This program 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.
*
* 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. If not, see .
*
* Authored by: Nick Dedekind
class MockTelepathyHelper : public QObject
{
Q_OBJECT
Q_PROPERTY(bool ready
READ ready
WRITE setReady // only in mock
NOTIFY readyChanged)
Q_PROPERTY(bool emergencyCallsAvailable
READ emergencyCallsAvailable
WRITE setEmergencyCallsAvailable // only in mock
NOTIFY emergencyCallsAvailableChanged)
Q_DISABLE_COPY(MockTelepathyHelper)
public:
MockTelepathyHelper(QObject *parent = 0);
static MockTelepathyHelper *instance();
Q_INVOKABLE void registerChannelObserver(const QString& name);
bool ready() const;
void setReady(bool value);
bool emergencyCallsAvailable() const;
void setEmergencyCallsAvailable(bool value);
Q_SIGNALS:
void readyChanged();
void emergencyCallsAvailableChanged();
private:
bool m_ready;
bool m_emergencyCallsAvailable;
};
#endif // MOCKCONTACTWATCHER_H