/* * Copyright (C) 2012 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: MichaƂ Sawicz */ // Qt #include // self #include "fakeplugin.h" // local #include "indicators.h" #include "menucontentactivator.h" #include "visibleindicatorsmodel.h" void IndicatorsFakePlugin::registerTypes(const char * uri) { Q_INIT_RESOURCE(indicators_fake); qmlRegisterType(uri, 0, 1, "MenuContentActivator"); qmlRegisterType(uri, 0, 1, "VisibleIndicatorsModel"); qmlRegisterUncreatableType(uri, 0, 1, "MenuContentState", "Can't create MenuContentState class"); qmlRegisterUncreatableType(uri, 0, 1, "ActionState", "Can't create ActionState class"); qmlRegisterUncreatableType(uri, 0, 1, "NetworkActionState", "Can't create NetworkActionState class"); qmlRegisterUncreatableType(uri, 0, 1, "NetworkConnection", "Can't create NetworkConnection class"); qmlRegisterUncreatableType(uri, 0, 1, "IndicatorsModelRole", "Can't create IndicatorsModelRole class"); qmlRegisterUncreatableType(uri, 0, 1, "FlatMenuProxyModelRole", "Can't create FlatMenuProxyModelRole class"); }