----------------------------------------------------------------------------
| 103 | |
| 104 | //---------------------------------------------------------------------------- |
| 105 | QFileInfo ctkPluginContext::getDataFile(const QString& filename) |
| 106 | { |
| 107 | Q_D(ctkPluginContext); |
| 108 | d->isPluginContextValid(); |
| 109 | QDir dataRoot(d->plugin->getDataRoot().absolutePath()); |
| 110 | if (!dataRoot.exists()) |
| 111 | { |
| 112 | if (!dataRoot.mkpath(dataRoot.absolutePath())) |
| 113 | { |
| 114 | qWarning() << "Could not create persistent storage area:" << dataRoot.absolutePath(); |
| 115 | } |
| 116 | } |
| 117 | return QFileInfo(dataRoot.absolutePath() + '/' + filename); |
| 118 | } |
| 119 | |
| 120 | //---------------------------------------------------------------------------- |
| 121 | ctkServiceRegistration ctkPluginContext::registerService(const QStringList& clazzes, QObject* service, const ctkDictionary& properties) |
no test coverage detected