<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /builddir/build/BUILD/libqxt/src/core/qxtlocale.cpp --> <head> <title>QxtLocale Class Reference</title> <link href="stylesheet.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="classes.html"><font color="#004faf">Classes</font></a> · <a href="namespaces.html"><font color="#004faf">Namespaces</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtLocale Class Reference<br /><span class="small-subtitle">[<a href="qxtcore.html">QxtCore</a> module]</span> </h1> <p>The QxtLocale class has some additional data and functionality, missing in <a href="http://doc.qtsoftware.com/4.5/qlocale.html">QLocale</a>. <a href="#details">More...</a></p> <pre> #include <QxtLocale></pre><ul> <li><a href="qxtlocale-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h3>Public Types</h3> <ul> <li><div class="fn"></div>enum <b><a href="qxtlocale.html#Continent-enum">Continent</a></b> { None, NorthAmerica, SouthAmerica, Europe, ..., LastContinent }</li> <li><div class="fn"></div>enum <b><a href="qxtlocale.html#Currency-enum">Currency</a></b> { NoCurrency, Afghani, AlgerianDinar, ArgentinePeso, ..., LastCurrency }</li> </ul> <a name="static-public-members"></a> <h3>Static Public Members</h3> <ul> <li><div class="fn"></div>Continent <b><a href="qxtlocale.html#continentForCountry">continentForCountry</a></b> ( QLocale::Country <i>country</i> )</li> <li><div class="fn"></div>QString <b><a href="qxtlocale.html#continentToName">continentToName</a></b> ( Continent <i>continent</i> )</li> <li><div class="fn"></div>QString <b><a href="qxtlocale.html#countryToISO2Letter">countryToISO2Letter</a></b> ( QLocale::Country <i>country</i> )</li> <li><div class="fn"></div>QString <b><a href="qxtlocale.html#countryToISO3Letter">countryToISO3Letter</a></b> ( QLocale::Country <i>country</i> )</li> <li><div class="fn"></div>Currency <b><a href="qxtlocale.html#currencyForCountry">currencyForCountry</a></b> ( QLocale::Country <i>country</i> )</li> <li><div class="fn"></div>QString <b><a href="qxtlocale.html#currencyToCode">currencyToCode</a></b> ( Currency <i>currency</i> )</li> <li><div class="fn"></div>QString <b><a href="qxtlocale.html#currencyToName">currencyToName</a></b> ( Currency <i>currency</i> )</li> <li><div class="fn"></div>QString <b><a href="qxtlocale.html#currencyToSymbol">currencyToSymbol</a></b> ( Currency <i>currency</i> )</li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QxtLocale class has some additional data and functionality, missing in <a href="http://doc.qtsoftware.com/4.5/qlocale.html">QLocale</a>.</p> <p>QxtLocale defines currencies and continents. Methods are available to gather various mappings and information.</p> <hr /> <h2>Member Type Documentation</h2> <h3 class="fn"><a name="Continent-enum"></a>enum QxtLocale::Continent</h3> <p>This enumerated type is used to specify a language.</p> <h3 class="fn"><a name="Currency-enum"></a>enum QxtLocale::Currency</h3> <p>This enumerated type is used to specify a currency.</p> <hr /> <h2>Member Function Documentation</h2> <h3 class="fn"><a name="continentForCountry"></a><a href="qxtlocale.html#Continent-enum">Continent</a> QxtLocale::continentForCountry ( <a href="http://doc.qtsoftware.com/4.5/qlocale.html#Country-enum">QLocale::Country</a> <i>country</i> ) <tt> [static]</tt></h3> <p>This static method returns the continent for the given <i>country</i>.</p> <h3 class="fn"><a name="continentToName"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtLocale::continentToName ( <a href="qxtlocale.html#Continent-enum">Continent</a> <i>continent</i> ) <tt> [static]</tt></h3> <p>This static method returns the translated name for the given <i>continent</i>.</p> <h3 class="fn"><a name="countryToISO2Letter"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtLocale::countryToISO2Letter ( <a href="http://doc.qtsoftware.com/4.5/qlocale.html#Country-enum">QLocale::Country</a> <i>country</i> ) <tt> [static]</tt></h3> <p>This static method returns the 2-letter ISO 3166 code for the given <i>country</i>.</p> <h3 class="fn"><a name="countryToISO3Letter"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtLocale::countryToISO3Letter ( <a href="http://doc.qtsoftware.com/4.5/qlocale.html#Country-enum">QLocale::Country</a> <i>country</i> ) <tt> [static]</tt></h3> <p>This static method returns the 3-letter ISO 3166 code for the given <i>country</i>.</p> <h3 class="fn"><a name="currencyForCountry"></a><a href="qxtlocale.html#Currency-enum">Currency</a> QxtLocale::currencyForCountry ( <a href="http://doc.qtsoftware.com/4.5/qlocale.html#Country-enum">QLocale::Country</a> <i>country</i> ) <tt> [static]</tt></h3> <p>This static method returns the currency for the given <i>country</i>.</p> <h3 class="fn"><a name="currencyToCode"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtLocale::currencyToCode ( <a href="qxtlocale.html#Currency-enum">Currency</a> <i>currency</i> ) <tt> [static]</tt></h3> <p>This static method returns the 3-letter code for the given <i>currency</i>.</p> <h3 class="fn"><a name="currencyToName"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtLocale::currencyToName ( <a href="qxtlocale.html#Currency-enum">Currency</a> <i>currency</i> ) <tt> [static]</tt></h3> <p>This static method returns the translated name for given <i>currency</i>.</p> <h3 class="fn"><a name="currencyToSymbol"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtLocale::currencyToSymbol ( <a href="qxtlocale.html#Currency-enum">Currency</a> <i>currency</i> ) <tt> [static]</tt></h3> <p>This static method returns the symbol for the given <i>currency</i>.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td align="left">Copyright © 2007-2010 <a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td> <td align="right"><div align="right"> <a href="http://libqxt.org">Qxt</a> 0.6.0</div></td> </tr></table></div></address></body> </html>