<?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_US" xml:lang="en_US"> <head> <title>kmail: kmfilteraction.h Source File (kmail)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <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" /> <link rel="shortcut icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> <style type="text/css"> <!-- hr { display: none; } #content h2 { margin-left: 0px; } table.mdTable { background-color: #f8f8f8; border: .2em solid #d7d7d7; } td.mdRow { padding: 8px 20px; } td.md { font-weight: bold; } td.mdname1 { font-weight: bold; color: #602020; } td.mdname { font-weight: bold; color: #602020; } --> </style> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <img id="nav_header_logo_right" alt="" align="right" src="../../pimlogo.png" border="0" /> <div id="nav_header_title" align="left">KDE PIM API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_left" style="text-align: left;"> / <a href="../../">API Reference</a> / <a href=".">kmail</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <h2><a name="content"></a>kmail</h2> <!-- Generated by Doxygen 1.5.5 --> <h1>kmfilteraction.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * kmail: KDE mail client</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org></span> <a name="l00004"></a>00004 <span class="comment"> *</span> <a name="l00005"></a>00005 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span> <a name="l00006"></a>00006 <span class="comment"> * it under the terms of the GNU General Public License as published by</span> <a name="l00007"></a>00007 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span> <a name="l00008"></a>00008 <span class="comment"> * (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment"> *</span> <a name="l00010"></a>00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00013"></a>00013 <span class="comment"> * GNU General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"> *</span> <a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span> <a name="l00016"></a>00016 <span class="comment"> * along with this program; if not, write to the Free Software</span> <a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span> <a name="l00018"></a>00018 <span class="comment"> *</span> <a name="l00019"></a>00019 <span class="comment"> */</span> <a name="l00020"></a>00020 <span class="preprocessor">#ifndef kmfilteraction_h</span> <a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define kmfilteraction_h</span> <a name="l00022"></a>00022 <span class="preprocessor"></span> <a name="l00023"></a>00023 <span class="preprocessor">#include <kmime_mdn.h></span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="preprocessor">#include <qstring.h></span> <a name="l00026"></a>00026 <span class="preprocessor">#include <qstringlist.h></span> <a name="l00027"></a>00027 <span class="preprocessor">#include <qdict.h></span> <a name="l00028"></a>00028 <span class="preprocessor">#include <qptrlist.h></span> <a name="l00029"></a>00029 <span class="preprocessor">#include <qvaluelist.h></span> <a name="l00030"></a>00030 <span class="preprocessor">#include <qguardedptr.h></span> <a name="l00031"></a>00031 <span class="preprocessor">#include <qwidget.h></span> <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="keyword">class </span>KMMsgBase; <a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>; <a name="l00035"></a>00035 <span class="keyword">class </span>QWidget; <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>; <a name="l00037"></a>00037 <span class="keyword">class </span>KTempFile; <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="comment">//=========================================================</span> <a name="l00040"></a>00040 <span class="comment">//</span> <a name="l00041"></a>00041 <span class="comment">// class KMFilterAction</span> <a name="l00042"></a>00042 <span class="comment">//</span> <a name="l00043"></a>00043 <span class="comment">//=========================================================</span> <a name="l00044"></a>00044 <a name="l00045"></a>00045 <a name="l00055"></a><a class="code" href="classKMFilterAction.html">00055</a> <span class="keyword">class </span><a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a> <a name="l00056"></a>00056 { <a name="l00057"></a>00057 <span class="keyword">public</span>: <a name="l00073"></a><a class="code" href="classKMFilterAction.html#266b0ffac135a4e123c07bbb82ff06a8">00073</a> <span class="keyword">enum</span> <a class="code" href="classKMFilterAction.html#266b0ffac135a4e123c07bbb82ff06a8" title="Possible return codes of process:.">ReturnCode</a> { ErrorNeedComplete = 0x1, GoOn = 0x2, ErrorButGoOn = 0x4, <a name="l00074"></a>00074 CriticalError = 0x8 }; <a name="l00077"></a>00077 <a class="code" href="classKMFilterAction.html#d65b9a01a98072f39f717d16c0237545" title="Initialize filter action with (english) name aName and (internationalized) label...">KMFilterAction</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00078"></a>00078 <span class="keyword">virtual</span> ~<a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a>(); <a name="l00079"></a>00079 <a name="l00082"></a><a class="code" href="classKMFilterAction.html#9400f2af5575088a32bd46231c3c763b">00082</a> <span class="keyword">const</span> QString <a class="code" href="classKMFilterAction.html#9400f2af5575088a32bd46231c3c763b" title="Returns nationalized label, ie.">label</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mLabel; } <a name="l00083"></a>00083 <a name="l00086"></a><a class="code" href="classKMFilterAction.html#a428f0f4e67e40bd122920a43a7619eb">00086</a> <span class="keyword">const</span> QString <a class="code" href="classKMFilterAction.html#a428f0f4e67e40bd122920a43a7619eb" title="Returns english name, ie.">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mName; } <a name="l00087"></a>00087 <a name="l00095"></a>00095 <span class="keyword">virtual</span> <a class="code" href="classKMFilterAction.html#266b0ffac135a4e123c07bbb82ff06a8" title="Possible return codes of process:.">ReturnCode</a> <a class="code" href="classKMFilterAction.html#3115a8d4b0baedd09f601e009b9f61b2" title="Execute action on given message.">process</a>(<a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* msg) <span class="keyword">const</span> = 0; <a name="l00096"></a>00096 <a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#ec70d20540f5b5f7bea3f5b7b9c52418" title="Execute an action on given message asynchronously.">processAsync</a>(<a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* msg) <span class="keyword">const</span>; <a name="l00101"></a>00101 <a name="l00104"></a>00104 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterAction.html#55e1f8ebe318086f8736636da73d0c55" title="Determines if the action depends on the body of the message.">requiresBody</a>(KMMsgBase* msgBase) <span class="keyword">const</span>; <a name="l00105"></a>00105 <a name="l00110"></a><a class="code" href="classKMFilterAction.html#d8117c7effb717efe34659f9bd21e6a6">00110</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterAction.html#d8117c7effb717efe34659f9bd21e6a6" title="Determines whether this action is valid.">isEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> FALSE; } <a name="l00111"></a>00111 <a name="l00114"></a>00114 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterAction.html#db348aaf173031b4b47493ea6e5151b5" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00115"></a>00115 <a name="l00119"></a>00119 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#d4bd86ff6495ca6034140833b0a63aa0" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00120"></a>00120 <a name="l00123"></a>00123 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#c7f7f473f1912cc86921ff32a836945d" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00124"></a>00124 <a name="l00127"></a>00127 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#202a5a9bfca5cab64f14f8a12850ce1f" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00128"></a>00128 <a name="l00130"></a>00130 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#0492934078f0b67d1fab96b44ad6b25e" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString argsStr) = 0; <a name="l00131"></a>00131 <a name="l00133"></a>00133 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterAction.html#1c9f7bf2f569944cab8e74b072507b7b" title="Return extra arguments as string.">argsAsString</a>() <span class="keyword">const</span> = 0; <a name="l00134"></a>00134 <a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterAction.html#249e5919c4da72b40ed0d43cc9c8b859" title="Returns a translated string describing this filter for visualization purposes, e...">displayString</a>() <span class="keyword">const</span> = 0; <a name="l00138"></a>00138 <a name="l00142"></a>00142 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterAction.html#728ef9c745d941b80e15e8bdfbdcdd3e" title="Called from the filter when a folder is removed.">folderRemoved</a>(<a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>* aFolder, <a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>* aNewFolder); <a name="l00143"></a>00143 <a name="l00145"></a>00145 <span class="keyword">static</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a>* <a class="code" href="classKMFilterAction.html#2e631c7ac52c4c5f969db442749f3a67" title="Static function that creates a filter action of this type.">newAction</a>(); <a name="l00146"></a>00146 <a name="l00149"></a>00149 <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classKMFilterAction.html#f081efb25a63b39bc391c3631430ee3d" title="Temporarily open folder.">tempOpenFolder</a>(<a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>* aFolder); <a name="l00150"></a>00150 <a name="l00152"></a>00152 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#10118125dadcf8f2f9f1d979952d7e5e" title="Automates the sending of MDNs from filter actions.">sendMDN</a>( <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a> * msg, KMime::MDN::DispositionType d, <a name="l00153"></a>00153 <span class="keyword">const</span> QValueList<KMime::MDN::DispositionModifier> & m <a name="l00154"></a>00154 =QValueList<KMime::MDN::DispositionModifier>() ); <a name="l00155"></a>00155 <a name="l00156"></a>00156 <span class="keyword">private</span>: <a name="l00157"></a>00157 QString mName; <a name="l00158"></a>00158 QString mLabel; <a name="l00159"></a>00159 }; <a name="l00160"></a>00160 <a name="l00161"></a>00161 <span class="comment">//=========================================================</span> <a name="l00162"></a>00162 <span class="comment">//</span> <a name="l00163"></a>00163 <span class="comment">// class KMFilterActionWithNone</span> <a name="l00164"></a>00164 <span class="comment">//</span> <a name="l00165"></a>00165 <span class="comment">//=========================================================</span> <a name="l00166"></a>00166 <a name="l00167"></a>00167 <a name="l00181"></a><a class="code" href="classKMFilterActionWithNone.html">00181</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionWithNone.html" title="Abstract base class for KMail&#39;s filter actions that need no parameter, e.g.">KMFilterActionWithNone</a> : <span class="keyword">public</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a> <a name="l00182"></a>00182 { <a name="l00183"></a>00183 <span class="keyword">public</span>: <a name="l00186"></a>00186 <a class="code" href="classKMFilterActionWithNone.html#8d50ac7273e8894809f94e1f80487643" title="Initialize filter action with (english) name aName.">KMFilterActionWithNone</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00187"></a>00187 <a name="l00190"></a><a class="code" href="classKMFilterActionWithNone.html#dff76b872fd4bd1face457ae3d9b5d39">00190</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithNone.html#dff76b872fd4bd1face457ae3d9b5d39" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString) {}; <a name="l00191"></a>00191 <a name="l00194"></a><a class="code" href="classKMFilterActionWithNone.html#42aebfea23566d763d6534cc74c6369f">00194</a> <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithNone.html#42aebfea23566d763d6534cc74c6369f" title="Return extra arguments as string.">argsAsString</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> QString::null; } <a name="l00195"></a>00195 <a name="l00198"></a>00198 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithNone.html#8de709bb295da9539a8486e2f27569da" title="Returns a translated string describing this filter for visualization purposes, e...">displayString</a>() <span class="keyword">const</span>; <a name="l00199"></a>00199 }; <a name="l00200"></a>00200 <a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="comment">//=========================================================</span> <a name="l00203"></a>00203 <span class="comment">//</span> <a name="l00204"></a>00204 <span class="comment">// class KMFilterActionWithString</span> <a name="l00205"></a>00205 <span class="comment">//</span> <a name="l00206"></a>00206 <span class="comment">//=========================================================</span> <a name="l00207"></a>00207 <a name="l00208"></a>00208 <a name="l00222"></a><a class="code" href="classKMFilterActionWithString.html">00222</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionWithString.html" title="Abstract base class for KMail&#39;s filter actions that need a free-form parameter...">KMFilterActionWithString</a> : <span class="keyword">public</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a> <a name="l00223"></a>00223 { <a name="l00224"></a>00224 <span class="keyword">public</span>: <a name="l00227"></a>00227 <a class="code" href="classKMFilterActionWithString.html#ff200705fa17ad9c2715a8e4e39e6a35" title="Initialize filter action with (english) name aName.">KMFilterActionWithString</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00228"></a>00228 <a name="l00233"></a><a class="code" href="classKMFilterActionWithString.html#be6e6f11b1fe85b08fde6061d7d41c77">00233</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterActionWithString.html#be6e6f11b1fe85b08fde6061d7d41c77" title="Determines whether this action is valid.">isEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mParameter.stripWhiteSpace().isEmpty(); } <a name="l00234"></a>00234 <a name="l00237"></a>00237 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterActionWithString.html#e278bc7e6ead998308a422e8978c2caa" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00238"></a>00238 <a name="l00242"></a>00242 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithString.html#46f483ad21642a96c91948962544965f" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00243"></a>00243 <a name="l00246"></a>00246 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithString.html#7edb3fd01077410b48074389b932f7d2" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00247"></a>00247 <a name="l00250"></a>00250 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithString.html#9fdfc3d57f8b0fb24c5e390461867d02" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00251"></a>00251 <a name="l00253"></a>00253 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithString.html#b4c0bf02da4adb72465a8562814c84a9" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString argsStr); <a name="l00254"></a>00254 <a name="l00256"></a>00256 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithString.html#bf47dfe1112a9d2e8b562d095bfabf7e" title="Return extra arguments as string.">argsAsString</a>() <span class="keyword">const</span>; <a name="l00257"></a>00257 <a name="l00260"></a>00260 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithString.html#a28fe8969e7c2303e276ee6128e09fdd" title="Returns a translated string describing this filter for visualization purposes, e...">displayString</a>() <span class="keyword">const</span>; <a name="l00261"></a>00261 <a name="l00262"></a>00262 <span class="keyword">protected</span>: <a name="l00263"></a>00263 QString mParameter; <a name="l00264"></a>00264 }; <a name="l00265"></a>00265 <a name="l00266"></a>00266 <span class="comment">//=========================================================</span> <a name="l00267"></a>00267 <span class="comment">//</span> <a name="l00268"></a>00268 <span class="comment">// class KMFilterActionWithUOID</span> <a name="l00269"></a>00269 <span class="comment">//</span> <a name="l00270"></a>00270 <span class="comment">//=========================================================</span> <a name="l00271"></a>00271 <a name="l00272"></a>00272 <a name="l00286"></a><a class="code" href="classKMFilterActionWithUOID.html">00286</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionWithUOID.html" title="Abstract base class for KMail&#39;s filter actions that need a parameter that has...">KMFilterActionWithUOID</a> : <span class="keyword">public</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a> <a name="l00287"></a>00287 { <a name="l00288"></a>00288 <span class="keyword">public</span>: <a name="l00291"></a>00291 <a class="code" href="classKMFilterActionWithUOID.html#46c79a459a62973a07a90c85ae8c1f64" title="Initialize filter action with (english) name aName.">KMFilterActionWithUOID</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00292"></a>00292 <a name="l00297"></a><a class="code" href="classKMFilterActionWithUOID.html#858cd78813f516ec447972f9778dc67b">00297</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterActionWithUOID.html#858cd78813f516ec447972f9778dc67b" title="Determines whether this action is valid.">isEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mParameter == 0; } <a name="l00298"></a>00298 <a name="l00300"></a>00300 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUOID.html#80fa864faaadfa52e39d3e4542b5ef9a" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString argsStr); <a name="l00301"></a>00301 <a name="l00303"></a>00303 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithUOID.html#250fca183cbde4d749b7b27387fae583" title="Return extra arguments as string.">argsAsString</a>() <span class="keyword">const</span>; <a name="l00304"></a>00304 <a name="l00307"></a>00307 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithUOID.html#178ffc1d15d462c9e4459e8b1dc0487e" title="Returns a translated string describing this filter for visualization purposes, e...">displayString</a>() <span class="keyword">const</span>; <a name="l00308"></a>00308 <a name="l00309"></a>00309 <span class="keyword">protected</span>: <a name="l00310"></a>00310 uint mParameter; <a name="l00311"></a>00311 }; <a name="l00312"></a>00312 <a name="l00313"></a>00313 <span class="comment">//=========================================================</span> <a name="l00314"></a>00314 <span class="comment">//</span> <a name="l00315"></a>00315 <span class="comment">// class KMFilterActionWithStringList</span> <a name="l00316"></a>00316 <span class="comment">//</span> <a name="l00317"></a>00317 <span class="comment">//=========================================================</span> <a name="l00318"></a>00318 <a name="l00319"></a>00319 <a name="l00339"></a><a class="code" href="classKMFilterActionWithStringList.html">00339</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionWithStringList.html" title="Abstract base class for KMail&#39;s filter actions that need a parameter which can...">KMFilterActionWithStringList</a> : <span class="keyword">public</span> <a class="code" href="classKMFilterActionWithString.html" title="Abstract base class for KMail&#39;s filter actions that need a free-form parameter...">KMFilterActionWithString</a> <a name="l00340"></a>00340 { <a name="l00341"></a>00341 <span class="keyword">public</span>: <a name="l00344"></a>00344 <a class="code" href="classKMFilterActionWithStringList.html#36a80f99aa48902b9b3ca4152c74006e" title="Initialize filter action with (english) name aName.">KMFilterActionWithStringList</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00345"></a>00345 <a name="l00348"></a>00348 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterActionWithStringList.html#5c547e42075b4217cc77da2c22bd6169" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00349"></a>00349 <a name="l00353"></a>00353 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithStringList.html#2bce861e1db52c90a47612650ce39406" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00354"></a>00354 <a name="l00357"></a>00357 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithStringList.html#7c0ed5ac25eb32e40004edc69cfceb1c" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00358"></a>00358 <a name="l00361"></a>00361 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithStringList.html#f7e465295339b7d1d7d745bec55921fb" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00362"></a>00362 <a name="l00364"></a>00364 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithStringList.html#9b7773de7650f5a8f1af58e74c9dd4de" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString argsStr); <a name="l00365"></a>00365 <a name="l00366"></a>00366 <span class="keyword">protected</span>: <a name="l00367"></a>00367 QStringList mParameterList; <a name="l00368"></a>00368 }; <a name="l00369"></a>00369 <a name="l00370"></a>00370 <a name="l00371"></a>00371 <span class="comment">//=========================================================</span> <a name="l00372"></a>00372 <span class="comment">//</span> <a name="l00373"></a>00373 <span class="comment">// class KMFilterActionWithFolder</span> <a name="l00374"></a>00374 <span class="comment">//</span> <a name="l00375"></a>00375 <span class="comment">//=========================================================</span> <a name="l00376"></a>00376 <a name="l00377"></a>00377 <a name="l00392"></a><a class="code" href="classKMFilterActionWithFolder.html">00392</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionWithFolder.html" title="Abstract base class for KMail&#39;s filter actions that need a mail folder as parameter...">KMFilterActionWithFolder</a> : <span class="keyword">public</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a> <a name="l00393"></a>00393 { <a name="l00394"></a>00394 <span class="keyword">public</span>: <a name="l00397"></a>00397 <a class="code" href="classKMFilterActionWithFolder.html#9a2df6938a9029c781bfa128de4f7c86" title="Initialize filter action with (english) name aName.">KMFilterActionWithFolder</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00398"></a>00398 <a name="l00403"></a><a class="code" href="classKMFilterActionWithFolder.html#170e8e5bbb51f8d47ad8746697c55710">00403</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterActionWithFolder.html#170e8e5bbb51f8d47ad8746697c55710" title="Determines whether this action is valid.">isEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (!mFolder && mFolderName.isEmpty()); } <a name="l00404"></a>00404 <a name="l00407"></a>00407 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterActionWithFolder.html#4875a0a6a8414ad0d6d6cd59317ddd76" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00408"></a>00408 <a name="l00412"></a>00412 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithFolder.html#72b5c5bb59fcf7e7fad9e969decfe179" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00413"></a>00413 <a name="l00416"></a>00416 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithFolder.html#04afb08ca89a0a16144749b23c0eab53" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00417"></a>00417 <a name="l00420"></a>00420 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithFolder.html#9df91d1d3b6d8bd44770c3049b6e63c5" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00421"></a>00421 <a name="l00423"></a>00423 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithFolder.html#2786610c20ec61d079709b11ef6c8c1f" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString argsStr); <a name="l00424"></a>00424 <a name="l00426"></a>00426 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithFolder.html#2fe5c01bd94bba796fd27cf17d3e2a96" title="Return extra arguments as string.">argsAsString</a>() <span class="keyword">const</span>; <a name="l00427"></a>00427 <a name="l00430"></a>00430 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithFolder.html#6125b51b6dc499457e4f27f04dcf54f3" title="Returns a translated string describing this filter for visualization purposes, e...">displayString</a>() <span class="keyword">const</span>; <a name="l00431"></a>00431 <a name="l00435"></a>00435 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterActionWithFolder.html#a5282c02a22b1b76810e652bde017ee0" title="Called from the filter when a folder is removed.">folderRemoved</a>(<a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>* aFolder, <a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>* aNewFolder); <a name="l00436"></a>00436 <a name="l00437"></a>00437 <span class="keyword">protected</span>: <a name="l00438"></a>00438 QGuardedPtr<KMFolder> mFolder; <a name="l00439"></a>00439 QString mFolderName; <a name="l00440"></a>00440 }; <a name="l00441"></a>00441 <a name="l00442"></a>00442 <span class="comment">//=========================================================</span> <a name="l00443"></a>00443 <span class="comment">//</span> <a name="l00444"></a>00444 <span class="comment">// class KMFilterActionWithAddress</span> <a name="l00445"></a>00445 <span class="comment">//</span> <a name="l00446"></a>00446 <span class="comment">//=========================================================</span> <a name="l00447"></a>00447 <a name="l00448"></a>00448 <a name="l00463"></a><a class="code" href="classKMFilterActionWithAddress.html">00463</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionWithAddress.html" title="Abstract base class for KMail&#39;s filter actions that need a mail address as parameter...">KMFilterActionWithAddress</a> : <span class="keyword">public</span> <a class="code" href="classKMFilterActionWithString.html" title="Abstract base class for KMail&#39;s filter actions that need a free-form parameter...">KMFilterActionWithString</a> <a name="l00464"></a>00464 { <a name="l00465"></a>00465 <span class="keyword">public</span>: <a name="l00468"></a>00468 <a class="code" href="classKMFilterActionWithAddress.html#3388823030883b066bae96fcedaf0df0" title="Initialize filter action with (english) name aName.">KMFilterActionWithAddress</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00469"></a>00469 <a name="l00472"></a>00472 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterActionWithAddress.html#2d5a5800a6843561aace07fe5ebce3ff" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00473"></a>00473 <a name="l00477"></a>00477 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithAddress.html#982ad52416aaeef931a5fba3fa91c8e6" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00478"></a>00478 <a name="l00481"></a>00481 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithAddress.html#37c5a2923416a78d4f008005ea40e201" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00482"></a>00482 <a name="l00485"></a>00485 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithAddress.html#d3114868052d1b9bb7fa4b334e50d8c4" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00486"></a>00486 }; <a name="l00487"></a>00487 <a name="l00488"></a>00488 <span class="comment">//=========================================================</span> <a name="l00489"></a>00489 <span class="comment">//</span> <a name="l00490"></a>00490 <span class="comment">// class KMFilterActionWithCommand</span> <a name="l00491"></a>00491 <span class="comment">//</span> <a name="l00492"></a>00492 <span class="comment">//=========================================================</span> <a name="l00493"></a>00493 <a name="l00494"></a>00494 <a name="l00514"></a><a class="code" href="classKMFilterActionWithUrl.html">00514</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionWithUrl.html" title="Abstract base class for KMail&#39;s filter actions that need a command line as parameter...">KMFilterActionWithUrl</a> : <span class="keyword">public</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a> <a name="l00515"></a>00515 { <a name="l00516"></a>00516 <span class="keyword">public</span>: <a name="l00519"></a>00519 <a class="code" href="classKMFilterActionWithUrl.html#96a41bd9b3d26c5c6ba30bdcaf2ff4b3" title="Initialize filter action with (english) name aName.">KMFilterActionWithUrl</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00520"></a>00520 ~<a class="code" href="classKMFilterActionWithUrl.html" title="Abstract base class for KMail&#39;s filter actions that need a command line as parameter...">KMFilterActionWithUrl</a>(); <a name="l00525"></a><a class="code" href="classKMFilterActionWithUrl.html#ee2ca2617e2a42ddada4109844476ded">00525</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterActionWithUrl.html#ee2ca2617e2a42ddada4109844476ded" title="Determines whether this action is valid.">isEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mParameter.stripWhiteSpace().isEmpty(); } <a name="l00526"></a>00526 <a name="l00529"></a>00529 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterActionWithUrl.html#517f5c2e1d514561650ba40751cd9b79" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00530"></a>00530 <a name="l00534"></a>00534 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUrl.html#ca2a26989a5968214fed684e32d128b7" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00535"></a>00535 <a name="l00538"></a>00538 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUrl.html#e294fb3990de4cd25fe8c15908f42428" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00539"></a>00539 <a name="l00542"></a>00542 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUrl.html#b80812fb2f38ab49b3aa7b64ea3d46fe" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00543"></a>00543 <a name="l00545"></a>00545 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUrl.html#279d8128f64e4293d88d831bcb626b7d" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString argsStr); <a name="l00546"></a>00546 <a name="l00548"></a>00548 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithUrl.html#3f54d96073ac5a009d1d516a4348c683" title="Return extra arguments as string.">argsAsString</a>() <span class="keyword">const</span>; <a name="l00549"></a>00549 <a name="l00552"></a>00552 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterActionWithUrl.html#f6fd5dfff921b8b2e09606a12456e3cc" title="Returns a translated string describing this filter for visualization purposes, e...">displayString</a>() <span class="keyword">const</span>; <a name="l00553"></a>00553 <a name="l00554"></a>00554 <span class="keyword">protected</span>: <a name="l00555"></a>00555 QString mParameter; <a name="l00556"></a>00556 }; <a name="l00557"></a>00557 <a name="l00558"></a>00558 <a name="l00559"></a>00559 <span class="keyword">class </span>KMFilterActionWithCommand : <span class="keyword">public</span> <a class="code" href="classKMFilterActionWithUrl.html" title="Abstract base class for KMail&#39;s filter actions that need a command line as parameter...">KMFilterActionWithUrl</a> <a name="l00560"></a>00560 { <a name="l00561"></a>00561 <span class="keyword">public</span>: <a name="l00564"></a>00564 KMFilterActionWithCommand(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00565"></a>00565 <a name="l00568"></a>00568 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterActionWithUrl.html#517f5c2e1d514561650ba40751cd9b79" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00569"></a>00569 <a name="l00573"></a>00573 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUrl.html#ca2a26989a5968214fed684e32d128b7" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00574"></a>00574 <a name="l00577"></a>00577 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUrl.html#e294fb3990de4cd25fe8c15908f42428" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00578"></a>00578 <a name="l00581"></a>00581 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionWithUrl.html#b80812fb2f38ab49b3aa7b64ea3d46fe" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00582"></a>00582 <a name="l00588"></a>00588 <span class="keyword">virtual</span> QString substituteCommandLineArgsFor( <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a> *aMsg, QPtrList<KTempFile> & aTempFileList ) <span class="keyword">const</span>; <a name="l00589"></a>00589 <a name="l00590"></a>00590 <span class="keyword">virtual</span> <a class="code" href="classKMFilterAction.html#266b0ffac135a4e123c07bbb82ff06a8" title="Possible return codes of process:.">ReturnCode</a> genericProcess( <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a> * aMsg, <span class="keywordtype">bool</span> filtering ) <span class="keyword">const</span>; <a name="l00591"></a>00591 }; <a name="l00592"></a>00592 <a name="l00593"></a>00593 <a name="l00594"></a>00594 <a name="l00595"></a>00595 <span class="keyword">class </span>KMFilterActionWithTest : <span class="keyword">public</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a> <a name="l00596"></a>00596 { <a name="l00597"></a>00597 <span class="keyword">public</span>: <a name="l00600"></a>00600 KMFilterActionWithTest(<span class="keyword">const</span> <span class="keywordtype">char</span>* aName, <span class="keyword">const</span> QString aLabel); <a name="l00601"></a>00601 ~KMFilterActionWithTest(); <a name="l00606"></a>00606 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMFilterAction.html#d8117c7effb717efe34659f9bd21e6a6" title="Determines whether this action is valid.">isEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mParameter.stripWhiteSpace().isEmpty(); } <a name="l00607"></a>00607 <a name="l00610"></a>00610 <span class="keyword">virtual</span> QWidget* <a class="code" href="classKMFilterAction.html#db348aaf173031b4b47493ea6e5151b5" title="Creates a widget for setting the filter action parameter.">createParamWidget</a>(QWidget* parent) <span class="keyword">const</span>; <a name="l00611"></a>00611 <a name="l00615"></a>00615 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#d4bd86ff6495ca6034140833b0a63aa0" title="The filter action shall set it&#39;s parameter from the widget&#39;s contents.">applyParamWidgetValue</a>(QWidget* paramWidget); <a name="l00616"></a>00616 <a name="l00619"></a>00619 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#c7f7f473f1912cc86921ff32a836945d" title="The filter action shall set it&#39;s widget&#39;s contents from it&#39;s parameter...">setParamWidgetValue</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00620"></a>00620 <a name="l00623"></a>00623 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#202a5a9bfca5cab64f14f8a12850ce1f" title="The filter action shall clear it&#39;s parameter widget&#39;s contents.">clearParamWidget</a>(QWidget* paramWidget) <span class="keyword">const</span>; <a name="l00624"></a>00624 <a name="l00626"></a>00626 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterAction.html#0492934078f0b67d1fab96b44ad6b25e" title="Read extra arguments from given string.">argsFromString</a>(<span class="keyword">const</span> QString argsStr); <a name="l00627"></a>00627 <a name="l00629"></a>00629 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterAction.html#1c9f7bf2f569944cab8e74b072507b7b" title="Return extra arguments as string.">argsAsString</a>() <span class="keyword">const</span>; <a name="l00630"></a>00630 <a name="l00633"></a>00633 <span class="keyword">virtual</span> <span class="keyword">const</span> QString <a class="code" href="classKMFilterAction.html#249e5919c4da72b40ed0d43cc9c8b859" title="Returns a translated string describing this filter for visualization purposes, e...">displayString</a>() <span class="keyword">const</span>; <a name="l00634"></a>00634 <a name="l00635"></a>00635 <span class="keyword">protected</span>: <a name="l00636"></a>00636 QString mParameter; <a name="l00637"></a>00637 }; <a name="l00638"></a>00638 <a name="l00639"></a>00639 <a name="l00640"></a>00640 <span class="keyword">typedef</span> <a class="code" href="classKMFilterAction.html" title="Abstract base class for KMail&#39;s filter actions.">KMFilterAction</a>* (*KMFilterActionNewFunc)(void); <a name="l00641"></a>00641 <a name="l00642"></a>00642 <a name="l00643"></a>00643 <span class="comment">//-----------------------------------------------------------------------------</span> <a name="l00645"></a><a class="code" href="structKMFilterActionDesc.html">00645</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structKMFilterActionDesc.html" title="Auxiliary struct to KMFilterActionDict.">KMFilterActionDesc</a> <a name="l00646"></a>00646 { <a name="l00647"></a>00647 QString label, name; <a name="l00648"></a>00648 KMFilterActionNewFunc create; <a name="l00649"></a>00649 }; <a name="l00650"></a>00650 <a name="l00673"></a><a class="code" href="classKMFilterActionDict.html">00673</a> <span class="keyword">class </span><a class="code" href="classKMFilterActionDict.html" title="Dictionary that contains a list of all registered filter actions with their creation...">KMFilterActionDict</a>: <span class="keyword">public</span> QDict<KMFilterActionDesc> <a name="l00674"></a>00674 { <a name="l00675"></a>00675 <span class="keyword">public</span>: <a name="l00676"></a>00676 <a class="code" href="classKMFilterActionDict.html" title="Dictionary that contains a list of all registered filter actions with their creation...">KMFilterActionDict</a>(); <a name="l00677"></a>00677 <a name="l00685"></a>00685 <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionDict.html#267144806187f69edfb1c01766061238" title="Overloaded member function, provided for convenience.">insert</a>(KMFilterActionNewFunc aNewFunc); <a name="l00686"></a>00686 <a name="l00689"></a><a class="code" href="classKMFilterActionDict.html#b4e47add2e433c21c3494f89b2a2f49a">00689</a> <span class="keyword">const</span> QPtrList<KMFilterActionDesc>& <a class="code" href="classKMFilterActionDict.html#b4e47add2e433c21c3494f89b2a2f49a" title="Provides read-only access to a list of all known filter actions.">list</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mList; } <a name="l00690"></a>00690 <a name="l00691"></a>00691 <span class="keyword">protected</span>: <a name="l00694"></a>00694 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMFilterActionDict.html#33dec69342a48ef34e739367fb55df2b" title="Populate the dictionary with all known KMFilterAction types.">init</a>(<span class="keywordtype">void</span>); <a name="l00695"></a>00695 <a name="l00696"></a>00696 <span class="keyword">private</span>: <a name="l00697"></a>00697 QPtrList<KMFilterActionDesc> mList; <a name="l00698"></a>00698 }; <a name="l00699"></a>00699 <a name="l00700"></a>00700 <span class="preprocessor">#endif </span><span class="comment">/*kmfilteraction_h*/</span> </pre></div></div> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>kmail</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</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="classAccountUpdater.html">accountupdater</option>, <option value="classAttachmentModifyCommand.html">attachmentmodifycommand</option>, <option value="classFolderStorage.html">folderstorage</option>, <option value="classKCursorSaver.html">kcursorsaver</option>, <option value="classKleo_1_1KeyResolver.html">kleo::keyresolver</option>, <option value="classKListViewIndexedSearchLine.html">klistviewindexedsearchline</option>, <option value="classKMAcctFolder.html">kmacctfolder</option>, <option value="classKMAcctSelDlg.html">kmacctseldlg</option>, <option value="classKMail_1_1AccountComboBox.html">kmail::accountcombobox</option>, <option value="classKMail_1_1AccountManager.html">kmail::accountmanager</option>, <option value="classKMail_1_1ACLEntryDialog.html">kmail::aclentrydialog</option>, <option value="classKMail_1_1ACLJobs_1_1DeleteACLJob.html">kmail::acljobs::deleteacljob</option>, <option value="classKMail_1_1ACLJobs_1_1GetACLJob.html">kmail::acljobs::getacljob</option>, <option value="classKMail_1_1ACLJobs_1_1GetUserRightsJob.html">kmail::acljobs::getuserrightsjob</option>, <option value="classKMail_1_1ACLJobs_1_1MultiSetACLJob.html">kmail::acljobs::multisetacljob</option>, <option value="classKMail_1_1AnnotationJobs_1_1GetAnnotationJob.html">kmail::annotationjobs::getannotationjob</option>, <option value="classKMail_1_1AnnotationJobs_1_1MultiGetAnnotationJob.html">kmail::annotationjobs::multigetannotationjob</option>, <option value="classKMail_1_1AnnotationJobs_1_1MultiSetAnnotationJob.html">kmail::annotationjobs::multisetannotationjob</option>, <option value="classKMail_1_1AnnotationJobs_1_1MultiUrlGetAnnotationJob.html">kmail::annotationjobs::multiurlgetannotationjob</option>, <option value="classKMail_1_1AntiSpamConfig.html">kmail::antispamconfig</option>, <option value="classKMail_1_1AntiSpamWizard.html">kmail::antispamwizard</option>, <option value="classKMail_1_1AntiSpamWizard_1_1ConfigReader.html">kmail::antispamwizard::configreader</option>, <option value="classKMail_1_1AntiSpamWizard_1_1SpamToolConfig.html">kmail::antispamwizard::spamtoolconfig</option>, <option value="classKMail_1_1Callback.html">kmail::callback</option>, <option value="classKMail_1_1CopyFolderJob.html">kmail::copyfolderjob</option>, <option value="classKMail_1_1DictionaryComboBox.html">kmail::dictionarycombobox</option>, <option value="classKMail_1_1EditorWatcher.html">kmail::editorwatcher</option>, <option value="classKMail_1_1FilterImporterExporter.html">kmail::filterimporterexporter</option>, <option value="classKMail_1_1FilterLog.html">kmail::filterlog</option>, <option value="classKMail_1_1FilterLogDialog.html">kmail::filterlogdialog</option>, <option value="classKMail_1_1FolderDiaACLTab.html">kmail::folderdiaacltab</option>, <option value="classKMail_1_1FolderDiaGeneralTab.html">kmail::folderdiageneraltab</option>, <option value="classKMail_1_1FolderDiaQuotaTab.html">kmail::folderdiaquotatab</option>, <option value="classKMail_1_1FolderDiaTab.html">kmail::folderdiatab</option>, <option value="classKMail_1_1FolderDiaTemplatesTab.html">kmail::folderdiatemplatestab</option>, <option value="classKMail_1_1FolderRequester.html">kmail::folderrequester</option>, <option value="classKMail_1_1HeaderItem.html">kmail::headeritem</option>, <option value="classKMail_1_1HeaderStyle.html">kmail::headerstyle</option>, <option value="classKMail_1_1HtmlStatusBar.html">kmail::htmlstatusbar</option>, <option value="classKMail_1_1HtmlWriter.html">kmail::htmlwriter</option>, <option value="classKMail_1_1IdentityDrag.html">kmail::identitydrag</option>, <option value="classKMail_1_1IdentityListView.html">kmail::identitylistview</option>, <option value="classKMail_1_1IdentityListViewItem.html">kmail::identitylistviewitem</option>, <option value="classKMail_1_1Interface_1_1BodyPart.html">kmail::interface::bodypart</option>, <option value="classKMail_1_1Interface_1_1BodyPartFormatterPlugin.html">kmail::interface::bodypartformatterplugin</option>, <option value="classKMail_1_1Interface_1_1BodyPartMemento.html">kmail::interface::bodypartmemento</option>, <option value="classKMail_1_1Interface_1_1BodyPartURLHandler.html">kmail::interface::bodyparturlhandler</option>, <option value="classKMail_1_1Interface_1_1Observable.html">kmail::interface::observable</option>, <option value="classKMail_1_1Interface_1_1Observer.html">kmail::interface::observer</option>, <option value="classKMail_1_1JobScheduler.html">kmail::jobscheduler</option>, <option value="classKMail_1_1ListJob.html">kmail::listjob</option>, <option value="classKMail_1_1MaildirCompactionJob.html">kmail::maildircompactionjob</option>, <option value="classKMail_1_1MailingList.html">kmail::mailinglist</option>, <option value="classKMail_1_1MboxCompactionJob.html">kmail::mboxcompactionjob</option>, <option value="classKMail_1_1MessageActions.html">kmail::messageactions</option>, <option value="classKMail_1_1MessageCopyHelper.html">kmail::messagecopyhelper</option>, <option value="classKMail_1_1PartNodeBodyPart.html">kmail::partnodebodypart</option>, <option value="classKMail_1_1PopAccount.html">kmail::popaccount</option>, <option value="classKMail_1_1QuotaJobs_1_1GetQuotarootJob.html">kmail::quotajobs::getquotarootjob</option>, <option value="classKMail_1_1QuotaJobs_1_1GetStorageQuotaJob.html">kmail::quotajobs::getstoragequotajob</option>, <option value="classKMail_1_1RedirectDialog.html">kmail::redirectdialog</option>, <option value="classKMail_1_1RenameJob.html">kmail::renamejob</option>, <option value="classKMail_1_1RuleWidgetHandler.html">kmail::rulewidgethandler</option>, <option value="classKMail_1_1RuleWidgetHandlerManager.html">kmail::rulewidgethandlermanager</option>, <option value="classKMail_1_1ScheduledCompactionTask.html">kmail::scheduledcompactiontask</option>, <option value="classKMail_1_1ScheduledExpireTask.html">kmail::scheduledexpiretask</option>, <option value="classKMail_1_1ScheduledJob.html">kmail::scheduledjob</option>, <option value="classKMail_1_1ScheduledTask.html">kmail::scheduledtask</option>, <option value="classKMail_1_1SearchJob.html">kmail::searchjob</option>, <option value="classKMail_1_1SearchWindow.html">kmail::searchwindow</option>, <option value="classKMail_1_1SecondaryWindow.html">kmail::secondarywindow</option>, <option value="classKMail_1_1SieveDebugDialog.html">kmail::sievedebugdialog</option>, <option value="classKMail_1_1SortCacheItem.html">kmail::sortcacheitem</option>, <option value="classKMail_1_1SpamHeaderAnalyzer.html">kmail::spamheaderanalyzer</option>, <option value="classKMail_1_1SpamScore.html">kmail::spamscore</option>, <option value="classKMail_1_1TeeHtmlWriter.html">kmail::teehtmlwriter</option>, <option value="classKMail_1_1TransportManager.html">kmail::transportmanager</option>, <option value="classKMail_1_1UndoInfo.html">kmail::undoinfo</option>, <option value="classKMail_1_1URLHandler.html">kmail::urlhandler</option>, <option value="classKMail_1_1URLHandlerManager.html">kmail::urlhandlermanager</option>, <option value="classKMail_1_1Util_1_1LaterDeleter.html">kmail::util::laterdeleter</option>, <option value="classKMailICalIfaceImpl.html">kmailicalifaceimpl</option>, <option value="classKMailIface.html">kmailiface</option>, <option value="classKMDict.html">kmdict</option>, <option value="classKMDictItem.html">kmdictitem</option>, <option value="classKMFilterAction.html">kmfilteraction</option>, <option value="classKMFilterActionDict.html">kmfilteractiondict</option>, <option value="classKMFilterActionWidget.html">kmfilteractionwidget</option>, <option value="classKMFilterActionWithAddress.html">kmfilteractionwithaddress</option>, <option value="classKMFilterActionWithFolder.html">kmfilteractionwithfolder</option>, <option value="classKMFilterActionWithNone.html">kmfilteractionwithnone</option>, <option value="classKMFilterActionWithString.html">kmfilteractionwithstring</option>, <option value="classKMFilterActionWithStringList.html">kmfilteractionwithstringlist</option>, <option value="classKMFilterActionWithUOID.html">kmfilteractionwithuoid</option>, <option value="classKMFilterActionWithUrl.html">kmfilteractionwithurl</option>, <option value="classKMFilterDlg.html">kmfilterdlg</option>, <option value="classKMFilterListBox.html">kmfilterlistbox</option>, <option value="classKMFolder.html">kmfolder</option>, <option value="classKMFolderDialog.html">kmfolderdialog</option>, <option value="classKMFolderDir.html">kmfolderdir</option>, <option value="classKMFolderIndex.html">kmfolderindex</option>, <option value="classKMFolderOpener.html">kmfolderopener</option>, <option value="classKMHeaders.html">kmheaders</option>, <option value="classKMKernel.html">kmkernel</option>, <option value="classKMMenuCommand.html">kmmenucommand</option>, <option value="classKMMessage.html">kmmessage</option>, <option value="classKMMsgDict.html">kmmsgdict</option>, <option value="classKMMsgList.html">kmmsglist</option>, <option value="classKMMsgPartDialog.html">kmmsgpartdialog</option>, <option value="classKMMsgPartDialogCompat.html">kmmsgpartdialogcompat</option>, <option value="classKMPopHeadersView.html">kmpopheadersview</option>, <option value="classKMReaderWin.html">kmreaderwin</option>, <option value="classKMSearchPattern.html">kmsearchpattern</option>, <option value="classKMSearchPatternEdit.html">kmsearchpatternedit</option>, <option value="classKMSearchRule.html">kmsearchrule</option>, <option value="classKMSearchRuleNumerical.html">kmsearchrulenumerical</option>, <option value="classKMSearchRuleStatus.html">kmsearchrulestatus</option>, <option value="classKMSearchRuleString.html">kmsearchrulestring</option>, <option value="classKMSearchRuleWidget.html">kmsearchrulewidget</option>, <option value="classKMSystemTray.html">kmsystemtray</option>, <option value="classMailComposerIface.html">mailcomposeriface</option>, <option value="classScalix_1_1FolderAttributeParser.html">scalix::folderattributeparser</option>, <option value="classSnippetConfig.html">snippetconfig</option>, <option value="classSnippetGroup.html">snippetgroup</option>, <option value="classSnippetItem.html">snippetitem</option>, <option value="classSnippetSettings.html">snippetsettings</option>, <option value="classSnippetWidget.html">snippetwidget</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../akregator/html/index.html">akregator</a></li><li> <a href="../../akregator/src/html/index.html">src</a></li><li> <a href="../../akregator/src/librss/html/index.html">librss</a></li><li><a href="../../certmanager/html/index.html">certmanager</a></li><li> <a href="../../certmanager/lib/html/index.html">lib</a></li><li><a href="../../kaddressbook/html/index.html">kaddressbook</a></li><li><a href="../../kalarm/html/index.html">kalarm</a></li><li> <a href="../../kalarm/lib/html/index.html">lib</a></li><li><a href="../../kandy/html/index.html">kandy</a></li><li><a href="../../karm/html/index.html">karm</a></li><li><a href="../../kdgantt/html/index.html">kdgantt</a></li><li><a href="../../kgantt/html/index.html">kgantt</a></li><li><a href="../../kioslaves/html/index.html">kioslaves</a></li><li> <a href="../../kioslaves/imap4/html/index.html">imap4</a></li><li> <a href="../../kioslaves/mbox/html/index.html">mbox</a></li><li><a href="../../kitchensync/html/index.html">kitchensync</a></li><li><a href="../../kmail/html/index.html">kmail</a></li><li><a href="../../knotes/html/index.html">knotes</a></li><li><a href="../../konsolekalendar/html/index.html">konsolekalendar</a></li><li><a href="../../kontact/html/index.html">kontact</a></li><li><a href="../../korganizer/html/index.html">korganizer</a></li><li><a href="../../kpilot/html/index.html">kpilot</a></li><li> <a href="../../kpilot/kpilot/html/index.html">kpilot</a></li><li> <a href="../../kpilot/lib/html/index.html">lib</a></li><li><a href="../../libemailfunctions/html/index.html">libemailfunctions</a></li><li><a href="../../libkcal/html/index.html">libkcal</a></li><li><a href="../../libkdepim/html/index.html">libkdepim</a></li><li><a href="../../libkholidays/html/index.html">libkholidays</a></li><li><a href="../../libkmime/html/index.html">libkmime</a></li><li><a href="../../libkpgp/html/index.html">libkpgp</a></li><li><a href="../../libkpimidentities/html/index.html">libkpimidentities</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>