filemanager/src/fmfiledialog/src/fmfiledialog_p.h
changeset 25 b7bfdea70ca2
parent 14 1957042d8c7e
equal deleted inserted replaced
16:ada7962b4308 25:b7bfdea70ca2
    18 */
    18 */
    19 
    19 
    20 #ifndef FMFILEDIALOG_P_H
    20 #ifndef FMFILEDIALOG_P_H
    21 #define FMFILEDIALOG_P_H
    21 #define FMFILEDIALOG_P_H
    22 
    22 
       
    23 #include "fmfiledialog.h"
       
    24 
    23 #include <QDir>
    25 #include <QDir>
    24 #include "fmfiledialog.h"
    26 #include <QEventLoop>
    25 
    27 
    26 class HbPushButton;
    28 class HbPushButton;
    27 class FmFileWidget;
    29 class FmFileWidget;
    28 class HbLineEdit;
    30 class HbLineEdit;
    29 class HbLabel;
    31 class HbLabel;
    62     void init( const FmFileDialogArgs &args );
    64     void init( const FmFileDialogArgs &args );
    63 
    65 
    64     QString currentPath() const;
    66     QString currentPath() const;
    65     QString selectedFile() const;
    67     QString selectedFile() const;
    66     bool isOkAction( HbAction *action );
    68     bool isOkAction( HbAction *action );
    67 
    69     
       
    70     void setRetAction( HbAction *action );
       
    71     HbAction *retAction();
       
    72     QEventLoop &eventLoop();
       
    73         
    68 protected:
    74 protected:
    69     void createAndSetActions(const QString & primaryActionText,const QString & secondaryActionText);
    75     void createAndSetActions(const QString & primaryActionText,const QString & secondaryActionText);
    70     void createContentWidget();
    76     void createContentWidget();
    71     void createHeadingWidget();
    77     void createHeadingWidget();
    72     void populateContentWidget(const QString & directory);
    78     void populateContentWidget(const QString & directory);
    79     void checkBottomFileWidget();
    85     void checkBottomFileWidget();
    80     void checkActions();
    86     void checkActions();
    81 
    87 
    82     void setTitle( const QString &str );        
    88     void setTitle( const QString &str );        
    83     void setRootPath( const QString &pathName );
    89     void setRootPath( const QString &pathName );
    84 
    90     
    85 public:
    91 public:
    86     void _q_handleUpButton();
    92     void _q_handleUpButton();
    87     void _q_handleTextChanged(const QString &text);
    93     void _q_handleTextChanged(const QString &text);
    88     void _q_handlePathChanged( const QString &path );
    94     void _q_handlePathChanged( const QString &path );
    89     void _q_handleFileActivated( const QString &path );
    95     void _q_handleFileActivated( const QString &path );
   109     HbLabel         *mFileNameTitleLabel;
   115     HbLabel         *mFileNameTitleLabel;
   110     HbLineEdit      *mFileNameLineEdit;
   116     HbLineEdit      *mFileNameLineEdit;
   111 
   117 
   112     QString mCaptionHead;
   118     QString mCaptionHead;
   113     FmFileDialogArgs          mArgs;
   119     FmFileDialogArgs          mArgs;
       
   120     
       
   121     HbAction *mRetAction;
       
   122     QEventLoop mEventLoop;
   114 };
   123 };
   115 
   124 
   116 #endif // FMFILEDIALOG_P_H
   125 #endif // FMFILEDIALOG_P_H