equal
deleted
inserted
replaced
24 |
24 |
25 QTM_USE_NAMESPACE |
25 QTM_USE_NAMESPACE |
26 |
26 |
27 /*! |
27 /*! |
28 \class TsDefaultRuntime |
28 \class TsDefaultRuntime |
29 \ingroup group_tsdefaultruntimeprovider |
29 \ingroup group_tsdefaultruntimeplugin |
30 \brief Default implementation of the taskswitcher runtime. |
30 \brief Default implementation of the taskswitcher runtime. |
31 */ |
31 */ |
32 |
32 |
33 /*! |
33 /*! |
34 Constructs a new TsDefaultRuntime with parent. |
34 Constructs a new TsDefaultRuntime with parent. |
78 Creates critical interface with /a name using passed /a serviceManager. |
78 Creates critical interface with /a name using passed /a serviceManager. |
79 */ |
79 */ |
80 QObject *TsDefaultRuntime::createCriticalInterface(QServiceManager *serviceManager, const QString &name) |
80 QObject *TsDefaultRuntime::createCriticalInterface(QServiceManager *serviceManager, const QString &name) |
81 { |
81 { |
82 QObject *interface = serviceManager->loadInterface(name); |
82 QObject *interface = serviceManager->loadInterface(name); |
83 if (!interface) { |
83 Q_ASSERT_X(interface, "TsDefaultRuntime::createCriticalInterface", qPrintable(QString("Cannot initialize critical %1 interafce").arg(name))); |
84 qFatal("Cannot initialize critical %s interafce.", qPrintable(name)); |
|
85 } |
|
86 interface->setParent(this); |
84 interface->setParent(this); |
87 return interface; |
85 return interface; |
88 } |
86 } |