blob: f7a6f01865095a9f5c2aded3f2e5712d20fb4ecc (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/**
* 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 onUrlChanged(QString);
void onClose();
void setOutputWebview(QString viewpath);
void onTitleChanged(QString);
void onLinkClicked(QString);
void onSelectionChanged(void);
void onStatusTextChanged(QString);
void onVisibilityChanged(bool);
void onScrollPositionChanged(uint,uint);
void onZoomFactorChanged(double);
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 activate();
conn::brw::ERROR_IDS getPageIcon(QString iconPath, QString iconFilePath);
conn::brw::ERROR_IDS getScrollPosition(uint &posX, uint &posY);
QString getTitle();
QString getUrl();
double getZoomFactor();
conn::brw::ERROR_IDS select();
conn::brw::ERROR_IDS setScrollPosition(uint &posX, uint &posY);
conn::brw::ERROR_IDS setZoomFactor(double &zoomFactor);
conn::brw::ERROR_IDS getFavicon(const QString&, QString&);
void browserStartLoading();
void reportprogress();
void getUrlTitle();
private:
QTimer *progresstimer = NULL;
};
#endif // WEBPAGEWINDOW_H
|