diff options
-rw-r--r-- | src/klamavconfig.kcfg | 20 | ||||
-rw-r--r-- | src/scanviewer.cpp | 15 | ||||
-rw-r--r-- | src/specialfiletypes.ui | 38 |
3 files changed, 73 insertions, 0 deletions
diff --git a/src/klamavconfig.kcfg b/src/klamavconfig.kcfg index 25d2029..8a2c55c 100644 --- a/src/klamavconfig.kcfg +++ b/src/klamavconfig.kcfg @@ -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> diff --git a/src/scanviewer.cpp b/src/scanviewer.cpp index 7322524..83228c4 100644 --- a/src/scanviewer.cpp +++ b/src/scanviewer.cpp @@ -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 "; diff --git a/src/specialfiletypes.ui b/src/specialfiletypes.ui index cfbe5ab..2403d8f 100644 --- a/src/specialfiletypes.ui +++ b/src/specialfiletypes.ui @@ -54,6 +54,14 @@ </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> </property> <property name="text"> @@ -65,6 +73,25 @@ </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> </property> <property name="text"> @@ -87,6 +114,17 @@ </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> </property> <property name="paletteForegroundColor"> |