ginebra2/emulator/browser.h
changeset 16 3c88a81ff781
parent 9 b39122337a00
equal deleted inserted replaced
14:6aeb7a756187 16:3c88a81ff781
    26 #include <QDir>
    26 #include <QDir>
    27 #include "../ChromeWidget.h"
    27 #include "../ChromeWidget.h"
    28 #include "../ChromeView.h"
    28 #include "../ChromeView.h"
    29 #include "GWebContentView.h"
    29 #include "GWebContentView.h"
    30 
    30 
       
    31 #ifdef Q_WS_MAEMO_5
       
    32 namespace GVA {
       
    33    class WindowsView;
       
    34    class BrowserWindow;
       
    35 }
       
    36 #endif
       
    37 
       
    38 class GinebraApplication;
       
    39 
    31 class GinebraBrowser : public QObject
    40 class GinebraBrowser : public QObject
    32 {
    41 {
    33   Q_OBJECT
    42   Q_OBJECT
    34  public:
    43  public:
    35   GinebraBrowser( QObject * parent = 0, QString *url = 0);
    44   GinebraBrowser( QObject * parent = 0, QString *url = 0);
    47   void onChromeComplete();
    56   void onChromeComplete();
    48   void openUrl(QString);
    57   void openUrl(QString);
    49 
    58 
    50 #ifdef Q_WS_MAEMO_5
    59 #ifdef Q_WS_MAEMO_5
    51  private slots:
    60  private slots:
    52   void onBookmarksAction();
    61   void addMenuBarAction(QAction *action);
    53   void onHistoryAction();
    62   void setMenuBarEnabled(bool value = true);
       
    63   void onTitleChanged(const QString &title);
       
    64   
       
    65  private:
       
    66   void fixupWindowTitle();
    54 #endif
    67 #endif
    55 
    68 
    56  private:
    69  private:
    57   void platformSpecificInit();
    70   void platformSpecificInit();
    58 
    71 
    62   QString m_contentUrl;
    75   QString m_contentUrl;
    63   QString m_installBase;
    76   QString m_installBase;
    64   GVA::ChromeWidget * m_chrome;
    77   GVA::ChromeWidget * m_chrome;
    65   GVA::ChromeView * m_view;
    78   GVA::ChromeView * m_view;
    66   QGraphicsScene *m_scene;
    79   QGraphicsScene *m_scene;
       
    80   GVA::GinebraApplication *m_app;
    67   QString m_initialUrl;
    81   QString m_initialUrl;
    68 #ifdef Q_WS_MAEMO_5
    82 #ifdef Q_WS_MAEMO_5
    69   QMainWindow *m_mainWindow;
    83   GVA::BrowserWindow *m_mainWindow;
    70   QSplashScreen *m_splashScreenM5;
    84   QSplashScreen *m_splashScreenM5;
       
    85   GVA::WindowsView *m_windows;
       
    86   QMenu *m_menu;   // not owned
    71 #else
    87 #else
    72   QLabel *m_splashScreen;  // Owned
    88   QLabel *m_splashScreen;  // Owned
    73 #endif
    89 #endif
    74 };
    90 };
    75 
    91