• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

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"

akonadi

Skip menu "akonadi"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal