blob: 625dc347c91bf0bab2b01438ce118c44f6edda8e (
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
|
/**
* 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 BROWSER_H
#define BROWSER_H
#include <QObject>
#include <QDBusContext>
#include "../common/browserdefs.h"
#include "webpagewindow.h"
#include "userinput.h"
#include "browserview.h"
#include "cachemanager.h"
#include "userinput.h"
#include "networkmanager.h"
class browser : public QObject, protected QDBusContext
{
Q_OBJECT
public:
explicit browser(cachemanager *, userinput *, networkmanager *, QObject *parent = 0);
webpagewindow *wpw;
signals:
void onPageWindowCreated(qlonglong a_hPageWindowHandle, conn::brw::ERROR_IDS a_eErrorId);
void onPageWindowDestroyed(qlonglong a_hPageWindowHandle);
public Q_SLOTS:
conn::brw::ERROR_IDS createPageWindow(int a_eDeviceId, const conn::brw::Rect & a_oGeometry,
conn::brw::OBJECT_HANDLE &a_hPageWindowHandle);
conn::brw::ERROR_IDS destroyPageWindow(qlonglong a_hPageWindowHandle);
conn::brw::ERROR_IDS getPageWindows(conn::brw::ObjectHandleList &a_oPageWindowIds);
void inputText(QString input);
void setView(QString viewpath);
private:
QHash<conn::brw::OBJECT_HANDLE, QWidget*> windowhash;
QHash<QString, BrowserView *> webviewhash;
cachemanager *m_cacheManager;
userinput *m_userInput;
networkmanager *m_networkManager;
};
#endif // BROWSER_H
|