///////////////////////////////////////////////////////////////////////////////
// MuldeR's Utilities for Qt
-// Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <QMap>
#include <QDate>
+//Forward declaration
+class QFile;
+
///////////////////////////////////////////////////////////////////////////////
namespace MUtils
//CLI Arguments
typedef QMap<QString,QString> ArgumentMap;
+ MUTILS_API const QStringList crack_command_line(const QString &command_line = QString());
MUTILS_API const ArgumentMap &arguments(void);
//Copy file
- MUTILS_API bool copy_file(const QString &sourcePath, const QString &outputPath, const bool &overwrite = true);
+ typedef bool (*progress_callback_t)(const double &progress, void *const userData);
+ MUTILS_API bool copy_file(const QString &sourcePath, const QString &outputPath, const bool &overwrite = true, const progress_callback_t callback = NULL, void *const userData = NULL);
+
+ //Get file version
+ MUTILS_API bool get_file_version(const QString fileName, quint16 *const major = NULL, quint16 *const minor = NULL, quint16 *const patch = NULL, quint16 *const build = NULL);
//Get the OS version
MUTILS_API const Version::os_version_t &os_version(void);
MUTILS_API bool change_process_priority(const QProcess *proc, const int priority);
//Process ID
- MUTILS_API quint32 process_id(const QProcess *proc);
+ MUTILS_API quint32 process_id(const QProcess *const proc);
+
+ //Suspend or resume processv
+ MUTILS_API bool suspend_process(const QProcess *proc, const bool suspend);
//System timer resolution
MUTILS_API bool setup_timer_resolution(const quint32 &interval = 1);
MUTILS_API bool reset_timer_resolution(const quint32 &interval = 1);
+ //Set file time
+ MUTILS_API bool set_file_time(const QFile &file, const QDateTime &created = QDateTime(), const QDateTime &modified = QDateTime(), const QDateTime &accessed = QDateTime());
+ MUTILS_API bool set_file_time(const QString &path, const QDateTime &created = QDateTime(), const QDateTime &modified = QDateTime(), const QDateTime &accessed = QDateTime());
+
+ //Keyboard support
MUTILS_API bool check_key_state_esc(void);
+ //Shell notification
+ MUTILS_API void shell_change_notification(void);
+
+ //Get file path from descriptor
+ MUTILS_API QString get_file_path(const int &fd);
+
+ //WOW64 redirection
+ MUTILS_API bool wow64fsredir_disable(void *oldValue);
+ MUTILS_API bool wow64fsredir_revert (void *oldValue);
+
//Check if debugger is present
MUTILS_API void check_debugger(void);