OLD | NEW |
1 // Copyright (c) 2010, 2011 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010, 2011 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SRC_SERVICE_MANAGER_IMPL_H_ | 5 #ifndef SRC_SERVICE_MANAGER_IMPL_H_ |
6 #define SRC_SERVICE_MANAGER_IMPL_H_ | 6 #define SRC_SERVICE_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <glib.h> | 8 #include <glib.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // PropertyChangedDelegate methods | 54 // PropertyChangedDelegate methods |
55 | 55 |
56 // Perform deferred processing for an incoming PropertyChanged D-Bus signal | 56 // Perform deferred processing for an incoming PropertyChanged D-Bus signal |
57 // from Flimflam | 57 // from Flimflam |
58 virtual void OnPropertyChanged(const PropertyChangedHandler *handler, | 58 virtual void OnPropertyChanged(const PropertyChangedHandler *handler, |
59 const std::string& property_name, | 59 const std::string& property_name, |
60 const DBus::Variant& new_value); | 60 const DBus::Variant& new_value); |
61 | 61 |
62 // Service methods | 62 // Service methods |
63 | |
64 // a child Service wants us to emit an update about its data plans | |
65 virtual void EmitDataPlansUpdate(const Service& service); | 63 virtual void EmitDataPlansUpdate(const Service& service); |
| 64 virtual void OnDataPlanInactive(const Service& service, |
| 65 const DataPlan& plan); |
66 | 66 |
67 private: | 67 private: |
68 // D-Bus connection owned by our creator | 68 // D-Bus connection owned by our creator |
69 // shared with Service objs that we create | 69 // shared with Service objs that we create |
70 DBus::Connection& connection_; | 70 DBus::Connection& connection_; |
71 | 71 |
72 // glib main loop | 72 // glib main loop |
73 GMainLoop * const main_loop_; | 73 GMainLoop * const main_loop_; |
74 | 74 |
75 // collection of Service objs representing cellular services | 75 // collection of Service objs representing cellular services |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Flimflam has told us that it has gone offline | 157 // Flimflam has told us that it has gone offline |
158 void OnFlimflamOffline(); | 158 void OnFlimflamOffline(); |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(ServiceManagerImpl); | 160 DISALLOW_COPY_AND_ASSIGN(ServiceManagerImpl); |
161 }; | 161 }; |
162 | 162 |
163 } // namespace cashew | 163 } // namespace cashew |
164 | 164 |
165 #endif // SRC_SERVICE_MANAGER_IMPL_H_ | 165 #endif // SRC_SERVICE_MANAGER_IMPL_H_ |
OLD | NEW |