LCOV - code coverage report
Current view: top level - src - passwordconfiguration.h (source / functions) Coverage Total Hit
Test: .lcov.total Lines: 71.4 % 7 5
Test Date: 2026-03-23 21:55:57 Functions: 100.0 % 1 1

            Line data    Source code
       1              : // SPDX-FileCopyrightText: 2016 Anne Jan Brouwer
       2              : // SPDX-License-Identifier: GPL-3.0-or-later
       3              : #ifndef SRC_PASSWORDCONFIGURATION_H_
       4              : #define SRC_PASSWORDCONFIGURATION_H_
       5              : 
       6              : #include <QString>
       7              : 
       8              : /*!
       9              :     \struct PasswordConfiguration
      10              :     \brief  Holds the Password configuration settings
      11              :  */
      12            0 : struct PasswordConfiguration {
      13              :   /**
      14              :    * \brief The selected character set.
      15              :    */
      16              :   enum characterSet {
      17              :     ALLCHARS = 0,
      18              :     ALPHABETICAL,
      19              :     ALPHANUMERIC,
      20              :     CUSTOM,
      21              :     CHARSETS_COUNT //   have to be last, for easier initialization of arrays
      22              :   } selected;
      23              :   /**
      24              :    * \brief Length of the password.
      25              :    */
      26              :   int length;
      27              :   /**
      28              :    * \brief The different character sets.
      29              :    */
      30              :   QString Characters[CHARSETS_COUNT];
      31            0 :   PasswordConfiguration() : selected(ALLCHARS), length(16) {
      32              :     Characters[ALLCHARS] =
      33              :         "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&"
      34           87 :         "*()_-+={}[]|:;<>,.?"; /*AllChars*/
      35              :     Characters[ALPHABETICAL] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
      36           87 :                                "vwxyz"; /*Only Alphabetical*/
      37              :     Characters[ALPHANUMERIC] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
      38           87 :                                "vwxyz1234567890"; /*Alphabetical and Numerical*/
      39           87 :     Characters[CUSTOM] = Characters[ALLCHARS];    // may be redefined by user
      40           87 :   }
      41              : };
      42              : 
      43              : #endif // SRC_PASSWORDCONFIGURATION_H_
        

Generated by: LCOV version 2.4-beta