【实例简介】
Qt-detect-Udisk老外写的qt检测U盘,没有使用hal或udisks,而是使用的tcpsocket和内核的netlink通信。可以在windows和linux上运行,据作者说正在测试wince平台。真牛啊。详见老外的资料链接:http://developer.qt.nokia.com/forums/viewthread/9605/
【实例截图】
【核心代码】
Qt-detect-Udisk
└── wang-bin-qdevicewatcher-d8785a2
├── common.pri
├── QDeviceWatcher.pro
├── QDeviceWatcher.sln
├── README
├── src
│ ├── libQDeviceWatcher.pri
│ ├── libQDeviceWatcher.pro
│ ├── qdevicechangeevent.cpp
│ ├── qdevicechangeevent.h
│ ├── qdevicewatcher.cpp
│ ├── qdevicewatcher_global.h
│ ├── qdevicewatcher.h
│ ├── qdevicewatcher_linux.cpp
│ ├── qdevicewatcher_p.h
│ ├── QDeviceWatcher.vcproj
│ ├── qdevicewatcher_win32.cpp
│ └── qdevicewatcher_wince.cpp
├── test
│ ├── hotplugwatcher_gui.cpp
│ ├── hotplugwatcher_gui.h
│ ├── hotplugwatcher_gui.pro
│ ├── hotplugwatcher_gui.vcproj
│ ├── hotplugwatcher.h
│ ├── hotplugwatcher.pro
│ ├── hotplugwatcher.vcproj
│ ├── main.cpp
│ └── main_gui.cpp
└── TODO.txt
3 directories, 26 files