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