summaryrefslogtreecommitdiffstats
path: root/kmail/editorwatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/editorwatcher.h')
-rw-r--r--kmail/editorwatcher.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/kmail/editorwatcher.h b/kmail/editorwatcher.h
index e0d609051..839386f84 100644
--- a/kmail/editorwatcher.h
+++ b/kmail/editorwatcher.h
@@ -39,7 +39,15 @@ class EditorWatcher : public QObject
{
Q_OBJECT
public:
- EditorWatcher( const KURL &url, const TQString &mimeType, bool openWith, TQObject *parent = 0 );
+ /**
+ * Constructs an EditorWatcher.
+ * @param parent the parent object of this EditorWatcher, which will take care of deleting
+ * this EditorWatcher if the parent is deleted.
+ * @param parentWidget the parent widget of this EditorWatcher, which will be used as the parent
+ * widget for message dialogs.
+ */
+ EditorWatcher( const KURL &url, const TQString &mimeType, bool openWith,
+ TQObject *parent, TQWidget *parentWidget );
bool start();
bool fileChanged() const { return mFileModified; }
signals:
@@ -55,6 +63,7 @@ class EditorWatcher : public QObject
TQString mMimeType;
bool mOpenWith;
KProcess *mEditor;
+ TQWidget *mParentWidget;
int mInotifyFd;
int mInotifyWatch;