Kexi API Documentation (2.0 alpha)

Kexi::ObjectStatus Class Reference

#include <kexi.h>

Inheritance diagram for Kexi::ObjectStatus:

KexiDialogBase KexiStartupHandler List of all members.

Detailed Description

Helper class for storing object status.

Definition at line 90 of file kexi.h.

Public Member Functions

 ObjectStatus ()
 ObjectStatus (const QString &message, const QString &description)
 ObjectStatus (KexiDB::Object *dbObject, const QString &message, const QString &description)
 ~ObjectStatus ()
const ObjectStatusstatus () const
bool error () const
void setStatus (const QString &message, const QString &description)
void setStatus (KexiDB::Object *dbObject, const QString &message=QString::null, const QString &description=QString::null)
 Note: for safety, dbObject needs to be derived from QObject, otherwise it won't be assigned.
void setStatus (KexiDB::ResultInfo *result, const QString &message=QString::null, const QString &description=QString::null)
void setStatus (KexiDB::Object *dbObject, KexiDB::ResultInfo *result, const QString &message=QString::null, const QString &description=QString::null)
void clearStatus ()
QString singleStatusString () const
void append (const ObjectStatus &otherStatus)
KexiDB::ObjectdbObject () const
 operator KexiDB::MessageHandler * ()
 Helper returning pseudo handler that just updates this ObjectStatus object by receiving a message.

Public Attributes

QString message
QString description

Protected Attributes

QGuardedPtr< QObject > dbObj
KexiDB::MessageHandlermsgHandler
 This is in fact KexiDB::Object.


Constructor & Destructor Documentation

ObjectStatus::ObjectStatus  ) 
 

Definition at line 175 of file kexi.cpp.

ObjectStatus::ObjectStatus const QString message,
const QString description
 

Definition at line 180 of file kexi.cpp.

References setStatus().

ObjectStatus::ObjectStatus KexiDB::Object dbObject,
const QString message,
const QString description
 

Definition at line 186 of file kexi.cpp.

References setStatus().

ObjectStatus::~ObjectStatus  ) 
 

Definition at line 192 of file kexi.cpp.

References msgHandler.


Member Function Documentation

void ObjectStatus::append const ObjectStatus otherStatus  ) 
 

Definition at line 266 of file kexi.cpp.

References description, message, and singleStatusString().

Referenced by KexiPart::Part::loadDataBlock(), KexiPart::Part::openInstance(), and KexiDialogBase::switchToViewMode().

void ObjectStatus::clearStatus  ) 
 

Definition at line 254 of file kexi.cpp.

References description, and message.

Referenced by KexiMigration::KexiMigrate::checkIfDestinationDatabaseOverwritingNeedsAccepting(), KexiPart::Part::openInstance(), KexiMigration::KexiMigrate::performImport(), KexiStartupHandler::selectProject(), setStatus(), and KexiGUIMessageHandler::showErrorMessage().

KexiDB::Object* Kexi::ObjectStatus::dbObject  )  const [inline]
 

Definition at line 124 of file kexi.h.

Referenced by KexiGUIMessageHandler::showErrorMessage().

bool ObjectStatus::error  )  const
 

Definition at line 202 of file kexi.cpp.

References dbObj, and message.

Referenced by KexiPart::Part::openInstance(), and KexiGUIMessageHandler::showErrorMessage().

ObjectStatus::operator KexiDB::MessageHandler *  ) 
 

Helper returning pseudo handler that just updates this ObjectStatus object by receiving a message.

Definition at line 309 of file kexi.cpp.

References msgHandler.

void ObjectStatus::setStatus KexiDB::Object dbObject,
KexiDB::ResultInfo result,
const QString message = QString::null,
const QString description = QString::null
 

Definition at line 241 of file kexi.cpp.

References setStatus().

void ObjectStatus::setStatus KexiDB::ResultInfo result,
const QString message = QString::null,
const QString description = QString::null
 

Definition at line 224 of file kexi.cpp.

References clearStatus().

void ObjectStatus::setStatus KexiDB::Object dbObject,
const QString message = QString::null,
const QString description = QString::null
 

Note: for safety, dbObject needs to be derived from QObject, otherwise it won't be assigned.

Definition at line 215 of file kexi.cpp.

References dbObj.

void ObjectStatus::setStatus const QString message,
const QString description
 

Definition at line 208 of file kexi.cpp.

References dbObj.

Referenced by KexiMigration::KexiMigrate::checkIfDestinationDatabaseOverwritingNeedsAccepting(), ObjectStatus(), KexiMigration::KexiMigrate::performImport(), setStatus(), KexiDialogBase::storeNewData(), and KexiDialogBase::switchToViewMode().

QString ObjectStatus::singleStatusString  )  const
 

Definition at line 260 of file kexi.cpp.

References description, and message.

Referenced by append().

const ObjectStatus & ObjectStatus::status  )  const
 

Definition at line 197 of file kexi.cpp.

Referenced by KexiPart::Part::openInstance(), and KexiDialogBase::switchToViewMode().


Member Data Documentation

QGuardedPtr<QObject> Kexi::ObjectStatus::dbObj [protected]
 

Definition at line 132 of file kexi.h.

Referenced by error(), and setStatus().

QString Kexi::ObjectStatus::description
 

Definition at line 130 of file kexi.h.

Referenced by append(), clearStatus(), KexiGUIMessageHandler::showErrorMessage(), and singleStatusString().

QString Kexi::ObjectStatus::message
 

Definition at line 130 of file kexi.h.

Referenced by append(), clearStatus(), error(), KexiGUIMessageHandler::showErrorMessage(), and singleStatusString().

KexiDB::MessageHandler* Kexi::ObjectStatus::msgHandler [protected]
 

This is in fact KexiDB::Object.

Definition at line 133 of file kexi.h.

Referenced by operator KexiDB::MessageHandler *(), and ~ObjectStatus().


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:36 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003