diff options
Diffstat (limited to 'mobile_src/DataControl/DataControlFactory.cpp')
-rwxr-xr-x | mobile_src/DataControl/DataControlFactory.cpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/mobile_src/DataControl/DataControlFactory.cpp b/mobile_src/DataControl/DataControlFactory.cpp new file mode 100755 index 0000000..af54e14 --- /dev/null +++ b/mobile_src/DataControl/DataControlFactory.cpp @@ -0,0 +1,58 @@ +// +// Tizen Web Device API +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +#include "DataControlFactory.h" +#include "SqlDataControlConsumer.h" +#include "MappedDataControlConsumer.h" +#include "SelectDataObject.h" + +namespace DeviceAPI { +namespace DataControl { + + +ISQLDataControlConsumerPtr DataControlFactory::getSQLDataControlConsumer(std::string& provId, std::string& dataId, std::string& type) +{ + return ISQLDataControlConsumerPtr(new SQLDataControlConsumer(provId, dataId, type)); +} +IMappedDataControlConsumerPtr DataControlFactory::getMappedDataControlConsumer(std::string& provId, std::string& dataId, std::string& type) +{ + return IMappedDataControlConsumerPtr(new MappedDataControlConsumer(provId, dataId, type)); +} + +ISelectDataObjectPtr DataControlFactory::getSelectDataObject() +{ + return ISelectDataObjectPtr(new SelectDataObject()); +} + + +DataControlFactory& DataControlFactory::getInstance() +{ + static DataControlFactory theInstance; + return theInstance; +} + +DataControlFactory::DataControlFactory() +{ +} + +DataControlFactory::~DataControlFactory() +{ +} + +} +} |