OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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 CHROMEOS_DBUS_CASHEW_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CASHEW_CLIENT_H_ |
6 #define CHROMEOS_DBUS_CASHEW_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CASHEW_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 26 matching lines...) Expand all Loading... |
37 DataPlansUpdateHandler; | 37 DataPlansUpdateHandler; |
38 | 38 |
39 virtual ~CashewClient(); | 39 virtual ~CashewClient(); |
40 | 40 |
41 // Factory function, creates a new instance and returns ownership. | 41 // Factory function, creates a new instance and returns ownership. |
42 // For normal usage, access the singleton via DBusThreadManager::Get(). | 42 // For normal usage, access the singleton via DBusThreadManager::Get(). |
43 static CashewClient* Create(DBusClientImplementationType type, | 43 static CashewClient* Create(DBusClientImplementationType type, |
44 dbus::Bus* bus); | 44 dbus::Bus* bus); |
45 | 45 |
46 // Sets DataPlansUpdate signal handler. | 46 // Sets DataPlansUpdate signal handler. |
47 virtual void SetDataPlansUpdateHandler(DataPlansUpdateHandler handler) = 0; | 47 virtual void SetDataPlansUpdateHandler( |
| 48 const DataPlansUpdateHandler& handler) = 0; |
48 | 49 |
49 // Resets DataPlansUpdate signal handler. | 50 // Resets DataPlansUpdate signal handler. |
50 virtual void ResetDataPlansUpdateHandler() = 0; | 51 virtual void ResetDataPlansUpdateHandler() = 0; |
51 | 52 |
52 // Calls RequestDataPlansUpdate method. | 53 // Calls RequestDataPlansUpdate method. |
53 virtual void RequestDataPlansUpdate() = 0; | 54 virtual void RequestDataPlansUpdate() = 0; |
54 | 55 |
55 protected: | 56 protected: |
56 // Create() should be used instead. | 57 // Create() should be used instead. |
57 CashewClient(); | 58 CashewClient(); |
58 | 59 |
59 private: | 60 private: |
60 DISALLOW_COPY_AND_ASSIGN(CashewClient); | 61 DISALLOW_COPY_AND_ASSIGN(CashewClient); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace chromeos | 64 } // namespace chromeos |
64 | 65 |
65 #endif // CHROMEOS_DBUS_CASHEW_CLIENT_H_ | 66 #endif // CHROMEOS_DBUS_CASHEW_CLIENT_H_ |
OLD | NEW |