blob: 3a244059c098b66950eb916d656c75737867da95 [file] [log] [blame]
Darin Petkovc37a9c42012-09-06 15:28:22 +02001// Copyright (c) 2012 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_GOBI_PROXY_INTERFACE_H_
6#define SHILL_MODEM_GOBI_PROXY_INTERFACE_H_
7
8#include <string>
9
10#include "shill/callbacks.h"
11
12namespace shill {
13
14class Error;
15
16// These are the methods that a ModemManager.Modem.Gobi proxy must support. The
17// interface is provided so that it can be mocked in tests. All calls are made
18// asynchronously.
19class ModemGobiProxyInterface {
20 public:
21 virtual ~ModemGobiProxyInterface() {}
22
23 virtual void SetCarrier(const std::string &carrier,
24 Error *error, const ResultCallback &callback,
25 int timeout) = 0;
26};
27
28} // namespace shill
29
30#endif // SHILL_MODEM_GOBI_PROXY_INTERFACE_H_