harbour-wallaread/src/harbour-wallaread.cpp

49 lines
1.6 KiB
C++
Raw Normal View History

2016-12-16 13:21:20 +00:00
/*
* WallaRead - A Wallabag 2+ client for SailfishOS
* © 2016 Grégory Oestreicher <greg@kamago.net>
*
* This file is part of WallaRead.
*
* WallaRead is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* WallaRead is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WallaRead. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifdef QT_QML_DEBUG
#include <QtQuick>
#endif
2016-12-16 14:18:25 +00:00
#include <QtQml>
2016-12-16 13:21:20 +00:00
#include <sailfishapp.h>
#include "httprequester.h"
2016-12-19 07:29:10 +00:00
#include "imageembedder.h"
2016-12-16 13:21:20 +00:00
int main(int argc, char *argv[])
{
// SailfishApp::main() will display "qml/template.qml", if you need more
// control over initialization, you can use:
//
// - SailfishApp::application(int, char *[]) to get the QGuiApplication *
// - SailfishApp::createView() to get a new QQuickView * instance
// - SailfishApp::pathTo(QString) to get a QUrl to a resource file
//
// To display the view, call "show()" (will show fullscreen on device).
qmlRegisterType<HttpRequester>( "harbour.wallaread", 1, 0, "HttpRequester" );
2016-12-19 07:29:10 +00:00
qmlRegisterType<ImageEmbedder>( "harbour.wallaread", 1, 0, "ImageEmbedder" );
2016-12-16 13:21:20 +00:00
return SailfishApp::main(argc, argv);
}