Added more scanning options to Special File Types section.

This relates to issue #15.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/24/head
Mavridis Philippe 4 years ago
parent 9976c0cfc6
commit 8628f7a34a
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -61,6 +61,26 @@
<label>Exclude Quarantine Directories from scanning</label>
<default>true</default>
</entry>
<entry name="ScanELF" type="Bool">
<label>Scan Executable and Linkable Format files</label>
<default>true</default>
</entry>
<entry name="ScanSWF" type="Bool">
<label>Scan Adobe Flash movies</label>
<default>true</default>
</entry>
<entry name="ScanHWP3" type="Bool">
<label>Scan Hangul Word Processor documents</label>
<default>true</default>
</entry>
<entry name="ScanPDF" type="Bool">
<label>Scan Portable Document Format documents</label>
<default>true</default>
</entry>
<entry name="ScanXML" type="Bool">
<label>Scan documents formatted as XML</label>
<default>true</default>
</entry>
<entry name="ScanMacros" type="Bool">
<label>Scan Microsoft Office Macros</label>
<default>true</default>

@ -436,6 +436,21 @@ void ScanViewer::slotScan(const TQStringList & filepattern, int mode, bool recur
if (!(KlamavConfig::scanMacros()))
options += "--scan-ole2=no ";
if(!(KlamavConfig::scanELF()))
options += "--scan-elf=no ";
if(!(KlamavConfig::scanPDF()))
options += "--scan-pdf=no ";
if(!(KlamavConfig::scanHWP3()))
options += "--scan-hwp3=no ";
if(!(KlamavConfig::scanSWF()))
options += "--scan-pdf=no ";
if(!(KlamavConfig::scanXML()))
options += "--scan-xmldocs=no ";
if (KlamavConfig::virusBroken())
options += "--alert-broken ";

@ -52,6 +52,14 @@
<string>Alt+G</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_ScanELF</cstring>
</property>
<property name="text">
<string>Scan ELF Files</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_ScanPE</cstring>
@ -63,6 +71,25 @@
<string>Alt+X</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_ScanSWF</cstring>
</property>
<property name="text">
<string>Scan Adobe Flash Files</string>
</property>
<property name="accel">
<string></string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_ScanPDF</cstring>
</property>
<property name="text">
<string>Scan PDF Files</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_ScanHTML</cstring>
@ -85,6 +112,17 @@
<string>Alt+S</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_ScanHWP3</cstring>
</property>
<property name="text">
<string>Scan HWP3 Documents</string>
</property>
<property name="accel">
<string></string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>kcfg_VirusBroken</cstring>

Loading…
Cancel
Save