┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/revisioncontrolplugin.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-07-29 21:56:37 +0000
committerPeter Penz <[email protected]>2009-07-29 21:56:37 +0000
commita70be712fd5b33071c4733c47f810948d86dd4d8 (patch)
tree5683e3ac6880810013a001257ce1079beeb31436 /src/revisioncontrolplugin.h
parenta48c813fd9b4c416f23c48914889946074b96084 (diff)
Allow the revision control plugins to indicate information-, error- and operation-completed messages.
svn path=/trunk/KDE/kdebase/apps/; revision=1004346
Diffstat (limited to 'src/revisioncontrolplugin.h')
-rw-r--r--src/revisioncontrolplugin.h43
1 files changed, 40 insertions, 3 deletions
diff --git a/src/revisioncontrolplugin.h b/src/revisioncontrolplugin.h
index 718e5c17d..939fa6f57 100644
--- a/src/revisioncontrolplugin.h
+++ b/src/revisioncontrolplugin.h
@@ -137,6 +137,24 @@ signals:
* RevisionControlPlugin::endRetrieval().
*/
void revisionStatesChanged(const QString& directory);
+
+ /**
+ * Is emitted if an information message with the content \a msg
+ * should be shown.
+ */
+ void infoMessage(const QString& msg);
+
+ /**
+ * Is emitted if an error message with the content \a msg
+ * should be shown.
+ */
+ void errorMessage(const QString& msg);
+
+ /**
+ * Is emitted if an "operation completed" message with the content \a msg
+ * should be shown.
+ */
+ void operationCompletedMessage(const QString& msg);
};
@@ -169,12 +187,26 @@ private slots:
void addFiles();
void removeFiles();
+ void slotOperationCompleted();
+ void slotOperationError();
+
private:
/**
* Executes the command "svn {svnCommand}" for the files that have been
* set by getting the context menu actions (see contextMenuActions()).
+ * @param infoMsg Message that should be shown before the command is executed.
+ * @param errorMsg Message that should be shown if the execution of the command
+ * has been failed.
+ * @param operationCompletedMsg
+ * Message that should be shown if the execution of the command
+ * has been completed successfully.
*/
- void execSvnCommand(const QString& svnCommand);
+ void execSvnCommand(const QString& svnCommand,
+ const QString& infoMsg,
+ const QString& errorMsg,
+ const QString& operationCompletedMsg);
+
+ void startSvnCommandProcess();
private:
QHash<QString, RevisionState> m_revisionInfoHash;
@@ -185,8 +217,13 @@ private:
QAction* m_commitAction;
QAction* m_addAction;
QAction* m_removeAction;
- mutable QString m_contextDir;
- mutable KFileItemList m_contextItems;
+
+ QString m_command;
+ QString m_errorMsg;
+ QString m_operationCompletedMsg;
+
+ QString m_contextDir;
+ KFileItemList m_contextItems;
};
#endif // REVISIONCONTROLPLUGIN_H