Kexi API Documentation (2.0 alpha)

KexiDB::MessageTitle Class Reference

#include <msghandler.h>

List of all members.


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.

Public Member Functions

 MessageTitle (KexiDB::Object *o, const QString &msg=QString::null)
 ~MessageTitle ()

Protected Attributes

Objectm_obj
QString m_prevMsgTitle


Constructor & Destructor Documentation

MessageTitle::MessageTitle KexiDB::Object o,
const QString msg = QString::null
 

Definition at line 24 of file msghandler.cpp.

References KexiDB::Object::m_msgTitle, and m_obj.

MessageTitle::~MessageTitle  ) 
 

Definition at line 31 of file msghandler.cpp.

References KexiDB::Object::m_msgTitle, m_obj, and m_prevMsgTitle.


Member Data Documentation

Object* KexiDB::MessageTitle::m_obj [protected]
 

Definition at line 45 of file msghandler.h.

Referenced by MessageTitle(), and ~MessageTitle().

QString KexiDB::MessageTitle::m_prevMsgTitle [protected]
 

Definition at line 46 of file msghandler.h.

Referenced by ~MessageTitle().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:46 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003