25 #ifndef __SB_LIB_HAL_H__
26 #define __SB_LIB_HAL_H__
48 #include <nsVoidArray.h>
96 nsCStringArray &aDeviceList);
99 const nsACString &aUDI,
104 const nsACString &aUDI,
106 nsCString &aProperty);
109 const nsACString &aUDI,
111 PRUint32 *aProperty);
114 const nsACString &aUDI,
119 const nsACString &aUDI,
121 nsTArray<nsCString> &aProperty);
124 LibHalDeviceAdded aCallback);
127 LibHalDeviceRemoved aCallback);
130 LibHalDevicePropertyModified
141 const nsACString &aUDI,
142 const char *aInterface,
143 PRBool *aHasInterface);
151 nsCString &aDeviceUDI);
154 nsCString &aDeviceUDI);
170 LibHalContext *mpLibHalCtx;
171 DBusConnection *mpDBusConnection;
178 nsresult DeviceCallMethod(
179 nsCString &aDeviceUDI,
180 const char *aInterface,
181 const char *aMethod);
183 nsresult DeviceGetMethodRetCode(
184 DBusMessage *apDBusReply,
nsresult SetDevicePropertyModified(LibHalDevicePropertyModified aCallback)
nsresult DeviceVolumeEject(nsCString &aDeviceUDI)
nsresult GetAllDevices(nsCStringArray &aDeviceList)
nsresult DeviceHasInterface(const nsACString &aUDI, const char *aInterface, PRBool *aHasInterface)
nsresult DeviceGetPropertyInt(const nsACString &aUDI, const char *aKey, PRUint32 *aProperty)
nsresult DevicePropertyWatchAll()
nsresult DevicePropertyExists(const nsACString &aUDI, const char *aKey, PRBool *apExists)
nsresult SetDeviceRemoved(LibHalDeviceRemoved aCallback)
Songbird iPod Device Logging Definitions.
nsresult DeviceVolumeUnmount(nsCString &aDeviceUDI)
nsresult DeviceGetPropertyStringList(const nsACString &aUDI, const char *aKey, nsTArray< nsCString > &aProperty)
nsresult SetDeviceAdded(LibHalDeviceAdded aCallback)
nsresult DeviceGetPropertyBool(const nsACString &aUDI, const char *aKey, PRBool *aProperty)
nsresult SetUserData(void *aUserData)
nsresult DeviceGetPropertyString(const nsACString &aUDI, const char *aKey, nsCString &aProperty)