| 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_GSM_SMS_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_GSM_SMS_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_GSM_SMS_CLIENT_H_ | 6 #define CHROMEOS_DBUS_GSM_SMS_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void Get(const std::string& service_name, | 61 virtual void Get(const std::string& service_name, |
| 62 const dbus::ObjectPath& object_path, | 62 const dbus::ObjectPath& object_path, |
| 63 uint32 index, | 63 uint32 index, |
| 64 const GetCallback& callback) = 0; | 64 const GetCallback& callback) = 0; |
| 65 | 65 |
| 66 // Calls List method. |callback| is called after the method call succeeds. | 66 // Calls List method. |callback| is called after the method call succeeds. |
| 67 virtual void List(const std::string& service_name, | 67 virtual void List(const std::string& service_name, |
| 68 const dbus::ObjectPath& object_path, | 68 const dbus::ObjectPath& object_path, |
| 69 const ListCallback& callback) = 0; | 69 const ListCallback& callback) = 0; |
| 70 | 70 |
| 71 // Requests a check for new messages. In flimflam this does nothing. The | 71 // Requests a check for new messages. In shill this does nothing. The |
| 72 // stub implementation uses it to generate a sequence of test messages. | 72 // stub implementation uses it to generate a sequence of test messages. |
| 73 virtual void RequestUpdate(const std::string& service_name, | 73 virtual void RequestUpdate(const std::string& service_name, |
| 74 const dbus::ObjectPath& object_path) = 0; | 74 const dbus::ObjectPath& object_path) = 0; |
| 75 | 75 |
| 76 protected: | 76 protected: |
| 77 // Create() should be used instead. | 77 // Create() should be used instead. |
| 78 GsmSMSClient(); | 78 GsmSMSClient(); |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(GsmSMSClient); | 81 DISALLOW_COPY_AND_ASSIGN(GsmSMSClient); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace chromeos | 84 } // namespace chromeos |
| 85 | 85 |
| 86 #endif // CHROMEOS_DBUS_GSM_SMS_CLIENT_H_ | 86 #endif // CHROMEOS_DBUS_GSM_SMS_CLIENT_H_ |
| OLD | NEW |