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_DirEnumeratorImpl.h
19 * @brief This is the header file for the _DirEnumeratorImpl class.
21 * This header file contains the declarations of the _DirEnumeratorImpl class.
24 #ifndef _FIO_INTERNAL_DIR_ENUMERATOR_IMPL_H_
25 #define _FIO_INTERNAL_DIR_ENUMERATOR_IMPL_H_
27 #include <FOspConfig.h>
28 #include <FBaseObject.h>
29 #include <FBaseString.h>
31 #include <FIoDbEnumerator.h>
33 namespace Tizen { namespace Io
39 class _OSP_EXPORT_ _DirEnumeratorImpl
40 : public Tizen::Base::Object
44 ~_DirEnumeratorImpl(void);
46 DirEntry GetCurrentDirEntry(void) const;
48 Tizen::Base::Object* GetCurrent(void) const;
50 result MoveNext(void);
54 static _DirEnumeratorImpl* GetInstance(DirEnumerator& dirEnumerator);
56 static const _DirEnumeratorImpl* GetInstance(const DirEnumerator& dirEnumerator);
58 static DirEnumerator* CreateDirEnumeratorInstanceN(const Tizen::Base::String& dirPath);
61 _DirEnumeratorImpl(void);
63 _DirEnumeratorImpl(const _DirEnumeratorImpl& source);
65 _DirEnumeratorImpl(const Tizen::Base::String& dirPath);
67 _DirEnumeratorImpl& operator =(const _DirEnumeratorImpl& source);
70 Tizen::Base::String __dirPath;
71 void* __pFileFindInfo;
72 DirEntry* __pCurDirEntry;
74 friend class DirEnumerator;
75 friend class _DirectoryImpl;
80 #endif //_FIO_INTERNAL_DIR_ENUMERATOR_IMPL_H_