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

libkdegames/kgame

KGamePropertyList< type > Class Template Reference

#include <kgamepropertylist.h>

Inheritance diagram for KGamePropertyList< type >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<class type>
class KGamePropertyList< type >

Definition at line 34 of file kgamepropertylist.h.


Public Types

typedef QListIterator< type > Iterator

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 &stream, int msgid, bool isSender)

Protected Member Functions

void extractProperty (const QByteArray &b)

Member Typedef Documentation

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

Typedefs.

Definition at line 40 of file kgamepropertylist.h.


Constructor & Destructor Documentation

template<class type>
KGamePropertyList< type >::KGamePropertyList (  )  [inline]

Definition at line 42 of file kgamepropertylist.h.

template<class type>
KGamePropertyList< type >::KGamePropertyList ( const KGamePropertyList< type > &  a  )  [inline]

Definition at line 46 of file kgamepropertylist.h.


Member Function Documentation

template<class type>
uint KGamePropertyList< type >::findIterator ( Iterator  me  )  [inline]

Definition at line 50 of file kgamepropertylist.h.

template<class type>
Iterator KGamePropertyList< type >::insert ( Iterator  it,
const type &  d 
) [inline]

Definition at line 65 of file kgamepropertylist.h.

template<class type>
void KGamePropertyList< type >::prepend ( const type &  d  )  [inline]

Definition at line 89 of file kgamepropertylist.h.

template<class type>
void KGamePropertyList< type >::append ( const type &  d  )  [inline]

Definition at line 91 of file kgamepropertylist.h.

template<class type>
Iterator KGamePropertyList< type >::erase ( Iterator  it  )  [inline]

Definition at line 110 of file kgamepropertylist.h.

template<class type>
Iterator KGamePropertyList< type >::remove ( Iterator  it  )  [inline]

Definition at line 133 of file kgamepropertylist.h.

template<class type>
void KGamePropertyList< type >::remove ( const type &  d  )  [inline]

Definition at line 138 of file kgamepropertylist.h.

template<class type>
void KGamePropertyList< type >::clear (  )  [inline]

Reimplemented from QList< type >.

Definition at line 144 of file kgamepropertylist.h.

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 162 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 178 of file kgamepropertylist.h.

template<class type>
void KGamePropertyList< type >::command ( QDataStream &  stream,
int  msgid,
bool  isSender 
) [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 192 of file kgamepropertylist.h.

template<class type>
void KGamePropertyList< type >::extractProperty ( const QByteArray &  b  )  [inline, protected]

Definition at line 242 of file kgamepropertylist.h.


The documentation for this class was generated from the following file:
  • kgamepropertylist.h

libkdegames/kgame

Skip menu "libkdegames/kgame"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference 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