/
homewindow.h
64 lines (52 loc) · 1.49 KB
/
homewindow.h
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 Jolla Ltd.
**
** This file is part of lipstick.
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation
** and appearing in the file LICENSE.LGPL included in the packaging
** of this file.
**
****************************************************************************/
#ifndef HOMEWINDOW_H
#define HOMEWINDOW_H
#include <QObject>
#include "lipstickglobal.h"
class QQmlError;
class QQmlEngine;
class QQuickItem;
class QQuickView;
class HomeWindowPrivate;
class LIPSTICK_EXPORT HomeWindow : public QObject
{
Q_OBJECT
public:
HomeWindow();
~HomeWindow();
bool isVisible() const;
void show();
void hide();
void showFullScreen();
void raise();
void lower();
QQuickItem *rootObject() const;
void setSource(const QUrl &);
void setWindowTitle(const QString &);
bool hasErrors() const;
QList<QQmlError> errors() const;
QString category() const;
void setCategory(const QString &category);
void resize(const QSize &);
void setGeometry(const QRect &);
QQmlEngine *engine() const;
void setContextProperty(const QString &, const QVariant &);
void setContextProperty(const QString &, QObject *);
signals:
void visibleChanged(bool arg);
private:
HomeWindowPrivate *d;
};
#endif // HOMEWINDOW_H