bd319f45d76d4a8fdf033ac2c7fbec0ec4abbac3
[profile/ivi/ofono-qt.git] / lib / ofonocallmeter.h
1 /*
2  * This file is part of ofono-qt
3  *
4  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5  *
6  * Contact: Alexander Kanavin <alexander.kanavin@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * version 2.1 as published by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  *
22  */
23
24 #ifndef OFONOCALLMETER_H
25 #define OFONOCALLMETER_H
26
27 #include <QtCore/QObject>
28 #include <QtDBus/QtDBus>
29 #include "ofonomodeminterface.h"
30 #include "libofono-qt_global.h"
31
32 class OFONO_QT_EXPORT OfonoCallMeter : public OfonoModemInterface
33 {
34     Q_OBJECT
35
36 public:
37     OfonoCallMeter(QString modemId, QObject *parent=0);
38     ~OfonoCallMeter();
39
40     /* Properties */
41     void requestCallMeter();
42     
43 signals:
44     void callMeterComplete(bool success, uint value);
45
46     void callMeterChanged(uint value);
47
48 private slots:
49     void propertyChanged(const QString& property, const QVariant& value);
50     void requestPropertyComplete(bool success, const QString& property, const QVariant& value);
51 };
52
53 #endif  /* !OFONOCALLMETER_H */