Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::FileDetails::Translation Struct Reference

A structure used to represent a particular translation of the string table section of a file's details. It encapsulates a language and code page identifier pair. More...

#include <qx/windows/qx-filedetails.h>

Collaboration diagram for Qx::FileDetails::Translation:
[legend]

Public Attributes

QString codePage
 
QString language
 

Friends

QX_WINDOWS_EXPORT bool operator== (const Translation &lhs, const Translation &rhs) noexcept
 
QX_WINDOWS_EXPORT size_t qHash (const Translation &key, size_t seed) noexcept
 

Detailed Description

Note
Handling translations via code pages is deprecated and discouraged when created new Windows applications; however, file details are still encoded using this method for backwards compatibility, and therefore must be parsed the same way.

Friends And Related Symbol Documentation

◆ operator==

QX_WINDOWS_EXPORT bool operator== ( const Translation & lhs,
const Translation & rhs )
friend

Returns true if the target and destination of lhs are the same as in rhs; otherwise returns false

◆ qHash

QX_WINDOWS_EXPORT size_t qHash ( const Translation & key,
size_t seed )
friend

Hashes the download task key with the initial seed.

Member Data Documentation

◆ codePage

QString Qx::FileDetails::Translation::codePage

The code page ID of the translation as a hexadecimal string.

See also
Code Page Identifiers, VersionInfo Resource Code Page ID.

◆ language

QString Qx::FileDetails::Translation::language

The language ID of the translation as a hexadecimal string.

See also
Language Identifiers, VersionInfo Resource Language ID.

The documentation for this struct was generated from the following files: