public void TestAndroidQQDataParse() { AndroidQQDataParseCoreV1_0 parser = new AndroidQQDataParseCoreV1_0(@"D:\111\222\data.db", "安卓QQ", @"H:\客服数据\张茂吉 QQ解密失败\com.tencent.mobileqq", @"C:\XLYSFTasks\任务-2017-09-21-14-37-59\source\media\0\Tencent\MobileQQ"); parser.BiuldTree(); }
public override object Execute(object arg, IAsyncTaskProgress progress) { TreeDataSource ds = new TreeDataSource(); try { var pi = PluginInfo as DataParsePluginInfo; var databasesPath = pi.SourcePath[0].Local; if (!FileHelper.IsValidDictory(databasesPath)) { return(ds); } //com.tencent.mobileqq文件夹路径 var qqPath = new DirectoryInfo(databasesPath).Parent.FullName; var parser = new AndroidQQDataParseCoreV1_0(pi.SaveDbPath, LanguageHelper.GetString(Languagekeys.PluginName_QQ), qqPath, ""); var qqNode = parser.BuildTree(); if (null != qqNode) { ds.TreeNodes.Add(qqNode); } } catch (System.Exception ex) { Framework.Log4NetService.LoggerManagerSingle.Instance.Error("提取安卓QQ数据出错!", ex); } finally { ds?.BuildParent(); } return(ds); }