Singleton Bps object as application global. More...
#include <bps.h>
Signals | |
void | masterTableChanged (const QString &aTable) |
Emitted when emitMasterTableChanged is called by an application. | |
void | tableChanged (const QString &aTable) |
Emitted when emitTableChanged or emitMasterTableChanged is called by an application. | |
Public Member Functions | |
QStringList | accessTexts () const |
QStringList | alignmentTexts () const |
QStringList | barcodeTexts () const |
bool | canEditInstallSettings () |
Check if the the local installation settings are editable. More... | |
void | clearCache () |
Clears all cached values from the object. | |
QString | computerName () const |
Get the computer name. More... | |
QString | createTempFile (const QString &aTemplate=QString()) const |
Creates a temporary file and returns the complete file name. More... | |
int | decryptPin (int aUserid, int aPin) const |
Decrypt a user PIN. More... | |
QStringList | directionTexts () const |
QString | directory (const QString &aName=QString()) const |
Get a BPS application directory. More... | |
qreal | dot2mm () const |
QStringList | eccLevelTexts () const |
void | emitMasterTableChanged (const QString &aTable) |
Emit the signals masterTableChanged and tableChanged. More... | |
void | emitTableChanged (const QString &aTable) |
Emit the signal tableChanged. More... | |
int | encryptPin (int aUserid, int aPin) const |
Encrypt a user PIN. More... | |
int | indexOf (const QString &aCharList, const QString &aChar) const |
Replacement for QString::indexOf to check for a single char position. More... | |
int | indexOf (const QString &aCharList, const QVariant &aChar) const |
Replacement for QString::indexOf to check for a single char position. More... | |
QBrush | invalidInputBackgroundBrush () const |
bool | isElevated () |
Check if the current process is running with elevated or limited privilege. More... | |
bool | isEqual (const QVariant &aFirst, const QVariant &aSecond) const |
Compare 2 QVariant for non-strict equality (so the QVariant type may differ). More... | |
bool | isEqual (const QVariantMap &aFirst, const QVariantMap &aSecond) const |
Compare a pair of QVariantMap for non-strict equality. More... | |
bool | isInfinite (double aValue) const |
Check if a double value is infinite. More... | |
bool | isNaN (double aValue) const |
Check if a double value is NaN. More... | |
bool | isStrictlyEqual (const QVariant &aFirst, const QVariant &aSecond) const |
Compare 2 QVariants for strict equality. More... | |
QString | loadStyleSheet (const QString &aFilename) const |
Load a style sheet with the given file name. More... | |
QLocale | locale () const |
Get the locale to be used. More... | |
QMap< QString, QString > | lowerKeyStringMap (const QMap< QString, QString > &aStringMap) |
Get a string map where all keys are lower case. More... | |
QMap< QString, QString > | lowerKeyStringMap (const QVariantMap &aVariantMap) |
Get a string map where all keys are lower case. More... | |
QDateTime | makeDateTime (const QString &aDateTime) |
Create QDateTime from a BPS date/time string. More... | |
qreal | mm2dot () const |
void | msleep (int aMilliseconds) const |
Sleep for a number of milliseconds. More... | |
void | mwait (int aMilliseconds) const |
Wait for a number of milliseconds. More... | |
QString | nodeName () const |
Get the node name. More... | |
NumStatus | numStatus (const BpsDecimal &aValue) const |
Returns the numeric status of a BpsDecimal value. More... | |
NumStatus | numStatus (double aValue) const |
Returns the numeric status of a double value. More... | |
QString | personalFolder () const |
Get the personal data folder. More... | |
bool | printData (const QString &aPrinterName, const QString &aDocName, const QByteArray &aData) const |
Send data to a printer. More... | |
QString | printerShareName (const QString &aPrinterName) const |
Get the share name of a printer if it is a network printer. More... | |
bool | printFile (const QString &aPrinterName, const QString &aDocName, const QString &aFileName) const |
Send a file to a printer. More... | |
double | round (double aValue, int aDecPlaces=3) const |
Round off as per standard commercial practice. More... | |
int | screenResolution () const |
void | setUserStatusPath (const QString &aPath) |
Set a new user status path. More... | |
void | sleep (int aSeconds) const |
Sleep for a number of seconds. More... | |
QString | stripTimeFormat (const QString &aDateTimeFormat) |
Strip the time format from a date/time format string, creating a date only format. More... | |
QString | terminalName () const |
Get the terminal name. More... | |
QString | toString (const QVariant &aValue, int aDecPlaces=-3, int aMaxSize=17) const |
Get string representation of a QVariant. More... | |
QMap< QString, QString > | toStringMap (const QVariantMap &aVariantMap) |
Convert a variant map to a string map. More... | |
QVariantMap | toVariantMap (const QMap< QString, QString > &aStringMap) |
Convert a string map to a variant map. More... | |
QString | trimMultilineText (BpsDatastore *aDatastore, const QString &aTable, const QString &aColumn, const QString &aText) |
Apply a validators multi line text constraints (maxlines and maxperline) to a text and return the trimmed text. More... | |
QString | userName () const |
Get the system user name. More... | |
QString | userStatusPath () const |
The user status path is convenient to store local user settings additionally separated by database user name. More... | |
void | usleep (int aMicroseconds) const |
Sleep for a number of microseconds. More... | |
QVariant | validatorValue (BpsDatastore *aDatastore, const QString &aTable, const QString &aKey, const QVariant &aDefValue=QVariant()) |
Reads a validator setting from the central system settings in Validators/table/key. More... | |
void | wait (int aSeconds) const |
Wait for a number of seconds. More... | |
![]() | |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () |
void | dumpObjectInfo () const const |
void | dumpObjectTree () |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_DISABLE_COPY (Class) | |
Q_DISABLE_COPY_MOVE (Class) | |
Q_DISABLE_MOVE (Class) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qFindChild (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
QObject (QObject *parent) | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
QThread * | thread () const const |
Static Public Member Functions | |
static QModelIndexList | bottomIndexes (const QModelIndexList &aIndexes) |
Reduces a list of tree indexes to the most bottom elements, by removing the indexes which are higher-ups of another index in the list. More... | |
static Bps * | instance () |
static int | modelIndexLevel (const QModelIndex &aIndex) |
Find the level of a tree model index. More... | |
static QModelIndexList | topIndexes (const QModelIndexList &aIndexes) |
Reduces a list of tree indexes to the topmost elements, by removing the indexes which are descendants of another index in the list. More... | |
static bool | treeModelIndexGreaterThan (const QModelIndex &aFirst, const QModelIndex &aSecond) |
Compares two indexes of a tree model. More... | |
static bool | treeModelIndexLessThan (const QModelIndex &aFirst, const QModelIndex &aSecond) |
Compares two indexes of a tree model. More... | |
![]() | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Related Functions | |
(Note that these are not member functions.) | |
#define | bps Bps::instance() |
Convenience notation for Bps::instance() | |
Additional Inherited Members | |
![]() | |
typedef | QObjectList |
![]() | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
objectName | |
Singleton Bps object as application global.
enum Bps::Access |
enum Bps::Alignment |
General alignment.
enum Bps::Barcode |
Type of the bar code construction element.
enum Bps::Direction |
enum Bps::EccLevel |
Error correction code level.
Mapping of correction levels to 2D bar codes:
EccLevel | QR Code | iQR Code |
EccLevelMin | L: up to 7% | L: up to 7% |
EccLevelVeryLow | L: up to 7% | L: up to 7% |
EccLevelLow | L: up to 7% | M: up to 15% |
EccLevelMedium | M: up to 15% | Q: up to 25% |
EccLevelHigh | Q: up to 25% | H: up to 30% |
EccLevelVeryHigh | H: up to 30% | S: up to 50% |
EccLevelMax | H: up to 30% | T: up to 60% |
enum Bps::ItemDataRole |
Item data roles.
Enumerator | |
---|---|
RoleSort | The data used for custom item sorting.
|
RoleFractionDigits | Number of fraction digits to use for display of numeric values.
|
RoleKeyString | String representation of the record key. |
enum Bps::NumStatus |
enum Bps::Rotation |
enum Bps::Status |
QStringList Bps::accessTexts | ( | ) | const |
QStringList Bps::alignmentTexts | ( | ) | const |
QStringList Bps::barcodeTexts | ( | ) | const |
|
static |
Reduces a list of tree indexes to the most bottom elements, by removing the indexes which are higher-ups of another index in the list.
aIndexes | The index list to process. |
bool Bps::canEditInstallSettings | ( | ) |
Check if the the local installation settings are editable.
The settings are stored in the file settings.ini in the application data folder selected while installing BPS.
QString Bps::computerName | ( | ) | const |
Get the computer name.
The computer name taken from the environment variables COMPUTERNAME. For fat clients COMPUTERNAME is the name of the workstation. For thin clients COMPUTERNAME is the name of the terminal server.
Creates a temporary file and returns the complete file name.
It is purpose of the application to delete the file when it is no longer needed.
In most cases it will be more convenient to use QTemporaryFile, however there are special cases like when printing where you need to provide a file name and the class will open, write and close the file itself.
aTemplate | A file name template, as in QTemporaryFile. |
int Bps::decryptPin | ( | int | aUserid, |
int | aPin | ||
) | const |
Decrypt a user PIN.
aUserid | The user id. |
aPin | The encrypted PIN. |
QStringList Bps::directionTexts | ( | ) | const |
Get a BPS application directory.
The path is first searched in the environment where aName is prefixed with "BPS_".
When the path was not found in the environment variables, it is searched in the file bps.conf which is in the directory where the executable was started from. The key aName is expected in section [Paths]. (Note that in bps.conf paths are written with forward slashes).
If the found path is relative (not starting with a drive or slash/backslash), it is assumed to be relative to the BPS installation directory (one above the exe's). The returned path is made absolute under this premise. The installation directory however is normally not writable, so a relative path is rarely reasonable.
Example 1: Relative path in environment variable
aName | Logs |
Environment variable BPS_LOGS= | mylogs |
bps.conf: [Paths] ... Logs= | (ignored if environment variable defined) |
BPS installation directory | C:\Program Files\IBK BPS 2.22.0 |
Returned path | C:/Program Files/IBK BPS 2.22.0/mylogs |
Example 2: Absolute path in bps.conf
aName | Logs |
Environment variable BPS_LOGS= | (not defined) |
bps.conf: [Paths] ... Logs= | C:/ProgramData/IBK Software AG/BPS2/logs |
BPS installation directory | (does not matter when path is absolute) |
Returned path | C:/ProgramData/IBK Software AG/BPS2/logs |
aName | Logical path name, for example: CSS , Data , Logs , Plugins Scripts or Translations . Get the BPS installation directory if aName is empty. |
qreal Bps::dot2mm | ( | ) | const |
QStringList Bps::eccLevelTexts | ( | ) | const |
void Bps::emitMasterTableChanged | ( | const QString & | aTable | ) |
Emit the signals masterTableChanged and tableChanged.
Called by applications when a master data table has been changed.
aTable | Name of the table changed. |
void Bps::emitTableChanged | ( | const QString & | aTable | ) |
Emit the signal tableChanged.
Called by applications when data of a table has been changed.
aTable | Name of the table changed. |
int Bps::encryptPin | ( | int | aUserid, |
int | aPin | ||
) | const |
Encrypt a user PIN.
aUserid | The user id. |
aPin | The unencrypted PIN. |
Replacement for QString::indexOf to check for a single char position.
aCharList | The list of characters to check. |
aChar | String assumed to hold a single char. |
Replacement for QString::indexOf to check for a single char position.
aCharList | The list of characters to check. |
aChar | QVariant with string assumed to hold a single char. |
QBrush Bps::invalidInputBackgroundBrush | ( | ) | const |
bool Bps::isElevated | ( | ) |
Check if the current process is running with elevated or limited privilege.
Elevated: Either UAC is enabled and the process was elevated by the administrator, or UAC is disabled and the process was started by a user who is a member of the Administrators group.
Not elevated (limited): Either UAC is enabled and the process was started normally without the elevation, or UAC is disabled and the process was started by a standard user.
Compare 2 QVariant for non-strict equality (so the QVariant type may differ).
They are considered equal when both are null, or both are not null and have same value.
aFirst | First value to compare. |
aSecond | Second value to compare against. |
bool Bps::isEqual | ( | const QVariantMap & | aFirst, |
const QVariantMap & | aSecond | ||
) | const |
Compare a pair of QVariantMap for non-strict equality.
aFirst | First map to compare. |
aSecond | Second map to compare against. |
|
inline |
Check if a double value is infinite.
To check if the value is a positive or negative infinite, you need to compare it additionally with any finite number (positive infinites are bigger than any other value except itself and NaN, negative infinites are smaller than any other value except itself and NaN):
aValue | The value to check. |
|
inline |
Check if a double value is NaN.
aValue | The value to check. |
Compare 2 QVariants for strict equality.
They are considered equal when both are of same type and value.
aFirst | First value to compare. |
aSecond | Second value to compare against. |
Load a style sheet with the given file name.
If the filename does not have an extension, .css will be added. If the file name is no absolute path, the file will first be searched from the current directory, and then in the logical path
CSS
.
aFilename | The file name of the style sheet. |
QLocale Bps::locale | ( | ) | const |
Get the locale to be used.
First the environment variables are searched for a BPS_LOCALE, if not found the system locate is used.
Set the locale format in the environment is "language[_country]" where:
Examples:
Get a string map where all keys are lower case.
Keys and values of the returned string map are trimmed, e.g. the leading and trailing whitespace is removed
aStringMap | The map with probably mixed case keys. |
Get a string map where all keys are lower case.
Keys and values of the returned string map are trimmed, e.g. the leading and trailing whitespace is removed
aVariantMap | The variant map with probably mixed case keys. |
Create QDateTime from a BPS date/time string.
The input is assumed to be of format YYYY.MM.DD HH:MM:SS, but may contain + or - signs for each portion to indicate relative years/months/days/hours/minutes/seconds the add subtract to the current date time. First the relative numbers get added or subtracted to/from the current date, then the absolute numbers get set.
In the following examples the current date/time is assumed to be 2009.05.28 07:47:32
aDateTime | Return |
---|---|
2010.03.01 12:10:00 | 2010.03.01 12:10:00 |
+0000.+00.+00 +00:+00:+00 | 2009.05.28 07:47:32 |
-0010.-00.-00 00:00:00 | 1999.05.28 00:00:00 |
+0000.+00.+01 12:00:00 | 2009.05.29 12:00:00 |
aDateTime | The date/time string. |
qreal Bps::mm2dot | ( | ) | const |
|
static |
Find the level of a tree model index.
The root item has level 0, children of root have level 1, grandchildren have level 2 and so on.
aIndex | The tree model index of interest. |
void Bps::msleep | ( | int | aMilliseconds | ) | const |
Sleep for a number of milliseconds.
No event processing will be done so the application will be unresponsive. Use mwait() in case to for non-blocking sleeping.
aMilliseconds | The time to sleep. |
void Bps::mwait | ( | int | aMilliseconds | ) | const |
Wait for a number of milliseconds.
While waiting, events will be processed and the application will stay responsive to user interface events and network communication. If aMilliseconds is <= 0, the function returns immediately after processing any pending events.
aMilliseconds | The time to wait. |
QString Bps::nodeName | ( | ) | const |
Get the node name.
The node name is made up by the three parts computerName(), terminalName() and sysUserName() joined together by dots, for example WS12325.TC005.pmiller
. Equal parts are omitted, for example if computerName() is equal to terminalName(), only one of them is shown.
NumStatus Bps::numStatus | ( | const BpsDecimal & | aValue | ) | const |
Returns the numeric status of a BpsDecimal value.
aValue | The value to check. |
NumStatus Bps::numStatus | ( | double | aValue | ) | const |
Returns the numeric status of a double value.
aValue | The value to check. |
QString Bps::personalFolder | ( | ) | const |
Get the personal data folder.
Under windows this is the path of "My documents" or "Eigene Dateien". Under other operating systems this function is equivalent to QDir::homePath().
bool Bps::printData | ( | const QString & | aPrinterName, |
const QString & | aDocName, | ||
const QByteArray & | aData | ||
) | const |
Send data to a printer.
aPrinterName | The name of the printer. May also be a network printer name such as "\\\\server\\printer". |
aDocName | The document name as shown in the spooler. The document name will be prefixed with the node name, for example when the document name is "My Report", the spooler might show "SPEEDY.Console.kochp: My Report". |
aData | The data to send. |
Get the share name of a printer if it is a network printer.
aPrinterName | The given printer name. |
bool Bps::printFile | ( | const QString & | aPrinterName, |
const QString & | aDocName, | ||
const QString & | aFileName | ||
) | const |
Send a file to a printer.
The printer may be any local or network printer known to the workstation.
aPrinterName | The name of the printer. May also be a network printer name such as "\\\\server\\printer". |
aDocName | The document name as shown in the spooler. The document name will be prefixed with the node name, for example when the document name is "My Report", the spooler might show "SPEEDY.Console.kochp: My Report". |
aFileName | The name of the file to send. |
double Bps::round | ( | double | aValue, |
int | aDecPlaces = 3 |
||
) | const |
Round off as per standard commercial practice.
aValue | The value to round off. |
aDecPlaces | Number of decimal places. |
int Bps::screenResolution | ( | ) | const |
void Bps::setUserStatusPath | ( | const QString & | aPath | ) |
Set a new user status path.
aPath | The new user status path to set. |
void Bps::sleep | ( | int | aSeconds | ) | const |
Sleep for a number of seconds.
No event processing will be done so the application will be unresponsive. Use wait() in case to for non-blocking sleeping.
aSeconds | The time to sleep. |
Strip the time format from a date/time format string, creating a date only format.
Leading delimiter chars (in " -.,:;") before the first time format char (in "hHmszt"), and all characters between the first and last time format char are removed.
Examples:
aDateTimeFormat | The date/time format string. |
QString Bps::terminalName | ( | ) | const |
Get the terminal name.
The terminal name is taken from the environment variable CLIENTNAME, if such is present and it is not "Console". Otherwise it is set equal to computerName().
|
static |
Reduces a list of tree indexes to the topmost elements, by removing the indexes which are descendants of another index in the list.
aIndexes | The index list to process. |
Get string representation of a QVariant.
aValue | The value to process. |
aDecPlaces | Number of decimal places. Only applied for numeric values. |
aMaxSize | Maximum string size. Only applied for numeric values. |
Convert a variant map to a string map.
The case of the keys is retained.
aVariantMap | The variant map to convert. |
Convert a string map to a variant map.
The case of the keys is retained.
aStringMap | The string map to convert. |
|
static |
Compares two indexes of a tree model.
This is useful for sorting a QModelIndexList of a tree model in descending order.
Example:
aFirst | The first index. |
aSecond | The second index. |
|
static |
Compares two indexes of a tree model.
This is useful for sorting a QModelIndexList of a tree model in ascending order.
Example:
aFirst | The first index. |
aSecond | The second index. |
QString Bps::trimMultilineText | ( | BpsDatastore * | aDatastore, |
const QString & | aTable, | ||
const QString & | aColumn, | ||
const QString & | aText | ||
) |
Apply a validators multi line text constraints (maxlines and maxperline) to a text and return the trimmed text.
aDatastore | The datastore to use. |
aTable | The table name for the validator settings to use. |
aColumn | The column name for the validator settings to use. |
aText | The text to check and in case trim. |
QString Bps::userName | ( | ) | const |
Get the system user name.
The system user name taken from the environment variable USERNAME.
QString Bps::userStatusPath | ( | ) | const |
The user status path is convenient to store local user settings additionally separated by database user name.
After construction of the bps Object, the default is initialized to "Status", and by convention the main application (workplace for example) will set it to "Status/dbUserName" after login.
void Bps::usleep | ( | int | aMicroseconds | ) | const |
Sleep for a number of microseconds.
aMicroseconds | The time to sleep. |
QVariant Bps::validatorValue | ( | BpsDatastore * | aDatastore, |
const QString & | aTable, | ||
const QString & | aKey, | ||
const QVariant & | aDefValue = QVariant() |
||
) |
Reads a validator setting from the central system settings in Validators/table/key.
The read values are cached for speed.
aDatastore | The datastore to operate on. |
aTable | The table name. |
aKey | The key name, mostly something as "c_fieldname.mask" for example. |
aDefValue | A default value to return if no value is found or it is empty. |
BpsException | On datastore errors. |
void Bps::wait | ( | int | aSeconds | ) | const |
Wait for a number of seconds.
While waiting, events will be processed and the application will stay responsive to user interface events and network communication. If aSeconds is <= 0, the function returns immediately after processing any pending events.
aSeconds | The time to wait. |