}
}
#elif defined _WIN32
+ (void) logger;
rc = ";" + path.mid(2);
#endif
return rc;
}
}
#elif defined _WIN32
+ (void) tempoararyMounted;
QStringList drives = ReFileUtils::findRootDirs();
QStringList::const_iterator it;
for (it = drives.cbegin(); it != drives.cend(); ++it){
if (QFileInfo(markerFile).exists()){
if (rc.isEmpty())
rc = ReFileUtils::parentOf(markerFile);
- ReConfig config(I18N::s2b(markerFile), true, logger);
+ ReConfig config(I18N::s2b(markerFile), true, mainWindow.logger());
if (! config.asString((item.m_uid + ".created").toLatin1(),
"").isEmpty()){
rc = ReFileUtils::parentOf(markerFile);
}
}
#elif defined _WIN32
-
+ (void) backupPath;
+ (void) logger;
#endif
return rc;
}
}
}
}
+#ifdef __linux__
m_mainWindow->unmount(temporaryMounted);
+#endif
FILETRACE_IT(s_traceConfig, (s_traceConfig.m_fp,
"<Configuration::readBackupDate\n"));
return rc;
* Loads the mount and block device info.
*/
void MainWindow::loadOsInfo(){
+#ifdef __linux__
ReMountInfo::instance(true);
ReBlockDevices::instance(true);
+#endif
}
/**
BackupEngine::m_verboseLevel = (ReVerbose_t) ui->comboBoxVerbose->currentIndex();
if (! isStart){
setStatusMessage(LOG_INFO, "");
+#ifdef __linux__
unmount("");
+#endif
}
}
onSaveConfig();
}
+#ifdef __linux__
/**
* Unmounts the current target device.
*
.arg(QString::fromUtf8(answer)));
}
}
-
+#endif
void setLastFile(const QString& lastFile);
void setLastFile(const QString& lastDir, const QString& lastFile);
void saveState();
+#ifdef __linux__
void unmount(const QString& device);
+#endif
QString lastDirectory() const;
void setLastTarget(const QString& lastTarget);
int ReFileUtils::m_maxCharSet = 128;
bool ReFileUtils::m_ignoreSetUidError = false;
QDateTime ReFileUtils::m_undefinedTime;
+#ifdef __linux__
ReMountInfo* ReMountInfo::m_instance = NULL;
ReBlockDevices* ReBlockDevices::m_instance = NULL;
-
+#endif
/**
* Constructor.
*/
bool setUser){
QString rc;
#if defined _WIN32
+ (void) setUser;
+ (void) buffer;
+ (void) sourceInfo;
const ushort* src = source.utf16();
const ushort* trg = target.utf16();
if (! CopyFile(reinterpret_cast<const WCHAR*>(src),
_unlink(rc.constData());
return rc;
}
-#if 0
+#ifdef WIN32
/**
* Converts the unix time (milliseconds from 1.1.1970) to the WIN32 filetime.
*
QByteArray fullName;
for (int ix = m_currentNo; ix > 0 && ix > m_currentNo - 10; ix--){
fullName = nameOf(ix);
- unlink(fullName);
+ _unlink(fullName);
}
}
}
if (m_currentNo - m_maxCount > 0){
fullName = nameOf(m_currentNo - m_maxCount);
- unlink(fullName.constData());
+ _unlink(fullName.constData());
}
}
while (!rc && end != NULL) {
if (end - list == phraseLength) {
if (ignoreCase)
- rc = strnicmp(list, phrase, phraseLength) == 0;
+ rc = _strnicmp(list, phrase, phraseLength) == 0;
else
rc = strncmp(list, phrase, end - list) == 0;
if (rc)
}
if (!rc) {
if (ignoreCase)
- rc = strnicmp(list, phrase, end - list) == 0;
+ rc = _strnicmp(list, phrase, end - list) == 0;
else
rc = strncmp(list, phrase, end - list) == 0;
}
class ReSettings {
public:
- static QString TRUE;
- static QString FALSE;
+ static QString sTRUE;
+ static QString sFALSE;
public:
ReSettings(const QString& path, const QString& prefix, ReLogger* logger);
~ReSettings();