Definition in file mediamonitor-darwin.cpp.
Go to the source code of this file.
Functions | |
| static void | diskAppearedCallback (DADiskRef disk, void *context) |
| static void | diskDisappearedCallback (DADiskRef disk, void *context) |
| static void | diskChangedCallback (DADiskRef disk, CFArrayRef keys, void *context) |
| static MediaType | MediaTypeForBSDName (const char *bsdName) |
| Given a BSD device node name, guess its media type. | |
| MediaType | FindMediaType (io_service_t service) |
| Guess the media that a volume/partition is on. | |
| static char * | getVolName (CFDictionaryRef diskDetails) |
| Given a description of a disk, copy and return the volume name. | |
| static const QString | getModel (CFDictionaryRef diskDetails) |
| static const QString | getModel (io_object_t drive) |
Variables | |
| static mach_port_t | sMasterPort |
| void diskAppearedCallback | ( | DADiskRef | disk, | |
| void * | context | |||
| ) | [static] |
| void diskDisappearedCallback | ( | DADiskRef | disk, | |
| void * | context | |||
| ) | [static] |
| void diskChangedCallback | ( | DADiskRef | disk, | |
| CFArrayRef | keys, | |||
| void * | context | |||
| ) | [static] |
| MediaType MediaTypeForBSDName | ( | const char * | bsdName | ) | [static] |
Given a BSD device node name, guess its media type.
Definition at line 109 of file mediamonitor-darwin.cpp.
Referenced by diskAppearedCallback().
| MediaType FindMediaType | ( | io_service_t | service | ) |
Guess the media that a volume/partition is on.
Definition at line 40 of file mediamonitor-darwin.cpp.
Referenced by MediaTypeForBSDName().
| static char* getVolName | ( | CFDictionaryRef | diskDetails | ) | [static] |
Given a description of a disk, copy and return the volume name.
Definition at line 172 of file mediamonitor-darwin.cpp.
Referenced by diskAppearedCallback(), and diskChangedCallback().
| static const QString getModel | ( | CFDictionaryRef | diskDetails | ) | [static] |
Definition at line 203 of file mediamonitor-darwin.cpp.
Referenced by diskAppearedCallback(), and MediaMonitorDarwin::GetCDROMBlockDevices().
| static const QString getModel | ( | io_object_t | drive | ) | [static] |
Definition at line 535 of file mediamonitor-darwin.cpp.
mach_port_t sMasterPort [static] |
Definition at line 34 of file mediamonitor-darwin.cpp.
Referenced by MediaMonitorDarwin::GetCDROMBlockDevices(), MediaTypeForBSDName(), and MonitorThreadDarwin::run().
1.5.5