• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • Kasten2
  • AbstractModel
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Kasten2::AbstractModel Class Referenceabstract

#include <abstractmodel.h>

Inheritance diagram for Kasten2::AbstractModel:
Inheritance graph
[legend]

Signals

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

Public Member Functions

virtual ~AbstractModel ()
 
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
 

Protected Member Functions

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

Protected Attributes

AbstractModelPrivate *const d_ptr
 

Detailed Description

Definition at line 40 of file abstractmodel.h.

Constructor & Destructor Documentation

Kasten2::AbstractModel::AbstractModel ( AbstractModel *  baseModel = 0)
explicitprotected

Definition at line 30 of file abstractmodel.cpp.

Kasten2::AbstractModel::AbstractModel ( AbstractModelPrivate *  d)
explicitprotected

Definition at line 34 of file abstractmodel.cpp.

Kasten2::AbstractModel::~AbstractModel ( )
virtual

Definition at line 55 of file abstractmodel.cpp.

Member Function Documentation

AbstractModel * Kasten2::AbstractModel::baseModel ( ) const

Definition at line 40 of file abstractmodel.cpp.

template<typename T >
T Kasten2::AbstractModel::findBaseModel ( ) const

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 93 of file abstractmodel.h.

template<typename T >
AbstractModel * Kasten2::AbstractModel::findBaseModelWithInterface ( ) const

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 109 of file abstractmodel.h.

bool Kasten2::AbstractModel::isModifiable ( ) const
virtual

Default returns false.

Reimplemented in Kasten2::ByteArrayView, and Kasten2::ByteArrayDocument.

Definition at line 38 of file abstractmodel.cpp.

bool Kasten2::AbstractModel::isReadOnly ( ) const
virtual

default returns true

Reimplemented in Kasten2::ByteArrayView, and Kasten2::ByteArrayDocument.

Definition at line 39 of file abstractmodel.cpp.

void Kasten2::AbstractModel::modifiableChanged ( bool  isModifiable)
signal
void Kasten2::AbstractModel::readOnlyChanged ( bool  isReadOnly)
signal
void Kasten2::AbstractModel::setBaseModel ( AbstractModel *  baseModel)
protected

Definition at line 47 of file abstractmodel.cpp.

void Kasten2::AbstractModel::setReadOnly ( bool  isReadOnly)
virtual

default does nothing

Reimplemented in Kasten2::ByteArrayView, and Kasten2::ByteArrayDocument.

Definition at line 53 of file abstractmodel.cpp.

virtual QString Kasten2::AbstractModel::title ( ) const
pure virtual

Implemented in Kasten2::ByteArrayView, Kasten2::ByteArrayDocument, and Kasten2::DummyView.

void Kasten2::AbstractModel::titleChanged ( const QString &  newTitle)
signal

Member Data Documentation

AbstractModelPrivate* const Kasten2::AbstractModel::d_ptr
protected

Definition at line 87 of file abstractmodel.h.


The documentation for this class was generated from the following files:
  • abstractmodel.h
  • abstractmodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal