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_FileAttributesImpl.h
19 * @brief This is the header file for the %_FileAttributesImpl class.
21 * This header file contains the declarations of the %_FileAttributesImpl class.
24 #ifndef _FIO_INTERNAL_FILEATTRIBUTES_IMPL_H_
25 #define _FIO_INTERNAL_FILEATTRIBUTES_IMPL_H_
27 #include <FBaseDateTime.h>
29 namespace Tizen {namespace Base
35 namespace Tizen { namespace Io
38 class _FileAttributesImpl
39 : public Tizen::Base::Object
43 _FileAttributesImpl(void);
45 virtual ~_FileAttributesImpl(void);
47 _FileAttributesImpl(const _FileAttributesImpl& fileAttributesImpl);
49 _FileAttributesImpl& operator =(const _FileAttributesImpl& fileAttributesImpl);
51 static _FileAttributesImpl* GetInstance(FileAttributes& fileAttributes);
53 static const _FileAttributesImpl* GetInstance(const FileAttributes& fileAttributes);
55 virtual bool Equals(const Tizen::Base::Object& object) const;
57 int GetHashCode(void) const;
59 long long GetFileSize(void) const;
61 bool IsDirectory(void) const;
63 bool IsHidden(void) const;
65 bool IsReadOnly(void) const;
67 Tizen::Base::DateTime GetDateTime(void) const;
69 Tizen::Base::DateTime GetLastModifiedTime(void) const;
72 void Set(const Tizen::Base::DateTime& dateTime, const Tizen::Base::DateTime& modifiedTime, off64_t fileSize,
73 unsigned long attribute, bool hidden);
80 Tizen::Base::DateTime __creationTime;
81 Tizen::Base::DateTime __lastModifiedTime;
83 friend class FileAttributes;
84 friend class _NormalFile;
85 friend class _FileUtil;
87 }; // _FileAttributesImpl
91 #endif // _FIO_INTERNAL_FILEATTRIBUTES_IMPL_H_