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.h
18 * @brief This is the header file for the %ContentSearchResult class.
20 * This header file contains the declarations of the %ContentSearchResult class.
23 #ifndef _FCNT_CONTENT_SEARCH_RESULT_H_
24 #define _FCNT_CONTENT_SEARCH_RESULT_H_
26 #include <FBaseObject.h>
27 #include <FCntTypes.h>
29 namespace Tizen { namespace Content
32 class _ContentSearchResultImpl;
36 * @class ContentSearchResult
37 * @brief This class represents the content search result.
41 * @final This class is not intended for extension.
43 * The %ContentSearchResult class gets a pointer to the ContentInfo class and retrieves the content type.
45 * The search result list comprises of this class, and each node can have a different type of %ContentInfo (ImageContentInfo, AudioContentInfo, VideoContentInfo, or OtherContentInfo).
46 * You must cast the %ContentInfo class into the appropriate content type to use the %ContentSearchResult class.
48 class _OSP_EXPORT_ ContentSearchResult
49 : public Tizen::Base::Object
54 * This is the default constructor for this class.
58 ContentSearchResult(void);
61 * This destructor overrides Tizen::Base::Object::~Object().
65 virtual ~ContentSearchResult(void);
68 * Gets the content type of the ContentInfo class.
72 * @return The content type
74 ContentType GetContentType(void) const;
77 * Gets the content information of the ContentInfo class.
81 * @return A pointer to the ContentInfo class
83 ContentInfo* GetContentInfo(void) const;
87 * The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
89 ContentSearchResult(const ContentSearchResult& rhs);
92 * The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
94 ContentSearchResult& operator =(const ContentSearchResult& rhs);
96 void SetContentType(ContentType contentType);
97 void SetContentInfo(ContentInfo* pContentInfo);
100 ContentType __contentType;
101 ContentInfo* __pContentInfo;
103 _ContentSearchResultImpl* __pImpl; // pubonly - for ABC
104 friend class _ContentSearchResultImpl;
105 friend class _ContentSearchImpl;
106 friend class _ContentDirectoryImpl;
108 }; // class ContentSearchResult
112 #endif // _FCNT_CONTENT_SEARCH_RESULT_H_