Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
723 B

8 years ago
#include "serviceregistry.h"
#include "serviceregistry_p.h"
#include <QtCore/QGlobalStatic>
using namespace QtMvvm;
Q_GLOBAL_STATIC_WITH_ARGS(ServiceRegistry, _instance,
(new ServiceRegistryPrivate()))
ServiceRegistry::ServiceRegistry(ServiceRegistryPrivate *d_ptr) :
d(d_ptr)
{}
ServiceRegistry *ServiceRegistry::instance()
{
return _instance;
}
void ServiceRegistry::registerService(const QByteArray &iid, const QMetaObject *metaObject)
{
}
void ServiceRegistry::registerService(const QByteArray &iid, const std::function<QObject *(const QVariantList &)> &fn, QByteArrayList injectables)
{
}
// ------------- Private Implementation -------------
ServiceRegistryPrivate::ServiceRegistryPrivate()
{
}