2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FCntContentSearchResult.h
19 * @brief This is the header file for the %ContentSearchResult class.
21 * This header file contains the declarations of the %ContentSearchResult class.
24 #ifndef _FCNT_CONTENT_SEARCH_RESULT_H_
25 #define _FCNT_CONTENT_SEARCH_RESULT_H_
27 #include <FBaseObject.h>
28 #include <FCntTypes.h>
30 namespace Tizen { namespace Content
33 class _ContentSearchResultImpl;
37 * @class ContentSearchResult
38 * @brief This class represents the content search result.
42 * @final This class is not intended for extension.
44 * The %ContentSearchResult class gets a pointer to the ContentInfo class and retrieves the content type.
46 * The search result list comprises of this class, and each node can have a different type of %ContentInfo (ImageContentInfo, AudioContentInfo, VideoContentInfo, or OtherContentInfo).
47 * You must cast the %ContentInfo class into the appropriate content type to use the %ContentSearchResult class.
49 class _OSP_EXPORT_ ContentSearchResult
50 : public Tizen::Base::Object
55 * This is the default constructor for this class.
59 ContentSearchResult(void);
62 * This destructor overrides Tizen::Base::Object::~Object().
66 virtual ~ContentSearchResult(void);
69 * Gets the content type of the ContentInfo class.
73 * @return The content type
75 ContentType GetContentType(void) const;
78 * Gets the content information of the ContentInfo class.
82 * @return A pointer to the ContentInfo class
84 ContentInfo* GetContentInfo(void) const;
88 * The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
90 ContentSearchResult(const ContentSearchResult& rhs);
93 * The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
95 ContentSearchResult& operator =(const ContentSearchResult& rhs);
97 void SetContentType(ContentType contentType);
98 void SetContentInfo(ContentInfo* pContentInfo);
101 ContentType __contentType;
102 ContentInfo* __pContentInfo;
104 _ContentSearchResultImpl* __pImpl; // pubonly - for ABC
105 friend class _ContentSearchResultImpl;
106 friend class _ContentSearchImpl;
107 friend class _ContentDirectoryImpl;
109 }; // class ContentSearchResult
113 #endif // _FCNT_CONTENT_SEARCH_RESULT_H_