Multi diag tools
Public Member Functions | List of all members
Mdt::DeployUtils::FileCopier Class Reference

Provides utilities for files and directories manipulation. More...

#include <FileCopier.h>

Inherits QObject.

Public Member Functions

 FileCopier (QObject *parent=nullptr)
 Constructor.
 
bool createDirectory (const QString &directoryPath)
 Create a directory. More...
 
bool copyLibraries (const LibraryInfoList &libraries, const QString &destinationDirectoryPath)
 Copy a list of libraries to a directory. More...
 
bool copyPlugins (const QtPluginInfoList &plugins, const QString &destinationPluginRootPath)
 Copy a list of Qt plugins to a directory. More...
 
Mdt::Error lastError () const
 Get last error.
 

Detailed Description

Provides utilities for files and directories manipulation.

Definition at line 37 of file FileCopier.h.

Member Function Documentation

bool Mdt::DeployUtils::FileCopier::copyLibraries ( const LibraryInfoList libraries,
const QString &  destinationDirectoryPath 
)

Copy a list of libraries to a directory.

If directory designed by destinationDirectoryPath does not exist, it will first be created using createDirectory().

Precondition
Each library in libraries must have its absolute file path set.

Definition at line 63 of file FileCopier.cpp.

bool Mdt::DeployUtils::FileCopier::copyPlugins ( const QtPluginInfoList plugins,
const QString &  destinationPluginRootPath 
)

Copy a list of Qt plugins to a directory.

If directory designed by destinationPluginRootPath does not exist, it will first be created using createDirectory().

Precondition
Each Qt plugin in plugins must have its absolute file path and directory name set.

Definition at line 77 of file FileCopier.cpp.

bool Mdt::DeployUtils::FileCopier::createDirectory ( const QString &  directoryPath)

Create a directory.

Will create a directory designed by directoryPath if it not allready exists. If parent directories are missing, they will also be created.

Definition at line 38 of file FileCopier.cpp.


The documentation for this class was generated from the following files: