2
* Copyright (C) 2014 Canonical, Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Nick Dedekind <nick.dedekind@canonical.com
19
#ifndef MOCKCALLENTRY_H
20
#define MOCKCALLENTRY_H
24
class MockCallEntry : public QObject
27
Q_DISABLE_COPY(MockCallEntry)
29
Q_PROPERTY(QString phoneNumber READ phoneNumber WRITE setPhoneNumber NOTIFY phoneNumberChanged)
30
Q_PROPERTY(bool isConference READ isConference WRITE setIsConference NOTIFY isConferenceChanged)
31
Q_PROPERTY(int elapsedTime READ elapsedTime NOTIFY elapsedTimeChanged)
34
MockCallEntry(QObject *parent = 0);
36
QString phoneNumber() const;
37
bool isConference() const;
38
int elapsedTime() const;
40
void setPhoneNumber(const QString& phoneNumber);
41
void setIsConference(bool isConference);
44
void phoneNumberChanged();
45
void isConferenceChanged();
46
void elapsedTimeChanged();
49
void timerEvent(QTimerEvent * event);
52
QString m_phoneNumber;
57
#endif // MOCKCALLENTRY_H