kexi

KexiDB::MessageTitle Class Reference

#include <msghandler.h>

Public Member Functions

 MessageTitle (KexiDB::Object *o, const TQString &msg=TQString())

Protected Attributes

Object * m_obj
TQString m_prevMsgTitle

Detailed Description

A helper class for setting temporary message title for an KexiDB::Object. Message title is a text prepended to error or warning messages. Use it this way:

KexiDB::MessageTitle title(myKexiDBObject, i18n("Terrible error occurred"));

After leaving current from code block, object's message title will be reverted to previous value.

Definition at line 38 of file msghandler.h.

Constructor & Destructor Documentation

◆ MessageTitle()

MessageTitle::MessageTitle ( KexiDB::Object * o,
const TQString & msg = TQString() )

Definition at line 24 of file msghandler.cpp.

◆ ~MessageTitle()

MessageTitle::~MessageTitle ( )

Definition at line 31 of file msghandler.cpp.

Member Data Documentation

◆ m_obj

Object* KexiDB::MessageTitle::m_obj
protected

Definition at line 45 of file msghandler.h.

◆ m_prevMsgTitle

TQString KexiDB::MessageTitle::m_prevMsgTitle
protected

Definition at line 46 of file msghandler.h.


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