summaryrefslogtreecommitdiffstats
path: root/kmail/kleo_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kleo_util.h')
-rw-r--r--kmail/kleo_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kmail/kleo_util.h b/kmail/kleo_util.h
index b2378e9fa..dc0eb6d2c 100644
--- a/kmail/kleo_util.h
+++ b/kmail/kleo_util.h
@@ -77,5 +77,12 @@ static inline bool isOpenPGP( Kleo::CryptoMessageFormat f ) {
return f == Kleo::InlineOpenPGPFormat || f == Kleo::OpenPGPMIMEFormat ;
}
+static inline bool containsSMIME( unsigned int f ) {
+ return f & (Kleo::SMIMEFormat|Kleo::SMIMEOpaqueFormat) ;
+}
+
+static inline bool containsOpenPGP( unsigned int f ) {
+ return f & (Kleo::OpenPGPMIMEFormat|Kleo::InlineOpenPGPFormat) ;
+}
#endif // __KDEPIM_KMAIL_KLEO_UTIL_H__