mailtransport
precommandjob.h
00001 /* 00002 Copyright (c) 2007 Volker Krause <vkrause@kde.org> 00003 00004 Based on KMail code by: 00005 Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org> 00006 Copyright (c) 2000-2002 Michael Haeckel <haeckel@kde.org> 00007 00008 This library is free software; you can redistribute it and/or modify it 00009 under the terms of the GNU Library General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or (at your 00011 option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, but WITHOUT 00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00015 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00016 License for more details. 00017 00018 You should have received a copy of the GNU Library General Public License 00019 along with this library; see the file COPYING.LIB. If not, write to the 00020 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00021 02110-1301, USA. 00022 */ 00023 00024 #ifndef MAILTRANSPORT_PRECOMMANDJOB_H 00025 #define MAILTRANSPORT_PRECOMMANDJOB_H 00026 00027 #include "mailtransport/mailtransport_export.h" 00028 00029 #include <KDE/KJob> 00030 00031 class PreCommandJobPrivate; 00032 00033 namespace MailTransport { 00034 00043 class MAILTRANSPORT_EXPORT PrecommandJob : public KJob 00044 { 00045 Q_OBJECT 00046 00047 public: 00053 explicit PrecommandJob( const QString &precommand, QObject *parent = 0 ); 00054 00058 virtual ~PrecommandJob(); 00059 00064 virtual void start(); 00065 00066 protected: 00067 00071 virtual bool doKill(); 00072 00073 private: 00074 friend class ::PreCommandJobPrivate; 00075 PreCommandJobPrivate *const d; 00076 Q_PRIVATE_SLOT( d, void slotFinished( int, QProcess::ExitStatus ) ) 00077 Q_PRIVATE_SLOT( d, void slotStarted() ) 00078 Q_PRIVATE_SLOT( d, void slotError( QProcess::ProcessError error ) ) 00079 }; 00080 00081 } // namespace MailTransport 00082 00083 #endif // MAILTRANSPORT_PRECOMMANDJOB_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:03 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:03 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.