Changeset View
Changeset View
Standalone View
Standalone View
svn/fileviewsvnplugin.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 38 | public: | |||
---|---|---|---|---|---|
42 | bool beginRetrieval(const QString& directory) override; | 42 | bool beginRetrieval(const QString& directory) override; | ||
43 | void endRetrieval() override; | 43 | void endRetrieval() override; | ||
44 | ItemVersion itemVersion(const KFileItem& item) const override; | 44 | ItemVersion itemVersion(const KFileItem& item) const override; | ||
45 | QList<QAction*> actions(const KFileItemList& items) const override; | 45 | QList<QAction*> actions(const KFileItemList& items) const override; | ||
46 | 46 | | |||
47 | signals: | 47 | signals: | ||
48 | /// Invokes m_showUpdatesAction->setChecked(checked) on the UI thread. | 48 | /// Invokes m_showUpdatesAction->setChecked(checked) on the UI thread. | ||
49 | void setShowUpdatesChecked(bool checked); | 49 | void setShowUpdatesChecked(bool checked); | ||
50 | | ||||
51 | /** | ||||
52 | * Is emitted if current SVN directory status got updated. Not necessarily means | ||||
53 | * it's changed. Emitted right after #endRetrieval(). | ||||
54 | */ | ||||
55 | void versionInfoUpdated(); | ||||
56 | | ||||
50 | private slots: | 57 | private slots: | ||
51 | void updateFiles(); | 58 | void updateFiles(); | ||
52 | void showLocalChanges(); | 59 | void showLocalChanges(); | ||
53 | void commitFiles(); | 60 | void commitDialog(); | ||
54 | void addFiles(); | 61 | void addFiles(); | ||
55 | void removeFiles(); | 62 | void removeFiles(); | ||
56 | void revertFiles(); | 63 | void revertFiles(); | ||
57 | 64 | | |||
58 | void slotOperationCompleted(int exitCode, QProcess::ExitStatus exitStatus); | 65 | void slotOperationCompleted(int exitCode, QProcess::ExitStatus exitStatus); | ||
59 | void slotOperationError(); | 66 | void slotOperationError(); | ||
60 | 67 | | |||
61 | void slotShowUpdatesToggled(bool checked); | 68 | void slotShowUpdatesToggled(bool checked); | ||
62 | 69 | | |||
70 | void revertFiles(const QStringList& filesPath); | ||||
meven: Eventually we woulde need those functions to receive several files `QList<QString>` and rename… | |||||
71 | void diffFile(const QString& filePath); | ||||
72 | void addFiles(const QStringList& filesPath); | ||||
73 | void commitFiles(const QStringList& context, const QString& msg); | ||||
74 | | ||||
63 | private: | 75 | private: | ||
64 | /** | 76 | /** | ||
65 | * Executes the command "svn {svnCommand}" for the files that have been | 77 | * Executes the command "svn {svnCommand}" for the files that have been | ||
66 | * set by getting the context menu actions (see contextMenuActions()). | 78 | * set by getting the context menu actions (see contextMenuActions()). | ||
67 | * @param infoMsg Message that should be shown before the command is executed. | 79 | * @param infoMsg Message that should be shown before the command is executed. | ||
68 | * @param errorMsg Message that should be shown if the execution of the command | 80 | * @param errorMsg Message that should be shown if the execution of the command | ||
69 | * has been failed. | 81 | * has been failed. | ||
70 | * @param operationCompletedMsg | 82 | * @param operationCompletedMsg | ||
Show All 38 Lines |
Eventually we woulde need those functions to receive several files QList<QString> and rename them to revertFiles, to make the API future proof and the usage more flexible.