diff --git a/docs/annotated.html b/docs/annotated.html index 88491a3..511b78e 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -70,9 +70,9 @@ $(function() {
_cpu_info_t
for details! _os_version_t
for details! j |
j |
t |
h |
+ MuldeR's Utilities for Qt
+
+ MUtilities
+ |
+
OS version information namespace. +More...
++Classes | |
struct | _os_version_t |
This struct contains version information about the underlaying operating system. See _os_version_t for details! More... | |
+Typedefs | |
+typedef struct MUtils::OS::Version::_os_version_t | os_version_t |
This struct contains version information about the underlaying operating system. See _os_version_t for details! | |
+Enumerations | |
enum | os_type_t { OS_UNKNOWN = 0, +OS_WINDOWS = 1 + } |
This enumeration specifies the type of the underlaying operating system. More... | |
+Variables | |
MUTILS_API const os_version_t | WINDOWS_WIN2K |
Operating system version constant. More... | |
MUTILS_API const os_version_t | WINDOWS_WINXP |
Operating system version constant. More... | |
MUTILS_API const os_version_t | WINDOWS_XPX64 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | WINDOWS_VISTA |
Operating system version constant. More... | |
MUTILS_API const os_version_t | WINDOWS_WIN70 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | WINDOWS_WIN80 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | WINDOWS_WIN81 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | WINDOWS_WN100 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | UNKNOWN_OPSYS |
Operating system version constant. More... | |
OS version information namespace.
+enum MUtils::OS::Version::os_type_t | +
MUTILS_API const os_version_t MUtils::OS::Version::UNKNOWN_OPSYS | +
Operating system version constant.
+Unknown operating system version
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_VISTA | +
Operating system version constant.
+Microsoft(R) Windows Vista
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_WIN2K | +
Operating system version constant.
+Microsoft(R) Windows 2000
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_WIN70 | +
Operating system version constant.
+Microsoft(R) Windows 7
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_WIN80 | +
Operating system version constant.
+Microsoft(R) Windows 8
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_WIN81 | +
Operating system version constant.
+Microsoft(R) Windows 8.1
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_WINXP | +
Operating system version constant.
+Microsoft(R) Windows XP
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_WN100 | +
Operating system version constant.
+Microsoft(R) Windows 10
+ +MUTILS_API const os_version_t MUtils::OS::Version::WINDOWS_XPX64 | +
Operating system version constant.
+Microsoft(R) Windows XP x64-edition
+ +
+ MuldeR's Utilities for Qt
+
+ MUtilities
+ |
+
MUtils OS-specific functions namespace. +More...
++Namespaces | |
Version | |
OS version information namespace. | |
+Typedefs | |
+typedef QMap< QString, QString > | ArgumentMap |
+typedef bool(* | progress_callback_t) (const double &progress, void *const userData) |
+Enumerations | |
enum | known_folder_t { FOLDER_LOCALAPPDATA = 0, +FOLDER_PROGRAMFILES = 2, +FOLDER_SYSTEMFOLDER = 3, +FOLDER_SYSTROOT_DIR = 4 + } |
This enumeration specifies "known" folder identifiers. More... | |
enum | network_type_t { NETWORK_TYPE_ERR = 0, +NETWORK_TYPE_NON = 1, +NETWORK_TYPE_YES = 2 + } |
This enumeration specifies network connection types. More... | |
+Functions | |
+MUTILS_API void | system_message_nfo (const wchar_t *const title, const wchar_t *const text) |
+MUTILS_API void | system_message_wrn (const wchar_t *const title, const wchar_t *const text) |
+MUTILS_API void | system_message_err (const wchar_t *const title, const wchar_t *const text) |
+MUTILS_API const QStringList | crack_command_line (const QString &command_line=QString()) |
+MUTILS_API const ArgumentMap & | arguments (void) |
+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) |
+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) |
+MUTILS_API const Version::os_version_t & | os_version (void) |
+MUTILS_API const char * | os_friendly_name (const MUtils::OS::Version::os_version_t &os_version) |
+MUTILS_API const bool & | running_on_wine (void) |
+MUTILS_API const QString & | known_folder (known_folder_t folder_id) |
+MUTILS_API QDate | current_date (void) |
+MUTILS_API quint64 | current_file_time (void) |
+MUTILS_API bool | is_elevated (bool *bIsUacEnabled=NULL) |
+MUTILS_API bool | user_is_admin (void) |
MUTILS_API int | network_status (void) |
Check the network status. More... | |
+MUTILS_API bool | handle_os_message (const void *const message, long *result) |
MUTILS_API void | sleep_ms (const size_t &duration) |
Suspend calling thread. More... | |
+MUTILS_API bool | is_executable_file (const QString &path) |
+MUTILS_API bool | is_library_file (const QString &path) |
+MUTILS_API bool | is_hibernation_supported (void) |
+MUTILS_API bool | shutdown_computer (const QString &message, const unsigned long timeout, const bool forceShutdown, const bool hibernate) |
+MUTILS_API bool | free_diskspace (const QString &path, quint64 &freeSpace) |
+MUTILS_API bool | shell_open (const QWidget *parent, const QString &url, const bool explore=false) |
+MUTILS_API bool | shell_open (const QWidget *parent, const QString &url, const QString ¶meters, const QString &directory, const bool explore=false) |
+MUTILS_API bool | open_media_file (const QString &mediaFilePath) |
+MUTILS_API bool | change_process_priority (const int priority) |
+MUTILS_API bool | change_process_priority (const QProcess *proc, const int priority) |
+MUTILS_API quint32 | process_id (void) |
+MUTILS_API quint32 | process_id (const QProcess *const proc) |
+MUTILS_API quint32 | thread_id (void) |
+MUTILS_API quint32 | thread_id (const QProcess *const proc) |
+MUTILS_API bool | suspend_process (const QProcess *proc, const bool suspend) |
+MUTILS_API bool | setup_timer_resolution (const quint32 &interval=1) |
+MUTILS_API bool | reset_timer_resolution (const quint32 &interval=1) |
+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()) |
+MUTILS_API bool | check_key_state_esc (void) |
+MUTILS_API void | shell_change_notification (void) |
+MUTILS_API QString | get_file_path (const int &fd) |
+MUTILS_API bool | wow64fsredir_disable (void *oldValue) |
+MUTILS_API bool | wow64fsredir_revert (void *oldValue) |
+MUTILS_API QString | get_envvar (const QString &name) |
+MUTILS_API bool | set_envvar (const QString &name, const QString &value) |
+MUTILS_API void | check_debugger (void) |
+MUTILS_API void | fatal_exit (const wchar_t *const errorMessage) |
MUtils OS-specific functions namespace.
+enum MUtils::OS::known_folder_t | +
enum MUtils::OS::network_type_t | +
MUTILS_API int MUtils::OS::network_status | +( | +void | +) | ++ |
Check the network status.
+Checks whether the computer is currently connected to a network. Note that an existing network connection does not necessarily imply actual Internet access!
+OS::network_type_t
value. MUTILS_API void MUtils::OS::sleep_ms | +( | +const size_t & | +duration | ) | ++ |
Suspend calling thread.
+This function suspends the calling thread. The thread will give up its current time-slice and enter "sleeping" state. The thread will remain in "sleeping" for the specified duration. After the specified duration has elapsed, the thread will be resumed.
+Note that it depends on the operating system's scheduling decisions, when the thread will actually be allowed to execute again! While the thread is still in "sleeping" state, it can not be selected for execution by the operating system's scheduler. Once the thread is no longer in "sleeping" state, i.e. the specified period has elapsed, the thread can be selected for execution by the operating system's scheduler again - but this does not need to happen immediately! The scheduler decides which thread is allowed to execute next, taking into consideration thread priorities.
+duration | The amount of time that the thread will be suspended, in milliseconds. A value of 0 means that the thread will not actually enter "sleeping" state, but it will still give up its current time-slice! |
Classes |
+ MuldeR's Utilities for Qt
+
+ MUtilities
+ |
+
This file contains function that wrap OS-specific functionality in a platform-independent way. +More...
+#include <MUtils/Global.h>
#include <QString>
#include <QMap>
#include <QDate>
#include <QWidget>
Go to the source code of this file.
++Classes | |
struct | MUtils::OS::Version::_os_version_t |
This struct contains version information about the underlaying operating system. See _os_version_t for details! More... | |
+Namespaces | |
MUtils | |
Global MUtils namespace. | |
MUtils::OS | |
MUtils OS-specific functions namespace. | |
MUtils::OS::Version | |
OS version information namespace. | |
+Typedefs | |
+typedef struct MUtils::OS::Version::_os_version_t | MUtils::OS::Version::os_version_t |
This struct contains version information about the underlaying operating system. See _os_version_t for details! | |
+typedef QMap< QString, QString > | MUtils::OS::ArgumentMap |
+typedef bool(* | MUtils::OS::progress_callback_t) (const double &progress, void *const userData) |
+Enumerations | |
enum | MUtils::OS::Version::os_type_t { MUtils::OS::Version::OS_UNKNOWN = 0, +MUtils::OS::Version::OS_WINDOWS = 1 + } |
This enumeration specifies the type of the underlaying operating system. More... | |
enum | MUtils::OS::known_folder_t { MUtils::OS::FOLDER_LOCALAPPDATA = 0, +MUtils::OS::FOLDER_PROGRAMFILES = 2, +MUtils::OS::FOLDER_SYSTEMFOLDER = 3, +MUtils::OS::FOLDER_SYSTROOT_DIR = 4 + } |
This enumeration specifies "known" folder identifiers. More... | |
enum | MUtils::OS::network_type_t { MUtils::OS::NETWORK_TYPE_ERR = 0, +MUtils::OS::NETWORK_TYPE_NON = 1, +MUtils::OS::NETWORK_TYPE_YES = 2 + } |
This enumeration specifies network connection types. More... | |
+Functions | |
+MUTILS_API void | MUtils::OS::system_message_nfo (const wchar_t *const title, const wchar_t *const text) |
+MUTILS_API void | MUtils::OS::system_message_wrn (const wchar_t *const title, const wchar_t *const text) |
+MUTILS_API void | MUtils::OS::system_message_err (const wchar_t *const title, const wchar_t *const text) |
+MUTILS_API const QStringList | MUtils::OS::crack_command_line (const QString &command_line=QString()) |
+MUTILS_API const ArgumentMap & | MUtils::OS::arguments (void) |
+MUTILS_API bool | MUtils::OS::copy_file (const QString &sourcePath, const QString &outputPath, const bool &overwrite=true, const progress_callback_t callback=NULL, void *const userData=NULL) |
+MUTILS_API bool | MUtils::OS::get_file_version (const QString fileName, quint16 *const major=NULL, quint16 *const minor=NULL, quint16 *const patch=NULL, quint16 *const build=NULL) |
+MUTILS_API const Version::os_version_t & | MUtils::OS::os_version (void) |
+MUTILS_API const char * | MUtils::OS::os_friendly_name (const MUtils::OS::Version::os_version_t &os_version) |
+MUTILS_API const bool & | MUtils::OS::running_on_wine (void) |
+MUTILS_API const QString & | MUtils::OS::known_folder (known_folder_t folder_id) |
+MUTILS_API QDate | MUtils::OS::current_date (void) |
+MUTILS_API quint64 | MUtils::OS::current_file_time (void) |
+MUTILS_API bool | MUtils::OS::is_elevated (bool *bIsUacEnabled=NULL) |
+MUTILS_API bool | MUtils::OS::user_is_admin (void) |
MUTILS_API int | MUtils::OS::network_status (void) |
Check the network status. More... | |
+MUTILS_API bool | MUtils::OS::handle_os_message (const void *const message, long *result) |
MUTILS_API void | MUtils::OS::sleep_ms (const size_t &duration) |
Suspend calling thread. More... | |
+MUTILS_API bool | MUtils::OS::is_executable_file (const QString &path) |
+MUTILS_API bool | MUtils::OS::is_library_file (const QString &path) |
+MUTILS_API bool | MUtils::OS::is_hibernation_supported (void) |
+MUTILS_API bool | MUtils::OS::shutdown_computer (const QString &message, const unsigned long timeout, const bool forceShutdown, const bool hibernate) |
+MUTILS_API bool | MUtils::OS::free_diskspace (const QString &path, quint64 &freeSpace) |
+MUTILS_API bool | MUtils::OS::shell_open (const QWidget *parent, const QString &url, const bool explore=false) |
+MUTILS_API bool | MUtils::OS::shell_open (const QWidget *parent, const QString &url, const QString ¶meters, const QString &directory, const bool explore=false) |
+MUTILS_API bool | MUtils::OS::open_media_file (const QString &mediaFilePath) |
+MUTILS_API bool | MUtils::OS::change_process_priority (const int priority) |
+MUTILS_API bool | MUtils::OS::change_process_priority (const QProcess *proc, const int priority) |
+MUTILS_API quint32 | MUtils::OS::process_id (void) |
+MUTILS_API quint32 | MUtils::OS::process_id (const QProcess *const proc) |
+MUTILS_API quint32 | MUtils::OS::thread_id (void) |
+MUTILS_API quint32 | MUtils::OS::thread_id (const QProcess *const proc) |
+MUTILS_API bool | MUtils::OS::suspend_process (const QProcess *proc, const bool suspend) |
+MUTILS_API bool | MUtils::OS::setup_timer_resolution (const quint32 &interval=1) |
+MUTILS_API bool | MUtils::OS::reset_timer_resolution (const quint32 &interval=1) |
+MUTILS_API bool | MUtils::OS::set_file_time (const QFile &file, const QDateTime &created=QDateTime(), const QDateTime &modified=QDateTime(), const QDateTime &accessed=QDateTime()) |
+MUTILS_API bool | MUtils::OS::set_file_time (const QString &path, const QDateTime &created=QDateTime(), const QDateTime &modified=QDateTime(), const QDateTime &accessed=QDateTime()) |
+MUTILS_API bool | MUtils::OS::check_key_state_esc (void) |
+MUTILS_API void | MUtils::OS::shell_change_notification (void) |
+MUTILS_API QString | MUtils::OS::get_file_path (const int &fd) |
+MUTILS_API bool | MUtils::OS::wow64fsredir_disable (void *oldValue) |
+MUTILS_API bool | MUtils::OS::wow64fsredir_revert (void *oldValue) |
+MUTILS_API QString | MUtils::OS::get_envvar (const QString &name) |
+MUTILS_API bool | MUtils::OS::set_envvar (const QString &name, const QString &value) |
+MUTILS_API void | MUtils::OS::check_debugger (void) |
+MUTILS_API void | MUtils::OS::fatal_exit (const wchar_t *const errorMessage) |
+Variables | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_WIN2K |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_WINXP |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_XPX64 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_VISTA |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_WIN70 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_WIN80 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_WIN81 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::WINDOWS_WN100 |
Operating system version constant. More... | |
MUTILS_API const os_version_t | MUtils::OS::Version::UNKNOWN_OPSYS |
Operating system version constant. More... | |
This file contains function that wrap OS-specific functionality in a platform-independent way.
+This struct contains version information about the underlaying operating system. See _os_version_t
for details!
+ More...
#include <OSSupport.h>
Public Member Functions | operator&l
Public Attributes
-unsigned int | type | | type | +
The type of the underlaying operating system, as os_type_t | |
-unsigned int | versionMajor | versionMajor | +
The major version of the underlaying operating system. | |
-unsigned int | versionMinor | versionMinor | +
The minor version of the underlaying operating system. | |
-unsigned int | versionBuild | versionBuild | +
The build number of the underlaying operating system. | |
bool | overrideFlag |
This struct contains version information about the underlaying operating system. See _os_version_t
for details!
CMUtils::CPUFetaures::_cpu_info_t | Struct to hold information about the CPU. See _cpu_info_t for details! |
CMUtils::OS::Version::_os_version_t | |
CMUtils::OS::Version::_os_version_t | This struct contains version information about the underlaying operating system. See _os_version_t for details! |
CMUtils::Hash::Hash | This abstract class specifies the generic interface for all support hash algorithms |
CMUtils::IPCChannel | |
CMUtils::JobObject | This class represents a job object |
+ MuldeR's Utilities for Qt
+
+ MUtilities
+ |
+
+ MuldeR's Utilities for Qt
+
+ MUtilities
+ |
+
▼NMUtils | Global MUtils namespace |
NCPUFetaures | This namespace contains functions and constants for detecting CPU information |
▼NOS | MUtils OS-specific functions namespace |
NVersion | OS version information namespace |