Remove unnecessary includes
[profile/ivi/ofono-qt.git] / lib / ofononetworkoperator.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
25 #ifndef OFONONETWORKOPERATOR_H
26 #define OFONONETWORKOPERATOR_H
27
28 #include <QtCore/QObject>
29 #include <QVariant>
30 #include <QStringList>
31 #include "ofonointerface.h"
32 #include "libofono-qt_global.h"
33
34 //! This class is used to access oFono network operator API
35 /*!
36  * The API is documented in
37  * http://git.kernel.org/?p=network/ofono/ofono.git;a=blob_plain;f=doc/network-api.txt
38  */
39 class OFONO_QT_EXPORT OfonoNetworkOperator : public OfonoInterface
40 {
41     Q_OBJECT
42 public:
43     OfonoNetworkOperator(const QString& operatorId, QObject *parent=0);
44     ~OfonoNetworkOperator();
45
46     void requestRegister();
47     
48     QString name() const;
49     QString status() const;
50     QString mcc() const;
51     QString mnc() const;
52     QStringList technologies() const;
53     QString additionalInfo() const;
54     
55 signals:
56     void registerComplete(bool success);
57     
58     void nameChanged(const QString &name);
59     void statusChanged(const QString &status);
60     void mccChanged(const QString &mcc);
61     void mncChanged(const QString &mnc);
62     void technologiesChanged(const QStringList &technologies);
63     void additionalInfoChanged(const QString &additionalInfo);
64
65 private:
66
67 private slots:
68     void propertyChanged(const QString& property, const QVariant& value);
69     
70     void registerResp();
71     void registerErr(const QDBusError& error);
72
73
74 private:
75
76
77 };
78 #endif