Change event sync to async
[platform/framework/native/appfw.git] / src / io / inc / FIo_DirEnumeratorImpl.h
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 /**
18  * @file        FIo_DirEnumeratorImpl.h
19  * @brief       This is the header file for the _DirEnumeratorImpl class.
20  *
21  * This header file contains the declarations of the _DirEnumeratorImpl class.
22  */
23
24 #ifndef _FIO_INTERNAL_DIR_ENUMERATOR_IMPL_H_
25 #define _FIO_INTERNAL_DIR_ENUMERATOR_IMPL_H_
26
27 #include <FOspConfig.h>
28 #include <FBaseObject.h>
29 #include <FBaseString.h>
30
31 #include <FIoDbEnumerator.h>
32
33 namespace Tizen { namespace Io
34 {
35
36 class DirEntry;
37 class _DirectoryImpl;
38
39 class _OSP_EXPORT_ _DirEnumeratorImpl
40         : public Tizen::Base::Object
41 {
42
43 public:
44         ~_DirEnumeratorImpl(void);
45
46         DirEntry GetCurrentDirEntry(void) const;
47
48         Tizen::Base::Object* GetCurrent(void) const;
49
50         result MoveNext(void);
51
52         result Reset(void);
53
54         static _DirEnumeratorImpl* GetInstance(DirEnumerator& dirEnumerator);
55
56         static const _DirEnumeratorImpl* GetInstance(const DirEnumerator& dirEnumerator);
57
58         static DirEnumerator* CreateDirEnumeratorInstanceN(const Tizen::Base::String& dirPath);
59
60 private:
61         _DirEnumeratorImpl(void);
62
63         _DirEnumeratorImpl(const _DirEnumeratorImpl& source);
64
65         _DirEnumeratorImpl(const Tizen::Base::String& dirPath);
66
67         _DirEnumeratorImpl& operator =(const _DirEnumeratorImpl& source);
68
69         bool __validAccess;
70         Tizen::Base::String __absoluteDirPath;
71         void* __pFileFindInfo;
72         DirEntry* __pCurDirEntry;
73
74         friend class DirEnumerator;
75         friend class _DirectoryImpl;
76 };
77
78 }} // Tizen::Io
79
80 #endif //_FIO_INTERNAL_DIR_ENUMERATOR_IMPL_H_
81