Change event sync to async
[platform/framework/native/appfw.git] / src / io / inc / FIo_DataSetImpl.h
1 //
2 // Copyright (c) 2013 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 /**
18  * @file        FIoDataSet.h
19  * @brief   This is the header file for the %_DataSetImpl class.
20  *
21  * This header file contains the declarations of the %_DataSetImpl class.
22  */
23
24 #ifndef _FIO_INTERNAL_DATASET_IMPL_H_
25 #define _FIO_INTERNAL_DATASET_IMPL_H_
26
27 #include <FIoDataSet.h>
28 #include <FBaseObject.h>
29 #include <FBaseColArrayList.h>
30 #include <FBaseColLinkedList.h>
31 #include <FOspConfig.h>
32
33 namespace Tizen { namespace Io
34 {
35
36 class DataRow;
37 class DataSetEnumerator;
38
39 class _DataSetImpl
40         : public Tizen::Base::Object
41 {
42
43 public:
44         _DataSetImpl(void);
45
46         virtual ~_DataSetImpl(void);
47
48         result Construct(const Tizen::Base::Collection::IList& columnNames);
49
50         DataRow* CreateDataRowN(void);
51
52         DataSetEnumerator* GetDataSetEnumeratorN(void);
53
54         DataSet* CloneN(void) const;
55
56         virtual bool Equals(const Tizen::Base::Object& obj) const;
57
58         virtual int GetHashCode(void) const;
59
60         static _DataSetImpl* GetInstance(DataSet& dataSet);
61
62         static const _DataSetImpl* GetInstance(const DataSet& dataSet);
63
64 private:
65         _DataSetImpl(_DataSetImpl& dataSetImpl);
66
67         _DataSetImpl& operator =(const _DataSetImpl& dataSetImpl);
68
69         Tizen::Base::Collection::LinkedList* __pDataSet;
70         Tizen::Base::Collection::ArrayList* __pColumnList;
71         Tizen::Base::Collection::ArrayList* __pColumnTypeList;
72
73         int __columnCount;
74         int __rowCount;
75
76         Tizen::Base::Collection::LinkedList __enumImplList;
77         Tizen::Base::Collection::LinkedList __rowImplList;
78 }; // _DataSetImpl
79
80 }} // Tizen::Io
81
82 #endif //_FIO_INTERNAL_DATASET_IMPL_H_
83