libkdegames Library API Documentation

KGamePropertyList< type > Class Template Reference

Inheritance diagram for KGamePropertyList< type >:

Inheritance graph
[legend]
Collaboration diagram for KGamePropertyList< type >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueListIterator<
type > 
Iterator
typedef QValueListConstIterator<
type > 
ConstIterator

Public Member Functions

 KGamePropertyList ()
 KGamePropertyList (const KGamePropertyList< type > &a)
uint findIterator (Iterator me)
Iterator insert (Iterator it, const type &d)
void prepend (const type &d)
void append (const type &d)
Iterator erase (Iterator it)
Iterator remove (Iterator it)
void remove (const type &d)
void clear ()
void load (QDataStream &s)
void save (QDataStream &s)
void command (QDataStream &s, int cmd, bool)

Protected Member Functions

void extractProperty (const QByteArray &b)

Detailed Description

template<class type>
class KGamePropertyList< type >

Definition at line 35 of file kgamepropertylist.h.


Member Typedef Documentation

template<class type>
typedef QValueListIterator<type> KGamePropertyList< type >::Iterator
 

Typedefs.

Definition at line 41 of file kgamepropertylist.h.


Member Function Documentation

template<class type>
void KGamePropertyList< type >::load QDataStream s  )  [inline, virtual]
 

This will read the value of this property from the stream.

You MUST overwrite this method in order to use this class

Parameters:
s The stream to read from

Implements KGamePropertyBase.

Definition at line 164 of file kgamepropertylist.h.

References QValueList::append(), QValueList::clear(), KGamePropertyBase::emitSignal(), KGamePropertyBase::id(), KGamePropertyBase::isEmittingSignal(), and QValueList< type >::size().

template<class type>
void KGamePropertyList< type >::save QDataStream s  )  [inline, virtual]
 

Write the value into a stream.

MUST be overwritten

Implements KGamePropertyBase.

Definition at line 180 of file kgamepropertylist.h.

References QValueList< type >::begin(), QValueList< type >::count(), QValueList< type >::end(), KGamePropertyBase::id(), and QValueList< type >::size().

template<class type>
void KGamePropertyList< type >::command QDataStream s,
int  cmd,
bool 
[inline, virtual]
 

send a command to advanced properties like arrays

Parameters:
stream The stream containing the data of the comand
msgid The ID of the command - see PropertyCommandIds
isSender whether this client is also the sender of the command

Reimplemented from KGamePropertyBase.

Definition at line 194 of file kgamepropertylist.h.

References QValueList::append(), QValueList< type >::at(), QValueList::clear(), KGamePropertyBase::command(), KGamePropertyBase::emitSignal(), KGamePropertyBase::id(), QValueList::insert(), KGamePropertyBase::isEmittingSignal(), and QValueList::remove().

Referenced by KGamePropertyList< type >::extractProperty().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.4.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 9 09:38:26 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003