DirectoryGuard Class

class QInstaller::DirectoryGuard

RAII class to create a directory and delete it on destruction unless released. More...

Header: #include <DirectoryGuard>

Public Functions

DirectoryGuard(const QString &path)
~DirectoryGuard()
void release()
QStringList tryCreate()

Detailed Description

Member Function Documentation

[explicit] DirectoryGuard::DirectoryGuard(const QString &path)

Constructs a new guard object for path.

[noexcept] DirectoryGuard::~DirectoryGuard()

Destroys the directory guard instance and removes the guarded directory unless released.

void DirectoryGuard::release()

Marks the directory as released.

QStringList DirectoryGuard::tryCreate()

Tries to create the directory structure. Returns a list of every directory created.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.