~morphis/aethercast/enable-arm64-builds

« back to all changes in this revision

Viewing changes to src/mcs/networkmanagerfactory.h

  • Committer: Tarmac
  • Author(s): Simon Fels
  • Date: 2016-02-04 06:38:31 UTC
  • mfrom: (119.1.65 trunk)
  • Revision ID: tarmac-20160204063831-b6q9o8ktznevvd8x
Add a network manager implementation to use the DBus interface of wpa-supplicant.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
namespace mcs {
24
24
 
 
25
// Only here to make unit testing easier for the factory class
 
26
class NullNetworkManager : public mcs::NetworkManager {
 
27
public:
 
28
    void SetDelegate(Delegate * delegate) override;
 
29
 
 
30
    bool Setup() override;
 
31
    void Release() override;
 
32
 
 
33
    void Scan(const std::chrono::seconds &timeout) override;
 
34
    bool Connect(const NetworkDevice::Ptr &device) override;
 
35
    bool Disconnect(const NetworkDevice::Ptr &device) override;
 
36
 
 
37
    std::vector<NetworkDevice::Ptr> Devices() const override;
 
38
    IpV4Address LocalAddress() const override;
 
39
    bool Running() const override;
 
40
    bool Scanning() const override;
 
41
 
 
42
    void SetCapabilities(const std::vector<Capability> &capabilities) override;
 
43
    std::vector<Capability> Capabilities() const override;
 
44
};
 
45
 
25
46
class NetworkManagerFactory {
26
47
public:
27
48
    static NetworkManager::Ptr Create(const std::string &type = "");