• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevelop/kdevplatform/vcs

  • extragear
  • kdevelop
  • kdevelop
  • kdevplatform
  • vcs
vcsstatusinfo.h
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  *
3  * Copyright 2007 Andreas Pakulat <[email protected]>
4  * Copyright 2007 Matthew Woehlke <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef KDEVPLATFORM_VCSSTATUSINFO_H
23 #define KDEVPLATFORM_VCSSTATUSINFO_H
24 
25 #include "vcsexport.h"
26 #include <QMetaType>
27 #include <QSharedDataPointer>
28 
29 class QUrl;
30 
31 namespace KDevelop
32 {
33 
47 class KDEVPLATFORMVCS_EXPORT VcsStatusInfo
48 {
49 public:
53  enum State
54  {
55  ItemUnknown = 0 ,
56  ItemUpToDate = 1 ,
57  ItemAdded = 2 ,
58  ItemModified = 3 ,
59  ItemDeleted = 4 ,
60  ItemHasConflicts = 8 ,
61  ItemUserState = 1000
62  };
63 
64  VcsStatusInfo();
65  virtual ~VcsStatusInfo();
66  VcsStatusInfo(const VcsStatusInfo&);
67 
72  QUrl url() const;
77  void setUrl( const QUrl& url );
78 
79  VcsStatusInfo::State state() const;
80  void setState( VcsStatusInfo::State );
81 
82  int extendedState() const;
83  void setExtendedState( int );
84 
85  VcsStatusInfo& operator=( const VcsStatusInfo& rhs);
86  bool operator==( const KDevelop::VcsStatusInfo& rhs) const;
87  bool operator!=( const KDevelop::VcsStatusInfo& rhs) const;
88 
89 private:
90  QSharedDataPointer<class VcsStatusInfoPrivate> d;
91 };
92 
93 }
94 
95 Q_DECLARE_METATYPE( KDevelop::VcsStatusInfo )
96 Q_DECLARE_TYPEINFO( KDevelop::VcsStatusInfo, Q_MOVABLE_TYPE );
97 
98 KDEVPLATFORMVCS_EXPORT QDebug operator<<(QDebug s, const KDevelop::VcsStatusInfo& statusInfo);
99 
100 #endif
101 
KDevelop::VcsStatusInfo::State
State
Status of a local file.
Definition: vcsstatusinfo.h:53
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(KDevelop::VcsStatusInfo, Q_MOVABLE_TYPE)
KDevelop::operator==
bool operator==(const KDevelop::VcsLocation &lhs, const KDevelop::VcsLocation &rhs)
Definition: vcslocation.h:152
QUrl
QDebug
QSharedDataPointer< class VcsStatusInfoPrivate >
KDevelop::VcsStatusInfo
Class that encapsulates status information for one local url.
Definition: vcsstatusinfo.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 13 2019 03:36:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevelop/kdevplatform/vcs

Skip menu "kdevelop/kdevplatform/vcs"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  •   kdevplatform
  •     debugger
  •     documentation
  •     interfaces
  •     language
  •       assistant
  •       backgroundparser
  •       checks
  •       classmodel
  •       codecompletion
  •       codegen
  •       duchain
  •       editor
  •       highlighting
  •       interfaces
  •       util
  •     outputview
  •     project
  •     serialization
  •     shell
  •     sublime
  •     tests
  •     util
  •     vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal