Merge "Update deprecated libprivilege-control API functions." into tizen
[platform/framework/native/appfw.git] / src / io / inc / FIo_DirEntryImpl.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_DirEntryImpl.h
19  * @brief       This is the header file for the %_DirEntryImpl class.
20  *
21  * This header file contains the declarations of the %_DirEntryImpl class.
22  */
23
24 #ifndef _FIO_INTERNAL_DIRENTRY_IMPL_H_
25 #define _FIO_INTERNAL_DIRENTRY_IMPL_H_
26
27 #include <FBaseObject.h>
28 #include <FOspConfig.h>
29
30 namespace Tizen { namespace Base
31 {
32 class String;
33 class DateTime;
34 }}
35
36 namespace Tizen { namespace Io
37 {
38
39 class DirEntry;
40
41 class _OSP_EXPORT_ _DirEntryImpl
42         : public Tizen::Base::Object
43 {
44
45 public:
46         virtual ~_DirEntryImpl(void);
47
48         static _DirEntryImpl* GetInstance(DirEntry* pDirEntry);
49
50         static const _DirEntryImpl* GetInstance(const DirEntry* pDirEntry);
51
52         _DirEntryImpl(const _DirEntryImpl& dirEntry);
53
54         _DirEntryImpl& operator =(const _DirEntryImpl& dirEntry);
55
56         virtual bool Equals(const Object& object) const;
57
58         virtual int GetHashCode(void) const;
59
60         const Tizen::Base::String GetName(void) const;
61
62         unsigned long GetFileSize(void) const;
63
64         bool IsDirectory(void) const;
65
66         bool IsHidden(void) const;
67
68         bool IsReadOnly(void) const;
69
70         Tizen::Base::DateTime GetDateTime(void) const;
71
72         static DirEntry* CreateDirEntryInstanceN(void);
73
74 private:
75         _DirEntryImpl(void);
76
77         void Set(Tizen::Base::DateTime dateTime, off64_t fileSize,
78                         Tizen::Base::String name, bool dir, bool readOnly, bool hidden);
79
80         Tizen::Base::DateTime __dateTime;
81         off64_t __fileSize;
82         Tizen::Base::String __name;
83         bool __directory;
84         bool __hidden;
85         bool __readOnly;
86
87         friend class DirEntry;
88         friend class _DirEnumeratorImpl;
89
90 }; //_DirEntryImpl
91
92 }} // Tizen::Io
93
94 #endif //_FIO_INTERNAL_DIRENTRY_IMPL_H_
95