Source: fun/SerializableList.h


Annotated List
Files
Globals
Hierarchy
Index
// SerializableList.h
#ifndef SERIALIZABLELIST_H
#define SERIALIZABLELIST_H

/**
   License: GNU GPL
   Author: stephan


   SerializableList is a class to store pointers to Serializable objects
   in preparation for serializing them. It is different from SerialTree in that
   it keeps the actual pointers, instead of serializing immediately upon addition
   to the list. The objects in this list are only serialized when serialize() is called.

   This class does not delete it's children by default, but this can be toggled
   on with setAutoDelete( true ).

   Historical note: this class originally came about to help with QDockWindow support
   in QUB.
*/

#include 
#include 
#include 
#include 
#include 

namespace fun {
        class SerializableList : public QObject, public QPtrList, public Serializable
        {
                Q_OBJECT
        public:
                SerializableList();
                virtual ~SerializableList();

                /**
                 * Deserializes this object from the given Deserializer node.
                 */
                virtual void deserialize (const Deserializer &node);
                /**
                 * Serializes this object into the given Serializer node.
                 */
                virtual void serialize (Serializer &node) const;

        };

}; //namespace fun
#endif // SERIALIZABLELIST_H

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