|
LMMS
|
#include <juce_AndroidDocument.h>
Public Member Functions | |
| AndroidDocumentInfo ()=default | |
| bool | exists () const |
| bool | isDirectory () const |
| bool | isFile () const |
| bool | canRead () const |
| bool | canWrite () const |
| bool | canDelete () const |
| bool | canCreateChildren () const |
| bool | canRename () const |
| bool | canCopy () const |
| bool | canMove () const |
| bool | isVirtual () const |
| String | getName () const |
| String | getType () const |
| int64 | getLastModified () const |
| bool | isLastModifiedValid () const |
| int64 | getSizeInBytes () const |
| bool | isSizeInBytesValid () const |
Private Types | |
| enum | { flagSupportsWrite = 0x0002 , flagSupportsDelete = 0x0004 , flagDirSupportsCreate = 0x0008 , flagSupportsRename = 0x0040 , flagSupportsCopy = 0x0080 , flagSupportsMove = 0x0100 , flagVirtualDocument = 0x0200 } |
| enum | { flagExists = 1 << 0 , flagValidModified = 1 << 1 , flagValidSize = 1 << 2 , flagHasReadPermission = 1 << 3 , flagHasWritePermission = 1 << 4 } |
Private Member Functions | |
| AndroidDocumentInfo (Args) | |
| bool | isNativeFlagSet (int flag) const |
| bool | isJuceFlagSet (int flag) const |
Private Attributes | |
| String | name |
| String | type |
| int64 | lastModified = 0 |
| int64 | sizeInBytes = 0 |
| int | nativeFlags = 0 |
| int | juceFlags = 0 |
Some information about a document.
Each instance represents some information about the document at the point when the instance was created.
Instance information is not updated automatically. If you think some file information may have changed, create a new instance.
@tags{Core}
|
private |
|
private |
|
default |
|
explicitprivate |
|
inline |
True if this document can be copied.
|
inline |
True if this is a directory and adding child documents is supported.
|
inline |
True if this document can be removed completely from the filesystem.
|
inline |
True if this document can be moved.
|
inline |
True if this process has permission to read this file.
If this returns true, and the AndroidDocument refers to a file rather than a directory, then AndroidDocument::createInputStream should work on this document.
|
inline |
True if this document can be renamed.
|
inline |
True if this is a document that can be written, or a directory that can be modified.
If this returns true, and the AndroidDocument refers to a file rather than a directory, then AndroidDocument::createOutputStream should work on this document.
|
inline |
True if this file really exists.
|
inline |
Timestamp when a document was last modified, in milliseconds since January 1, 1970 00:00:00.0 UTC.
Use isLastModifiedValid() to determine whether or not the result of this function is valid.
|
inline |
The user-facing name.
This may or may not contain a file extension. For files identified by a URL, the MIME type is stored separately.
|
inline |
The size of the document in bytes, if known.
Use isSizeInBytesValid() to determine whether or not the result of this function is valid.
|
inline |
The MIME type of this document.
| bool juce::AndroidDocumentInfo::isDirectory | ( | ) | const |
True if this is a directory rather than a file.
|
inline |
True if this is a file rather than a directory.
|
inlineprivate |
|
inline |
True if the filesystem provided a modification time.
|
inlineprivate |
|
inline |
True if the filesystem provided a size in bytes.
|
inline |
True if this document isn't a physical file on storage.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |