Kexi API Documentation (2.0 alpha)

tristate.h File Reference

Go to the source code of this file.

Functions

bool operator!= (bool boolValue, tristate tsValue)
 Inequality operator comparing a bool value boolValue and a tristate value tsValue.
bool operator!= (tristate tsValue, bool boolValue)
 Inequality operator comparing a tristate value tsValue and a bool value boolValue.
bool operator== (tristate tsValue, bool boolValue)
 Equality operator comparing a tristate value tsValue and a bool value boolValue.
bool operator== (bool boolValue, tristate tsValue)
 Equality operator comparing a bool value boolValue and a tristate value tsValue.

Variables

static const char cancelled = 2
 cancelled value, in most cases usable if there is a need for returning cancelled value explicitly.
static const char dontKnow = cancelled
 Convenience name, the same as cancelled value.


Function Documentation

bool operator!= tristate  tsValue,
bool  boolValue
[inline]
 

Inequality operator comparing a tristate value tsValue and a bool value boolValue.

See also:
bool operator!=(bool boolValue, tristate tsValue)

Definition at line 204 of file tristate.h.

References tristate::m_value.

bool operator!= bool  boolValue,
tristate  tsValue
[inline]
 

Inequality operator comparing a bool value boolValue and a tristate value tsValue.

Returns:
false if both boolValue and tsValue are true or if both boolValue and tsValue are false. Else, returns true.

Definition at line 194 of file tristate.h.

References tristate::m_value.

bool operator== bool  boolValue,
tristate  tsValue
[inline]
 

Equality operator comparing a bool value boolValue and a tristate value tsValue.

Returns:
true if both
  • both tsValue value and boolValue are true, or
  • both tsValue value and boolValue are false If the tristate value has value of cancelled, false is returned.

Definition at line 230 of file tristate.h.

References tristate::m_value.

bool operator== tristate  tsValue,
bool  boolValue
[inline]
 

Equality operator comparing a tristate value tsValue and a bool value boolValue.

Returns:
true if both
  • both tsValue value and boolValue are true, or
  • both tsValue value and boolValue are false If the tristate value has value of cancelled, false is returned.

Definition at line 217 of file tristate.h.

References tristate::m_value.


Variable Documentation

const char cancelled = 2 [static]
 

cancelled value, in most cases usable if there is a need for returning cancelled value explicitly.

Example use:

 tristate myFunctionThatCanBeCancelled() {
   doSomething();
   if (userCancelledOperation())
     return cancelled; //neither success or failure is returned here
   return operationSucceeded(); //return success or failure
 }
Even though ~ operator of tristate class can be used, it is also possible to test:
 if (cancelled == myFunctionThatCanBeCancelled()) { .... }

Definition at line 39 of file tristate.h.

Referenced by KexiTablePart::askForClosingObjectsUsingTableSchema(), KFormDesigner::WidgetInfo::autoSyncForProperty(), KexiTableDesignerView::beforeSwitchTo(), KexiTableDesigner_DataView::beforeSwitchTo(), KexiQueryDesignerSQLView::beforeSwitchTo(), KexiQueryDesignerGuiEditor::beforeSwitchTo(), KexiFormView::beforeSwitchTo(), KexiTableDesignerView::buildSchema(), SQLiteVacuum::cancelClicked(), SQLite2ToSQLite3Migration::cancelClicked(), KexiDB::SQLiteConnection::changeFieldType(), KexiMainWindowImpl::closeDialog(), KexiMainWindowImpl::closeObject(), KexiMainWindowImpl::closeProject(), KexiMainWindowImpl::copyItemToClipboardAsDataTable(), KexiProject::create(), KexiMainWindowImpl::createBlankProject(), KexiDataAwareObjectInterface::deleteAllRows(), KexiStartupHandler::detectActionForFile(), KexiProject::dropProject(), KexiDB::SQLiteConnection::drv_changeFieldProperty(), KexiDB::Connection::drv_changeFieldProperty(), KexiMigration::PqxxMigrate::drv_fetchRecordFromSQL(), KexiMigration::MySQLMigrate::drv_fetchRecordFromSQL(), KexiMigration::KexiMigrate::drv_fetchRecordFromSQL(), KexiMigration::PqxxMigrate::drv_queryStringListFromSQL(), KexiMigration::MySQLMigrate::drv_queryStringListFromSQL(), KexiMigration::KexiMigrate::drv_queryStringListFromSQL(), KexiQueryView::executeQuery(), KexiMainWindowImpl::exportItemAsDataTable(), KexiMainWindowImpl::getNewObjectInfo(), KexiStartupHandler::init(), KexiDB::Connection::loadObjectSchemaData(), KexiProject::openInternal(), KexiMainWindowImpl::openProject(), KexiMainWindowImpl::printActionForItem(), KexiDB::Connection::querySingleRecordInternal(), KexiDB::Connection::querySingleString(), KexiMainWindowImpl::removeObject(), KexiMainWindowImpl::saveObject(), KexiMainWindowImpl::showProjectMigrationWizard(), KexiMainWindowImpl::startup(), KexiTableDesignerView::storeData(), KexiQueryDesignerGuiEditor::storeData(), KexiDialogBase::storeNewData(), KexiDialogBase::switchToViewMode(), KexiDB::AlterTableHandler::ChangeFieldPropertyAction::updateTableSchema(), and KexiComboBoxBase::valueChangedInternal().

const char dontKnow = cancelled [static]
 

Convenience name, the same as cancelled value.

Definition at line 44 of file tristate.h.

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