blob: 2bbb83eaa5eefc983d92ce0ec6dddb68b1e0ae2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/**
* Copyright (C) 2013, Pelagicore
*
* Author: Marcel Schuette <marcel.schuette@pelagicore.com>
*
* This file is part of the GENIVI project Browser Proof-Of-Concept
* For further information, see http://genivi.org/
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef WEBPAGEWINDOW_H
#define WEBPAGEWINDOW_H
#include <QObject>
#include <QDBusContext>
#include "../common/browserdefs.h"
#include "browserview.h"
class webpagewindow : public QObject, protected QDBusContext
{
Q_OBJECT
public:
explicit webpagewindow(QObject *parent = 0);
QString localurl;
QString localtitle;
BrowserView *webitem;
signals:
void urlTitleReady();
void onLoadStarted();
void onLoadFinished(bool a_fState);
void onLoadProgress(int a_i32Progress);
void onClose();
void setOutputWebview(QString viewpath);
public Q_SLOTS:
conn::brw::ERROR_IDS back();
conn::brw::ERROR_IDS forward();
conn::brw::ERROR_IDS getBrowserActionsState(conn::brw::BrowserActions &a_browserActionsState);
conn::brw::ERROR_IDS getContentSize(uint &a_u32Width, uint &a_u32Height);
conn::brw::ERROR_IDS getGeometry(conn::brw::Rect &a_sRect);
bool getVisible();
conn::brw::ERROR_IDS load(const QString &a_Url);
conn::brw::ERROR_IDS reload();
conn::brw::ERROR_IDS scroll(conn::brw::SCROLL_DIRECTION a_eScrollDirection, conn::brw::SCROLL_TYPE a_eScrollType);
conn::brw::ERROR_IDS setGeometry(const conn::brw::Rect & a_sRect);
conn::brw::ERROR_IDS setVisible(bool a_bVisible);
conn::brw::ERROR_IDS stop();
conn::brw::ERROR_IDS getCurrentUrlTitle(QString &url, QString &title);
void browserStartLoading();
void reportprogress();
void getUrlTitle();
private:
QTimer *progresstimer;
};
#endif // WEBPAGEWINDOW_H
|