|
10 | 10 | #include "pluginmanager.h" |
11 | 11 | #include "singlejob.h" |
12 | 12 | #include "batchjob.h" |
13 | | -#include "eventlogutils.h" |
14 | 13 |
|
15 | 14 | #include <QMimeDatabase> |
16 | 15 | #include <QFileInfo> |
@@ -103,12 +102,6 @@ bool ArchiveManager::createArchive(const QList<FileEntry> &files, const QString |
103 | 102 | bool ArchiveManager::loadArchive(const QString &strArchiveFullPath, UiTools::AssignPluginType eType) |
104 | 103 | { |
105 | 104 | qDebug() << "Starting loadArchive operation for file:" << strArchiveFullPath; |
106 | | - QJsonObject obj{ |
107 | | - {"tid", EventLogUtils::LoadCompressFile}, |
108 | | - {"operate", "LoadCompressFile"}, |
109 | | - {"describe", QString("Load Compress File : ") + strArchiveFullPath} |
110 | | - }; |
111 | | - EventLogUtils::get().writeLogs(obj); |
112 | 105 | // 重新加载首先释放之前的interface |
113 | 106 | if (m_pInterface != nullptr) { |
114 | 107 | qDebug() << "Clearing previous archive interface"; |
@@ -141,12 +134,6 @@ bool ArchiveManager::loadArchive(const QString &strArchiveFullPath, UiTools::Ass |
141 | 134 | bool ArchiveManager::addFiles(const QString &strArchiveFullPath, const QList<FileEntry> &listAddEntry, const CompressOptions &stOptions) |
142 | 135 | { |
143 | 136 | qDebug() << "Starting addFiles operation for archive:" << strArchiveFullPath; |
144 | | - QJsonObject obj{ |
145 | | - {"tid", EventLogUtils::AddCompressFile}, |
146 | | - {"operate", "AddCompressFile"}, |
147 | | - {"describe", QString("Add File to package: ") + strArchiveFullPath} |
148 | | - }; |
149 | | - EventLogUtils::get().writeLogs(obj); |
150 | 137 | // workaround: |
151 | 138 | // pzip 仅支持新建压缩,目前先将zip 追加时显式指定使用 libzip 插件 |
152 | 139 | UiTools::AssignPluginType eType = UiTools::APT_Auto; |
@@ -182,12 +169,6 @@ bool ArchiveManager::addFiles(const QString &strArchiveFullPath, const QList<Fil |
182 | 169 | bool ArchiveManager::extractFiles(const QString &strArchiveFullPath, const QList<FileEntry> &files, const ExtractionOptions &stOptions, UiTools::AssignPluginType eType) |
183 | 170 | { |
184 | 171 | qDebug() << "Starting extractFiles operation for archive:" << strArchiveFullPath; |
185 | | - QJsonObject obj{ |
186 | | - {"tid", EventLogUtils::ExtractCompressFile}, |
187 | | - {"operate", "ExtractCompressFile"}, |
188 | | - {"describe", QString("Decompress the package : ") + strArchiveFullPath} |
189 | | - }; |
190 | | - EventLogUtils::get().writeLogs(obj); |
191 | 172 | if (nullptr == m_pInterface) { |
192 | 173 | qDebug() << "Creating interface for extraction"; |
193 | 174 | m_pInterface = UiTools::createInterface(strArchiveFullPath, false, eType); |
@@ -236,12 +217,6 @@ bool ArchiveManager::extractFiles(const QString &strArchiveFullPath, const QList |
236 | 217 | bool ArchiveManager::extractFiles2Path(const QString &strArchiveFullPath, const QList<FileEntry> &listSelEntry, const ExtractionOptions &stOptions) |
237 | 218 | { |
238 | 219 | qDebug() << "Starting extractFiles2Path operation for archive:" << strArchiveFullPath; |
239 | | - QJsonObject obj{ |
240 | | - {"tid", EventLogUtils::ExtractSingleFile}, |
241 | | - {"operate", "ExtractSingleFile"}, |
242 | | - {"describe", QString("Extract file from the compressed package : ") + strArchiveFullPath} |
243 | | - }; |
244 | | - EventLogUtils::get().writeLogs(obj); |
245 | 220 | if (nullptr == m_pInterface) { |
246 | 221 | qDebug() << "Creating interface for extraction to path"; |
247 | 222 | m_pInterface = UiTools::createInterface(strArchiveFullPath); |
@@ -271,12 +246,6 @@ bool ArchiveManager::extractFiles2Path(const QString &strArchiveFullPath, const |
271 | 246 | bool ArchiveManager::deleteFiles(const QString &strArchiveFullPath, const QList<FileEntry> &listSelEntry) |
272 | 247 | { |
273 | 248 | qDebug() << "Starting deleteFiles operation for archive:" << strArchiveFullPath; |
274 | | - QJsonObject obj{ |
275 | | - {"tid", EventLogUtils::DelCompressFile}, |
276 | | - {"operate", "DelCompressFile"}, |
277 | | - {"describe", QString("Delete file from package : ") + strArchiveFullPath} |
278 | | - }; |
279 | | - EventLogUtils::get().writeLogs(obj); |
280 | 249 | if (nullptr == m_pInterface) { |
281 | 250 | qDebug() << "Creating interface for deletion"; |
282 | 251 | m_pInterface = UiTools::createInterface(strArchiveFullPath); |
@@ -306,12 +275,6 @@ bool ArchiveManager::deleteFiles(const QString &strArchiveFullPath, const QList< |
306 | 275 | bool ArchiveManager::renameFiles(const QString &strArchiveFullPath, const QList<FileEntry> &listSelEntry) |
307 | 276 | { |
308 | 277 | qDebug() << "Starting renameFiles operation for archive:" << strArchiveFullPath; |
309 | | - QJsonObject obj{ |
310 | | - {"tid", EventLogUtils::RenameCompressFile}, |
311 | | - {"operate", "RenameCompressFile"}, |
312 | | - {"describe", QString("Rename file from package : ") + strArchiveFullPath} |
313 | | - }; |
314 | | - EventLogUtils::get().writeLogs(obj); |
315 | 278 | if (nullptr == m_pInterface) { |
316 | 279 | qDebug() << "Creating interface for renaming"; |
317 | 280 | m_pInterface = UiTools::createInterface(strArchiveFullPath); |
@@ -368,12 +331,6 @@ bool ArchiveManager::batchExtractFiles(const QStringList &listFiles, const QStri |
368 | 331 | bool ArchiveManager::openFile(const QString &strArchiveFullPath, const FileEntry &stEntry, const QString &strTempExtractPath, const QString &strProgram) |
369 | 332 | { |
370 | 333 | qDebug() << "Starting openFile operation for archive:" << strArchiveFullPath; |
371 | | - QJsonObject obj{ |
372 | | - {"tid", EventLogUtils::OpenCompressFile}, |
373 | | - {"operate", "OpenCompressFile"}, |
374 | | - {"describe", QString("Open file from package : ") + strArchiveFullPath} |
375 | | - }; |
376 | | - EventLogUtils::get().writeLogs(obj); |
377 | 334 | if (nullptr == m_pInterface) { |
378 | 335 | qDebug() << "Creating interface for opening file"; |
379 | 336 | m_pInterface = UiTools::createInterface(strArchiveFullPath); |
|
0 commit comments