summaryrefslogtreecommitdiffstats
path: root/kmail/messageactions.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/messageactions.h')
-rw-r--r--kmail/messageactions.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/kmail/messageactions.h b/kmail/messageactions.h
index 39e9f937e..41279c552 100644
--- a/kmail/messageactions.h
+++ b/kmail/messageactions.h
@@ -55,19 +55,20 @@ class MessageActions : public QObject
KAction* editAction() const { return mEditAction; }
+ signals:
+
+ // This signal is emitted when a reply is triggered and the
+ // action has finished.
+ // This is useful for the stand-alone reader, it might want to close the window in
+ // that case.
+ void replyActionFinished();
+
public slots:
void editCurrentMessage();
private:
void updateActions();
- template<typename T> void replyCommand()
- {
- if ( !mCurrentMessage )
- return;
- const TQString text = mMessageView ? mMessageView->copyText() : "";
- KMCommand *command = new T( mParent, mCurrentMessage, text );
- command->start();
- }
+ template<typename T> void replyCommand();
void setMessageStatus( KMMsgStatus status, bool toggle = false );
private slots: