blob: 414042f2325736114eda13530fb631f9b0b256ad [file] [log] [blame]
Darin Petkova1e0a1c2011-08-25 15:08:33 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_MODEM_GSM_NETWORK_PROXY_INTERFACE_
6#define SHILL_MODEM_GSM_NETWORK_PROXY_INTERFACE_
7
8#include <string>
9
10#include <base/basictypes.h>
11
12namespace shill {
13
14// These are the methods that a ModemManager.Modem.Gsm.Network proxy must
15// support. The interface is provided so that it can be mocked in tests.
16class ModemGSMNetworkProxyInterface {
17 public:
18 virtual ~ModemGSMNetworkProxyInterface() {}
19
20 virtual void Register(const std::string &network_id) = 0;
21};
22
23// ModemManager.Modem.Gsm.Network signal listener to be associated with the
24// proxy.
25class ModemGSMNetworkProxyListener {
26 public:
27 virtual ~ModemGSMNetworkProxyListener() {}
28
29 virtual void OnGSMNetworkModeChanged(uint32 mode) = 0;
30 virtual void OnGSMRegistrationInfoChanged(
31 uint32 status,
32 const std::string &operator_code,
33 const std::string &operator_name) = 0;
34 virtual void OnGSMSignalQualityChanged(uint32 quality) = 0;
35};
36
37} // namespace shill
38
39#endif // SHILL_MODEM_GSM_NETWORK_PROXY_INTERFACE_