Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 1 | // 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_WIMAX_SERVICE_H_ |
| 6 | #define SHILL_WIMAX_SERVICE_H_ |
| 7 | |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame^] | 8 | #include <gtest/gtest_prod.h> // for FRIEND_TEST |
| 9 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 10 | #include "shill/refptr_types.h" |
| 11 | #include "shill/service.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class WiMaxService : public Service { |
| 16 | public: |
| 17 | WiMaxService(ControlInterface *control, |
| 18 | EventDispatcher *dispatcher, |
| 19 | Metrics *metrics, |
| 20 | Manager *manager, |
| 21 | const WiMaxRefPtr &wimax); |
| 22 | virtual ~WiMaxService(); |
| 23 | |
| 24 | // Inherited from Service. |
| 25 | virtual bool TechnologyIs(const Technology::Identifier type) const; |
| 26 | virtual void Connect(Error *error); |
| 27 | virtual void Disconnect(Error *error); |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 28 | virtual std::string GetStorageIdentifier() const; |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 29 | |
| 30 | private: |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame^] | 31 | FRIEND_TEST(WiMaxServiceTest, GetDeviceRpcId); |
| 32 | |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 33 | virtual std::string GetDeviceRpcId(Error *error); |
| 34 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 35 | WiMaxRefPtr wimax_; |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame^] | 36 | std::string storage_id_; |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 37 | |
| 38 | DISALLOW_COPY_AND_ASSIGN(WiMaxService); |
| 39 | }; |
| 40 | |
| 41 | } // namespace shill |
| 42 | |
| 43 | #endif // SHILL_WIMAX_SERVICE_H_ |