mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
refs #144 , improved file deleter , no dependency of QObject anymore, now using single deleter object
This commit is contained in:
@@ -3,6 +3,17 @@
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
void CFileDeleter::addFile(const QString &file)
|
||||
{
|
||||
if (file.isEmpty()) return;
|
||||
if (!this->m_fileNames.contains(file)) this->m_fileNames.append(file);
|
||||
}
|
||||
|
||||
void CFileDeleter::addFileForDeletion(const QString &file)
|
||||
{
|
||||
CFileDeleter::fileDeleter().addFile(file);
|
||||
}
|
||||
|
||||
CFileDeleter::~CFileDeleter()
|
||||
{
|
||||
foreach(const QString fn, this->m_fileNames)
|
||||
|
||||
Reference in New Issue
Block a user