ginebra2/emulator/browser.h
changeset 3 0954f5dd2cd0
parent 0 1450b09d0cfd
child 9 b39122337a00
equal deleted inserted replaced
1:b0dd75e285d2 3:0954f5dd2cd0
     1 /*
     1 /*
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
     4 *
     9 * Initial Contributors:
     5 * This program is free software: you can redistribute it and/or modify
    10 * Nokia Corporation - initial contribution.
     6 * it under the terms of the GNU Lesser General Public License as published by
       
     7 * the Free Software Foundation, version 2.1 of the License.
    11 *
     8 *
    12 * Contributors:
     9 * This program is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12 * GNU Lesser General Public License for more details.
    13 *
    13 *
    14 * Description: 
    14 * You should have received a copy of the GNU Lesser General Public License
       
    15 * along with this program.  If not,
       
    16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
       
    17 *
       
    18 * Description:
    15 *
    19 *
    16 */
    20 */
    17 
       
    18 
    21 
    19 #ifndef __GINEBRA_BROWSER_H__
    22 #ifndef __GINEBRA_BROWSER_H__
    20 #define __GINEBRA_BROWSER_H__
    23 #define __GINEBRA_BROWSER_H__
    21 
    24 
    22 #include <QObject>
    25 #include <QObject>
    25 #include "../ChromeView.h"
    28 #include "../ChromeView.h"
    26 #include "GWebContentView.h"
    29 #include "GWebContentView.h"
    27 
    30 
    28 class GinebraBrowser : public QObject
    31 class GinebraBrowser : public QObject
    29 {
    32 {
    30   Q_OBJECT 
    33   Q_OBJECT
    31  public:
    34  public:
    32   GinebraBrowser( QObject * parent = 0);
    35   GinebraBrowser( QObject * parent = 0, QString *url = 0);
    33   ~GinebraBrowser();
    36   ~GinebraBrowser();
    34   void show();
    37   void show();
    35   void showSplashScreen();
    38   void showSplashScreen();
    36   void destroySplashScreen();
    39   void destroySplashScreen();
       
    40   void setApplicationNameVersion();
    37   /*
    41   /*
    38 private:
    42 private:
    39   QDir getHomeDir();
    43   QDir getHomeDir();
    40   void removeFaviconDir();
    44   void removeFaviconDir();
    41 */
    45 */
       
    46   void queueOpenUrl(QString url);
       
    47 
       
    48  signals:
       
    49   void openUrlRequested(QString url);
       
    50 
    42  public slots:
    51  public slots:
    43   void onChromeComplete();
    52   void onChromeComplete();
       
    53   void openUrl(QString);
       
    54 
    44  private:
    55  private:
    45   QString m_install;
    56   QString m_install;
    46   QString m_chromeUrl;
    57   QString m_chromeUrl;
    47   QString m_contentUrl;
    58   QString m_contentUrl;
    48   QString m_installBase;
    59   QString m_installBase;
    49   GVA::ChromeWidget * m_chrome;
    60   GVA::ChromeWidget * m_chrome;
    50   GVA::ChromeView * m_view;
    61   GVA::ChromeView * m_view;
       
    62   QGraphicsScene *m_scene;
    51   QLabel *m_splashScreen;  // Owned
    63   QLabel *m_splashScreen;  // Owned
       
    64   QString m_initialUrl;
    52 };
    65 };
    53 
    66 
    54 #endif
    67 #endif