• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-baseapps API Reference
  • KDE Home
  • Contact Us
 

libkonq

  • sources
  • kde-4.14
  • kde-baseapps
  • lib
  • konq
kversioncontrolplugin.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (C) 2009 by Peter Penz <peter.penz19@gmail.com> *
3  * *
4  * This library is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU Library General Public *
6  * License version 2 as published by the Free Software Foundation. *
7  * *
8  * This library is distributed in the hope that it will be useful, *
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
11  * Library General Public License for more details. *
12  * *
13  * You should have received a copy of the GNU Library General Public License *
14  * along with this library; see the file COPYING.LIB. If not, write to *
15  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
16  * Boston, MA 02110-1301, USA. *
17  *****************************************************************************/
18 
19 #ifndef KVERSIONCONTROLPLUGIN_H
20 #define KVERSIONCONTROLPLUGIN_H
21 
22 #include <libkonq_export.h>
23 
24 #include <QObject>
25 
26 class KFileItem;
27 class KFileItemList;
28 class QAction;
29 
43 class LIBKONQ_EXPORT KVersionControlPlugin : public QObject
44 {
45  Q_OBJECT
46 
47 public:
48  enum VersionState
49  {
51  UnversionedVersion,
56  NormalVersion,
61  UpdateRequiredVersion,
67  LocallyModifiedVersion,
72  AddedVersion,
77  RemovedVersion,
83  ConflictingVersion,
90  LocallyModifiedUnstagedVersion
91  };
92 
93  KVersionControlPlugin(QObject* parent = 0);
94  virtual ~KVersionControlPlugin();
95 
101  virtual QString fileName() const = 0;
102 
109  virtual bool beginRetrieval(const QString& directory) = 0;
110 
117  virtual void endRetrieval() = 0;
118 
127  virtual VersionState versionState(const KFileItem& item) = 0;
128 
137  virtual QList<QAction*> contextMenuActions(const KFileItemList& items) = 0;
138 
146  virtual QList<QAction*> contextMenuActions(const QString& directory) = 0;
147 
148 signals:
160  void versionStatesChanged();
161 
166  void infoMessage(const QString& msg);
167 
172  void errorMessage(const QString& msg);
173 
178  void operationCompletedMessage(const QString& msg);
179 };
180 
181 #endif // KVERSIONCONTROLPLUGIN_H
182 
KVersionControlPlugin
Base class for version control plugins.
Definition: kversioncontrolplugin.h:43
KVersionControlPlugin::RemovedVersion
The file is under version control but has been marked for getting removed with the next commit...
Definition: kversioncontrolplugin.h:77
KVersionControlPlugin::LocallyModifiedVersion
The file is under version control and has been modified locally.
Definition: kversioncontrolplugin.h:67
QObject
KVersionControlPlugin::VersionState
VersionState
Definition: kversioncontrolplugin.h:48
QString
KVersionControlPlugin::UnversionedVersion
The file is not under version control.
Definition: kversioncontrolplugin.h:51
QList< QAction * >
libkonq_export.h
KVersionControlPlugin::NormalVersion
The file is under version control and represents the latest version.
Definition: kversioncontrolplugin.h:56
LIBKONQ_EXPORT
#define LIBKONQ_EXPORT
Definition: libkonq_export.h:36
KVersionControlPlugin::AddedVersion
The file has not been under version control but has been marked to get added with the next commit...
Definition: kversioncontrolplugin.h:72
QAction
KVersionControlPlugin::UpdateRequiredVersion
The file is under version control and a newer version exists on the main branch.
Definition: kversioncontrolplugin.h:61
KVersionControlPlugin::ConflictingVersion
The file is under version control and has been locally modified.
Definition: kversioncontrolplugin.h:83
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:07:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkonq

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

kde-baseapps API Reference

Skip menu "kde-baseapps API Reference"
  • Libraries
  •   libkonq

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