88df47e45d7b9ec9c44db11bcd3e06b0ace6f2df
[gpg4win.git] / patches / kleopatra / 0005-Hack-generated-conf-files-for-Crosscompiling.patch
1 #! /bin/sh
2 patch -p1 -l -f $* < $0
3 exit $?
4
5 From 4bf713fdca3a549d12b76afcb64533516f6436ec Mon Sep 17 00:00:00 2001
6 From: Andre Heinecke <aheinecke@intevation.de>
7 Date: Tue, 16 Feb 2016 18:19:07 +0100
8 Subject: [PATCH 5/5] Hack generated conf files for Crosscompiling
9
10 This patch can be removed once Gpg4win is built on a platform
11 that has a packaged kconfig_compiler5.
12 ---
13  src/CMakeLists.txt                 | 21 +++++++---
14  src/conf/CMakeLists.txt            | 20 +++++----
15  src/emailoperationspreferences.cpp | 27 ++++++++++++
16  src/emailoperationspreferences.h   | 84 ++++++++++++++++++++++++++++++++++++++
17  src/fileoperationspreferences.cpp  | 21 ++++++++++
18  src/fileoperationspreferences.h    | 48 ++++++++++++++++++++++
19  src/smimevalidationpreferences.cpp | 22 ++++++++++
20  src/smimevalidationpreferences.h   | 55 +++++++++++++++++++++++++
21  src/tooltippreferences.cpp         | 27 ++++++++++++
22  src/tooltippreferences.h           | 84 ++++++++++++++++++++++++++++++++++++++
23  10 files changed, 394 insertions(+), 15 deletions(-)
24  create mode 100644 src/emailoperationspreferences.cpp
25  create mode 100644 src/emailoperationspreferences.h
26  create mode 100644 src/fileoperationspreferences.cpp
27  create mode 100644 src/fileoperationspreferences.h
28  create mode 100644 src/smimevalidationpreferences.cpp
29  create mode 100644 src/smimevalidationpreferences.h
30  create mode 100644 src/tooltippreferences.cpp
31  create mode 100644 src/tooltippreferences.h
32
33 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
34 index 0c1b207..29ac1e0 100644
35 --- a/src/CMakeLists.txt
36 +++ b/src/CMakeLists.txt
37 @@ -263,12 +263,21 @@ ki18n_wrap_ui(_kleopatra_SRCS
38    newcertificatewizard/advancedsettingsdialog.ui
39  )
40
41 -kconfig_add_kcfg_files(_kleopatra_SRCS
42 -  kcfg/tooltippreferences.kcfgc
43 -  kcfg/emailoperationspreferences.kcfgc
44 -  kcfg/fileoperationspreferences.kcfgc
45 -  kcfg/smimevalidationpreferences.kcfgc
46 -)
47 +if (NOT CMAKE_CROSSCOMPILING)
48 +  kconfig_add_kcfg_files(_kleopatra_SRCS
49 +    kcfg/tooltippreferences.kcfgc
50 +    kcfg/emailoperationspreferences.kcfgc
51 +    kcfg/fileoperationspreferences.kcfgc
52 +    kcfg/smimevalidationpreferences.kcfgc
53 +  )
54 +else()
55 +  set(_kleopatra_SRCS ${_kleopatra_SRCS}
56 +    tooltippreferences.cpp
57 +    emailoperationspreferences.cpp
58 +    fileoperationspreferences.cpp
59 +    smimevalidationpreferences.cpp
60 +  )
61 +endif()
62
63  file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*-apps-kleopatra.png")
64  ecm_add_app_icon(_kleopatra_SRCS ICONS ${ICONS_SRCS})
65 diff --git a/src/conf/CMakeLists.txt b/src/conf/CMakeLists.txt
66 index 5e2092c..888d87d 100644
67 --- a/src/conf/CMakeLists.txt
68 +++ b/src/conf/CMakeLists.txt
69 @@ -13,10 +13,6 @@ if(BUILD_libkleopatraclient)
70      smimevalidationconfigurationwidget.ui
71    )
72
73 -  kconfig_add_kcfg_files(_kcm_kleopatra_libkleopatraclient_extra_SRCS
74 -    ${kleopatra_SOURCE_DIR}/src/kcfg/smimevalidationpreferences.kcfgc
75 -  )
76 -
77    set(_kcm_kleopatra_libkleopatraclient_extra_LIBS kleopatraclientgui)
78
79    set(_kcm_kleopatra_libkleopatraclient_extra_install_FILES
80 @@ -47,12 +43,18 @@ ki18n_wrap_ui(kcm_kleopatra_PART_SRCS
81    smimevalidationconfigurationwidget.ui
82  )
83
84 -kconfig_add_kcfg_files(kcm_kleopatra_PART_SRCS
85 -  ${kleopatra_SOURCE_DIR}/src/kcfg/tooltippreferences.kcfgc
86 -  ${kleopatra_SOURCE_DIR}/src/kcfg/emailoperationspreferences.kcfgc
87 -  ${kleopatra_SOURCE_DIR}/src/kcfg/fileoperationspreferences.kcfgc
88 -)
89 +if(CMAKE_CROSSCOMPILING)
90 +  set(_kcfg_generated_files_dir ${kleopatra_SOURCE_DIR}/src)
91 +else()
92 +  set(_kcfg_generated_files_dir ${kleopatra_BINARY_DIR}/src)
93 +endif()
94
95 +set(kcm_kleopatra_PART_SRCS ${kcm_kleopatra_PART_SRCS}
96 +  ${_kcfg_generated_files_dir}/tooltippreferences.cpp
97 +  ${_kcfg_generated_files_dir}/emailoperationspreferences.cpp
98 +  ${_kcfg_generated_files_dir}/fileoperationspreferences.cpp
99 +  ${_kcfg_generated_files_dir}/smimevalidationpreferences.cpp
100 + )
101  add_library(kcm_kleopatra MODULE ${kcm_kleopatra_PART_SRCS})
102
103  if(HAVE_KCMUTILS)
104 diff --git a/src/emailoperationspreferences.cpp b/src/emailoperationspreferences.cpp
105 new file mode 100644
106 index 0000000..730db97
107 --- /dev/null
108 +++ b/src/emailoperationspreferences.cpp
109 @@ -0,0 +1,27 @@
110 +// This file is generated by kconfig_compiler_kf5 from emailoperationspreferences.kcfg.
111 +// All changes you do to this file will be lost.
112 +
113 +#include "emailoperationspreferences.h"
114 +
115 +using namespace Kleo;
116 +
117 +EMailOperationsPreferences::EMailOperationsPreferences(  )
118 +  : KConfigSkeleton( QStringLiteral( "kleopatrarc" ) )
119 +{
120 +  setCurrentGroup( QStringLiteral( "EMailOperations" ) );
121 +
122 +  KConfigSkeleton::ItemBool  *itemQuickSignEMail;
123 +  itemQuickSignEMail = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "quick-sign-email" ), mQuickSignEMail, false );
124 +  addItem( itemQuickSignEMail, QStringLiteral( "QuickSignEMail" ) );
125 +  KConfigSkeleton::ItemBool  *itemQuickEncryptEMail;
126 +  itemQuickEncryptEMail = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "quick-encrypt-email" ), mQuickEncryptEMail, false );
127 +  addItem( itemQuickEncryptEMail, QStringLiteral( "QuickEncryptEMail" ) );
128 +  KConfigSkeleton::ItemRect  *itemDecryptVerifyPopupGeometry;
129 +  itemDecryptVerifyPopupGeometry = new KConfigSkeleton::ItemRect( currentGroup(), QStringLiteral( "decrypt-verify-popup-geometry" ), mDecryptVerifyPopupGeometry );
130 +  addItem( itemDecryptVerifyPopupGeometry, QStringLiteral( "DecryptVerifyPopupGeometry" ) );
131 +}
132 +
133 +EMailOperationsPreferences::~EMailOperationsPreferences()
134 +{
135 +}
136 +
137 diff --git a/src/emailoperationspreferences.h b/src/emailoperationspreferences.h
138 new file mode 100644
139 index 0000000..58881f8
140 --- /dev/null
141 +++ b/src/emailoperationspreferences.h
142 @@ -0,0 +1,84 @@
143 +// This file is generated by kconfig_compiler_kf5 from emailoperationspreferences.kcfg.
144 +// All changes you do to this file will be lost.
145 +#ifndef KLEO_EMAILOPERATIONSPREFERENCES_H
146 +#define KLEO_EMAILOPERATIONSPREFERENCES_H
147 +
148 +#include <qglobal.h>
149 +#include <kconfigskeleton.h>
150 +#include <QCoreApplication>
151 +#include <QDebug>
152 +
153 +namespace Kleo {
154 +
155 +class EMailOperationsPreferences : public KConfigSkeleton
156 +{
157 +  public:
158 +
159 +    EMailOperationsPreferences( );
160 +    ~EMailOperationsPreferences();
161 +
162 +    /**
163 +      Set Quick Sign EMail
164 +    */
165 +    void setQuickSignEMail( bool v )
166 +    {
167 +      if (!isImmutable( QStringLiteral( "QuickSignEMail" ) ))
168 +        mQuickSignEMail = v;
169 +    }
170 +
171 +    /**
172 +      Get Quick Sign EMail
173 +    */
174 +    bool quickSignEMail() const
175 +    {
176 +      return mQuickSignEMail;
177 +    }
178 +
179 +    /**
180 +      Set Quick Encrypt EMail
181 +    */
182 +    void setQuickEncryptEMail( bool v )
183 +    {
184 +      if (!isImmutable( QStringLiteral( "QuickEncryptEMail" ) ))
185 +        mQuickEncryptEMail = v;
186 +    }
187 +
188 +    /**
189 +      Get Quick Encrypt EMail
190 +    */
191 +    bool quickEncryptEMail() const
192 +    {
193 +      return mQuickEncryptEMail;
194 +    }
195 +
196 +    /**
197 +      Set Decrypt/Verify Popup Geometry
198 +    */
199 +    void setDecryptVerifyPopupGeometry( const QRect & v )
200 +    {
201 +      if (!isImmutable( QStringLiteral( "DecryptVerifyPopupGeometry" ) ))
202 +        mDecryptVerifyPopupGeometry = v;
203 +    }
204 +
205 +    /**
206 +      Get Decrypt/Verify Popup Geometry
207 +    */
208 +    QRect decryptVerifyPopupGeometry() const
209 +    {
210 +      return mDecryptVerifyPopupGeometry;
211 +    }
212 +
213 +  protected:
214 +
215 +    // EMailOperations
216 +    bool mQuickSignEMail;
217 +    bool mQuickEncryptEMail;
218 +    QRect mDecryptVerifyPopupGeometry;
219 +
220 +  private:
221 +};
222 +
223 +}
224 +
225 +#endif
226 +
227 diff --git a/src/fileoperationspreferences.cpp b/src/fileoperationspreferences.cpp
228 new file mode 100644
229 index 0000000..d2d20fc
230 --- /dev/null   2018-01-08 07:35:44.039369717 +0100
231 +++ src/fileoperationspreferences.cpp   2018-01-09 15:42:01.999936689 +0100
232 @@ -0,0 +1,33 @@
233 +// This file is generated by kconfig_compiler_kf5 from fileoperationspreferences.kcfg.
234 +// All changes you do to this file will be lost.
235 +
236 +#include "fileoperationspreferences.h"
237 +
238 +using namespace Kleo;
239 +
240 +FileOperationsPreferences::FileOperationsPreferences(  )
241 +  : KConfigSkeleton( QStringLiteral( "kleopatrarc" ) )
242 +{
243 +  setCurrentGroup( QStringLiteral( "FileOperations" ) );
244 +
245 +  KConfigSkeleton::ItemBool  *itemUsePGPFileExt;
246 +  itemUsePGPFileExt = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "file-extension-pgp" ), mUsePGPFileExt, false );
247 +  addItem( itemUsePGPFileExt, QStringLiteral( "UsePGPFileExt" ) );
248 +  KConfigSkeleton::ItemBool  *itemAutoDecryptVerify;
249 +  itemAutoDecryptVerify = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "auto-decrypt-verify" ), mAutoDecryptVerify, true );
250 +  addItem( itemAutoDecryptVerify, QStringLiteral( "AutoDecryptVerify" ) );
251 +  KConfigSkeleton::ItemString  *itemArchiveCommand;
252 +  itemArchiveCommand = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "default-archive-cmd" ), mArchiveCommand, QStringLiteral( "tar" ) );
253 +  addItem( itemArchiveCommand, QStringLiteral( "ArchiveCommand" ) );
254 +  KConfigSkeleton::ItemBool  *itemAddASCIIArmor;
255 +  itemAddASCIIArmor = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ascii-armor" ), mAddASCIIArmor, false );
256 +  addItem( itemAddASCIIArmor, QStringLiteral( "AddASCIIArmor" ) );
257 +  KConfigSkeleton::ItemBool  *itemDontUseTmpDir;
258 +  itemDontUseTmpDir = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "dont-use-tmp-dir" ), mDontUseTmpDir, false );
259 +  addItem( itemDontUseTmpDir, QStringLiteral( "DontUseTmpDir" ) );
260 +}
261 +
262 +FileOperationsPreferences::~FileOperationsPreferences()
263 +{
264 +}
265 +
266 diff --git a/src/fileoperationspreferences.h b/src/fileoperationspreferences.h
267 new file mode 100644
268 index 0000000..9866a70
269 --- /dev/null   2018-01-08 07:35:44.039369717 +0100
270 +++ src/fileoperationspreferences.h     2018-01-09 15:42:01.995936609 +0100
271 @@ -0,0 +1,120 @@
272 +// This file is generated by kconfig_compiler_kf5 from fileoperationspreferences.kcfg.
273 +// All changes you do to this file will be lost.
274 +#ifndef KLEO_FILEOPERATIONSPREFERENCES_H
275 +#define KLEO_FILEOPERATIONSPREFERENCES_H
276 +
277 +#include <qglobal.h>
278 +#include <kconfigskeleton.h>
279 +#include <QCoreApplication>
280 +#include <QDebug>
281 +
282 +namespace Kleo {
283 +
284 +class FileOperationsPreferences : public KConfigSkeleton
285 +{
286 +  public:
287 +
288 +    FileOperationsPreferences( );
289 +    ~FileOperationsPreferences();
290 +
291 +    /**
292 +      Set Use pgp as the default extension for generated OpenPGP files
293 +    */
294 +    void setUsePGPFileExt( bool v )
295 +    {
296 +      if (!isImmutable( QStringLiteral( "UsePGPFileExt" ) ))
297 +        mUsePGPFileExt = v;
298 +    }
299 +
300 +    /**
301 +      Get Use pgp as the default extension for generated OpenPGP files
302 +    */
303 +    bool usePGPFileExt() const
304 +    {
305 +      return mUsePGPFileExt;
306 +    }
307 +
308 +    /**
309 +      Set Automatically start operation based on input detection for decrypt/verify.
310 +    */
311 +    void setAutoDecryptVerify( bool v )
312 +    {
313 +      if (!isImmutable( QStringLiteral( "AutoDecryptVerify" ) ))
314 +        mAutoDecryptVerify = v;
315 +    }
316 +
317 +    /**
318 +      Get Automatically start operation based on input detection for decrypt/verify.
319 +    */
320 +    bool autoDecryptVerify() const
321 +    {
322 +      return mAutoDecryptVerify;
323 +    }
324 +
325 +    /**
326 +      Set Use this command to create file archives.
327 +    */
328 +    void setArchiveCommand( const QString & v )
329 +    {
330 +      if (!isImmutable( QStringLiteral( "ArchiveCommand" ) ))
331 +        mArchiveCommand = v;
332 +    }
333 +
334 +    /**
335 +      Get Use this command to create file archives.
336 +    */
337 +    QString archiveCommand() const
338 +    {
339 +      return mArchiveCommand;
340 +    }
341 +
342 +    /**
343 +      Set Create signed or encrypted files as text files.
344 +    */
345 +    void setAddASCIIArmor( bool v )
346 +    {
347 +      if (!isImmutable( QStringLiteral( "AddASCIIArmor" ) ))
348 +        mAddASCIIArmor = v;
349 +    }
350 +
351 +    /**
352 +      Get Create signed or encrypted files as text files.
353 +    */
354 +    bool addASCIIArmor() const
355 +    {
356 +      return mAddASCIIArmor;
357 +    }
358 +
359 +    /**
360 +      Set Create temporary decrypted files in the folder of the encrypted file.
361 +    */
362 +    void setDontUseTmpDir( bool v )
363 +    {
364 +      if (!isImmutable( QStringLiteral( "DontUseTmpDir" ) ))
365 +        mDontUseTmpDir = v;
366 +    }
367 +
368 +    /**
369 +      Get Create temporary decrypted files in the folder of the encrypted file.
370 +    */
371 +    bool dontUseTmpDir() const
372 +    {
373 +      return mDontUseTmpDir;
374 +    }
375 +
376 +  protected:
377 +
378 +    // FileOperations
379 +    bool mUsePGPFileExt;
380 +    bool mAutoDecryptVerify;
381 +    QString mArchiveCommand;
382 +    bool mAddASCIIArmor;
383 +    bool mDontUseTmpDir;
384 +
385 +  private:
386 +};
387 +
388 +}
389 +
390 +#endif
391 +
392 diff --git a/src/smimevalidationpreferences.cpp b/src/smimevalidationpreferences.cpp
393 new file mode 100644
394 index 0000000..3d9a16f
395 --- /dev/null
396 +++ b/src/smimevalidationpreferences.cpp
397 @@ -0,0 +1,22 @@
398 +// This file is generated by kconfig_compiler_kf5 from smimevalidationpreferences.kcfg.
399 +// All changes you do to this file will be lost.
400 +
401 +#include "smimevalidationpreferences.h"
402 +
403 +using namespace Kleo;
404 +
405 +SMimeValidationPreferences::SMimeValidationPreferences(  )
406 +  : KConfigSkeleton( QStringLiteral( "kleopatrarc" ) )
407 +{
408 +  setCurrentGroup( QStringLiteral( "SMime Validation" ) );
409 +
410 +  KConfigSkeleton::ItemUInt  *itemRefreshInterval;
411 +  itemRefreshInterval = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "refresh-interval" ), mRefreshInterval, 1 );
412 +  itemRefreshInterval->setMaxValue(24);
413 +  addItem( itemRefreshInterval, QStringLiteral( "RefreshInterval" ) );
414 +}
415 +
416 +SMimeValidationPreferences::~SMimeValidationPreferences()
417 +{
418 +}
419 +
420 diff --git a/src/smimevalidationpreferences.h b/src/smimevalidationpreferences.h
421 new file mode 100644
422 index 0000000..9617bd5
423 --- /dev/null
424 +++ b/src/smimevalidationpreferences.h
425 @@ -0,0 +1,55 @@
426 +// This file is generated by kconfig_compiler_kf5 from smimevalidationpreferences.kcfg.
427 +// All changes you do to this file will be lost.
428 +#ifndef KLEO_SMIMEVALIDATIONPREFERENCES_H
429 +#define KLEO_SMIMEVALIDATIONPREFERENCES_H
430 +
431 +#include <qglobal.h>
432 +#include <kconfigskeleton.h>
433 +#include <QCoreApplication>
434 +#include <QDebug>
435 +
436 +namespace Kleo {
437 +
438 +class SMimeValidationPreferences : public KConfigSkeleton
439 +{
440 +  public:
441 +
442 +    SMimeValidationPreferences( );
443 +    ~SMimeValidationPreferences();
444 +
445 +    /**
446 +      Set Certificate refresh interval (in hours). Zero (0) disables.
447 +    */
448 +    void setRefreshInterval( uint v )
449 +    {
450 +
451 +      if (v > 24)
452 +      {
453 +        qDebug() << "setRefreshInterval: value " << v << " is greater than the maximum value of 24";
454 +        v = 24;
455 +      }
456 +
457 +      if (!isImmutable( QStringLiteral( "RefreshInterval" ) ))
458 +        mRefreshInterval = v;
459 +    }
460 +
461 +    /**
462 +      Get Certificate refresh interval (in hours). Zero (0) disables.
463 +    */
464 +    uint refreshInterval() const
465 +    {
466 +      return mRefreshInterval;
467 +    }
468 +
469 +  protected:
470 +
471 +    // SMime Validation
472 +    uint mRefreshInterval;
473 +
474 +  private:
475 +};
476 +
477 +}
478 +
479 +#endif
480 +
481 diff --git a/src/tooltippreferences.cpp b/src/tooltippreferences.cpp
482 new file mode 100644
483 index 0000000..7e85c6a
484 --- /dev/null
485 +++ b/src/tooltippreferences.cpp
486 @@ -0,0 +1,27 @@
487 +// This file is generated by kconfig_compiler_kf5 from tooltippreferences.kcfg.
488 +// All changes you do to this file will be lost.
489 +
490 +#include "tooltippreferences.h"
491 +
492 +using namespace Kleo;
493 +
494 +TooltipPreferences::TooltipPreferences(  )
495 +  : KConfigSkeleton( QStringLiteral( "kleopatrarc" ) )
496 +{
497 +  setCurrentGroup( QStringLiteral( "Tooltip" ) );
498 +
499 +  KConfigSkeleton::ItemBool  *itemShowValidity;
500 +  itemShowValidity = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "show-validity" ), mShowValidity, true );
501 +  addItem( itemShowValidity, QStringLiteral( "ShowValidity" ) );
502 +  KConfigSkeleton::ItemBool  *itemShowOwnerInformation;
503 +  itemShowOwnerInformation = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "show-owner-information" ), mShowOwnerInformation, false );
504 +  addItem( itemShowOwnerInformation, QStringLiteral( "ShowOwnerInformation" ) );
505 +  KConfigSkeleton::ItemBool  *itemShowCertificateDetails;
506 +  itemShowCertificateDetails = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "show-certificate-details" ), mShowCertificateDetails, false );
507 +  addItem( itemShowCertificateDetails, QStringLiteral( "ShowCertificateDetails" ) );
508 +}
509 +
510 +TooltipPreferences::~TooltipPreferences()
511 +{
512 +}
513 +
514 diff --git a/src/tooltippreferences.h b/src/tooltippreferences.h
515 new file mode 100644
516 index 0000000..44f77a2
517 --- /dev/null
518 +++ b/src/tooltippreferences.h
519 @@ -0,0 +1,84 @@
520 +// This file is generated by kconfig_compiler_kf5 from tooltippreferences.kcfg.
521 +// All changes you do to this file will be lost.
522 +#ifndef KLEO_TOOLTIPPREFERENCES_H
523 +#define KLEO_TOOLTIPPREFERENCES_H
524 +
525 +#include <qglobal.h>
526 +#include <kconfigskeleton.h>
527 +#include <QCoreApplication>
528 +#include <QDebug>
529 +
530 +namespace Kleo {
531 +
532 +class TooltipPreferences : public KConfigSkeleton
533 +{
534 +  public:
535 +
536 +    TooltipPreferences( );
537 +    ~TooltipPreferences();
538 +
539 +    /**
540 +      Set Show certificate validity
541 +    */
542 +    void setShowValidity( bool v )
543 +    {
544 +      if (!isImmutable( QStringLiteral( "ShowValidity" ) ))
545 +        mShowValidity = v;
546 +    }
547 +
548 +    /**
549 +      Get Show certificate validity
550 +    */
551 +    bool showValidity() const
552 +    {
553 +      return mShowValidity;
554 +    }
555 +
556 +    /**
557 +      Set Show certificate owner information
558 +    */
559 +    void setShowOwnerInformation( bool v )
560 +    {
561 +      if (!isImmutable( QStringLiteral( "ShowOwnerInformation" ) ))
562 +        mShowOwnerInformation = v;
563 +    }
564 +
565 +    /**
566 +      Get Show certificate owner information
567 +    */
568 +    bool showOwnerInformation() const
569 +    {
570 +      return mShowOwnerInformation;
571 +    }
572 +
573 +    /**
574 +      Set Show certificate details
575 +    */
576 +    void setShowCertificateDetails( bool v )
577 +    {
578 +      if (!isImmutable( QStringLiteral( "ShowCertificateDetails" ) ))
579 +        mShowCertificateDetails = v;
580 +    }
581 +
582 +    /**
583 +      Get Show certificate details
584 +    */
585 +    bool showCertificateDetails() const
586 +    {
587 +      return mShowCertificateDetails;
588 +    }
589 +
590 +  protected:
591 +
592 +    // Tooltip
593 +    bool mShowValidity;
594 +    bool mShowOwnerInformation;
595 +    bool mShowCertificateDetails;
596 +
597 +  private:
598 +};
599 +
600 +}
601 +
602 +#endif
603 +
604 --
605 2.1.4