kbLogger 2.0.b1
The automotive ready test and logging program.
ConfigItemFilterObject Class Reference

This class defines the API for the FilterObject.

#include <configitemfilterobject.h>

Public Slots

void append (QString expression)
 Appends the given expression to the internal list of filter expressions.
 
void clear ()
 Clears the internal list of filter expressions.
 
QString get (int index)
 Get the expression at the given index.
 
int length ()
 Gives the length of the internal expression list.
 
void remove (int index)
 Removes the expression at the given index.
 

Member Function Documentation

◆ append

void append ( QString expression)
slot

Appends the given expression to the internal list of filter expressions. This added filter will not be visible in the ConfigureDialog nor saved to the project file.

Example:

filter = so.configItem("Filter1");
filter.clear();
filter.append("this is an expression");
trace("The filter contains " + filter.size() + " elements");
Parameters
expression

◆ clear

void clear ( )
slot

Clears the internal list of filter expressions.

Example:

filter = so.configItem("Filter1");
filter.clear();
trace("The filter contains " + filter.size() + " elements");

◆ get

QString get ( int index)
slot

Get the expression at the given index.

Example:

filter = so.configItem("Filter1");
trace("The filter contains at first position " + filter.get(0) + " as expression");
Parameters
index
Returns
The filter expression

◆ length

int length ( void )
slot

Gives the length of the internal expression list.

Example:

filter = so.configItem("Filter1");
var length = filter.length();
trace("The filter contains " + length + " elements");
int length()
Gives the length of the internal expression list.
Definition configitemfilterobject.cpp:203

◆ remove

void remove ( int index)
slot

Removes the expression at the given index.

Example:

filter = so.configItem("Filter1");
filter.remove(0);
Parameters
index