Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dtk
dtk
Commits
754f9f66
Commit
754f9f66
authored
Mar 14, 2013
by
KLOCZKO Thibaud
Browse files
Remove deprecated use of dtkObject.
parent
e12e6039
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/dtkDistributed/dtkObject.cpp
deleted
100644 → 0
View file @
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.
*/
src/dtkDistributed/dtkObject.h
deleted
100644 → 0
View file @
e12e6039
/* 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
*
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment