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.
18 * @file FIo_DataControlResultSetImpl.h
19 * @brief This is the header file for the %_DataControlResultSetImpl class.
21 * This header file contains the declarations of the %_DataControlResultSetImpl class.
24 #ifndef _FIO_INTERNAL_DATACONTROL_RESULTSET_IMPL_H_
25 #define _FIO_INTERNAL_DATACONTROL_RESULTSET_IMPL_H_
27 #include <FBaseDataType.h>
28 #include <FBaseObject.h>
29 #include <FOspConfig.h>
30 #include <FIoDbEnumerator.h>
32 namespace Tizen { namespace App
36 namespace Tizen { namespace Base
41 namespace Tizen { namespace Io
46 class _OSP_EXPORT_ _DataControlResultSetImpl
47 : public Tizen::Base::Object
52 * This is the constructor for this class.
55 * @param[in] reqId The request ID @n
56 * It is identification for data control request to be replied
58 _DataControlResultSetImpl(RequestId reqId);
61 * This is the destructor for this class.
65 virtual ~_DataControlResultSetImpl(void);
68 * Fills result set with the specified @c dbEnumerator.
71 * @return An error code
72 * @param[in] dbEnumerator %Database enumerator instance
73 * @exception E_SUCCESS The method was successful.
74 * @exception E_INVALID_STATE Either of the following conditions has occurred:
75 * - This instance has not been properly constructed.
76 * - The specified @c dbEnumerator has already been set.
77 * @exception E_DATABASE Either of the following conditions has occurred:
78 * - The database file was closed.
79 * - The database engine has failed to execute query.
80 * @exception E_IO Either of the following conditions has occurred:
81 * - An unexpected device failure has occurred as the media ejected suddenly.
82 * - Detected corruption of a file.
84 result FillWith(IDbEnumerator* pDbEnum, Tizen::Base::String& version);
88 * This is the default constructor for this class.
92 _DataControlResultSetImpl(void);
95 * This is the default copy constructor for this class.
99 _DataControlResultSetImpl(const _DataControlResultSetImpl& rhs);
102 * This is the assignment operator for this class.
106 _DataControlResultSetImpl& operator =(const _DataControlResultSetImpl& rhs);
109 * Sets the range of a set of data to be added.
112 * @return An error code
113 * @param[in] pageNo The page number of the data set. @n
114 * It starts from @c 1.
115 * @param[in] countPerPage The desired maximum count of the data item on the page.
116 * @exception E_SUCCESS The method was successful.
117 * @exception E_INVALID_STATE This instance has not been properly constructed yet.
118 * @exception E_INVALID_ARG Either of the following conditions has occurred: @n
119 * - The specified @c pageNo parameter is less than @c 1.
120 * - The specified @c countPerPage parameter is less than @c 1.
122 result SetCapacity(int pageNo = 1, int countPerPage = 20);
128 Tizen::Base::String __tmpPath;
131 friend class Tizen::App::_AppImpl;
133 }; // _DataControlResultSetImpl
137 #endif // _FIO_INTERNAL_DATACONTROL_RESULTSET_IMPL_H_