Don't keep compiling/run if something failed.
[kdevelopdvcssupport.git] / plugins / subversion / svnjobbase.h
blobab7d5e9db4e3c5226340db82343e4a819ce1a5ed
1 /***************************************************************************
2 * Copyright 2007 Dukju Ahn <dukjuahn@gmail.com> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 ***************************************************************************/
11 #ifndef SVNJOBBASE_H
12 #define SVNJOBBASE_H
14 #include <vcs/vcsjob.h>
16 #include "kdevsvncpp/context_listener.hpp"
18 extern "C"
20 #include <svn_wc.h>
24 class QEvent;
25 class SvnInternalJobBase;
27 namespace ThreadWeaver
29 class Job;
32 class KDevSvnPlugin;
34 class SvnJobBase : public KDevelop::VcsJob
36 Q_OBJECT
37 public:
38 SvnJobBase( KDevSvnPlugin* );
39 virtual ~SvnJobBase();
40 virtual SvnInternalJobBase* internalJob() const = 0;
41 KDevelop::VcsJob::JobStatus status() const;
42 KDevelop::IPlugin* vcsPlugin() const;
43 public slots:
44 void askForLogin( const QString& );
45 void showNotification( const QString&, const QString& );
46 void askForCommitMessage();
47 void askForSslServerTrust( const QStringList&, const QString&, const QString&,
48 const QString&, const QString&, const QString&,
49 const QString& );
50 void askForSslClientCert( const QString& );
51 void askForSslClientCertPassword( const QString& );
53 protected slots:
54 void internalJobStarted( ThreadWeaver::Job* job );
55 void internalJobDone( ThreadWeaver::Job* job );
56 void internalJobFailed( ThreadWeaver::Job* job );
58 protected:
59 KDevSvnPlugin* m_part;
61 private:
62 KDevelop::VcsJob::JobStatus m_status;
65 #endif