56 </table> |
56 </table> |
57 <h3>Methods</h3> |
57 <h3>Methods</h3> |
58 <table> |
58 <table> |
59 <tr> |
59 <tr> |
60 <td><a href="#EmailDialog.__init__">EmailDialog</a></td> |
60 <td><a href="#EmailDialog.__init__">EmailDialog</a></td> |
61 <td>Constructor</td> |
61 <td>Constructor</td> |
62 </tr><tr> |
62 </tr><tr> |
63 <td><a href="#EmailDialog.__createMultipartMail">__createMultipartMail</a></td> |
63 <td><a href="#EmailDialog.__createMultipartMail">__createMultipartMail</a></td> |
64 <td>Private method to create a multipart mail message.</td> |
64 <td>Private method to create a multipart mail message.</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#EmailDialog.__createSimpleMail">__createSimpleMail</a></td> |
66 <td><a href="#EmailDialog.__createSimpleMail">__createSimpleMail</a></td> |
67 <td>Private method to create a simple mail message.</td> |
67 <td>Private method to create a simple mail message.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#EmailDialog.__sendmail">__sendmail</a></td> |
69 <td><a href="#EmailDialog.__sendmail">__sendmail</a></td> |
70 <td>Private method to actually send the message.</td> |
70 <td>Private method to actually send the message.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#EmailDialog.attachFile">attachFile</a></td> |
72 <td><a href="#EmailDialog.attachFile">attachFile</a></td> |
73 <td>Public method to add an attachment.</td> |
73 <td>Public method to add an attachment.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#EmailDialog.keyPressEvent">keyPressEvent</a></td> |
75 <td><a href="#EmailDialog.keyPressEvent">keyPressEvent</a></td> |
76 <td>Re-implemented to handle the user pressing the escape key.</td> |
76 <td>Re-implemented to handle the user pressing the escape key.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#EmailDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
78 <td><a href="#EmailDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
79 <td>Private slot to handle the Add...</td> |
79 <td>Private slot to handle the Add...</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#EmailDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
81 <td><a href="#EmailDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
82 <td>Private slot called by a button of the button box clicked.</td> |
82 <td>Private slot called by a button of the button box clicked.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#EmailDialog.on_buttonBox_rejected">on_buttonBox_rejected</a></td> |
84 <td><a href="#EmailDialog.on_buttonBox_rejected">on_buttonBox_rejected</a></td> |
85 <td>Private slot to handle the rejected signal of the button box.</td> |
85 <td>Private slot to handle the rejected signal of the button box.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#EmailDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
87 <td><a href="#EmailDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
88 <td>Private slot to handle the Delete button.</td> |
88 <td>Private slot to handle the Delete button.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#EmailDialog.on_message_textChanged">on_message_textChanged</a></td> |
90 <td><a href="#EmailDialog.on_message_textChanged">on_message_textChanged</a></td> |
91 <td>Private slot to handle the textChanged signal of the message edit.</td> |
91 <td>Private slot to handle the textChanged signal of the message edit.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#EmailDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> |
93 <td><a href="#EmailDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> |
94 <td>Private slot to send the email message.</td> |
94 <td>Private slot to send the email message.</td> |
95 </tr><tr> |
95 </tr><tr> |
96 <td><a href="#EmailDialog.on_subject_textChanged">on_subject_textChanged</a></td> |
96 <td><a href="#EmailDialog.on_subject_textChanged">on_subject_textChanged</a></td> |
97 <td>Private slot to handle the textChanged signal of the subject edit.</td> |
97 <td>Private slot to handle the textChanged signal of the subject edit.</td> |
98 </tr> |
98 </tr> |
99 </table> |
99 </table> |
100 <a NAME="EmailDialog.__init__" ID="EmailDialog.__init__"></a> |
100 <a NAME="EmailDialog.__init__" ID="EmailDialog.__init__"></a> |
101 <h4>EmailDialog (Constructor)</h4> |
101 <h4>EmailDialog (Constructor)</h4> |
102 <b>EmailDialog</b>(<i>mode = "bug", parent = None</i>) |
102 <b>EmailDialog</b>(<i>mode = "bug", parent = None</i>) |
103 <p> |
103 <p> |
104 Constructor |
104 Constructor |
105 </p><dl> |
105 </p><dl> |
106 <dt><i>mode</i></dt> |
106 <dt><i>mode</i></dt> |
107 <dd> |
107 <dd> |
108 mode of this dialog (string, "bug" or "feature") |
108 mode of this dialog (string, "bug" or "feature") |
109 </dd><dt><i>parent</i></dt> |
109 </dd><dt><i>parent</i></dt> |
110 <dd> |
110 <dd> |
111 parent widget of this dialog (QWidget) |
111 parent widget of this dialog (QWidget) |
112 </dd> |
112 </dd> |
113 </dl><a NAME="EmailDialog.__createMultipartMail" ID="EmailDialog.__createMultipartMail"></a> |
113 </dl><a NAME="EmailDialog.__createMultipartMail" ID="EmailDialog.__createMultipartMail"></a> |
114 <h4>EmailDialog.__createMultipartMail</h4> |
114 <h4>EmailDialog.__createMultipartMail</h4> |
115 <b>__createMultipartMail</b>(<i></i>) |
115 <b>__createMultipartMail</b>(<i></i>) |
116 <p> |
116 <p> |
117 Private method to create a multipart mail message. |
117 Private method to create a multipart mail message. |
118 </p><dl> |
118 </p><dl> |
119 <dt>Returns:</dt> |
119 <dt>Returns:</dt> |
120 <dd> |
120 <dd> |
121 string containing the mail message |
121 string containing the mail message |
122 </dd> |
122 </dd> |
123 </dl><a NAME="EmailDialog.__createSimpleMail" ID="EmailDialog.__createSimpleMail"></a> |
123 </dl><a NAME="EmailDialog.__createSimpleMail" ID="EmailDialog.__createSimpleMail"></a> |
124 <h4>EmailDialog.__createSimpleMail</h4> |
124 <h4>EmailDialog.__createSimpleMail</h4> |
125 <b>__createSimpleMail</b>(<i></i>) |
125 <b>__createSimpleMail</b>(<i></i>) |
126 <p> |
126 <p> |
127 Private method to create a simple mail message. |
127 Private method to create a simple mail message. |
128 </p><dl> |
128 </p><dl> |
129 <dt>Returns:</dt> |
129 <dt>Returns:</dt> |
130 <dd> |
130 <dd> |
131 string containing the mail message |
131 string containing the mail message |
132 </dd> |
132 </dd> |
133 </dl><a NAME="EmailDialog.__sendmail" ID="EmailDialog.__sendmail"></a> |
133 </dl><a NAME="EmailDialog.__sendmail" ID="EmailDialog.__sendmail"></a> |
134 <h4>EmailDialog.__sendmail</h4> |
134 <h4>EmailDialog.__sendmail</h4> |
135 <b>__sendmail</b>(<i>msg</i>) |
135 <b>__sendmail</b>(<i>msg</i>) |
136 <p> |
136 <p> |
137 Private method to actually send the message. |
137 Private method to actually send the message. |
138 </p><dl> |
138 </p><dl> |
139 <dt><i>msg</i></dt> |
139 <dt><i>msg</i></dt> |
140 <dd> |
140 <dd> |
141 the message to be sent (string) |
141 the message to be sent (string) |
142 </dd> |
142 </dd> |
143 </dl><dl> |
143 </dl><dl> |
144 <dt>Returns:</dt> |
144 <dt>Returns:</dt> |
145 <dd> |
145 <dd> |
146 flag indicating success (boolean) |
146 flag indicating success (boolean) |
147 </dd> |
147 </dd> |
148 </dl><a NAME="EmailDialog.attachFile" ID="EmailDialog.attachFile"></a> |
148 </dl><a NAME="EmailDialog.attachFile" ID="EmailDialog.attachFile"></a> |
149 <h4>EmailDialog.attachFile</h4> |
149 <h4>EmailDialog.attachFile</h4> |
150 <b>attachFile</b>(<i>fname, deleteFile</i>) |
150 <b>attachFile</b>(<i>fname, deleteFile</i>) |
151 <p> |
151 <p> |
152 Public method to add an attachment. |
152 Public method to add an attachment. |
153 </p><dl> |
153 </p><dl> |
154 <dt><i>fname</i></dt> |
154 <dt><i>fname</i></dt> |
155 <dd> |
155 <dd> |
156 name of the file to be attached (string) |
156 name of the file to be attached (string) |
157 </dd><dt><i>deleteFile</i></dt> |
157 </dd><dt><i>deleteFile</i></dt> |
158 <dd> |
158 <dd> |
159 flag indicating to delete the file after it has |
159 flag indicating to delete the file after it has |
160 been sent (boolean) |
160 been sent (boolean) |
161 </dd> |
161 </dd> |
162 </dl><a NAME="EmailDialog.keyPressEvent" ID="EmailDialog.keyPressEvent"></a> |
162 </dl><a NAME="EmailDialog.keyPressEvent" ID="EmailDialog.keyPressEvent"></a> |
163 <h4>EmailDialog.keyPressEvent</h4> |
163 <h4>EmailDialog.keyPressEvent</h4> |
164 <b>keyPressEvent</b>(<i>ev</i>) |
164 <b>keyPressEvent</b>(<i>ev</i>) |
165 <p> |
165 <p> |
166 Re-implemented to handle the user pressing the escape key. |
166 Re-implemented to handle the user pressing the escape key. |
167 </p><dl> |
167 </p><dl> |
168 <dt><i>ev</i></dt> |
168 <dt><i>ev</i></dt> |
169 <dd> |
169 <dd> |
170 key event (QKeyEvent) |
170 key event (QKeyEvent) |
171 </dd> |
171 </dd> |
172 </dl><a NAME="EmailDialog.on_addButton_clicked" ID="EmailDialog.on_addButton_clicked"></a> |
172 </dl><a NAME="EmailDialog.on_addButton_clicked" ID="EmailDialog.on_addButton_clicked"></a> |
173 <h4>EmailDialog.on_addButton_clicked</h4> |
173 <h4>EmailDialog.on_addButton_clicked</h4> |
174 <b>on_addButton_clicked</b>(<i></i>) |
174 <b>on_addButton_clicked</b>(<i></i>) |
175 <p> |
175 <p> |
176 Private slot to handle the Add... button. |
176 Private slot to handle the Add... button. |
177 </p><a NAME="EmailDialog.on_buttonBox_clicked" ID="EmailDialog.on_buttonBox_clicked"></a> |
177 </p><a NAME="EmailDialog.on_buttonBox_clicked" ID="EmailDialog.on_buttonBox_clicked"></a> |
178 <h4>EmailDialog.on_buttonBox_clicked</h4> |
178 <h4>EmailDialog.on_buttonBox_clicked</h4> |
179 <b>on_buttonBox_clicked</b>(<i>button</i>) |
179 <b>on_buttonBox_clicked</b>(<i>button</i>) |
180 <p> |
180 <p> |
181 Private slot called by a button of the button box clicked. |
181 Private slot called by a button of the button box clicked. |
182 </p><dl> |
182 </p><dl> |
183 <dt><i>button</i></dt> |
183 <dt><i>button</i></dt> |
184 <dd> |
184 <dd> |
185 button that was clicked (QAbstractButton) |
185 button that was clicked (QAbstractButton) |
186 </dd> |
186 </dd> |
187 </dl><a NAME="EmailDialog.on_buttonBox_rejected" ID="EmailDialog.on_buttonBox_rejected"></a> |
187 </dl><a NAME="EmailDialog.on_buttonBox_rejected" ID="EmailDialog.on_buttonBox_rejected"></a> |
188 <h4>EmailDialog.on_buttonBox_rejected</h4> |
188 <h4>EmailDialog.on_buttonBox_rejected</h4> |
189 <b>on_buttonBox_rejected</b>(<i></i>) |
189 <b>on_buttonBox_rejected</b>(<i></i>) |
190 <p> |
190 <p> |
191 Private slot to handle the rejected signal of the button box. |
191 Private slot to handle the rejected signal of the button box. |
192 </p><a NAME="EmailDialog.on_deleteButton_clicked" ID="EmailDialog.on_deleteButton_clicked"></a> |
192 </p><a NAME="EmailDialog.on_deleteButton_clicked" ID="EmailDialog.on_deleteButton_clicked"></a> |
193 <h4>EmailDialog.on_deleteButton_clicked</h4> |
193 <h4>EmailDialog.on_deleteButton_clicked</h4> |
194 <b>on_deleteButton_clicked</b>(<i></i>) |
194 <b>on_deleteButton_clicked</b>(<i></i>) |
195 <p> |
195 <p> |
196 Private slot to handle the Delete button. |
196 Private slot to handle the Delete button. |
197 </p><a NAME="EmailDialog.on_message_textChanged" ID="EmailDialog.on_message_textChanged"></a> |
197 </p><a NAME="EmailDialog.on_message_textChanged" ID="EmailDialog.on_message_textChanged"></a> |
198 <h4>EmailDialog.on_message_textChanged</h4> |
198 <h4>EmailDialog.on_message_textChanged</h4> |
199 <b>on_message_textChanged</b>(<i></i>) |
199 <b>on_message_textChanged</b>(<i></i>) |
200 <p> |
200 <p> |
201 Private slot to handle the textChanged signal of the message edit. |
201 Private slot to handle the textChanged signal of the message edit. |
202 </p><dl> |
202 </p><dl> |
203 <dt><i>txt</i></dt> |
203 <dt><i>txt</i></dt> |
204 <dd> |
204 <dd> |
205 changed text (string) |
205 changed text (string) |
206 </dd> |
206 </dd> |
207 </dl><a NAME="EmailDialog.on_sendButton_clicked" ID="EmailDialog.on_sendButton_clicked"></a> |
207 </dl><a NAME="EmailDialog.on_sendButton_clicked" ID="EmailDialog.on_sendButton_clicked"></a> |
208 <h4>EmailDialog.on_sendButton_clicked</h4> |
208 <h4>EmailDialog.on_sendButton_clicked</h4> |
209 <b>on_sendButton_clicked</b>(<i></i>) |
209 <b>on_sendButton_clicked</b>(<i></i>) |
210 <p> |
210 <p> |
211 Private slot to send the email message. |
211 Private slot to send the email message. |
212 </p><a NAME="EmailDialog.on_subject_textChanged" ID="EmailDialog.on_subject_textChanged"></a> |
212 </p><a NAME="EmailDialog.on_subject_textChanged" ID="EmailDialog.on_subject_textChanged"></a> |
213 <h4>EmailDialog.on_subject_textChanged</h4> |
213 <h4>EmailDialog.on_subject_textChanged</h4> |
214 <b>on_subject_textChanged</b>(<i>txt</i>) |
214 <b>on_subject_textChanged</b>(<i>txt</i>) |
215 <p> |
215 <p> |
216 Private slot to handle the textChanged signal of the subject edit. |
216 Private slot to handle the textChanged signal of the subject edit. |
217 </p><dl> |
217 </p><dl> |
218 <dt><i>txt</i></dt> |
218 <dt><i>txt</i></dt> |
219 <dd> |
219 <dd> |
220 changed text (string) |
220 changed text (string) |
221 </dd> |
221 </dd> |
222 </dl> |
222 </dl> |
223 <div align="right"><a href="#top">Up</a></div> |
223 <div align="right"><a href="#top">Up</a></div> |
224 <hr /><hr /> |
224 <hr /><hr /> |
225 <a NAME="_encode_base64" ID="_encode_base64"></a> |
225 <a NAME="_encode_base64" ID="_encode_base64"></a> |
226 <h2>_encode_base64</h2> |
226 <h2>_encode_base64</h2> |
227 <b>_encode_base64</b>(<i>msg</i>) |
227 <b>_encode_base64</b>(<i>msg</i>) |
228 <p> |
228 <p> |
229 Function to encode the message's payload in Base64. |
229 Function to encode the message's payload in Base64. |
230 </p><p> |
230 </p><p> |
231 Note: It adds an appropriate Content-Transfer-Encoding header. |
231 Note: It adds an appropriate Content-Transfer-Encoding header. |
232 </p><dl> |
232 </p><dl> |
233 <dt><i>msg</i></dt> |
233 <dt><i>msg</i></dt> |
234 <dd> |
234 <dd> |
235 reference to the message object (email.Message) |
235 reference to the message object (email.Message) |
236 </dd> |
236 </dd> |
237 </dl> |
237 </dl> |
238 <div align="right"><a href="#top">Up</a></div> |
238 <div align="right"><a href="#top">Up</a></div> |
239 <hr /> |
239 <hr /> |
240 </body></html> |
240 </body></html> |