1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
<!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>Wt examples: /home/koen/project/wt/public-git/wt/examples/composer/AttachmentEdit.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>/home/koen/project/wt/public-git/wt/examples/composer/AttachmentEdit.h</h1><a href="AttachmentEdit_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This may look like C code, but it's really -*- C++ -*-</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * See the LICENSE file for terms of use.</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef ATTACHMENT_EDIT_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define ATTACHMENT_EDIT_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include <Wt/WContainerWidget></span>
<a name="l00011"></a>00011
<a name="l00012"></a>00012 <span class="keyword">namespace </span>Wt {
<a name="l00013"></a>00013 <span class="keyword">class </span><a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WFileUpload.html">WFileUpload</a>;
<a name="l00014"></a>00014 <span class="keyword">class </span><a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WText.html">WText</a>;
<a name="l00015"></a>00015 <span class="keyword">class </span><a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WCheckBox.html">WCheckBox</a>;
<a name="l00016"></a>00016 }
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classAttachment.html" title="An email attachment.">Attachment</a>;
<a name="l00019"></a>00019 <span class="keyword">class </span><a class="code" href="classComposer.html" title="An E-mail composer widget.">Composer</a>;
<a name="l00020"></a>00020 <span class="keyword">class </span><a class="code" href="classOption.html" title="A clickable option.">Option</a>;
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="keyword">using namespace </span>Wt;
<a name="l00023"></a>00023
<a name="l00028"></a>00028
<a name="l00037"></a><a class="code" href="classAttachmentEdit.html">00037</a> <span class="keyword">class </span><a class="code" href="classAttachmentEdit.html" title="An edit field for an email attachment.">AttachmentEdit</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a>
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039 <span class="keyword">public</span>:
<a name="l00042"></a>00042 <a class="code" href="classAttachmentEdit.html#edd19941ecf64ef030eaa164eb34b85a" title="Create an attachment edit field.">AttachmentEdit</a>(<a class="code" href="classComposer.html" title="An E-mail composer widget.">Composer</a> *composer, <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a> *<a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WWidget.html#3461e31818c4d2f516641bdaf508312a">parent</a> = 0);
<a name="l00043"></a>00043 <a class="code" href="classAttachmentEdit.html#6f3f515115ee196e625766400180d4b4">~AttachmentEdit</a>();
<a name="l00044"></a>00044
<a name="l00051"></a>00051 <span class="keywordtype">bool</span> <a class="code" href="classAttachmentEdit.html#172fff67913dc3e3adf8c1e4198d6ea6" title="Update the file now.">uploadNow</a>();
<a name="l00052"></a>00052
<a name="l00055"></a><a class="code" href="classAttachmentEdit.html#dc4314df22d6fa1598acebe62726a464">00055</a> <span class="keywordtype">bool</span> <a class="code" href="classAttachmentEdit.html#dc4314df22d6fa1598acebe62726a464" title="Return whether the upload failed.">uploadFailed</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classAttachmentEdit.html#6a19f364e7a82797bc5c18adb6a01530" title="The state of the last upload process.">uploadFailed_</a>; }
<a name="l00056"></a>00056
<a name="l00059"></a>00059 <span class="keywordtype">bool</span> <a class="code" href="classAttachmentEdit.html#780f87ad49249e38bf60f2560afd9789" title="Return whether this attachment must be included in the message.">include</a>() <span class="keyword">const</span>;
<a name="l00060"></a>00060
<a name="l00063"></a>00063 <a class="code" href="classAttachment.html" title="An email attachment.">Attachment</a> <a class="code" href="classAttachmentEdit.html#b0212edb4c861593672381f746389410" title="Return the attachment.">attachment</a>();
<a name="l00064"></a>00064
<a name="l00068"></a><a class="code" href="classAttachmentEdit.html#8e8ec2b62906eb6137b1a505a6ba0306">00068</a> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1Signal.html">Signal<void></a>& <a class="code" href="classAttachmentEdit.html#8e8ec2b62906eb6137b1a505a6ba0306" title="Signal emitted when a new attachment has been uploaded (or failed to upload.">uploadDone</a>() { <span class="keywordflow">return</span> <a class="code" href="classAttachmentEdit.html#24ee0aca670036a7491a1c0114188cc7">uploadDone_</a>; }
<a name="l00069"></a>00069
<a name="l00070"></a>00070 <span class="keyword">private</span>:
<a name="l00071"></a><a class="code" href="classAttachmentEdit.html#403927978e9c841e64b62421458790e8">00071</a> <a class="code" href="classComposer.html" title="An E-mail composer widget.">Composer</a> *<a class="code" href="classAttachmentEdit.html#403927978e9c841e64b62421458790e8">composer_</a>;
<a name="l00072"></a>00072
<a name="l00073"></a><a class="code" href="classAttachmentEdit.html#24ee0aca670036a7491a1c0114188cc7">00073</a> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1Signal.html">Signal<void></a> <a class="code" href="classAttachmentEdit.html#24ee0aca670036a7491a1c0114188cc7">uploadDone_</a>;
<a name="l00074"></a>00074
<a name="l00076"></a><a class="code" href="classAttachmentEdit.html#a9a3945293cf0a30d35e8bc56312d430">00076</a> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WFileUpload.html">WFileUpload</a> *<a class="code" href="classAttachmentEdit.html#a9a3945293cf0a30d35e8bc56312d430" title="The WFileUpload control.">upload_</a>;
<a name="l00077"></a>00077
<a name="l00079"></a><a class="code" href="classAttachmentEdit.html#ce5c155b8749314f50ca2ba4a46c6e56">00079</a> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WText.html">WText</a> *<a class="code" href="classAttachmentEdit.html#ce5c155b8749314f50ca2ba4a46c6e56" title="The text describing the uploaded file.">uploaded_</a>;
<a name="l00080"></a>00080
<a name="l00082"></a><a class="code" href="classAttachmentEdit.html#ca36a743220d5663d340840cdb38f7ce">00082</a> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WCheckBox.html">WCheckBox</a> *<a class="code" href="classAttachmentEdit.html#ca36a743220d5663d340840cdb38f7ce" title="The check box to keep or discard the uploaded file.">keep_</a>;
<a name="l00083"></a>00083
<a name="l00085"></a><a class="code" href="classAttachmentEdit.html#55484424d37b196d07035e245399ffae">00085</a> <a class="code" href="classOption.html" title="A clickable option.">Option</a> *<a class="code" href="classAttachmentEdit.html#55484424d37b196d07035e245399ffae" title="The option to remove the file.">remove_</a>;
<a name="l00086"></a>00086
<a name="l00088"></a><a class="code" href="classAttachmentEdit.html#2c3fa5d63ec5feedc63f95295989cd4d">00088</a> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WText.html">WText</a> *<a class="code" href="classAttachmentEdit.html#2c3fa5d63ec5feedc63f95295989cd4d" title="The text box to display an error (empty or too big file).">error_</a>;
<a name="l00089"></a>00089
<a name="l00091"></a><a class="code" href="classAttachmentEdit.html#6a19f364e7a82797bc5c18adb6a01530">00091</a> <span class="keywordtype">bool</span> <a class="code" href="classAttachmentEdit.html#6a19f364e7a82797bc5c18adb6a01530" title="The state of the last upload process.">uploadFailed_</a>;
<a name="l00092"></a>00092
<a name="l00094"></a><a class="code" href="classAttachmentEdit.html#06536f7028735943c69325ebe33eec82">00094</a> std::wstring <a class="code" href="classAttachmentEdit.html#06536f7028735943c69325ebe33eec82" title="The filename of the uploaded file.">fileName_</a>;
<a name="l00095"></a>00095
<a name="l00097"></a><a class="code" href="classAttachmentEdit.html#86af04b8e5ebcdf2bdbd94a92847e6da">00097</a> std::string <a class="code" href="classAttachmentEdit.html#86af04b8e5ebcdf2bdbd94a92847e6da" title="The filename of the local spool file.">spoolFileName_</a>;
<a name="l00098"></a>00098
<a name="l00100"></a><a class="code" href="classAttachmentEdit.html#b9d9406dda4396e37b53a77a6e6fa861">00100</a> std::wstring <a class="code" href="classAttachmentEdit.html#b9d9406dda4396e37b53a77a6e6fa861" title="The content description that was sent along with the file.">contentDescription_</a>;
<a name="l00101"></a>00101
<a name="l00103"></a><a class="code" href="classAttachmentEdit.html#3b94f0070aa893cbae3459f2a930bc09">00103</a> <span class="keywordtype">bool</span> <a class="code" href="classAttachmentEdit.html#3b94f0070aa893cbae3459f2a930bc09" title="Whether the spool file is &quot;taken&quot; and is no longer managed by the edit...">taken_</a>;
<a name="l00104"></a>00104
<a name="l00105"></a>00105 <span class="keyword">private</span> slots:
<a name="l00107"></a>00107 <span class="keywordtype">void</span> <a class="code" href="classAttachmentEdit.html#85d6892fe9c38394d17dc350ce678acd" title="Slot triggered when the WFileUpload completed an upload.">uploaded</a>();
<a name="l00108"></a>00108
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="classAttachmentEdit.html#9f7b53df9b2342f38984832f1d2430eb" title="Slot triggered when the WFileUpload received an oversized file.">fileTooLarge</a>(<span class="keywordtype">int</span> size);
<a name="l00111"></a>00111
<a name="l00113"></a>00113 <span class="keywordtype">void</span> <span class="keyword">remove</span>();
<a name="l00114"></a>00114
<a name="l00115"></a>00115 };
<a name="l00116"></a>00116
<a name="l00119"></a>00119 <span class="preprocessor">#endif // ATTACHMENT_EDIT_H_</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:12 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|