akonadi
transactionjobs.cpp
00001 /* 00002 Copyright (c) 2006 Volker Krause <vkrause@kde.org> 00003 00004 This library is free software; you can redistribute it and/or modify it 00005 under the terms of the GNU Library General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or (at your 00007 option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, but WITHOUT 00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00012 License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to the 00016 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 02110-1301, USA. 00018 */ 00019 00020 #include "transactionjobs.h" 00021 00022 #include "job_p.h" 00023 00024 using namespace Akonadi; 00025 00026 class Akonadi::TransactionBeginJobPrivate : public JobPrivate 00027 { 00028 public: 00029 TransactionBeginJobPrivate( TransactionBeginJob *parent ) 00030 : JobPrivate( parent ) 00031 { 00032 } 00033 }; 00034 00035 class Akonadi::TransactionRollbackJobPrivate : public JobPrivate 00036 { 00037 public: 00038 TransactionRollbackJobPrivate( TransactionRollbackJob *parent ) 00039 : JobPrivate( parent ) 00040 { 00041 } 00042 }; 00043 00044 class Akonadi::TransactionCommitJobPrivate : public JobPrivate 00045 { 00046 public: 00047 TransactionCommitJobPrivate( TransactionCommitJob *parent ) 00048 : JobPrivate( parent ) 00049 { 00050 } 00051 }; 00052 00053 00054 TransactionBeginJob::TransactionBeginJob(QObject * parent) 00055 : Job( new TransactionBeginJobPrivate( this ), parent ) 00056 { 00057 Q_ASSERT( parent ); 00058 } 00059 00060 TransactionBeginJob::~TransactionBeginJob() 00061 { 00062 } 00063 00064 void TransactionBeginJob::doStart() 00065 { 00066 d_ptr->writeData( d_ptr->newTag() + " BEGIN\n" ); 00067 } 00068 00069 00070 00071 TransactionRollbackJob::TransactionRollbackJob(QObject * parent) 00072 : Job( new TransactionRollbackJobPrivate( this ), parent ) 00073 { 00074 Q_ASSERT( parent ); 00075 } 00076 00077 TransactionRollbackJob::~TransactionRollbackJob() 00078 { 00079 } 00080 00081 void TransactionRollbackJob::doStart() 00082 { 00083 d_ptr->writeData( d_ptr->newTag() + " ROLLBACK\n" ); 00084 } 00085 00086 00087 00088 TransactionCommitJob::TransactionCommitJob(QObject * parent) 00089 : Job( new TransactionCommitJobPrivate( this ), parent ) 00090 { 00091 Q_ASSERT( parent ); 00092 } 00093 00094 TransactionCommitJob::~TransactionCommitJob() 00095 { 00096 } 00097 00098 void TransactionCommitJob::doStart() 00099 { 00100 d_ptr->writeData( d_ptr->newTag() + " COMMIT\n" ); 00101 } 00102 00103 #include "transactionjobs.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:49:16 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:49:16 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.