2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FIo_FileAttributesImpl.h
20 * @brief This is the header file for the %_FileAttributesImpl class.
22 * This header file contains the declarations of the %_FileAttributesImpl class.
25 #ifndef _FIO_INTERNAL_FILEATTRIBUTES_IMPL_H_
26 #define _FIO_INTERNAL_FILEATTRIBUTES_IMPL_H_
28 #include <FBaseDateTime.h>
30 namespace Tizen {namespace Base
36 namespace Tizen { namespace Io
39 class _FileAttributesImpl
40 : public Tizen::Base::Object
44 _FileAttributesImpl(void);
46 virtual ~_FileAttributesImpl(void);
48 _FileAttributesImpl(const _FileAttributesImpl& fileAttributesImpl);
50 _FileAttributesImpl& operator =(const _FileAttributesImpl& fileAttributesImpl);
52 static _FileAttributesImpl* GetInstance(FileAttributes& fileAttributes);
54 static const _FileAttributesImpl* GetInstance(const FileAttributes& fileAttributes);
56 virtual bool Equals(const Tizen::Base::Object& object) const;
58 int GetHashCode(void) const;
60 long long GetFileSize(void) const;
62 bool IsDirectory(void) const;
64 bool IsHidden(void) const;
66 bool IsReadOnly(void) const;
68 Tizen::Base::DateTime GetDateTime(void) const;
70 Tizen::Base::DateTime GetLastModifiedTime(void) const;
73 void Set(const Tizen::Base::DateTime& dateTime, const Tizen::Base::DateTime& modifiedTime, long long fileSize,
74 unsigned long attribute, bool hidden);
81 Tizen::Base::DateTime __creationTime;
82 Tizen::Base::DateTime __lastModifiedTime;
84 friend class FileAttributes;
85 friend class _NormalFile;
86 friend class _FileUtil;
88 }; // _FileAttributesImpl
92 #endif // _FIO_INTERNAL_FILEATTRIBUTES_IMPL_H_