// // 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. // /** * @file FScl_RecordImpl.cpp * @brief This is the implementation for _RecordImpl class. * * This file contains definitions of _RecordImpl class. */ #include "FScl_RecordImpl.h" using namespace Tizen::Base; namespace Tizen { namespace Social { _RecordImpl::_RecordImpl(RecordType type) : __recordType(type) , __recordId(INVALID_RECORD_ID) { // empty body. } _RecordImpl::~_RecordImpl() { // empty body. } _RecordImpl::_RecordImpl(const _RecordImpl& rhs) { __recordType = rhs.__recordType; __recordId = rhs.__recordId; } _RecordImpl& _RecordImpl::operator =(const _RecordImpl& rhs) { if (this == &rhs) { return *this; } __recordType = rhs.__recordType; __recordId = rhs.__recordId; return *this; } RecordType _RecordImpl::GetRecordType(void) const { return __recordType; } RecordId _RecordImpl::GetRecordId(void) const { return __recordId; } void _RecordImpl::SetRecordId(RecordId recordId) { __recordId = recordId; } _RecordImpl* _RecordImpl::GetInstance(Record& record) { return record.__pRecordImpl; } const _RecordImpl* _RecordImpl::GetInstance(const Record& record) { return record.__pRecordImpl; } }} // Tizen::Social