Commit 754f9f66 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Remove deprecated use of dtkObject.

parent e12e6039
/* dtkObject.cpp ---
*
* Author: Thibaud Kloczko
* Created: 2013 Wed Feb 13 21:49:35 (+0100)
*/
/* Commentary:
* This file only provides documentation of the pure dtkObject interface.
*/
/* Change log:
*
*/
// /////////////////////////////////////////////////////////////////
// dtkObject
// /////////////////////////////////////////////////////////////////
#include "dtkObject.h"
/*! \class dtkObject
* \brief Interface providing mandatory methods for all dtk subclasses.
*/
/*! \fn dtkObject::dtkObject(QObject *parent = 0)
\brief Constructs an object with parent object parent.
The parent of an object may be regarded as the object's owner.
The destructor of a parent object destroys all child objects.
Setting parent to NULL (ie 0) constructs an object with no parent.
*/
/*! \fn dtkObject::~dtkObject(void)
\brief Destroys the object, deleting all its child objects.
*/
/*! \fn dtkObject *dtkObject::clone(void) const
\brief Virtual copy constructor avoiding slicing issues.
All subclasses must implement this method in order to
ensure deep copy of the current object whatever the
level of the class hierarchy it is used.
\return A new object that has the same content than the current object.
*/
/*! \fn QString dtkObject::identifier(void) const
\brief Identifies the class of the object.
All subclasses must implement this method in order to
provide convenient typename checking.
\return The class name of the object.
*/
/* dtkObject.h ---
*
* Author: Thibaud Kloczko
* Created: 2013 Wed Feb 13 21:34:45 (+0100)
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#pragma once
#include <QtCore/QObject>
// /////////////////////////////////////////////////////////////////
// dtkObject interface
// /////////////////////////////////////////////////////////////////
class dtkObject : public QObject
{
Q_OBJECT
public:
dtkObject(QObject *parent = 0) {;}
virtual ~dtkObject(void) {;}
public:
virtual dtkObject *clone(void) = 0;
public:
virtual QString identifier(void) const = 0;
};
Q_DECLARE_METATYPE(dtkObject*);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment