Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 110492f5122731329f0db69a1df590c3 > files > 4897

kdepimlibs-apidocs-4.10.5-1.fc18.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>KPIMUtils::LinkLocator Class Reference</title>
<style type="text/css">
  .cp-doNotDisplay { display: none; }
  @media aural, braille, handheld, tty { .cp-doNotDisplay { display: inline; speak: normal; }}
  .cp-edit { text-align: right; }
  @media print, embossed { .cp-edit { display: none; }}
</style>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <link rel="meta" href="http://www.kde.org/labels.rdf" type="application/rdf+xml" title="ICRA labels" />
  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />
  <meta name="no-email-collection" content="http://www.unspam.com/noemailcollection" />
  <script type="text/javascript" src="jquery.js"></script>
  <script type="text/javascript" src="dynsections.js"></script>
  <link rel="shortcut icon" href="../../favicon.ico" /><link rel="icon" href="../../favicon.ico" />
  <link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../../kde.css" />
  <link rel="stylesheet" media="print, embossed" type="text/css" href="../../print.css" />
  <link rel="stylesheet" media="screen, aural, handheld, tty, braille" type="text/css" title="Flat" href="../../flat.css" />
  <link rel="stylesheet" type="text/css" href="../../doxygen.css" />
  <link rel="stylesheet" type="text/css" href="../../tabs.css" />
</head>
<body>
<ul class="cp-doNotDisplay">
  <li><a href="#cp-content" accesskey="2">Skip to content</a></li>
  <li><a href="#cp-menu" accesskey="5">Skip to link menu</a></li>
</ul>
<div id="container">
<div id="header">
  <div id="header_top"><div><div>
    <img alt ="" src="../../top-kde.jpg"/>
    </div></div></div>
  <div id="header_bottom">
    <div id="location">
      <ul>
        <li><a href="http://api.kde.org">KDE API Reference</a></li>
        <li><a href="../../index.html">kdepimlibs-4.10.5 API Reference</a></li>
      </ul>
    </div>
    <div id="menu">
<ul>
<li><a href="http://www.kde.org/">KDE Home</a></li>
<li><a href="http://kde.org/contact/">Contact Us</a></li>
</ul>
</div>
</div>
</div>
<!-- End page header -->
    <div id="body_wrapper">
      <div id="body">
        <!-- begin main content -->
        <div id="right">
          <div class="content">
          <div id="main">
            <div class="clearer">&nbsp;</div>
<h2><a name="content"></a>kpimutils</h2>
<!-- BC -->
<div id="top">
<!-- Generated by Doxygen 1.8.3.1 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>KPIMUtils</b></li><li class="navelem"><a class="el" href="classKPIMUtils_1_1LinkLocator.html">LinkLocator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classKPIMUtils_1_1LinkLocator-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">KPIMUtils::LinkLocator Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="linklocator_8h_source.html">linklocator.h</a>&gt;</code></p>

<p>Inherited by KPIMUtils::SpellingFilter::TextCensor.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae6d94d993ad40bd59cf3b13889dfe360"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#ae6d94d993ad40bd59cf3b13889dfe360">LinkLocator</a> (const QString &amp;text, int pos=0)</td></tr>
<tr class="separator:ae6d94d993ad40bd59cf3b13889dfe360"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a652ea8cd6cacfeb7b7ad89830586acc2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a652ea8cd6cacfeb7b7ad89830586acc2">~LinkLocator</a> ()</td></tr>
<tr class="separator:a652ea8cd6cacfeb7b7ad89830586acc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac97e6fcb11fa8ac991d9b5d06107e88c"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#ac97e6fcb11fa8ac991d9b5d06107e88c">getEmailAddress</a> ()</td></tr>
<tr class="separator:ac97e6fcb11fa8ac991d9b5d06107e88c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3331951250f3223645f82b20b2247c2a"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a3331951250f3223645f82b20b2247c2a">getUrl</a> ()</td></tr>
<tr class="separator:a3331951250f3223645f82b20b2247c2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f759db161f52448f7f415602aa9ed89"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a9f759db161f52448f7f415602aa9ed89">maxAddressLen</a> () const </td></tr>
<tr class="separator:a9f759db161f52448f7f415602aa9ed89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9d720f74285a85ae561e55096a47a16"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#ad9d720f74285a85ae561e55096a47a16">maxUrlLen</a> () const </td></tr>
<tr class="separator:ad9d720f74285a85ae561e55096a47a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a522c3fa92b6f4c349074884ad7ac0f85"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a522c3fa92b6f4c349074884ad7ac0f85">setMaxAddressLen</a> (int length)</td></tr>
<tr class="separator:a522c3fa92b6f4c349074884ad7ac0f85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1efd7d53ab0cb34c31c1347e445e762a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a1efd7d53ab0cb34c31c1347e445e762a">setMaxUrlLen</a> (int length)</td></tr>
<tr class="separator:a1efd7d53ab0cb34c31c1347e445e762a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aad30cb1226658accda7765406fb51357"><td class="memItemLeft" align="right" valign="top">static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#aad30cb1226658accda7765406fb51357">convertToHtml</a> (const QString &amp;plainText, int flags=0, int <a class="el" href="classKPIMUtils_1_1LinkLocator.html#ad9d720f74285a85ae561e55096a47a16">maxUrlLen</a>=4096, int <a class="el" href="classKPIMUtils_1_1LinkLocator.html#a9f759db161f52448f7f415602aa9ed89">maxAddressLen</a>=255)</td></tr>
<tr class="separator:aad30cb1226658accda7765406fb51357"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea4502c780ceef2d4a2c77bb6143216b"><td class="memItemLeft" align="right" valign="top">static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#aea4502c780ceef2d4a2c77bb6143216b">pngToDataUrl</a> (const QString &amp;iconPath)</td></tr>
<tr class="separator:aea4502c780ceef2d4a2c77bb6143216b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a1e75dd6edb57f76a962a5fefd0dbc0a3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e75dd6edb57f76a962a5fefd0dbc0a3"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>HighlightText</b> = 0x08</td></tr>
<tr class="separator:a1e75dd6edb57f76a962a5fefd0dbc0a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00e23946a37a9b3c14267440ff1e2631"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a00e23946a37a9b3c14267440ff1e2631"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>IgnoreUrls</b> = 0x04</td></tr>
<tr class="separator:a00e23946a37a9b3c14267440ff1e2631"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82704af63772d272dc3e04c325be75bd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a82704af63772d272dc3e04c325be75bd"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>PreserveSpaces</b> = 0x01</td></tr>
<tr class="separator:a82704af63772d272dc3e04c325be75bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a309769188a4855ed2e18a9c6bbed42c0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a309769188a4855ed2e18a9c6bbed42c0"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>ReplaceSmileys</b> = 0x02</td></tr>
<tr class="separator:a309769188a4855ed2e18a9c6bbed42c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a8c6e58c4f349ece4b1126f8e74ad11a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c6e58c4f349ece4b1126f8e74ad11a0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>atUrl</b> () const </td></tr>
<tr class="separator:a8c6e58c4f349ece4b1126f8e74ad11a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64d0a1f2703db77114c943fedd740843"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a64d0a1f2703db77114c943fedd740843">highlightedText</a> ()</td></tr>
<tr class="separator:a64d0a1f2703db77114c943fedd740843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae8e03612b642487a561ab16254e3cb9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae8e03612b642487a561ab16254e3cb9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEmptyUrl</b> (const QString &amp;url) const </td></tr>
<tr class="separator:aae8e03612b642487a561ab16254e3cb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ae013cb80a9a266c47eeb5f73eec1a39b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#ae013cb80a9a266c47eeb5f73eec1a39b">mPos</a></td></tr>
<tr class="separator:ae013cb80a9a266c47eeb5f73eec1a39b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b0b615b56294ba30bb2473084384592"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a0b0b615b56294ba30bb2473084384592">mText</a></td></tr>
<tr class="separator:a0b0b615b56294ba30bb2473084384592"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classKPIMUtils_1_1LinkLocator.html" title="LinkLocator assists in identifying sections of text that can usefully be converted in hyperlinks in H...">LinkLocator</a> assists in identifying sections of text that can usefully be converted in hyperlinks in HTML. </p>
<p>It is intended to be used in two ways: either by calling <a class="el" href="classKPIMUtils_1_1LinkLocator.html#aad30cb1226658accda7765406fb51357" title="Converts plaintext into html.">convertToHtml()</a> to convert a plaintext string into HTML, or to be derived from where more control is needed.</p>
<p>please note that you are responsible for handling the links. That means you should not execute the link directly but instead open it for example. See the KRun documentation about this parameter if applicable. </p>

<p>Definition at line <a class="el" href="linklocator_8h_source.html#l00048">48</a> of file <a class="el" href="linklocator_8h_source.html">linklocator.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae6d94d993ad40bd59cf3b13889dfe360"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">LinkLocator::LinkLocator </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pos</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="classKPIMUtils_1_1LinkLocator.html" title="LinkLocator assists in identifying sections of text that can usefully be converted in hyperlinks in H...">LinkLocator</a> that will search a plaintext string from a given starting point. </p>
<p>Private class that helps to provide binary compatibility between releases.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>The string in which to search. </td></tr>
    <tr><td class="paramname">pos</td><td>An index into 'text' from where the search should begin.</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00058">58</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a652ea8cd6cacfeb7b7ad89830586acc2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LinkLocator::~LinkLocator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00071">71</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aad30cb1226658accda7765406fb51357"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString LinkLocator::convertToHtml </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>plainText</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maxUrlLen</em> = <code>4096</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maxAddressLen</em> = <code>255</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Converts plaintext into html. </p>
<p>The following characters are converted to HTML entities: &amp; " &lt; &gt;. Newlines are also preserved.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plainText</td><td>The text to be converted into HTML. </td></tr>
    <tr><td class="paramname">flags</td><td>The flags to consider when processing plainText. Currently supported flags are:<ul>
<li>PreserveSpaces, preserves the appearance of sequences of space and tab characters in the resulting HTML.</li>
<li>ReplaceSmileys, replace text smileys with emoticon images.</li>
<li>IgnoreUrls, doesn't parse any URLs.</li>
<li>HighlightText, interprets text highlighting markup like <em>bold</em>, <em>underlined</em> and /italic/. </li>
</ul>
</td></tr>
    <tr><td class="paramname">maxUrlLen</td><td>The maximum length of permitted URLs. (</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKPIMUtils_1_1LinkLocator.html#ad9d720f74285a85ae561e55096a47a16" title="Returns the current limit on the maximum length of a URL.">maxUrlLen()</a>.) </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">maxAddressLen</td><td>The maximum length of permitted email addresses. (</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a9f759db161f52448f7f415602aa9ed89" title="Returns the current limit on the maximum length of an email address.">maxAddressLen()</a>.) </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>An HTML version of the text supplied in the 'plainText' parameter, suitable for inclusion in the BODY of an HTML document. </dd></dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00291">291</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac97e6fcb11fa8ac991d9b5d06107e88c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString LinkLocator::getEmailAddress </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Attempts to grab an email address. </p>
<p>If there is an @ symbol at the current scan position, then the text will be searched both backwards and forwards to find the email address. If there is no @ symbol at the current scan position, an empty string is returned. If an address is found, then the current scan position is set to the index of the last character in the address.</p>
<dl class="section return"><dt>Returns</dt><dd>The email address at the current scan position, or an empty string. </dd></dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00225">225</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3331951250f3223645f82b20b2247c2a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString LinkLocator::getUrl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Attempts to grab a URL starting at the current scan position. </p>
<p>If there is no URL at the current scan position, then an empty string is returned. If a URL is found, the current scan position is set to the index of the last character in the URL.</p>
<dl class="section return"><dt>Returns</dt><dd>The URL at the current scan position, or an empty string. </dd></dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00096">96</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a64d0a1f2703db77114c943fedd740843"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString LinkLocator::highlightedText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Highlight text according to <em>bold</em>, /italic/ and <em>underlined</em> markup. </p>
<dl class="section return"><dt>Returns</dt><dd>A HTML string. </dd></dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00450">450</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9f759db161f52448f7f415602aa9ed89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LinkLocator::maxAddressLen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current limit on the maximum length of an email address. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a522c3fa92b6f4c349074884ad7ac0f85" title="Sets the maximum length of email addresses that will be matched by getEmailAddress().">setMaxAddressLen()</a>. </dd></dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00091">91</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad9d720f74285a85ae561e55096a47a16"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LinkLocator::maxUrlLen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current limit on the maximum length of a URL. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a1efd7d53ab0cb34c31c1347e445e762a" title="Sets the maximum length of URLs that will be matched by getUrl().">setMaxUrlLen()</a>. </dd></dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00081">81</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aea4502c780ceef2d4a2c77bb6143216b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString LinkLocator::pngToDataUrl </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>iconPath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Embeds the given PNG image into a data URL. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iconPath</td><td>path to the PNG image </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A data URL, QString() if the image could not be read. </dd></dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00434">434</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a522c3fa92b6f4c349074884ad7ac0f85"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LinkLocator::setMaxAddressLen </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the maximum length of email addresses that will be matched by <a class="el" href="classKPIMUtils_1_1LinkLocator.html#ac97e6fcb11fa8ac991d9b5d06107e88c" title="Attempts to grab an email address.">getEmailAddress()</a>. </p>
<p>By default, this is set to 255 characters. The reason for this limit is that there may be possible security implications in handling addresses of unlimited length. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKPIMUtils_1_1LinkLocator.html#a9f759db161f52448f7f415602aa9ed89" title="Returns the current limit on the maximum length of an email address.">maxAddressLen()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">length</td><td>The new maximum length of email addresses that will be matched by <a class="el" href="classKPIMUtils_1_1LinkLocator.html#ac97e6fcb11fa8ac991d9b5d06107e88c" title="Attempts to grab an email address.">getEmailAddress()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00086">86</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1efd7d53ab0cb34c31c1347e445e762a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LinkLocator::setMaxUrlLen </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the maximum length of URLs that will be matched by <a class="el" href="classKPIMUtils_1_1LinkLocator.html#a3331951250f3223645f82b20b2247c2a" title="Attempts to grab a URL starting at the current scan position.">getUrl()</a>. </p>
<p>By default, this is set to 4096 characters. The reason for this limit is that there may be possible security implications in handling URLs of unlimited length. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classKPIMUtils_1_1LinkLocator.html#ad9d720f74285a85ae561e55096a47a16" title="Returns the current limit on the maximum length of a URL.">maxUrlLen()</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">length</td><td>A new maximum length of URLs that will be matched by <a class="el" href="classKPIMUtils_1_1LinkLocator.html#a3331951250f3223645f82b20b2247c2a" title="Attempts to grab a URL starting at the current scan position.">getUrl()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="linklocator_8cpp_source.html#l00076">76</a> of file <a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae013cb80a9a266c47eeb5f73eec1a39b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int KPIMUtils::LinkLocator::mPos</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The current scan position. </p>

<p>Definition at line <a class="el" href="linklocator_8h_source.html#l00167">167</a> of file <a class="el" href="linklocator_8h_source.html">linklocator.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0b0b615b56294ba30bb2473084384592"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString KPIMUtils::LinkLocator::mText</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The plaintext string being scanned for URLs and email addresses. </p>

<p>Definition at line <a class="el" href="linklocator_8h_source.html#l00162">162</a> of file <a class="el" href="linklocator_8h_source.html">linklocator.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="linklocator_8h_source.html">linklocator.h</a></li>
<li><a class="el" href="linklocator_8cpp_source.html">linklocator.cpp</a></li>
</ul>
</div><!-- contents -->
<div class="copyrights">
This file is part of the KDE documentation.<br/>
Documentation copyright &copy; 1996-2013 The KDE developers.<br/>
Generated on Fri Jul 12 2013 16:48:26 by
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.3.1 written
by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2006
<p>
KDE's <a href="http://techbase.kde.org/Policies/Library_Documentation_Policy">Doxygen guidelines</a> are available online.
</p>
</div>
            </div>
          </div>
        </div>
        <div id="left">
          <div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">kpimutils</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "kpimutils"</a>
</div></div>
<ul><li><a href="index.html">Main Page</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="functions.html">Class Members</a></li><li><a href="files.html">File List</a></li><li><a href="modules.html">Modules</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKPIMUtils_1_1EmailValidator.html">kpimutils::emailvalidator</option>,  <option value="classKPIMUtils_1_1LinkLocator.html">kpimutils::linklocator</option>,  <option value="classKPIMUtils_1_1NetworkAccessHelper.html">kpimutils::networkaccesshelper</option>,
</select>
</form>
</div>
-->
<div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">kdepimlibs-4.10.5 API Reference</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "kdepimlibs-4.10.5 API Reference"</a>
</div></div>
<div class="nav_list">
<ul>
<li><a href="../../akonadi/html/index.html">akonadi</a></li><li>&nbsp;&nbsp;<a href="../../akonadi/contact/html/index.html">contact</a></li><li>&nbsp;&nbsp;<a href="../../akonadi/kmime/html/index.html">kmime</a></li><li>&nbsp;&nbsp;<a href="../../akonadi/socialutils/html/index.html">socialutils</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kalarmcal/html/index.html">kalarmcal</a></li><li><a href="../../kblog/html/index.html">kblog</a></li><li><a href="../../kcal/html/index.html">kcal</a></li><li><a href="../../kcalcore/html/index.html">kcalcore</a></li><li><a href="../../kcalutils/html/index.html">kcalutils</a></li><li><a href="../../kholidays/html/index.html">kholidays</a></li><li><a href="../../kimap/html/index.html">kimap</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/imap4/html/index.html">imap4</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/mbox/html/index.html">mbox</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/nntp/html/index.html">nntp</a></li><li><a href="../../kldap/html/index.html">kldap</a></li><li><a href="../../kmbox/html/index.html">kmbox</a></li><li><a href="../../kmime/html/index.html">kmime</a></li><li><a href="../../kontactinterface/html/index.html">kontactinterface</a></li><li><a href="../../kpimidentities/html/index.html">kpimidentities</a></li><li><a href="../../kpimtextedit/html/index.html">kpimtextedit</a></li><li><a href="../../kpimutils/html/index.html">kpimutils</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../ktnef/html/index.html">ktnef</a></li><li><a href="../../kxmlrpcclient/html/index.html">kxmlrpcclient</a></li><li><a href="../../mailtransport/html/index.html">mailtransport</a></li><li><a href="../../microblog/html/index.html">microblog</a></li><li><a href="../../qgpgme/html/index.html">qgpgme</a></li><li><a href="../../syndication/html/index.html">syndication</a></li><li>&nbsp;&nbsp;<a href="../../syndication/atom/html/index.html">atom</a></li><li>&nbsp;&nbsp;<a href="../../syndication/rdf/html/index.html">rdf</a></li><li>&nbsp;&nbsp;<a href="../../syndication/rss2/html/index.html">rss2</a></li>
</ul></div></div>
<!-- api_searchbox -->
          </div>
        </div>
        <div class="clearer"></div>
      </div>
      <div class="clearer"></div>
    </div>
    <div id="end_body"></div>
    <div id="footer"><div id="footer_text">
    Report problems with this website to <a href="https://bugs.kde.org/enter_sysadmin_request.cgi?component=api.kde.org">our bug tracking system</a>.<br>
    Contact the specific authors with questions and comments about the page contents.<p>
    KDE<sup>&#174;</sup> and <a href="/media/images/kde_gear_black.png">the K Desktop Environment<sup>&#174;</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
        <a href="http://www.kde.org/contact/impressum.php">Legal</a></p>
    </div></div>
  </div>
<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-45abe0e0c3bebc77@kde.org">Block me</a>
WARNING END
-->
</body>
</html>