Fix : Temporarily remove AlbumArtist information because of the build error
[platform/framework/native/content.git] / src / FCntContentSearchResult.cpp
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16 /**
17  * @file                FCntContentSearchResult.cpp
18  * @brief               This is the implementation file for the %ContentSearchResult class.
19  *
20  * This file contains implementation of the %ContentSearchResult class.
21  */
22
23 #include <FCntContentSearchResult.h>
24 #include <FCntContentInfo.h>
25
26 using namespace Tizen::Base;
27
28 namespace Tizen { namespace Content
29 {
30 ContentSearchResult::ContentSearchResult(void)
31         : Object()
32         , __contentType(CONTENT_TYPE_UNKNOWN)
33         , __pContentInfo(null)
34         , __pImpl(null)
35 {
36
37 }
38
39 ContentSearchResult::~ContentSearchResult(void)
40 {
41         if (__pContentInfo != null)
42         {
43                 delete __pContentInfo;
44                 __pContentInfo = null;
45         }
46 }
47
48 ContentType
49 ContentSearchResult::GetContentType(void) const
50 {
51         return __contentType;
52 }
53
54 ContentInfo*
55 ContentSearchResult::GetContentInfo(void) const
56 {
57         return __pContentInfo;
58 }
59
60 void
61 ContentSearchResult::SetContentType(ContentType contentType)
62 {
63         __contentType = contentType;
64 }
65
66 void
67 ContentSearchResult::SetContentInfo(ContentInfo* pContentInfo)
68 {
69         __pContentInfo = pContentInfo;
70 }
71
72 }}