<html> <head> <title>class RegistryKey</title> <link rel="stylesheet" type="text/css" href="../cpp.css"> </head> <body> <div id="adc-cppref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="1" cellspacing="0"> <tr align="center" valign="top"> <td class="navimain"> <a href="../index.html">Overview</a> </td> <td class="navimain"> <a href="index.html">Namespace</a> </td> <td class="navimainself"> Class </td> <td class="navimain"> <a href="../index-files/index-1.html">Index</a> </td> <td class="navimain"> <a href="../help.html">Help</a> </td> </tr> </table> <table class="navisub" cellpadding="0" cellspacing="3"> <tr> <td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a> | <font size="-2">STATIC METHODS</font> | <font size="-2">DATA</font> | <font size="-2">STATIC DATA</font></td> </tr> <tr> <td width="20%"><font size="-2">PROTECTED MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <font size="-2">METHODS</font> | <font size="-2">STATIC METHODS</font> | <a href="#prot_vars"><font size="-2"><b>DATA</b></font></a> | <font size="-2">STATIC DATA</font></td> </tr> </table> <hr> <a href="../names/index.html" alt="Global Namespace in C++"><font size="+1"><b>::</b></font></a> <div class="title"><h2>class RegistryKey</h2> </div><hr> <dl> <dt>Base Classes</dt> <dd>None.</dd> </dl> <dl> <dt>Known Derived Classes</dt> <dd>None.</dd> </dl> <br> <table class="flag-table" border="1" cellspacing="0"> <tr> <td width="25%" class="flagname">virtual</td> <td width="25%" class="flagname">abstract</td> <td width="25%" class="flagname">interface</td> <td width="25%" class="flagname">template</td> </tr> <tr> <td class="flagno">NO</td> <td class="flagno">NO</td> <td class="flagno">NO</td> <td class="flagno">NO</td> </tr> </table> <dl> <dt>Summary</dt> <dd>RegistryKey reads or writes information of the underlying key in a registry. </dd> <dt>Description</dt> <dd>Class is inline and use a load on call C-Api. </dd> </dl> <dl> <dt>File</dt> <dd>registry.hxx</dd> </dl> <hr> <dl> <dt class="subtitle"><a name="publ_"><h3>Public Members</h3> </a></dt> <dd><a name="publ_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%"> <tr class="subtitle"> <td colspan="2"><h4>Methods</h4> </td> </tr> <tr> <td> <br> <a href="RegistryKey/o.html#RegistryKey-2223">RegistryKey</a>( );</td> <td width="50%"> Default constructor</td> </tr> <tr> <td> <br> <a href="RegistryKey/o.html#RegistryKey-2224">RegistryKey</a>( const RegistryKey & toCopy );</td> <td width="50%"> Copy constructor</td> </tr> <tr> <td> <br> <a href="RegistryKey/o.html#~RegistryKey-2225">~RegistryKey</a>( );</td> <td width="50%"> Destructor, close the key if it references an open one.</td> </tr> <tr> <td>RegistryKey & <br> <a href="RegistryKey/o.html#operator=-2226">operator=</a>( const RegistryKey & toAssign );</td> <td width="50%"> Assign operator</td> </tr> <tr> <td>sal_Bool <br> <a href="RegistryKey/o.html#isValid-2227">isValid</a>( ) const;</td> <td width="50%"> checks if the key points to a valid registry key.</td> </tr> <tr> <td>sal_Bool <br> <a href="RegistryKey/o.html#isReadOnly-2228">isReadOnly</a>( ) const;</td> <td width="50%"> returns the access mode of the key. </td> </tr> <tr> <td>::rtl::OUString <br> <a href="RegistryKey/o.html#getName-2229">getName</a>( );</td> <td width="50%"> returns the full qualified name of the key beginning with the rootkey.</td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#createKey-2230">createKey</a>( const ::rtl::OUString & keyName, RegistryKey & rNewKey );</td> <td width="50%"> creates a new key or opens a key if the specified key already exists. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#openKey-2231">openKey</a>( const ::rtl::OUString & keyName, RegistryKey & rOpenKey );</td> <td width="50%"> opens the specified key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#openSubKeys-2232">openSubKeys</a>( const ::rtl::OUString & keyName, RegistryKeyArray & rSubKeys );</td> <td width="50%"> opens all subkeys of the specified key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getKeyNames-2233">getKeyNames</a>( const ::rtl::OUString & keyName, RegistryKeyNames & rSubKeyNames );</td> <td width="50%"> returns an array with the names of all subkeys of the specified key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#closeSubKeys-2234">closeSubKeys</a>( RegistryKeyArray & rSubKeys );</td> <td width="50%"> closes all keys specified in the array. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#deleteKey-2235">deleteKey</a>( const ::rtl::OUString & keyName );</td> <td width="50%"> deletes the specified key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#closeKey-2236">closeKey</a>( );</td> <td width="50%"> closes explicitly the current key</td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#setValue-2237">setValue</a>( const ::rtl::OUString & keyName, RegValueType valueType, RegValue pValue, sal_uInt32 valueSize );</td> <td width="50%"> sets a value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#setLongListValue-2238">setLongListValue</a>( const ::rtl::OUString & keyName, sal_Int32 * pValueList, sal_uInt32 len );</td> <td width="50%"> sets a long list value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#setStringListValue-2239">setStringListValue</a>( const ::rtl::OUString & keyName, sal_Char * * pValueList, sal_uInt32 len );</td> <td width="50%"> sets an ascii list value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#setUnicodeListValue-2240">setUnicodeListValue</a>( const ::rtl::OUString & keyName, sal_Unicode * * pValueList, sal_uInt32 len );</td> <td width="50%"> sets an unicode string list value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getValueInfo-2241">getValueInfo</a>( const ::rtl::OUString & keyName, RegValueType * pValueType, sal_uInt32 * pValueSize );</td> <td width="50%"> gets info about type and size of a value. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getValue-2242">getValue</a>( const ::rtl::OUString & keyName, RegValue pValue );</td> <td width="50%"> gets the value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getLongListValue-2243">getLongListValue</a>( const ::rtl::OUString & keyName, RegistryValueList< sal_Int32 > & rValueList );</td> <td width="50%"> gets a long list value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getStringListValue-2244">getStringListValue</a>( const ::rtl::OUString & keyName, RegistryValueList< sal_Char * > & rValueList );</td> <td width="50%"> gets an ascii list value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getUnicodeListValue-2245">getUnicodeListValue</a>( const ::rtl::OUString & keyName, RegistryValueList< sal_Unicode * > & rValueList );</td> <td width="50%"> gets a unicode value of a key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#createLink-2246">createLink</a>( const ::rtl::OUString & linkName, const ::rtl::OUString & linkTarget );</td> <td width="50%"> creates a new link with the specified name and target. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#deleteLink-2247">deleteLink</a>( const ::rtl::OUString & linkName );</td> <td width="50%"> deletes an existing link. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getKeyType-2248">getKeyType</a>( const ::rtl::OUString & name, RegKeyType * pKeyType ) const;</td> <td width="50%"> returns the type of the specified key if it is a link or a real key. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getLinkTarget-2249">getLinkTarget</a>( const ::rtl::OUString & linkName, ::rtl::OUString & rLinkTarget ) const;</td> <td width="50%"> returns the target of the specified link. </td> </tr> <tr> <td>RegError <br> <a href="RegistryKey/o.html#getResolvedKeyName-2250">getResolvedKeyName</a>( const ::rtl::OUString & keyName, sal_Bool firstLinkOnly, ::rtl::OUString & rResolvedName ) const;</td> <td width="50%"> resolves all or only the first link of a keyname. </td> </tr> <tr> <td>::rtl::OUString <br> <a href="RegistryKey/o.html#getRegistryName-2251">getRegistryName</a>( );</td> <td width="50%"> returns the name of the registry in which the key is defined.</td> </tr> <tr> <td>Registry <br> <a href="RegistryKey/o.html#getRegistry-2252">getRegistry</a>( ) const;</td> <td width="50%"> returns the registry in which the key is defined.</td> </tr> </table> <hr> </dd> </dl> <dl> <dt class="subtitle"><a name="prot_"><h3>Protected Members</h3> </a></dt> <dd><a name="prot_vars"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%"> <tr class="subtitle"> <td colspan="2"><h4>Data</h4> </td> </tr> <tr bgcolor="white"> <td><a href="c-Registry.html">Registry</a> <a href="RegistryKey/d.html#m_registry"><strong>m_registry;</strong></a></td> <td>stores the registry on which this key works</td> </tr> <tr bgcolor="white"> <td><a href="t-RegKeyHandle.html">RegKeyHandle</a> <a href="RegistryKey/d.html#m_hImpl"><strong>m_hImpl;</strong></a></td> <td>stores the current key handle of this key</td> </tr> </table> <hr> </dd> </dl> <a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-cppref" --> </body> </html>