okteta
abstractloadjob.cpp
Go to the documentation of this file.00001 /* 00002 This file is part of the Okteta Kakao module, part of the KDE project. 00003 00004 Copyright 2008 Friedrich W. H. Kossebau <kossebau@kde.org> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) version 3, or any 00010 later version accepted by the membership of KDE e.V. (or its 00011 successor approved by the membership of KDE e.V.), which shall 00012 act as a proxy defined in Section 6 of version 3 of the license. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library. If not, see <http://www.gnu.org/licenses/>. 00021 */ 00022 00023 #include "abstractloadjob.h" 00024 00025 class AbstractLoadJob::Private 00026 { 00027 public: 00028 Private(); 00029 00030 public: 00031 KAbstractDocument *document() const; 00032 void setDocument( KAbstractDocument *document ); 00033 00034 protected: 00035 KAbstractDocument *mDocument; 00036 }; 00037 00038 AbstractLoadJob::Private::Private() 00039 : mDocument( 0 ) 00040 {} 00041 00042 00043 inline KAbstractDocument *AbstractLoadJob::Private::document() const { return mDocument; } 00044 inline void AbstractLoadJob::Private::setDocument( KAbstractDocument *document ) { mDocument = document; } 00045 00046 00047 AbstractLoadJob::AbstractLoadJob() 00048 : d( new Private() ) 00049 {} 00050 00051 KAbstractDocument *AbstractLoadJob::document() const { return d->document(); } 00052 00053 void AbstractLoadJob::setDocument( KAbstractDocument *document ) 00054 { 00055 d->setDocument( document ); 00056 emit documentLoaded( document ); 00057 emitResult(); 00058 } 00059 00060 AbstractLoadJob::~AbstractLoadJob() 00061 { 00062 delete d; 00063 } 00064 00065 #include "abstractloadjob.moc"
KDE 4.2 API Reference