author | zecke <zecke> | 2003-08-28 14:55:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-28 14:55:46 (UTC) |
commit | d687b15c95f022bd46a23758577a4816bd372505 (patch) (side-by-side diff) | |
tree | 402a286cef17d0f1d47a58e41c429267cb5c9b1b /core/launcher/qcleanuphandler_p.h | |
parent | fa605085c3f966aa2897cacea03b24025c5c23a3 (diff) | |
download | opie-d687b15c95f022bd46a23758577a4816bd372505.zip opie-d687b15c95f022bd46a23758577a4816bd372505.tar.gz opie-d687b15c95f022bd46a23758577a4816bd372505.tar.bz2 |
Add license
remove old unneeded files
Diffstat (limited to 'core/launcher/qcleanuphandler_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/qcleanuphandler_p.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/launcher/qcleanuphandler_p.h b/core/launcher/qcleanuphandler_p.h index d8cddac..04d5c7e 100644 --- a/core/launcher/qcleanuphandler_p.h +++ b/core/launcher/qcleanuphandler_p.h @@ -1,24 +1,44 @@ +/********************************************************************** +** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. +** +** This file is part of the Qtopia Environment. +** +** This file may be distributed and/or modified under the terms of the +** GNU General Public License version 2 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.trolltech.com/gpl/ for GPL licensing information. +** +** Contact info@trolltech.com if any conditions of this licensing are +** not clear to you. +** +**********************************************************************/ + #ifndef QCLEANUPHANDLER_H #define QCLEANUPHANDLER_H #ifndef QT_H #include <qlist.h> #endif // QT_H template<class Type> class Q_EXPORT QCleanupHandler { public: QCleanupHandler() : cleanupObjects( 0 ) {} ~QCleanupHandler() { clear(); } Type* add( Type **object ) { if ( !cleanupObjects ) cleanupObjects = new QList<Type*>; cleanupObjects->insert( 0, object ); return *object; } void remove( Type **object ) { if ( !cleanupObjects ) return; |