filemanager/src/fmfiledialog/src/fmfiledialog_p.h
changeset 46 d58987eac7e8
parent 14 1957042d8c7e
--- a/filemanager/src/fmfiledialog/src/fmfiledialog_p.h	Tue Aug 24 10:24:14 2010 +0800
+++ b/filemanager/src/fmfiledialog/src/fmfiledialog_p.h	Wed Sep 29 10:37:03 2010 +0800
@@ -20,8 +20,10 @@
 #ifndef FMFILEDIALOG_P_H
 #define FMFILEDIALOG_P_H
 
+#include "fmfiledialog.h"
+
 #include <QDir>
-#include "fmfiledialog.h"
+#include <QEventLoop>
 
 class HbPushButton;
 class FmFileWidget;
@@ -64,7 +66,11 @@
     QString currentPath() const;
     QString selectedFile() const;
     bool isOkAction( HbAction *action );
-
+    
+    void setRetAction( HbAction *action );
+    HbAction *retAction();
+    QEventLoop &eventLoop();
+        
 protected:
     void createAndSetActions(const QString & primaryActionText,const QString & secondaryActionText);
     void createContentWidget();
@@ -81,7 +87,7 @@
 
     void setTitle( const QString &str );        
     void setRootPath( const QString &pathName );
-
+    
 public:
     void _q_handleUpButton();
     void _q_handleTextChanged(const QString &text);
@@ -111,6 +117,9 @@
 
     QString mCaptionHead;
     FmFileDialogArgs          mArgs;
+    
+    HbAction *mRetAction;
+    QEventLoop mEventLoop;
 };
 
 #endif // FMFILEDIALOG_P_H