// // 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 "From.h" namespace DeviceAPI { namespace Messaging { From::From() : m_from(""), m_validFrom(false) { } From::~From() { } void From::setFrom(const std::string& value) { m_from = value; m_validFrom = false; } std::string From::getFrom() const { return m_from; } const std::string& From::getFromRef() const { return m_from; } void From::setFromValidity(bool val) { m_validFrom = val; } bool From::getFromValidity() const { return m_validFrom; } } }