mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
refs #777 Utilities for reading/writing files while holding a QLockFile.
This commit is contained in:
committed by
Klaus Basan
parent
cf9b6f039c
commit
7f422eb3e4
@@ -41,12 +41,21 @@ namespace BlackMisc
|
||||
//! Write string to text file
|
||||
static bool writeStringToFile(const QString &content, const QString &fileNameAndPath);
|
||||
|
||||
//! Write string to file, with a lock so two applications can't access at the same time
|
||||
static bool writeStringToLockedFile(const QString &content, const QString &fileNameAndPath);
|
||||
|
||||
//! Read file into string
|
||||
static QString readFileToString(const QString &fileNameAndPath);
|
||||
|
||||
//! Read file into string, with a lock so two applications can't access at the same time
|
||||
static QString readLockedFileToString(const QString &fileNameAndPath);
|
||||
|
||||
//! Read file into string
|
||||
static QString readFileToString(const QString &filePath, const QString &fileName);
|
||||
|
||||
//! Read file into string, with a lock so two applications can't access at the same time
|
||||
static QString readLockedFileToString(const QString &filePath, const QString &fileName);
|
||||
|
||||
//! Write string to text file in background
|
||||
static bool writeStringToFileInBackground(const QString &content, const QString &fileNameAndPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user