2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file StorageEvent.cpp
19 * @author Andrzej Surdej (a.surdej@samsung.com)
21 * @brief Storage event class implementation
24 #include "StorageEvent.h"
26 namespace WrtDeviceApis {
27 namespace StorageEvent {
29 StorageEvent::StorageEvent() :
30 m_storageArea(NULL) {}
32 StorageEvent::StorageEvent(
33 const LocalStorage::Api::ILocalStoragePtr &storageArea) :
34 m_storageArea(storageArea) {}
36 std::string StorageEvent::getKey() const
41 DPL::OptionalString StorageEvent::getOldValue() const
46 DPL::OptionalString StorageEvent::getNewValue() const
50 std::string StorageEvent::getUrl() const
55 LocalStorage::Api::ILocalStoragePtr StorageEvent::getStorageArea() const
60 void StorageEvent::setKey(const std::string &inKey)
65 void StorageEvent::setOldValue(const std::string &inValue)
67 m_oldValue = DPL::FromUTF8String(inValue);
70 void StorageEvent::setNewValue(const std::string &inValue)
72 m_newValue = DPL::FromUTF8String(inValue);
75 void StorageEvent::setUrl(const std::string &inUrl)
80 void StorageEvent::setStorageArea(
81 const LocalStorage::Api::ILocalStoragePtr &inStorageArea)
83 m_storageArea = inStorageArea;