blob: da6b2ad59601a81066afeae257f531203d9b3c46 [file] [log] [blame]
Ben Chanb39cb312012-11-01 22:55:25 -07001// 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_CELLULAR_OPERATOR_INFO_H_
6#define SHILL_CELLULAR_OPERATOR_INFO_H_
7
8#include <string>
9
10#include <base/basictypes.h>
11#include <base/file_path.h>
12
13#include "shill/cellular_service.h"
14#include "shill/key_file_store.h"
15
16namespace shill {
17
18class GLib;
19
20class CellularOperatorInfo {
21 public:
22 explicit CellularOperatorInfo(GLib *glib);
23 ~CellularOperatorInfo();
24
25 // Loads the operator info from |info_file_path|. Returns true on success.
26 bool Load(const FilePath &info_file_path);
27
28 // Gets the online payment portal info of the operator with ID |operator_id|.
29 // Returns true if the info is found.
30 bool GetOLP(const std::string &operator_id, CellularService::OLP *olp);
31
32 private:
33 KeyFileStore info_file_;
34
35 DISALLOW_COPY_AND_ASSIGN(CellularOperatorInfo);
36};
37
38} // namespace shill
39
40#endif // SHILL_CELLULAR_OPERATOR_INFO_H_