• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

okteta

AbstractModel Class Reference

#include <abstractmodel.h>

Inheritance diagram for AbstractModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 32 of file abstractmodel.h.


Signals

void modifiableChanged (bool isModifiable)
void readOnlyChanged (bool isReadOnly)
void titleChanged (const QString &newTitel)

Public Member Functions

AbstractModel * baseModel () const
template<typename T>
T findBaseModel () const
template<typename T>
AbstractModel * findBaseModelWithInterface () const
virtual bool isModifiable () const
virtual bool isReadOnly () const
virtual void setReadOnly (bool isReadOnly)
virtual QString title () const =0
virtual ~AbstractModel ()

Protected Member Functions

 AbstractModel (AbstractModel *baseModel=0)
void setBaseModel (AbstractModel *baseModel)

Protected Attributes

Private *const d

Constructor & Destructor Documentation

AbstractModel::AbstractModel ( AbstractModel *  baseModel = 0  )  [protected]

Definition at line 27 of file abstractmodel.cpp.

AbstractModel::~AbstractModel (  )  [virtual]

Definition at line 38 of file abstractmodel.cpp.


Member Function Documentation

AbstractModel * AbstractModel::baseModel (  )  const

Definition at line 33 of file abstractmodel.cpp.

template<typename T>
T AbstractModel::findBaseModel (  )  const [inline]

returns the first baseModel which is of type T, or null if none is found.

The search is started with the model itself

Definition at line 83 of file abstractmodel.h.

template<typename T>
AbstractModel * AbstractModel::findBaseModelWithInterface (  )  const [inline]

returns the first baseModel which is of type T, or null if none is found.

The search is started with the model itself

Definition at line 99 of file abstractmodel.h.

bool AbstractModel::isModifiable (  )  const [virtual]

Default returns false.

Reimplemented in KByteArrayDocument, and KByteArrayDisplay.

Definition at line 31 of file abstractmodel.cpp.

bool AbstractModel::isReadOnly (  )  const [virtual]

default returns true

Reimplemented in KByteArrayDocument, and KByteArrayDisplay.

Definition at line 32 of file abstractmodel.cpp.

void AbstractModel::modifiableChanged ( bool  isModifiable  )  [signal]

void AbstractModel::readOnlyChanged ( bool  isReadOnly  )  [signal]

void AbstractModel::setBaseModel ( AbstractModel *  baseModel  )  [protected]

Definition at line 35 of file abstractmodel.cpp.

void AbstractModel::setReadOnly ( bool  isReadOnly  )  [virtual]

default does nothing

Reimplemented in KByteArrayDocument, and KByteArrayDisplay.

Definition at line 36 of file abstractmodel.cpp.

virtual QString AbstractModel::title (  )  const [pure virtual]

Implemented in DummyView, KByteArrayDocument, and KByteArrayDisplay.

void AbstractModel::titleChanged ( const QString &  newTitel  )  [signal]


Member Data Documentation

Private* const AbstractModel::d [protected]

Reimplemented in KAbstractDocument.

Definition at line 77 of file abstractmodel.h.


The documentation for this class was generated from the following files:
  • abstractmodel.h
  • abstractmodel.cpp

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal