summaryrefslogtreecommitdiffstats
path: root/doc/html/showlistviewitem_8cpp-source.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 15:57:00 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 15:57:00 -0500
commitb888c7edb54e483ec0e3c2e2ce0eafd73acdcc65 (patch)
tree7ca76d42f66fb21ea08142de9a8d3bf16e597404 /doc/html/showlistviewitem_8cpp-source.html
downloadkshowmail-b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65.tar.gz
kshowmail-b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65.zip
Initial import from kshowmail 3.3.1 sources
Diffstat (limited to 'doc/html/showlistviewitem_8cpp-source.html')
-rw-r--r--doc/html/showlistviewitem_8cpp-source.html123
1 files changed, 123 insertions, 0 deletions
diff --git a/doc/html/showlistviewitem_8cpp-source.html b/doc/html/showlistviewitem_8cpp-source.html
new file mode 100644
index 0000000..49d4e5b
--- /dev/null
+++ b/doc/html/showlistviewitem_8cpp-source.html
@@ -0,0 +1,123 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>kshowmail: kshowmail/showlistviewitem.cpp Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+<link href="tabs.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.5.0 -->
+<div class="tabs">
+ <ul>
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+ <li><a href="classes.html"><span>Classes</span></a></li>
+ <li id="current"><a href="files.html"><span>Files</span></a></li>
+ <li><a href="dirs.html"><span>Directories</span></a></li>
+ </ul></div>
+<div class="nav">
+<a class="el" href="dir_656923b733374505e0e2f68ecb68d952.html">kshowmail</a></div>
+<h1>showlistviewitem.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
+<a name="l00002"></a>00002 <span class="comment"> showlistviewitem.cpp - description</span>
+<a name="l00003"></a>00003 <span class="comment"> -------------------</span>
+<a name="l00004"></a>00004 <span class="comment"> begin : Son Apr 21 2002</span>
+<a name="l00005"></a>00005 <span class="comment"> copyright : (C) 2002 by Eggert Ehmke</span>
+<a name="l00006"></a>00006 <span class="comment"> email : eggert.ehmke@berlin.de</span>
+<a name="l00007"></a>00007 <span class="comment"> ***************************************************************************/</span>
+<a name="l00008"></a>00008
+<a name="l00009"></a>00009 <span class="comment">/***************************************************************************</span>
+<a name="l00010"></a>00010 <span class="comment"> * *</span>
+<a name="l00011"></a>00011 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
+<a name="l00012"></a>00012 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
+<a name="l00013"></a>00013 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
+<a name="l00014"></a>00014 <span class="comment"> * (at your option) any later version. *</span>
+<a name="l00015"></a>00015 <span class="comment"> * *</span>
+<a name="l00016"></a>00016 <span class="comment"> ***************************************************************************/</span>
+<a name="l00017"></a>00017
+<a name="l00018"></a>00018 <span class="preprocessor">#include "showlistviewitem.h"</span>
+<a name="l00019"></a>00019
+<a name="l00020"></a><a class="code" href="classShowListViewItem.html#4d3f0f8ab32067485f83d3bf93fff6c6">00020</a> <a class="code" href="classShowListViewItem.html#4d3f0f8ab32067485f83d3bf93fff6c6">ShowListViewItem::ShowListViewItem</a> (QListView * parent,
+<a name="l00021"></a>00021 <a class="code" href="classShowListViewItem.html">ShowListViewItem</a>* after):
+<a name="l00022"></a>00022 QListViewItem (parent, after)
+<a name="l00023"></a>00023 {}
+<a name="l00024"></a>00024
+<a name="l00025"></a><a class="code" href="classShowListViewItem.html#8ad5e105eb0fb3275af6cc55ce52a63d">00025</a> <a class="code" href="classShowListViewItem.html#4d3f0f8ab32067485f83d3bf93fff6c6">ShowListViewItem::ShowListViewItem</a>( QListView * parent ) :
+<a name="l00026"></a>00026 QListViewItem( parent )
+<a name="l00027"></a>00027 {
+<a name="l00028"></a>00028 }
+<a name="l00029"></a>00029
+<a name="l00030"></a><a class="code" href="classShowListViewItem.html#1d417b96d9e99eb7a7f284386cb00f91">00030</a> <a class="code" href="classShowListViewItem.html#1d417b96d9e99eb7a7f284386cb00f91">ShowListViewItem::~ShowListViewItem</a>()
+<a name="l00031"></a>00031 {}
+<a name="l00032"></a>00032
+<a name="l00033"></a><a class="code" href="classShowListViewItem.html#5dba88e00c43a0911fa70f6c41173fe3">00033</a> QString <a class="code" href="classShowListViewItem.html#5dba88e00c43a0911fa70f6c41173fe3">ShowListViewItem::key</a> (<span class="keywordtype">int</span> column, <span class="keywordtype">bool</span> <span class="comment">/*ascending*/</span>)<span class="keyword"> const</span>
+<a name="l00034"></a>00034 <span class="keyword"></span>{
+<a name="l00035"></a>00035 <span class="keywordflow">switch</span> (column)
+<a name="l00036"></a>00036 {
+<a name="l00037"></a>00037 <span class="keywordflow">case</span> _colNumber:
+<a name="l00038"></a>00038 <span class="keywordflow">return</span> text (_colAccount) + text (_colNumber);
+<a name="l00039"></a>00039 <span class="keywordflow">case</span> _colDate:
+<a name="l00040"></a>00040 <span class="keywordflow">return</span> <a class="code" href="classShowListViewItem.html#9d582aea8cd197406cd8ba103e3df25b">m_time</a>;
+<a name="l00041"></a>00041 <span class="keywordflow">default</span>:
+<a name="l00042"></a>00042 <span class="keywordflow">return</span> text (column);
+<a name="l00043"></a>00043 }
+<a name="l00044"></a>00044 }
+<a name="l00045"></a>00045
+<a name="l00050"></a><a class="code" href="classShowListViewItem.html#80e56b65e05d1bbded4716d258be499a">00050</a> <span class="keywordtype">int</span> <a class="code" href="classShowListViewItem.html#80e56b65e05d1bbded4716d258be499a">ShowListViewItem::compare</a>( QListViewItem *i, <span class="keywordtype">int</span> col,
+<a name="l00051"></a>00051 <span class="keywordtype">bool</span> ascending )<span class="keyword"> const</span>
+<a name="l00052"></a>00052 <span class="keyword"></span>{
+<a name="l00053"></a>00053 <span class="keywordflow">return</span> <a class="code" href="classShowListViewItem.html#5dba88e00c43a0911fa70f6c41173fe3">key</a>( col, ascending ).compare( i-&gt;key( col, ascending) );
+<a name="l00054"></a>00054 }
+<a name="l00055"></a>00055
+<a name="l00056"></a><a class="code" href="classShowListViewItem.html#2f82fc18123a144ec93f94384c936172">00056</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#2f82fc18123a144ec93f94384c936172">ShowListViewItem::setNumber</a> (<span class="keyword">const</span> QString&amp; number)
+<a name="l00057"></a>00057 {
+<a name="l00058"></a>00058 setText (_colNumber, number);
+<a name="l00059"></a>00059 }
+<a name="l00060"></a>00060
+<a name="l00061"></a><a class="code" href="classShowListViewItem.html#d757b7cadf50f4b7e8af5f1f7fe09b02">00061</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#d757b7cadf50f4b7e8af5f1f7fe09b02">ShowListViewItem::setAccount</a>(<span class="keyword">const</span> QString&amp; account)
+<a name="l00062"></a>00062 {
+<a name="l00063"></a>00063 setText (_colAccount, account);
+<a name="l00064"></a>00064 }
+<a name="l00065"></a>00065
+<a name="l00066"></a><a class="code" href="classShowListViewItem.html#9ff7a14853167240196c9289924a39d6">00066</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#9ff7a14853167240196c9289924a39d6">ShowListViewItem::setFrom</a>(<span class="keyword">const</span> QString&amp; from)
+<a name="l00067"></a>00067 {
+<a name="l00068"></a>00068 setText (_colFrom, from);
+<a name="l00069"></a>00069 }
+<a name="l00070"></a>00070
+<a name="l00071"></a><a class="code" href="classShowListViewItem.html#633d447c919be4b754def3ae9b03c9f6">00071</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#633d447c919be4b754def3ae9b03c9f6">ShowListViewItem::setTo</a>(<span class="keyword">const</span> QString&amp; to)
+<a name="l00072"></a>00072 {
+<a name="l00073"></a>00073 setText (_colTo, to);
+<a name="l00074"></a>00074 }
+<a name="l00075"></a>00075
+<a name="l00076"></a><a class="code" href="classShowListViewItem.html#c20d53f3d7d4c60bb054c958531f5d92">00076</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#c20d53f3d7d4c60bb054c958531f5d92">ShowListViewItem::setSubject</a>(<span class="keyword">const</span> QString&amp; subject)
+<a name="l00077"></a>00077 {
+<a name="l00078"></a>00078 setText (_colSubject, subject);
+<a name="l00079"></a>00079 }
+<a name="l00080"></a>00080
+<a name="l00081"></a><a class="code" href="classShowListViewItem.html#b96fe5949709d9ccd3d414ac81671577">00081</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#b96fe5949709d9ccd3d414ac81671577">ShowListViewItem::setDate</a>(<span class="keyword">const</span> QString&amp; date)
+<a name="l00082"></a>00082 {
+<a name="l00083"></a>00083 setText (_colDate, date);
+<a name="l00084"></a>00084 }
+<a name="l00085"></a>00085
+<a name="l00086"></a><a class="code" href="classShowListViewItem.html#0bb549ead9f623377fa2a240e76e3e90">00086</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#0bb549ead9f623377fa2a240e76e3e90">ShowListViewItem::setSize</a>(<span class="keyword">const</span> QString&amp; size)
+<a name="l00087"></a>00087 {
+<a name="l00088"></a>00088 setText (_colSize, size);
+<a name="l00089"></a>00089 }
+<a name="l00090"></a>00090
+<a name="l00091"></a><a class="code" href="classShowListViewItem.html#2b5c115276821d6137cf14940d264606">00091</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#2b5c115276821d6137cf14940d264606">ShowListViewItem::setContent</a>(<span class="keyword">const</span> QString&amp; content)
+<a name="l00092"></a>00092 {
+<a name="l00093"></a>00093 setText (_colContent, content);
+<a name="l00094"></a>00094 }
+<a name="l00095"></a>00095
+<a name="l00096"></a><a class="code" href="classShowListViewItem.html#120d8cdc825924cf408ba99c6667cf34">00096</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#120d8cdc825924cf408ba99c6667cf34">ShowListViewItem::setState</a>(<span class="keyword">const</span> QString&amp; state)
+<a name="l00097"></a>00097 {
+<a name="l00098"></a>00098 setText (_colState, state);
+<a name="l00099"></a>00099 }
+<a name="l00100"></a>00100
+<a name="l00101"></a><a class="code" href="classShowListViewItem.html#0d78b8e18cae5e309719b498f40f2f89">00101</a> <span class="keywordtype">void</span> <a class="code" href="classShowListViewItem.html#0d78b8e18cae5e309719b498f40f2f89">ShowListViewItem::setTime</a> (<span class="keyword">const</span> QString&amp; time)
+<a name="l00102"></a>00102 {
+<a name="l00103"></a>00103 <a class="code" href="classShowListViewItem.html#9d582aea8cd197406cd8ba103e3df25b">m_time</a> = time;
+<a name="l00104"></a>00104 }
+<a name="l00105"></a>00105
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Jul 5 19:36:07 2007 for kshowmail by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
+</body>
+</html>