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

kdevplatform/vcs

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • vcs
  • dvcs
dvcsevent.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_DVCSEVENT_H
23 #define KDEVPLATFORM_DVCSEVENT_H
24 
25 #include <QMetaType>
26 #include <QSharedDataPointer>
27 
28 #include <vcs/vcsexport.h>
29 
30 class QStringList;
31 class QString;
32 
33 namespace KDevelop
34 {
51 //TODO: properties should be used instead of type
52 class KDEVPLATFORMVCS_EXPORT DVcsEvent
53 {
54 public:
55 
63  enum CommitType {
64  INITIAL,
65  HEAD,
66  BRANCH,
67  MERGE,
68  CROSS,
69  HCROSS,
70  MERGE_RIGHT,
71  MERGE_LEFT,
72  EMPTY
73  };
74 
75  DVcsEvent();
76  DVcsEvent(const DVcsEvent& rhs);
77  ~DVcsEvent();
78 
79  DVcsEvent& operator=(const DVcsEvent& rhs);
80 
82  QString commit() const;
83 
85  void setCommit(const QString& commit);
86 
88  QStringList parents() const;
89 
91  void setParents(const QStringList& parents);
92 
94  QString date() const;
95 
97  void setDate(const QString& date);
98 
100  QString author() const;
101 
103  void setAuthor(const QString& author);
104 
106  QString log() const;
107 
109  void setLog(const QString& log);
110 
112  int type() const;
113 
115  void setType(CommitType t);
116 
118  QList<int> properties() const;
119 
121  void setProperties(const QList<int>& properties);
122 
127  void setProperty(int index, int prop);
128 
129 private:
130  QSharedDataPointer<class DVcsEventPrivate> d;
131 };
132 
133 }
134 
135 Q_DECLARE_TYPEINFO(KDevelop::DVcsEvent, Q_MOVABLE_TYPE);
136 
137 #endif
KDevelop::DVcsEvent
This class is used to store all required Commit(Revision) data: commit (sha string),...
Definition: dvcsevent.h:52
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(KDevelop::DVcsEvent, Q_MOVABLE_TYPE)
KDevelop::DVcsEvent::MERGE_LEFT
draw connection lines, 9-center-6)
Definition: dvcsevent.h:71
KDevelop::DVcsEvent::CommitType
CommitType
The CommitType namespace specifies the type of commit.
Definition: dvcsevent.h:63
KDevelop::DVcsEvent::CROSS
just draw a cross-line
Definition: dvcsevent.h:68
KDevelop::DVcsEvent::BRANCH
draw a circle in the branch column
Definition: dvcsevent.h:66
QSharedDataPointer< class DVcsEventPrivate >
KDevelop::DVcsEvent::INITIAL
Initial (first) commit, we shouldn't draw bottom line to connect with parent.
Definition: dvcsevent.h:64
QList< int >
KDevelop::DVcsEvent::MERGE
draw a square (current implementation requires drawing connections
Definition: dvcsevent.h:67
QString
KDevelop::DVcsEvent::HCROSS
draw horizontal cross (it's used to connect merge with parent/child
Definition: dvcsevent.h:69
KDevelop::DVcsEvent::MERGE_RIGHT
draw connection lines, two lines (like a clock 9-center-12)
Definition: dvcsevent.h:70
KDevelop::DVcsEvent::HEAD
HEAD commit, we should use its for branch label, and shouldn't draw head line to connect with child.
Definition: dvcsevent.h:65
KDevelop
Definition: dvcsevent.h:33
QStringList
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Mar 7 2021 23:30:29 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/vcs

Skip menu "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