browsercore/appfw/Api/Managers/LoadController.h
changeset 12 afcd8e6d025b
parent 3 0954f5dd2cd0
equal deleted inserted replaced
11:786160610b4d 12:afcd8e6d025b
    34     {
    34     {
    35         Q_OBJECT
    35         Q_OBJECT
    36     public:
    36     public:
    37         enum GotoBrowserMode {
    37         enum GotoBrowserMode {
    38             GotoModeLoading, /**< Loading Mode (i.e. page is loading) */
    38             GotoModeLoading, /**< Loading Mode (i.e. page is loading) */
       
    39             GotoModeEditinLoading, /**< Editing while in  Loading Mode (i.e. editing while page is loading) */
    39             GotoModeEditing, /**< Editing Mode (i.e. user can or is editing the url) */
    40             GotoModeEditing, /**< Editing Mode (i.e. user can or is editing the url) */
    40             GotoModeReloadable, /**< Reloadable Mode (i.e. the url has not changed, and can be reloaded) */
    41             GotoModeReloadable, /**< Reloadable Mode (i.e. the url has not changed, and can be reloaded) */
    41             GotoModeInvalid
    42             GotoModeInvalid
    42         };
    43         };
    43 
    44 
    52         ~LoadController();
    53         ~LoadController();
    53 
    54 
    54 
    55 
    55     public:
    56     public:
    56         GotoBrowserMode mode();
    57         GotoBrowserMode mode();
    57         void setMode(GotoBrowserMode mode);
    58         void setEditMode(bool);
       
    59         bool editMode();
       
    60         
    58         
    61         
    59 
    62 
    60 		
    63     
    61         bool loadCanceled() { return m_canceled ;}
    64         bool loadCanceled() { return m_canceled ;}
    62         void setCanceled(bool val) {m_canceled = val;}
    65         void setCanceled(bool val) {m_canceled = val;}
    63         
    66         
    64         void setUrlText(QString );
    67         void setUrlText(QString );
    65         QString urlText() {return m_textBoxValue; }
    68         QString urlText() {return m_textBoxValue; }
    66         
    69         
    67         int progressValue() {return m_progress; }
    70         int progressValue() {return m_progress; }
    68         bool inline isPageLoading(){ return m_isPageLoading;}
    71         bool inline isPageLoading(){ return m_isPageLoading;}
    69 
    72         bool pointOfNoReturn();
    70 
    73 
    71    public slots:
    74    public slots:
    72         void loadStarted();
    75         void loadStarted();
    73         void loadProgress( const int progress );
    76         void loadProgress( const int progress );
    74         void loadFinished( const bool ok );
    77         void loadFinished( const bool ok );
    75         void urlChanged(QUrl);
    78         void urlChanged(QUrl);
       
    79         void initialLayoutCompleted();
       
    80     
    76  
    81  
    77 
    82 
    78 Q_SIGNALS:
    83 Q_SIGNALS:
    79         void pageLoadStarted();
    84         void pageLoadStarted();
    80         void pageLoadFailed(); 
    85         void pageLoadFailed(); 
    83         void pageUrlChanged(QString);
    88         void pageUrlChanged(QString);
    84 
    89 
    85     private:
    90     private:
    86         GotoBrowserMode m_gotoMode;
    91         GotoBrowserMode m_gotoMode;
    87         bool m_isPageLoading;
    92         bool m_isPageLoading;
    88         bool m_initialLayoutIsComplete;
       
    89         bool m_canceled;
    93         bool m_canceled;
    90         int  m_progress;
    94         int  m_progress;
       
    95         bool m_initialLayoutIsComplete;
    91         QString m_textBoxValue;
    96         QString m_textBoxValue;
       
    97         QString m_previousTextBoxValue;
    92 
    98 
    93 
    99 
    94     };
   100     };
    95 }
   101 }
    96 #endif // __LOADCONTROLLER_H__
   102 #endif // __LOADCONTROLLER_H__