mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
40aa92c5f7
Also issue warning when trying to bind to a port below 1024 and use default port in that case
72 lines
2.4 KiB
C++
72 lines
2.4 KiB
C++
/**
|
|
***************************************************************************
|
|
* @file HttpSettings.h
|
|
*
|
|
* @brief
|
|
*
|
|
* Copyright (C) 2013
|
|
*
|
|
* @author Francois Ferrand
|
|
* @date 4/2013
|
|
***************************************************************************
|
|
*/
|
|
|
|
#ifndef HTTPSETTINGS_H
|
|
#define HTTPSETTINGS_H
|
|
|
|
#include "core/PasswordGenerator.h"
|
|
|
|
class HttpSettings
|
|
{
|
|
public:
|
|
static bool isEnabled();
|
|
static void setEnabled(bool enabled);
|
|
|
|
static bool showNotification(); //TODO!!
|
|
static void setShowNotification(bool showNotification);
|
|
static bool bestMatchOnly(); //TODO!!
|
|
static void setBestMatchOnly(bool bestMatchOnly);
|
|
static bool unlockDatabase(); //TODO!!
|
|
static void setUnlockDatabase(bool unlockDatabase);
|
|
static bool matchUrlScheme();
|
|
static void setMatchUrlScheme(bool matchUrlScheme);
|
|
static bool sortByUsername();
|
|
static void setSortByUsername(bool sortByUsername = true);
|
|
static bool sortByTitle();
|
|
static void setSortByTitle(bool sortByUsertitle = true);
|
|
static bool alwaysAllowAccess();
|
|
static void setAlwaysAllowAccess(bool alwaysAllowAccess);
|
|
static bool alwaysAllowUpdate();
|
|
static void setAlwaysAllowUpdate(bool alwaysAllowUpdate);
|
|
static bool searchInAllDatabases();//TODO!!
|
|
static void setSearchInAllDatabases(bool searchInAllDatabases);
|
|
static bool supportKphFields();
|
|
static void setSupportKphFields(bool supportKphFields);
|
|
static int httpPort();
|
|
static void setHttpPort(int port);
|
|
|
|
static bool passwordUseNumbers();
|
|
static void setPasswordUseNumbers(bool useNumbers);
|
|
static bool passwordUseLowercase();
|
|
static void setPasswordUseLowercase(bool useLowercase);
|
|
static bool passwordUseUppercase();
|
|
static void setPasswordUseUppercase(bool useUppercase);
|
|
static bool passwordUseSpecial();
|
|
static void setPasswordUseSpecial(bool useSpecial);
|
|
static bool passwordEveryGroup();
|
|
static void setPasswordEveryGroup(bool everyGroup);
|
|
static bool passwordExcludeAlike();
|
|
static void setPasswordExcludeAlike(bool excludeAlike);
|
|
static int passwordLength();
|
|
static void setPasswordLength(int length);
|
|
static PasswordGenerator::CharClasses passwordCharClasses();
|
|
static PasswordGenerator::GeneratorFlags passwordGeneratorFlags();
|
|
static QString generatePassword();
|
|
static int getbits();
|
|
|
|
private:
|
|
static PasswordGenerator m_generator;
|
|
};
|
|
|
|
#endif // HTTPSETTINGS_H
|