/* * Copyright (C) 2013 Canonical, Ltd. * * This program 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; version 3. * * This program 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 this program. If not, see . * * Author: Nick Dedekind */ // Self #include "fake_unity_plugin.h" // local #include "fake_scopes.h" #include "fake_categories.h" #include "fake_preview.h" #include "categoryresults.h" // External #include #include void FakeUnityPlugin::registerTypes(const char *uri) { #ifndef GLIB_VERSION_2_36 g_type_init(); #endif Q_ASSERT(uri == QLatin1String("Unity")); qmlRegisterUncreatableType(uri, 0, 1, "Preview", "Can't create Preview object in QML."); qmlRegisterType(uri, 0, 1, "Scopes"); qmlRegisterType(uri, 0, 1, "Scope"); qmlRegisterType(uri, 0, 1, "Categories"); qmlRegisterUncreatableType(uri, 0, 1, "CategoryResults", "Can't create"); qmlRegisterType(uri, 0, 1, "DeeListModel"); }