~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/src/dbus/networkmanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#ifndef NETWORKMANAGER_H
32
32
#define NETWORKMANAGER_H
33
33
 
 
34
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
 
35
#pragma GCC diagnostic ignored "-Wunused-parameter"
34
36
#include "networkmanager_proxy.h"
 
37
#pragma GCC diagnostic warning "-Wignored-qualifiers"
 
38
#pragma GCC diagnostic warning "-Wunused-parameter"
35
39
 
36
40
using namespace std;
37
41
 
38
42
class NetworkManager
39
 
: public org::freedesktop::NetworkManager_proxy,
 
43
    : public org::freedesktop::NetworkManager_proxy,
40
44
  public DBus::IntrospectableProxy,
41
45
  public DBus::ObjectProxy
42
46
{
43
 
public:
44
 
 
45
 
    NetworkManager(DBus::Connection&, const DBus::Path&, const char*);
46
 
    void StateChanged(const uint32_t& state);
47
 
    void PropertiesChanged(const std::map< std::string, ::DBus::Variant >& argin0);
48
 
    string stateAsString(const uint32_t& state);
49
 
 
50
 
    enum NMState
51
 
    {
52
 
        NM_STATE_UNKNOWN = 0,
53
 
        NM_STATE_ASLEEP,
54
 
        NM_STATE_CONNECTING,
55
 
        NM_STATE_CONNECTED,
56
 
        NM_STATE_DISCONNECTED
57
 
    };
58
 
 
59
 
   static const string statesString[5];
 
47
    public:
 
48
 
 
49
        NetworkManager (DBus::Connection&, const DBus::Path&, const char*);
 
50
        void StateChanged (const uint32_t& state);
 
51
        void PropertiesChanged (const std::map< std::string, ::DBus::Variant >& argin0);
 
52
        string stateAsString (const uint32_t& state);
 
53
 
 
54
        enum NMState {
 
55
            NM_STATE_UNKNOWN = 0,
 
56
            NM_STATE_ASLEEP,
 
57
            NM_STATE_CONNECTING,
 
58
            NM_STATE_CONNECTED,
 
59
            NM_STATE_DISCONNECTED
 
60
        };
 
61
 
 
62
        static const string statesString[5];
60
63
};
61
64
#endif
62
65