Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 1108

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmessageaddress.cpp -->
  <title>Qt Mobility 1.2: QMessageAddress Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtmessaging.html">QtMessaging</a></li>
<li>QMessageAddress</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QMessageAddress Class Reference</h1>
<!-- $$$QMessageAddress-brief -->
<p>The QMessageAddress class provides an interface for a message address. <a href="#details">More...</a></p>
<!-- @@@QMessageAddress -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QMessageAddress&gt;</span></pre><p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qmessageaddress-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#Type-enum">Type</a></b> { System, Phone, Email, InstantMessage }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#QMessageAddress">QMessageAddress</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#QMessageAddress-2">QMessageAddress</a></b> ( Type <i>type</i>, const QString &amp; <i>addressee</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#QMessageAddress-3">QMessageAddress</a></b> ( const QMessageAddress &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#dtor.QMessageAddress">~QMessageAddress</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#addressee">addressee</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#setAddressee">setAddressee</a></b> ( const QString &amp; <i>addressee</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#setType">setType</a></b> ( Type <i>type</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Type </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#type">type</a></b> () const</td></tr>
</table>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessageaddress.html#parseEmailAddress">parseEmailAddress</a></b> ( const QString &amp; <i>emailAddress</i>, QString * <i>name</i>, QString * <i>address</i>, QString * <i>suffix</i> = 0, bool * <i>startDelimeterFound</i> = 0, bool * <i>endDelimeterFound</i> = 0 )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QMessageAddress-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMessageAddress class provides an interface for a message address.</p>
<p>A message address consists of an addressee string and a type.</p>
</div>
<!-- @@@QMessageAddress -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Type$$$System$$$Phone$$$Email$$$InstantMessage -->
<h3 class="fn"><a name="Type-enum"></a>enum QMessageAddress::<span class="name">Type</span></h3>
<p>This enum type is used to describe the type of a message address.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QMessageAddress::System</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">A system address.</td></tr>
<tr><td class="topAlign"><tt>QMessageAddress::Phone</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">A telephony address.</td></tr>
<tr><td class="topAlign"><tt>QMessageAddress::Email</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">An Email, Internet Message Format address.</td></tr>
<tr><td class="topAlign"><tt>QMessageAddress::InstantMessage</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">An Instant Messaging address.</td></tr>
</table>
<p><b>See also </b><a href="qmessageaddress.html#type">type</a>() and <a href="qmessageaddress.html#setType">setType</a>().</p>
<!-- @@@Type -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QMessageAddress[overload1]$$$QMessageAddress -->
<h3 class="fn"><a name="QMessageAddress"></a>QMessageAddress::<span class="name">QMessageAddress</span> ()</h3>
<p>Constructs an empty message address.</p>
<!-- @@@QMessageAddress -->
<!-- $$$QMessageAddress$$$QMessageAddressTypeconstQString& -->
<h3 class="fn"><a name="QMessageAddress-2"></a>QMessageAddress::<span class="name">QMessageAddress</span> ( <span class="type"><a href="qmessageaddress.html#Type-enum">Type</a></span> <i>type</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>addressee</i> )</h3>
<p>Constructs a message address with the given <i>type</i> and <i>addressee</i>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@QMessageAddress -->
<!-- $$$QMessageAddress$$$QMessageAddressconstQMessageAddress& -->
<h3 class="fn"><a name="QMessageAddress-3"></a>QMessageAddress::<span class="name">QMessageAddress</span> ( const <span class="type">QMessageAddress</span> &amp; <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@QMessageAddress -->
<!-- $$$~QMessageAddress[overload1]$$$~QMessageAddress -->
<h3 class="fn"><a name="dtor.QMessageAddress"></a>QMessageAddress::<span class="name">~QMessageAddress</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the message address.</p>
<!-- @@@~QMessageAddress -->
<!-- $$$addressee[overload1]$$$addressee -->
<h3 class="fn"><a name="addressee"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QMessageAddress::<span class="name">addressee</span> () const</h3>
<p>Returns the addressee.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qmessageaddress.html#setAddressee">setAddressee</a>().</p>
<!-- @@@addressee -->
<!-- $$$parseEmailAddress[overload1]$$$parseEmailAddressconstQString&QString*QString*QString*bool*bool* -->
<h3 class="fn"><a name="parseEmailAddress"></a><span class="type">void</span> QMessageAddress::<span class="name">parseEmailAddress</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>emailAddress</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> * <i>name</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> * <i>address</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> * <i>suffix</i> = 0, <span class="type">bool</span> * <i>startDelimeterFound</i> = 0, <span class="type">bool</span> * <i>endDelimeterFound</i> = 0 )<tt> [static]</tt></h3>
<p>Parses an email address into name, address and suffix parts.</p>
<p>* <i>name</i> is set to the name part of the email address. * <i>address</i> is set to the address part of the email address. * <i>suffix</i> is set to the suffix part of the email address.</p>
<p>If the starting delimeter between the name and address part of the email address is found then * <i>startDelimeterFound</i> is set to true; otherwise * <i>startDelimeterFound</i> is set to false;</p>
<p>If the starting delimeter is not found, then the parsing is ambiguous and both * <i>name</i> and * <i>address</i> will be set to the input <i>emailAddress</i>.</p>
<p>If the ending delimeter of the address part of the email address is found then * <i>endDelimeterFound</i> is set to true; otherwise * <i>endDelimeterFound</i> is set to false;</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@parseEmailAddress -->
<!-- $$$setAddressee[overload1]$$$setAddresseeconstQString& -->
<h3 class="fn"><a name="setAddressee"></a><span class="type">void</span> QMessageAddress::<span class="name">setAddressee</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>addressee</i> )</h3>
<p>Sets the addressee to <i>addressee</i>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qmessageaddress.html#addressee">addressee</a>().</p>
<!-- @@@setAddressee -->
<!-- $$$setType[overload1]$$$setTypeType -->
<h3 class="fn"><a name="setType"></a><span class="type">void</span> QMessageAddress::<span class="name">setType</span> ( <span class="type"><a href="qmessageaddress.html#Type-enum">Type</a></span> <i>type</i> )</h3>
<p>Sets the type of the message address to <i>type</i>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qmessageaddress.html#type">type</a>().</p>
<!-- @@@setType -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="qmessageaddress.html#Type-enum">Type</a></span> QMessageAddress::<span class="name">type</span> () const</h3>
<p>Returns the type of the message address.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qmessageaddress.html#setType">setType</a>().</p>
<!-- @@@type -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
    Free Documentation License version 1.3</a>
    as published by the Free Software Foundation.</p>
</div>
</body>
</html>