• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

vcs

vcsjob.h

00001 /* This file is part of KDevelop
00002  *
00003  * Copyright 2007 Andreas Pakulat <apaku@gmx.de>
00004  * Copyright 2007 Matthew Woehlke <mw_triad@users.sourceforge.net>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301, USA.
00020  */
00021 
00022 #ifndef VCSJOB_H
00023 #define VCSJOB_H
00024 
00025 #include <kjob.h>
00026 
00027 #include "vcsexport.h"
00028 
00029 class QVariant;
00030 class QString;
00031 class KUrl;
00032 
00033 namespace KDevelop
00034 {
00035 
00036 class IPlugin;
00037 
00044 class KDEVPLATFORMVCS_EXPORT VcsJob : public KJob
00045 {
00046     Q_OBJECT
00047 public:
00048     VcsJob( QObject* parent = 0);
00049     virtual ~VcsJob();
00056     enum JobType
00057     {
00058         Add = 0         ,
00059         Remove = 1      ,
00060         Copy = 2        ,
00061         Move = 3        ,
00062         Diff = 4        ,
00063         Commit = 5      ,
00064         Update = 6      ,
00065         Merge = 7       ,
00066         Resolve = 8     ,
00067         Import = 9      ,
00068         Checkout = 10   ,
00069         Log = 11        ,
00070         Push = 12       ,
00071         Pull = 13       ,
00072         Annotate = 14   ,
00073         Clone = 15      ,
00074         Status = 16     ,
00075         Revert = 17     ,
00076         Cat = 18        ,
00077         UserType = 1000 
00078     };
00079 
00083     enum JobStatus
00084     {
00085         JobRunning = 0    ,
00086         JobSucceeded = 1  ,
00087         JobCanceled = 2   ,
00088         JobFailed = 3     ,
00089         JobNotStarted = 4 
00090     };
00091 
00099     virtual QVariant fetchResults() = 0;
00100 
00108     virtual JobStatus status() const = 0;
00109 
00115     JobType type();
00116 
00123     virtual KDevelop::IPlugin* vcsPlugin() const = 0;
00124 
00125 protected:
00129     void setType( JobType );
00130 
00131 Q_SIGNALS:
00137     void resultsReady( KDevelop::VcsJob* );
00138 
00139 private:
00140     class VcsJobPrivate* const d;
00141 };
00142 
00143 }
00144 
00145 #endif
00146 

vcs

Skip menu "vcs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.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