[−][src]Struct qt_core::q_file_device::Permission
This enum is used by the permission() function to report the permissions and ownership of a file. The values may be OR-ed together to test multiple permissions and ownership values.
C++ enum: QFileDevice::Permission
.
This enum is used by the permission() function to report the permissions and ownership of a file. The values may be OR-ed together to test multiple permissions and ownership values.
Warning: Because of differences in the platforms supported by Qt, the semantics of ReadUser, WriteUser and ExeUser are platform-dependent: On Unix, the rights of the owner of the file are returned and on Windows the rights of the current user are returned. This behavior might change in a future Qt version.
Note: On NTFS file systems, ownership and permissions checking is disabled by default for performance reasons. To enable it, include the following line:
extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
Permission checking is then turned on and off by incrementing and decrementing qt_ntfs_permission_lookup
by 1.
qt_ntfs_permission_lookup++; // turn checking on qt_ntfs_permission_lookup--; // turn it off again
The Permissions type is a typedef for QFlags<Permission>. It stores an OR combination of Permission values.
Methods
impl Permission
[src]
impl Permission
[src]
pub const ReadOwner: Permission
[src]
The file is readable by the owner of the file. (C++ enum variant: ReadOwner = 16384
)
pub const WriteOwner: Permission
[src]
The file is writable by the owner of the file. (C++ enum variant: WriteOwner = 8192
)
pub const ExeOwner: Permission
[src]
The file is executable by the owner of the file. (C++ enum variant: ExeOwner = 4096
)
pub const ReadUser: Permission
[src]
The file is readable by the user. (C++ enum variant: ReadUser = 1024
)
pub const WriteUser: Permission
[src]
The file is writable by the user. (C++ enum variant: WriteUser = 512
)
pub const ExeUser: Permission
[src]
The file is executable by the user. (C++ enum variant: ExeUser = 256
)
pub const ReadGroup: Permission
[src]
The file is readable by the group. (C++ enum variant: ReadGroup = 64
)
pub const WriteGroup: Permission
[src]
The file is writable by the group. (C++ enum variant: WriteGroup = 32
)
pub const ExeGroup: Permission
[src]
The file is executable by the group. (C++ enum variant: ExeGroup = 16
)
pub const ReadOther: Permission
[src]
The file is readable by anyone. (C++ enum variant: ReadOther = 4
)
pub const WriteOther: Permission
[src]
The file is writable by anyone. (C++ enum variant: WriteOther = 2
)
pub const ExeOther: Permission
[src]
The file is executable by anyone. (C++ enum variant: ExeOther = 1
)
Trait Implementations
impl<T: Into<QFlags<Permission>>> BitOr<T> for Permission
[src]
type Output = QFlags<Permission>
The resulting type after applying the |
operator.
fn bitor(self, rhs: T) -> QFlags<Permission>
[src]
impl Clone for Permission
[src]
fn clone(&self) -> Permission
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Permission
[src]
impl Debug for Permission
[src]
impl Eq for Permission
[src]
impl From<Permission> for c_int
[src]
fn from(value: Permission) -> Self
[src]
impl From<Permission> for QFlags<Permission>
[src]
fn from(value: Permission) -> Self
[src]
impl From<i32> for Permission
[src]
impl PartialEq<Permission> for Permission
[src]
fn eq(&self, other: &Permission) -> bool
[src]
fn ne(&self, other: &Permission) -> bool
[src]
impl StructuralEq for Permission
[src]
impl StructuralPartialEq for Permission
[src]
Auto Trait Implementations
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,