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_FLIMFLAM_PROFILE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_PROFILE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FLIMFLAM_PROFILE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_PROFILE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 virtual ~FlimflamProfileClient(); | 41 virtual ~FlimflamProfileClient(); |
42 | 42 |
43 // Factory function, creates a new instance which is owned by the caller. | 43 // Factory function, creates a new instance which is owned by the caller. |
44 // For normal usage, access the singleton via DBusThreadManager::Get(). | 44 // For normal usage, access the singleton via DBusThreadManager::Get(). |
45 static FlimflamProfileClient* Create(DBusClientImplementationType type, | 45 static FlimflamProfileClient* Create(DBusClientImplementationType type, |
46 dbus::Bus* bus); | 46 dbus::Bus* bus); |
47 | 47 |
48 // Sets PropertyChanged signal handler. | 48 // Sets PropertyChanged signal handler. |
49 virtual void SetPropertyChangedHandler( | 49 virtual void SetPropertyChangedHandler( |
| 50 const dbus::ObjectPath& profile_path, |
50 const PropertyChangedHandler& handler) = 0; | 51 const PropertyChangedHandler& handler) = 0; |
51 | 52 |
52 // Resets PropertyChanged signal handler. | 53 // Resets PropertyChanged signal handler. |
53 virtual void ResetPropertyChangedHandler() = 0; | 54 virtual void ResetPropertyChangedHandler( |
| 55 const dbus::ObjectPath& profile_path) = 0; |
54 | 56 |
55 // Calls GetProperties method. | 57 // Calls GetProperties method. |
56 // |callback| is called after the method call succeeds. | 58 // |callback| is called after the method call succeeds. |
57 virtual void GetProperties(const DictionaryValueCallback& callback) = 0; | 59 virtual void GetProperties(const dbus::ObjectPath& profile_path, |
| 60 const DictionaryValueCallback& callback) = 0; |
58 | 61 |
59 // Calls GetEntry method. | 62 // Calls GetEntry method. |
60 // |callback| is called after the method call succeeds. | 63 // |callback| is called after the method call succeeds. |
61 virtual void GetEntry(const dbus::ObjectPath& path, | 64 virtual void GetEntry(const dbus::ObjectPath& profile_path, |
| 65 const std::string& entry_path, |
62 const DictionaryValueCallback& callback) = 0; | 66 const DictionaryValueCallback& callback) = 0; |
63 | 67 |
64 // Calls DeleteEntry method. | 68 // Calls DeleteEntry method. |
65 // |callback| is called after the method call succeeds. | 69 // |callback| is called after the method call succeeds. |
66 virtual void DeleteEntry(const dbus::ObjectPath& path, | 70 virtual void DeleteEntry(const dbus::ObjectPath& profile_path, |
| 71 const std::string& entry_path, |
67 const VoidCallback& callback) = 0; | 72 const VoidCallback& callback) = 0; |
68 | 73 |
69 protected: | 74 protected: |
70 // Create() should be used instead. | 75 // Create() should be used instead. |
71 FlimflamProfileClient(); | 76 FlimflamProfileClient(); |
72 | 77 |
73 private: | 78 private: |
74 DISALLOW_COPY_AND_ASSIGN(FlimflamProfileClient); | 79 DISALLOW_COPY_AND_ASSIGN(FlimflamProfileClient); |
75 }; | 80 }; |
76 | 81 |
77 } // namespace chromeos | 82 } // namespace chromeos |
78 | 83 |
79 #endif // CHROMEOS_DBUS_FLIMFLAM_PROFILE_CLIENT_H_ | 84 #endif // CHROMEOS_DBUS_FLIMFLAM_PROFILE_CLIENT_H_ |
OLD | NEW |