Classified ads
Signals | Public Member Functions | Static Public Member Functions | List of all members
TclUtil Class Reference

Misc utilities needed in TCL-related code. More...

#include <tclUtil.h>

Inheritance diagram for TclUtil:
Inheritance graph
[legend]
Collaboration diagram for TclUtil:
Collaboration graph
[legend]

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 

Public Member Functions

 TclUtil ()
 
 ~TclUtil ()
 

Static Public Member Functions

static QString constructCAGroup (QString aAboutComboBoxText, QString aConcernsComboBoxText, QString aInComboBoxText, const Model &aModel)
 

Detailed Description

Misc utilities needed in TCL-related code.

Functionality not really TCL-dependent but called from TCL-wrapper.

Constructor & Destructor Documentation

◆ TclUtil()

TclUtil::TclUtil ( )

◆ ~TclUtil()

TclUtil::~TclUtil ( )

Member Function Documentation

◆ constructCAGroup()

static QString TclUtil::constructCAGroup ( QString  aAboutComboBoxText,
QString  aConcernsComboBoxText,
QString  aInComboBoxText,
const Model aModel 
)
static

Method for constructing the group string of classified ad group string. String is of form about.concerns.where. See method in FrontWidget::selectedClassification that has same purpose but has different input

Parameters
aAboutComboBoxText"about" part of group string. This is checked against localized strings in datamodel and user types "Veneet" (boats in finnish) and happens to have finnish locale, then datamodel will catch the situation and return "Boats" - idea is that any boat ad will go to same group regardless of locale.
aConcernsComboBoxText"concerns" e.g. the verb part of group string.
aInComboBoxText"where" part of the group string.
aModeldatamodel reference
Returns
something alike "ToBeAnnounced.Software.Any country"

◆ error

void TclUtil::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal

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