File indexing completed on 2024-05-12 15:56:47
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOSHAPEAPPLICATIONDATA_H 0008 #define KOSHAPEAPPLICATIONDATA_H 0009 0010 #include "kritaflake_export.h" 0011 0012 /** 0013 * The KoShapeAppliationData class is used to associate application specific data with a shape. 0014 * See also the KoShapeUserData class that is specifically set for the benefit of shapes and tools. 0015 * 0016 * KoShapeAppliationData provides an abstract interface for container classes 0017 * that are used to associate application-specific data with shapes in KoShape 0018 * Generally, subclasses of this class provide functions to allow data to 0019 * be stored and retrieved, and instances are attached to KoShape using 0020 * KoShape::setApplicationData(). This makes it possible for an application to attach 0021 * application specific data (like a Frame in Words) and have the deletion of a shape also delete 0022 * that data. 0023 * Each subclass should provide a reimplementation of the destructor to ensure that 0024 * any private data is automatically cleaned up when user data objects are deleted. 0025 */ 0026 class KRITAFLAKE_EXPORT KoShapeApplicationData 0027 { 0028 public: 0029 virtual ~KoShapeApplicationData(); 0030 }; 0031 0032 #endif