Ext2Read 它能查看 ext2/3/4 分区并从中拷贝文件和目录,支持 LVM2 和 EXT4 extent ,以及递归拷贝整个目录。工程如图:
应用测试:
#include <QtGui/QApplication>
#include "ext2explore.h"
//QtSingleApplication组件提供支持应用程序,对于某些应用程序,它是有非常有用的,甚至是关键的。该应用程序应该激活并启动已经运行的实例,并且可以执行请求的操作,例如加载一个文件。
//QtSingleApplication类提供了一个接口来检测正在运行的实例,该实例发送命令字符串。对于控制台(非GUI)应用程序,QtSingleCoreApplication变种,从而避免依赖于QtGui。
//如下是显示了如何将现有的应用程序使用QtSingleApplication:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Q_INIT_RESOURCE(ext2explore);
log_init();
Ext2Explore w;
w.show();
return a.exec();
}
学习的目标是成熟!~~~~