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_DBUS_THREAD_MANAGER_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Creates new IBusBus instance to communicate with ibus-daemon with specified | 110 // Creates new IBusBus instance to communicate with ibus-daemon with specified |
111 // ibus address. |on_disconnected_callback| will be called when the connection | 111 // ibus address. |on_disconnected_callback| will be called when the connection |
112 // with ibus-daemon is disconnected. Must be called before using ibus related | 112 // with ibus-daemon is disconnected. Must be called before using ibus related |
113 // clients. | 113 // clients. |
114 // TODO(nona): Support shutdown to enable dynamical ibus-daemon shutdown. | 114 // TODO(nona): Support shutdown to enable dynamical ibus-daemon shutdown. |
115 virtual void InitIBusBus(const std::string& ibus_address, | 115 virtual void InitIBusBus(const std::string& ibus_address, |
116 const base::Closure& on_disconnected_callback) = 0; | 116 const base::Closure& on_disconnected_callback) = 0; |
117 | 117 |
118 // Returns various D-Bus bus instances, owned by DBusThreadManager. | 118 // Returns various D-Bus bus instances, owned by DBusThreadManager. |
119 virtual dbus::Bus* GetSystemBus() = 0; | 119 virtual dbus::Bus* GetSystemBus() = 0; |
120 virtual dbus::Bus* GetIBusBus() = 0; | |
121 | 120 |
122 // All returned objects are owned by DBusThreadManager. Do not cache these | 121 // All returned objects are owned by DBusThreadManager. Do not cache these |
123 // pointers and use them after DBusThreadManager has been shut down. | 122 // pointers and use them after DBusThreadManager has been shut down. |
124 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() = 0; | 123 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() = 0; |
125 virtual BluetoothAgentManagerClient* GetBluetoothAgentManagerClient() = 0; | 124 virtual BluetoothAgentManagerClient* GetBluetoothAgentManagerClient() = 0; |
126 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() = 0; | 125 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() = 0; |
127 virtual BluetoothInputClient* GetBluetoothInputClient() = 0; | 126 virtual BluetoothInputClient* GetBluetoothInputClient() = 0; |
128 virtual BluetoothProfileManagerClient* GetBluetoothProfileManagerClient() = 0; | 127 virtual BluetoothProfileManagerClient* GetBluetoothProfileManagerClient() = 0; |
129 virtual CrasAudioClient* GetCrasAudioClient() = 0; | 128 virtual CrasAudioClient* GetCrasAudioClient() = 0; |
130 virtual CrosDisksClient* GetCrosDisksClient() = 0; | 129 virtual CrosDisksClient* GetCrosDisksClient() = 0; |
131 virtual CryptohomeClient* GetCryptohomeClient() = 0; | 130 virtual CryptohomeClient* GetCryptohomeClient() = 0; |
132 virtual DebugDaemonClient* GetDebugDaemonClient() = 0; | 131 virtual DebugDaemonClient* GetDebugDaemonClient() = 0; |
133 virtual GsmSMSClient* GetGsmSMSClient() = 0; | 132 virtual GsmSMSClient* GetGsmSMSClient() = 0; |
134 virtual IBusClient* GetIBusClient() = 0; | 133 virtual IBusClient* GetIBusClient() = 0; |
135 virtual IBusEngineFactoryService* GetIBusEngineFactoryService() = 0; | |
136 virtual IBusEngineService* GetIBusEngineService( | |
137 const dbus::ObjectPath& object_path) = 0; | |
138 virtual ImageBurnerClient* GetImageBurnerClient() = 0; | 134 virtual ImageBurnerClient* GetImageBurnerClient() = 0; |
139 virtual IntrospectableClient* GetIntrospectableClient() = 0; | 135 virtual IntrospectableClient* GetIntrospectableClient() = 0; |
140 virtual ModemMessagingClient* GetModemMessagingClient() = 0; | 136 virtual ModemMessagingClient* GetModemMessagingClient() = 0; |
141 virtual NfcAdapterClient* GetNfcAdapterClient() = 0; | 137 virtual NfcAdapterClient* GetNfcAdapterClient() = 0; |
142 virtual NfcDeviceClient* GetNfcDeviceClient() = 0; | 138 virtual NfcDeviceClient* GetNfcDeviceClient() = 0; |
143 virtual NfcManagerClient* GetNfcManagerClient() = 0; | 139 virtual NfcManagerClient* GetNfcManagerClient() = 0; |
144 virtual NfcTagClient* GetNfcTagClient() = 0; | 140 virtual NfcTagClient* GetNfcTagClient() = 0; |
145 virtual PermissionBrokerClient* GetPermissionBrokerClient() = 0; | 141 virtual PermissionBrokerClient* GetPermissionBrokerClient() = 0; |
146 virtual PowerManagerClient* GetPowerManagerClient() = 0; | 142 virtual PowerManagerClient* GetPowerManagerClient() = 0; |
147 virtual PowerPolicyController* GetPowerPolicyController() = 0; | 143 virtual PowerPolicyController* GetPowerPolicyController() = 0; |
148 virtual SessionManagerClient* GetSessionManagerClient() = 0; | 144 virtual SessionManagerClient* GetSessionManagerClient() = 0; |
149 virtual ShillDeviceClient* GetShillDeviceClient() = 0; | 145 virtual ShillDeviceClient* GetShillDeviceClient() = 0; |
150 virtual ShillIPConfigClient* GetShillIPConfigClient() = 0; | 146 virtual ShillIPConfigClient* GetShillIPConfigClient() = 0; |
151 virtual ShillManagerClient* GetShillManagerClient() = 0; | 147 virtual ShillManagerClient* GetShillManagerClient() = 0; |
152 virtual ShillServiceClient* GetShillServiceClient() = 0; | 148 virtual ShillServiceClient* GetShillServiceClient() = 0; |
153 virtual ShillProfileClient* GetShillProfileClient() = 0; | 149 virtual ShillProfileClient* GetShillProfileClient() = 0; |
154 virtual SMSClient* GetSMSClient() = 0; | 150 virtual SMSClient* GetSMSClient() = 0; |
155 virtual SystemClockClient* GetSystemClockClient() = 0; | 151 virtual SystemClockClient* GetSystemClockClient() = 0; |
156 virtual UpdateEngineClient* GetUpdateEngineClient() = 0; | 152 virtual UpdateEngineClient* GetUpdateEngineClient() = 0; |
157 | 153 |
158 // Removes the ibus engine services for |object_path|. | |
159 virtual void RemoveIBusEngineService(const dbus::ObjectPath& object_path) = 0; | |
160 | |
161 virtual ~DBusThreadManager(); | 154 virtual ~DBusThreadManager(); |
162 | 155 |
163 protected: | 156 protected: |
164 DBusThreadManager(); | 157 DBusThreadManager(); |
165 | 158 |
166 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 159 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
167 }; | 160 }; |
168 | 161 |
169 } // namespace chromeos | 162 } // namespace chromeos |
170 | 163 |
171 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 164 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
OLD | NEW |