KGamePropertyList< type > Class Template Reference

Inheritance diagram for KGamePropertyList< type >:

KGamePropertyBase List of all members.

Detailed Description

template<class type>
class KGamePropertyList< type >

Definition at line 35 of file kgamepropertylist.h.


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)

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.

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.

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.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys