2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
17 * @file FCntContentSearchResult.cpp
18 * @brief This is the implementation file for the %ContentSearchResult class.
20 * This file contains implementation of the %ContentSearchResult class.
23 #include <FCntContentSearchResult.h>
24 #include <FCntContentInfo.h>
26 using namespace Tizen::Base;
28 namespace Tizen { namespace Content
30 ContentSearchResult::ContentSearchResult(void)
32 , __contentType(CONTENT_TYPE_UNKNOWN)
33 , __pContentInfo(null)
39 ContentSearchResult::~ContentSearchResult(void)
41 if (__pContentInfo != null)
43 delete __pContentInfo;
44 __pContentInfo = null;
49 ContentSearchResult::GetContentType(void) const
55 ContentSearchResult::GetContentInfo(void) const
57 return __pContentInfo;
61 ContentSearchResult::SetContentType(ContentType contentType)
63 __contentType = contentType;
67 ContentSearchResult::SetContentInfo(ContentInfo* pContentInfo)
69 __pContentInfo = pContentInfo;