Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 1 | // 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_CELLULAR_CAPABILITY_GSM_ |
| 6 | #define SHILL_CELLULAR_CAPABILITY_GSM_ |
| 7 | |
Darin Petkov | b05315f | 2011-11-07 10:14:25 +0100 | [diff] [blame^] | 8 | #include <base/task.h> |
| 9 | |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 10 | #include "shill/cellular_capability.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class CellularCapabilityGSM : public CellularCapability { |
| 15 | public: |
| 16 | CellularCapabilityGSM(Cellular *cellular); |
| 17 | |
Darin Petkov | b05315f | 2011-11-07 10:14:25 +0100 | [diff] [blame^] | 18 | // Inherited from CellularCapability. |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 19 | virtual void InitProxies(); |
Darin Petkov | b05315f | 2011-11-07 10:14:25 +0100 | [diff] [blame^] | 20 | virtual void RequirePIN(const std::string &pin, bool require, Error *error); |
| 21 | virtual void EnterPIN(const std::string &pin, Error *error); |
| 22 | virtual void UnblockPIN(const std::string &unblock_code, |
| 23 | const std::string &pin, |
| 24 | Error *error); |
| 25 | virtual void ChangePIN(const std::string &old_pin, |
| 26 | const std::string &new_pin, |
| 27 | Error *error); |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 28 | |
| 29 | private: |
Darin Petkov | b05315f | 2011-11-07 10:14:25 +0100 | [diff] [blame^] | 30 | void RequirePINTask(const std::string &pin, bool require); |
| 31 | void EnterPINTask(const std::string &pin); |
| 32 | void UnblockPINTask(const std::string &unblock_code, const std::string &pin); |
| 33 | void ChangePINTask(const std::string &old_pin, const std::string &new_pin); |
| 34 | |
| 35 | ScopedRunnableMethodFactory<CellularCapabilityGSM> task_factory_; |
| 36 | |
Darin Petkov | daf4386 | 2011-10-27 11:37:28 +0200 | [diff] [blame] | 37 | DISALLOW_COPY_AND_ASSIGN(CellularCapabilityGSM); |
| 38 | }; |
| 39 | |
| 40 | } // namespace shill |
| 41 | |
| 42 | #endif // SHILL_CELLULAR_CAPABILITY_GSM_ |