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

vcs

vcsstatusinfo.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 VCSSTATUSINFO_H
00023 #define VCSSTATUSINFO_H
00024 
00025 #include <QtCore/QVariant>
00026 
00027 #include <kurl.h>
00028 
00029 #include "vcsexport.h"
00030 
00031 class QString;
00032 class QStringList;
00033 
00034 namespace KDevelop
00035 {
00036 
00050 class KDEVPLATFORMVCS_EXPORT VcsStatusInfo
00051 {
00052 public:
00056     enum State
00057     {
00058         ItemUnknown       = 0    ,
00059         ItemUpToDate      = 1    ,
00060         ItemAdded         = 2    ,
00061         ItemModified      = 3    ,
00062         ItemDeleted       = 4    ,
00063         ItemAddedIndex    = 5    ,
00064         ItemModifiedIndex = 6    ,
00065         ItemDeletedIndex  = 7    ,
00066         ItemHasConflicts  = 8    ,
00067         ItemUserState     = 1000 
00068     };
00069 
00070     VcsStatusInfo();
00071     virtual ~VcsStatusInfo();
00072     VcsStatusInfo(const VcsStatusInfo&);
00073 
00078     KUrl url() const;
00083     void setUrl( const KUrl& );
00084 
00085     VcsStatusInfo::State state() const;
00086     void setState( VcsStatusInfo::State );
00087 
00088     int extendedState() const;
00089     void setExtendedState( int );
00090 
00091     VcsStatusInfo& operator=( const VcsStatusInfo& rhs);
00092     bool operator==( const KDevelop::VcsStatusInfo& rhs) const;
00093     bool operator!=( const KDevelop::VcsStatusInfo& rhs) const;
00094 
00095 private:
00096     class VcsStatusInfoPrivate* d;
00097 };
00098 
00099 }
00100 
00101 Q_DECLARE_METATYPE( KDevelop::VcsStatusInfo )
00102 
00103 #endif
00104 

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