2010-01-04 11:36:55 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2011-01-11 16:28:15 +01:00
|
|
|
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
2010-01-04 11:36:55 +01:00
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Contact: Nokia Corporation (info@qt.nokia.com)
|
2010-01-04 11:36:55 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** This file may be used 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.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2010-01-04 11:36:55 +01:00
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2010-12-17 16:01:08 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** If you have questions regarding the use of this file, please contact
|
2011-05-06 15:05:37 +02:00
|
|
|
** Nokia at info@qt.nokia.com.
|
2010-01-04 11:36:55 +01:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
2009-07-27 13:55:30 +02:00
|
|
|
#ifndef IWELCOMEPAGE_H
|
|
|
|
|
#define IWELCOMEPAGE_H
|
|
|
|
|
|
2011-08-17 12:54:58 +02:00
|
|
|
#include "utils_global.h"
|
2009-07-27 13:55:30 +02:00
|
|
|
|
2010-11-11 16:49:17 +01:00
|
|
|
#include <QtCore/QObject>
|
2011-07-01 16:29:55 +02:00
|
|
|
#include <QtCore/QUrl>
|
2010-11-11 16:49:17 +01:00
|
|
|
|
2011-08-17 12:54:58 +02:00
|
|
|
QT_FORWARD_DECLARE_CLASS(QDeclarativeEngine)
|
2009-07-27 13:55:30 +02:00
|
|
|
|
2009-10-26 18:11:58 +01:00
|
|
|
namespace Utils {
|
2009-07-27 13:55:30 +02:00
|
|
|
|
|
|
|
|
class IWelcomePagePrivate;
|
|
|
|
|
|
2009-10-26 18:11:58 +01:00
|
|
|
class QTCREATOR_UTILS_EXPORT IWelcomePage : public QObject
|
2009-07-27 13:55:30 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
2010-11-11 16:49:17 +01:00
|
|
|
Q_PROPERTY(QString title READ title CONSTANT)
|
2011-07-01 16:29:55 +02:00
|
|
|
Q_PROPERTY(QUrl pageLocation READ pageLocation CONSTANT)
|
2010-11-11 16:49:17 +01:00
|
|
|
Q_PROPERTY(int priority READ priority CONSTANT)
|
|
|
|
|
|
2009-07-27 13:55:30 +02:00
|
|
|
public:
|
|
|
|
|
IWelcomePage();
|
2009-10-26 18:11:58 +01:00
|
|
|
virtual ~IWelcomePage();
|
2009-07-27 13:55:30 +02:00
|
|
|
|
2011-07-01 16:29:55 +02:00
|
|
|
virtual QUrl pageLocation() const = 0;
|
2009-07-27 13:55:30 +02:00
|
|
|
virtual QString title() const = 0;
|
|
|
|
|
virtual int priority() const { return 0; }
|
2010-11-11 16:49:17 +01:00
|
|
|
virtual void facilitateQml(QDeclarativeEngine *) {}
|
2009-07-27 13:55:30 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
// not used atm
|
2011-09-15 13:42:38 +02:00
|
|
|
IWelcomePagePrivate *d;
|
2009-07-27 13:55:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // IWELCOMEPAGE_H
|