UltraScan III
List of all members | Public Member Functions | Static Public Member Functions
US_Settings Class Reference

Fetch and set values via QSettings. All functions are static. More...

#include "us_settings.h"

Public Member Functions

 US_Settings ()
 Null constructor. More...
 
 ~US_Settings ()
 Null destructor. More...
 

Static Public Member Functions

static QString browser (void)
 Get the browser program. More...
 
static void set_browser (const QString &)
 Set the browser program. The path is only necessary if it is not found via the PATH envrionment variable. More...
 
static QString importDir (void)
 Get the directory for raw data. More...
 
static void set_importDir (const QString &)
 Set the directory for raw data. More...
 
static QString tmpDir (void)
 Get the directory where temporary files can be stored. More...
 
static void set_tmpDir (const QString &)
 Set the directory where temporary files can be stored. More...
 
static QString dataDir (void)
 Get the directory for data (analytes, models, ...) More...
 
static QString archiveDir (void)
 Get the directory where data and reports are archived locally. More...
 
static QString resultDir (void)
 Get the directory for results data. More...
 
static QString reportDir (void)
 Get the directory for reports from the supercomputer. More...
 
static QString etcDir ()
 Get the directory where working ./etc files reside. More...
 
static QString appBaseDir ()
 Get the base directory in which ./bin apps reside. More...
 
static QString workBaseDir ()
 Get work base directory for archive,results,reports.etc. More...
 
static void set_workBaseDir (const QString &)
 Set the work base directory for archive,results,reports.etc. More...
 
static QStringList license (void)
 Get the current license. More...
 
static void set_license (const QStringList &)
 Set the current license. More...
 
static QByteArray UltraScanPW (void)
 Get the cryptographic hash of the master password. More...
 
static void set_UltraScanPW (const QByteArray &)
 Set the cryptographic hash of the master password. More...
 
static double tempTolerance (void)
 Get the temperature tolerance for runs. More...
 
static void set_tempTolerance (double)
 Set the temperature tolerance for runs. More...
 
static bool beckmanBug (void)
 Get the Beckman Bug flag. More...
 
static void set_beckmanBug (bool)
 Set the Beckman Bug flag. More...
 
static int default_data_location (void)
 Get the default data location. More...
 
static void set_default_data_location (int)
 Set the default data setting. More...
 
static int us_debug (void)
 Get the US_Debug setting. More...
 
static void set_us_debug (int)
 Set the US_Debug setting. More...
 
static QString us_inv_name (void)
 Get the last set investigator name. More...
 
static void set_us_inv_name (const QString &)
 Set the last set investigator name. More...
 
static int us_inv_level (void)
 Get the last set investigator user level. More...
 
static void set_us_inv_level (int)
 Set the last set investigator user level. More...
 
static int us_inv_ID (void)
 Get the last set investigator ID. More...
 
static void set_us_inv_ID (int)
 Set the last set investigator ID. More...
 
static QStringList debug_text (void)
 Get the Debug text setting as a string list. More...
 
static bool debug_match (QString)
 Get a flag if given string matches any in debug text. More...
 
static void set_debug_text (QStringList)
 Set the Debug text setting as a string list. More...
 
static int advanced_level (void)
 Get the advanced level setting. More...
 
static void set_advanced_level (int)
 Set the advanced level setting. More...
 
static int threads (void)
 Get the number of threads to use for internal procesing. More...
 
static void set_threads (int)
 Set the number of threads to use for internal procesing. This is normally the number of processors or cores in the local computer. More...
 
static QList< QStringList > databases (void)
 Get a list of stored database connection descriptions. More...
 
static void set_databases (const QList< QStringList > &)
 Set a list of stored database connection descriptions. More...
 
static QStringList defaultDB (void)
 Get the current stored database connection description. More...
 
static void set_defaultDB (const QStringList &)
 Set the current stored database connection description. More...
 

Detailed Description

Fetch and set values via QSettings. All functions are static.

Definition at line 10 of file us_settings.h.

Constructor & Destructor Documentation

US_Settings::US_Settings ( )
inline

Null constructor.

Definition at line 14 of file us_settings.h.

US_Settings::~US_Settings ( )
inline

Null destructor.

Definition at line 16 of file us_settings.h.

Member Function Documentation

int US_Settings::advanced_level ( void  )
static

Get the advanced level setting.

Definition at line 286 of file us_settings.cpp.

QString US_Settings::appBaseDir ( void  )
static

Get the base directory in which ./bin apps reside.

Definition at line 99 of file us_settings.cpp.

QString US_Settings::archiveDir ( void  )
static

Get the directory where data and reports are archived locally.

Definition at line 75 of file us_settings.cpp.

bool US_Settings::beckmanBug ( void  )
static

Get the Beckman Bug flag.

Definition at line 158 of file us_settings.cpp.

QString US_Settings::browser ( void  )
static

Get the browser program.

Definition at line 5 of file us_settings.cpp.

QList< QStringList > US_Settings::databases ( void  )
static

Get a list of stored database connection descriptions.

Definition at line 319 of file us_settings.cpp.

QString US_Settings::dataDir ( void  )
static

Get the directory for data (analytes, models, ...)

Definition at line 69 of file us_settings.cpp.

bool US_Settings::debug_match ( QString  match)
static

Get a flag if given string matches any in debug text.

Definition at line 225 of file us_settings.cpp.

QStringList US_Settings::debug_text ( void  )
static

Get the Debug text setting as a string list.

Definition at line 219 of file us_settings.cpp.

int US_Settings::default_data_location ( void  )
static

Get the default data location.

Definition at line 174 of file us_settings.cpp.

QStringList US_Settings::defaultDB ( void  )
static

Get the current stored database connection description.

Definition at line 360 of file us_settings.cpp.

QString US_Settings::etcDir ( void  )
static

Get the directory where working ./etc files reside.

Definition at line 93 of file us_settings.cpp.

QString US_Settings::importDir ( void  )
static

Get the directory for raw data.

Definition at line 37 of file us_settings.cpp.

QStringList US_Settings::license ( void  )
static

Get the current license.

Definition at line 116 of file us_settings.cpp.

QString US_Settings::reportDir ( void  )
static

Get the directory for reports from the supercomputer.

Definition at line 87 of file us_settings.cpp.

QString US_Settings::resultDir ( void  )
static

Get the directory for results data.

Definition at line 81 of file us_settings.cpp.

void US_Settings::set_advanced_level ( int  level)
static

Set the advanced level setting.

Definition at line 292 of file us_settings.cpp.

void US_Settings::set_beckmanBug ( bool  setBug)
static

Set the Beckman Bug flag.

Definition at line 164 of file us_settings.cpp.

void US_Settings::set_browser ( const QString &  browser)
static

Set the browser program. The path is only necessary if it is not found via the PATH envrionment variable.

Definition at line 11 of file us_settings.cpp.

void US_Settings::set_databases ( const QList< QStringList > &  dblist)
static

Set a list of stored database connection descriptions.

Definition at line 334 of file us_settings.cpp.

void US_Settings::set_debug_text ( QStringList  debuglist)
static

Set the Debug text setting as a string list.

Definition at line 230 of file us_settings.cpp.

void US_Settings::set_default_data_location ( int  location)
static

Set the default data setting.

Definition at line 180 of file us_settings.cpp.

void US_Settings::set_defaultDB ( const QStringList &  defaultDB)
static

Set the current stored database connection description.

Definition at line 366 of file us_settings.cpp.

void US_Settings::set_importDir ( const QString &  dir)
static

Set the directory for raw data.

Definition at line 43 of file us_settings.cpp.

void US_Settings::set_license ( const QStringList &  license)
static

Set the current license.

Definition at line 122 of file us_settings.cpp.

void US_Settings::set_tempTolerance ( double  tempTolerance)
static

Set the temperature tolerance for runs.

Definition at line 148 of file us_settings.cpp.

void US_Settings::set_threads ( int  threads)
static

Set the number of threads to use for internal procesing. This is normally the number of processors or cores in the local computer.

Definition at line 308 of file us_settings.cpp.

void US_Settings::set_tmpDir ( const QString &  dir)
static

Set the directory where temporary files can be stored.

Definition at line 59 of file us_settings.cpp.

void US_Settings::set_UltraScanPW ( const QByteArray &  hash)
static

Set the cryptographic hash of the master password.

Definition at line 135 of file us_settings.cpp.

void US_Settings::set_us_debug ( int  level)
static

Set the US_Debug setting.

Definition at line 208 of file us_settings.cpp.

void US_Settings::set_us_inv_ID ( int  id)
static

Set the last set investigator ID.

Definition at line 261 of file us_settings.cpp.

void US_Settings::set_us_inv_level ( int  level)
static

Set the last set investigator user level.

Definition at line 276 of file us_settings.cpp.

void US_Settings::set_us_inv_name ( const QString &  name)
static

Set the last set investigator name.

Definition at line 246 of file us_settings.cpp.

void US_Settings::set_workBaseDir ( const QString &  dir)
static

Set the work base directory for archive,results,reports.etc.

Definition at line 27 of file us_settings.cpp.

double US_Settings::tempTolerance ( void  )
static

Get the temperature tolerance for runs.

Definition at line 142 of file us_settings.cpp.

int US_Settings::threads ( void  )
static

Get the number of threads to use for internal procesing.

Definition at line 302 of file us_settings.cpp.

QString US_Settings::tmpDir ( void  )
static

Get the directory where temporary files can be stored.

Definition at line 53 of file us_settings.cpp.

QByteArray US_Settings::UltraScanPW ( void  )
static

Get the cryptographic hash of the master password.

Definition at line 129 of file us_settings.cpp.

int US_Settings::us_debug ( void  )
static

Get the US_Debug setting.

Definition at line 202 of file us_settings.cpp.

int US_Settings::us_inv_ID ( void  )
static

Get the last set investigator ID.

Definition at line 255 of file us_settings.cpp.

int US_Settings::us_inv_level ( void  )
static

Get the last set investigator user level.

Definition at line 270 of file us_settings.cpp.

QString US_Settings::us_inv_name ( void  )
static

Get the last set investigator name.

Definition at line 240 of file us_settings.cpp.

QString US_Settings::workBaseDir ( void  )
static

Get work base directory for archive,results,reports.etc.

Definition at line 20 of file us_settings.cpp.


The documentation for this class was generated from the following files: