~morphis/aethercast/sink-support

« back to all changes in this revision

Viewing changes to src/w11tng/networkmanager.h

  • Committer: Simon Fels
  • Date: 2016-01-18 21:55:31 UTC
  • mfrom: (162.1.7 ac-wpa-dbus)
  • Revision ID: simon.fels@canonical.com-20160118215531-jfy1lx9ggtyz60au
Merge parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include "dhcpclient.h"
31
31
#include "wififirmwareloader.h"
32
32
#include "informationelement.h"
 
33
#include "hostname1stub.h"
33
34
 
34
35
namespace w11tng {
35
36
 
41
42
                       public w11tng::WiFiFirmwareLoader::Delegate,
42
43
                       public w11tng::InterfaceSelector::Delegate,
43
44
                       public w11tng::ManagerStub::Delegate,
44
 
                       public w11tng::InterfaceStub::Delegate {
 
45
                       public w11tng::InterfaceStub::Delegate,
 
46
                       public w11tng::Hostname1Stub::Delegate {
45
47
public:
46
48
    static constexpr const char *kBusName{"fi.w1.wpa_supplicant1"};
47
49
    static constexpr unsigned int kConnectTimeout = 100;
94
96
 
95
97
    void OnInterfaceReady() override;
96
98
 
 
99
    void OnHostnameChanged() override;
 
100
 
97
101
private:
98
102
    static void OnServiceLost(GDBusConnection *connection, const gchar *name, gpointer user_data);
99
103
    static void OnServiceFound(GDBusConnection *connection, const gchar *name, const gchar *name_owner, gpointer user_data);
114
118
 
115
119
    DeviceType GenerateDeviceType();
116
120
 
 
121
    std::string SelectHostname();
 
122
    std::string SelectDeviceType();
 
123
    void SyncDeviceConfiguration();
 
124
 
117
125
private:
118
126
    mcs::ScopedGObject<GDBusConnection> connection_;
119
127
    mcs::NetworkManager::Delegate *delegate_;
131
139
    std::string dedicated_p2p_interface_;
132
140
    bool session_available_;
133
141
    std::vector<Capability> capabilities_;
 
142
    Hostname1Stub::Ptr hostname_service_;
134
143
};
135
144
 
136
145
} // namespace w11tng