Commit 059c1905 authored by Rafał Malinowski's avatar Rafał Malinowski

sms: do not use xml_config_file directly

Signed-off-by: Rafał Malinowski's avatarRafał Malinowski <[email protected]>
parent 39b46cf7
......@@ -19,13 +19,15 @@
#pragma once
#include "exports.h"
#include <memory>
#include <QtCore/QObject>
class StoragePoint;
class XmlConfigFile;
class StoragePointFactory : public QObject
class KADUAPI StoragePointFactory : public QObject
{
Q_OBJECT
......
......@@ -24,6 +24,8 @@
#include <QtCore/QtAlgorithms>
#include "configuration/configuration-manager.h"
#include "core/core.h"
#include "storage/storage-point-factory.h"
#include "mobile-number.h"
......@@ -84,7 +86,7 @@ void MobileNumberManager::unregisterNumber(QString number)
std::shared_ptr<StoragePoint> MobileNumberManager::createStoragePoint()
{
return std::make_shared<StoragePoint>(xml_config_file, xml_config_file->getNode("MobileNumbers"));
return Core::instance()->storagePointFactory()->createStoragePoint("MobileNumbers");
}
StorableObject * MobileNumberManager::storageParent()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment