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_DirEntryImpl.h
19 * @brief This is the header file for the %_DirEntryImpl class.
21 * This header file contains the declarations of the %_DirEntryImpl class.
24 #ifndef _FIO_INTERNAL_DIRENTRY_IMPL_H_
25 #define _FIO_INTERNAL_DIRENTRY_IMPL_H_
27 #include <FBaseObject.h>
28 #include <FOspConfig.h>
30 namespace Tizen { namespace Base
36 namespace Tizen { namespace Io
41 class _OSP_EXPORT_ _DirEntryImpl
42 : public Tizen::Base::Object
46 virtual ~_DirEntryImpl(void);
48 static _DirEntryImpl* GetInstance(DirEntry* pDirEntry);
50 static const _DirEntryImpl* GetInstance(const DirEntry* pDirEntry);
52 _DirEntryImpl(const _DirEntryImpl& dirEntry);
54 _DirEntryImpl& operator =(const _DirEntryImpl& dirEntry);
56 virtual bool Equals(const Object& object) const;
58 virtual int GetHashCode(void) const;
60 const Tizen::Base::String GetName(void) const;
62 unsigned long GetFileSize(void) const;
64 bool IsDirectory(void) const;
66 bool IsHidden(void) const;
68 bool IsReadOnly(void) const;
70 Tizen::Base::DateTime GetDateTime(void) const;
72 static DirEntry* CreateDirEntryInstanceN(void);
77 void Set(Tizen::Base::DateTime dateTime, off64_t fileSize,
78 Tizen::Base::String name, bool dir, bool readOnly, bool hidden);
80 Tizen::Base::DateTime __dateTime;
82 Tizen::Base::String __name;
87 friend class DirEntry;
88 friend class _DirEnumeratorImpl;
94 #endif //_FIO_INTERNAL_DIRENTRY_IMPL_H_