class Nameable

This is just a simple interface for objects which have some sort of name string which can be set and retrieved. More...

Full namefun::Nameable
Definition#include <fun/Nameable.h>
Inheritsfun::Serializable [public virtual ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This is just a simple interface for objects which have some sort of name string which can be set and retrieved. I wanted it to be a QObject so that it could emit a signal when its name changed, but that added a lot of stuff (including 8 pointers per object!), and moc can't handle (or "can almost handle") a class which inherits from two QObject subclasses at once (such as Nameable & Describable).

Also, I tried making this & Describably be virtual public Serializables, but then I got SEGV's during deserialization. Nuts!!

QString  getName ()

getName

[const virtual]

Returns this object's name.

void  setName (const QString &newName)

setName

[virtual]

Sets this object's name & emits the nameChanged() signal.

void  serialize (Serializer &ser)

serialize

[const virtual]

Reimplemented from Serializable.

void  deserialize (const Deserializer &ser)

deserialize

[virtual]

Note that this does not emit the nameChanged() signal.

Reimplemented from Serializable.


Generated by: stephan on cheyenne on Mon Aug 11 14:06:52 2003, using kdoc 2.0a54.