~nemo-mobile-team/nemo-mobile/timed

« back to all changes in this revision

Viewing changes to src/server/networkregistrationwatcher.h

  • Committer: David Greaves
  • Author(s): David Greaves
  • Date: 2015-10-19 14:58:14 UTC
  • Revision ID: git-v1:b7bd70c81a570d683dc3efd4418fb15fd5a407a3
Migration to git.merproject.org

Signed-off-by: David Greaves <david.greaves@jolla.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
**                                                                        **
3
 
**  Copyright (C) 2013 Jolla Ltd.                                         **
4
 
**  Contact: Petri M. Gerdt <petri.gerdt@jollamobile.com>                 **
5
 
**                                                                        **
6
 
**     This file is part of Timed                                         **
7
 
**                                                                        **
8
 
**     Timed is free software; you can redistribute it and/or modify      **
9
 
**     it under the terms of the GNU Lesser General Public License        **
10
 
**     version 2.1 as published by the Free Software Foundation.          **
11
 
**                                                                        **
12
 
**     Timed 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.               **
15
 
**     See the GNU 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 Timed. If not, see http://www.gnu.org/licenses/   **
19
 
**                                                                        **
20
 
***************************************************************************/
21
 
 
22
 
#ifndef NETWORKREGISTRATIONRWATCHER_H
23
 
#define NETWORKREGISTRATIONRWATCHER_H
24
 
 
25
 
#include <QObject>
26
 
#include <QVariantMap>
27
 
#include <QDBusVariant>
28
 
 
29
 
#include "modemwatcher.h"
30
 
 
31
 
class QDBusInterface;
32
 
class QDBusPendingCallWatcher;
33
 
 
34
 
class NetworkRegistrationWatcher : public ModemWatcher
35
 
{
36
 
    Q_OBJECT
37
 
public:
38
 
    explicit NetworkRegistrationWatcher(const QString objectPath, QObject *parent = 0);
39
 
    ~NetworkRegistrationWatcher();
40
 
 
41
 
public slots:
42
 
    void getProperties();
43
 
 
44
 
signals:
45
 
    void propertyChanged(QString objectPath, QString name, QVariant value);
46
 
 
47
 
private slots:
48
 
    void onPropertyChanged(QString name, QDBusVariant value);
49
 
    void getPropertiesCallback(QDBusPendingCallWatcher *watcher);
50
 
};
51
 
#endif // NETWORKREGISTRATIONRWATCHER_H