Documentation/Source/eric5.UI.EmailDialog.html

changeset 58
37f0444c3479
parent 48
f4274afeba82
child 120
c0ef4b5e679a
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.UI.EmailDialog</h1> 23 <h1>eric5.UI.EmailDialog</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#115;&#101;&#110;&#100; &#98;&#117;&#103; &#114;&#101;&#112;&#111;&#114;&#116;&#115;. 25 Module implementing a dialog to send bug reports.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#EmailDialog">EmailDialog</a></td> 34 <td><a href="#EmailDialog">EmailDialog</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#115;&#101;&#110;&#100; &#98;&#117;&#103; &#114;&#101;&#112;&#111;&#114;&#116;&#115;.</td> 35 <td>Class implementing a dialog to send bug reports.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr> 40 <tr>
41 <td><a href="#_encode_base64">_encode_base64</a></td> 41 <td><a href="#_encode_base64">_encode_base64</a></td>
42 <td>&#70;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#101;&#110;&#99;&#111;&#100;&#101; &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101;'&#115; &#112;&#97;y&#108;&#111;&#97;&#100; &#105;&#110; &#66;&#97;&#115;&#101;&#54;&#52;.</td> 42 <td>Function to encode the message's payload in Base64.</td>
43 </tr> 43 </tr>
44 </table> 44 </table>
45 <hr /><hr /> 45 <hr /><hr />
46 <a NAME="EmailDialog" ID="EmailDialog"></a> 46 <a NAME="EmailDialog" ID="EmailDialog"></a>
47 <h2>EmailDialog</h2> 47 <h2>EmailDialog</h2>
48 <p> 48 <p>
49 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#115;&#101;&#110;&#100; &#98;&#117;&#103; &#114;&#101;&#112;&#111;&#114;&#116;&#115;. 49 Class implementing a dialog to send bug reports.
50 </p> 50 </p>
51 <h3>Derived from</h3> 51 <h3>Derived from</h3>
52 QDialog, Ui_EmailDialog 52 QDialog, Ui_EmailDialog
53 <h3>Class Attributes</h3> 53 <h3>Class Attributes</h3>
54 <table> 54 <table>
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>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#109;&#117;&#108;&#116;&#105;&#112;&#97;&#114;&#116; &#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#115;&#105;&#109;&#112;&#108;&#101; &#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#99;&#116;&#117;&#97;&#108;&#108;y &#115;&#101;&#110;&#100; &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#116;&#116;&#97;&#99;&#104;&#109;&#101;&#110;&#116;.</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>&#82;&#101;-&#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#101;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#117;&#115;&#101;&#114; &#112;&#114;&#101;&#115;&#115;&#105;&#110;&#103; &#116;&#104;&#101; &#101;&#115;&#99;&#97;&#112;&#101; &#107;&#101;y.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#65;&#100;&#100;...</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x &#99;&#108;&#105;&#99;&#107;&#101;&#100;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#114;&#101;&#106;&#101;&#99;&#116;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#68;&#101;&#108;&#101;&#116;&#101; &#98;&#117;&#116;&#116;&#111;&#110;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#116;&#101;x&#116;&#67;&#104;&#97;&#110;&#103;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101; &#101;&#100;&#105;&#116;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#110;&#100; &#116;&#104;&#101; &#101;&#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#116;&#101;x&#116;&#67;&#104;&#97;&#110;&#103;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#115;&#117;&#98;&#106;&#101;&#99;&#116; &#101;&#100;&#105;&#116;.</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 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 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 &#109;&#111;&#100;&#101; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103; (&#115;&#116;&#114;&#105;&#110;&#103;, "&#98;&#117;&#103;" &#111;&#114; "&#102;&#101;&#97;&#116;&#117;&#114;&#101;") 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 &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#109;&#117;&#108;&#116;&#105;&#112;&#97;&#114;&#116; &#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101;. 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 &#115;&#116;&#114;&#105;&#110;&#103; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101; 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#115;&#105;&#109;&#112;&#108;&#101; &#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101;. 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 &#115;&#116;&#114;&#105;&#110;&#103; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101; 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#99;&#116;&#117;&#97;&#108;&#108;y &#115;&#101;&#110;&#100; &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101;. 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 &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101; &#116;&#111; &#98;&#101; &#115;&#101;&#110;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 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 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#116;&#116;&#97;&#99;&#104;&#109;&#101;&#110;&#116;. 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 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#102;&#105;&#108;&#101; &#116;&#111; &#98;&#101; &#97;&#116;&#116;&#97;&#99;&#104;&#101;&#100; (&#115;&#116;&#114;&#105;&#110;&#103;) 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 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#116;&#111; &#100;&#101;&#108;&#101;&#116;&#101; &#116;&#104;&#101; &#102;&#105;&#108;&#101; &#97;&#102;&#116;&#101;&#114; &#105;&#116; &#104;&#97;&#115; 159 flag indicating to delete the file after it has
160 &#98;&#101;&#101;&#110; &#115;&#101;&#110;&#116; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 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 &#82;&#101;-&#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#101;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#117;&#115;&#101;&#114; &#112;&#114;&#101;&#115;&#115;&#105;&#110;&#103; &#116;&#104;&#101; &#101;&#115;&#99;&#97;&#112;&#101; &#107;&#101;y. 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 &#107;&#101;y &#101;v&#101;&#110;&#116; (&#81;&#75;&#101;y&#69;v&#101;&#110;&#116;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#65;&#100;&#100;... &#98;&#117;&#116;&#116;&#111;&#110;. 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x &#99;&#108;&#105;&#99;&#107;&#101;&#100;. 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 &#98;&#117;&#116;&#116;&#111;&#110; &#116;&#104;&#97;&#116; w&#97;&#115; &#99;&#108;&#105;&#99;&#107;&#101;&#100; (&#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#66;&#117;&#116;&#116;&#111;&#110;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#114;&#101;&#106;&#101;&#99;&#116;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x. 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#68;&#101;&#108;&#101;&#116;&#101; &#98;&#117;&#116;&#116;&#111;&#110;. 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#116;&#101;x&#116;&#67;&#104;&#97;&#110;&#103;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101; &#101;&#100;&#105;&#116;. 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 &#99;&#104;&#97;&#110;&#103;&#101;&#100; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#110;&#100; &#116;&#104;&#101; &#101;&#109;&#97;&#105;&#108; &#109;&#101;&#115;&#115;&#97;&#103;&#101;. 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#116;&#101;x&#116;&#67;&#104;&#97;&#110;&#103;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108; &#111;&#102; &#116;&#104;&#101; &#115;&#117;&#98;&#106;&#101;&#99;&#116; &#101;&#100;&#105;&#116;. 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 &#99;&#104;&#97;&#110;&#103;&#101;&#100; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 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 &#70;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#101;&#110;&#99;&#111;&#100;&#101; &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101;'&#115; &#112;&#97;y&#108;&#111;&#97;&#100; &#105;&#110; &#66;&#97;&#115;&#101;&#54;&#52;. 229 Function to encode the message's payload in Base64.
230 </p><p> 230 </p><p>
231 &#78;&#111;&#116;&#101;&#58; &#73;&#116; &#97;&#100;&#100;&#115; &#97;&#110; &#97;&#112;&#112;&#114;&#111;&#112;&#114;&#105;&#97;&#116;&#101; &#67;&#111;&#110;&#116;&#101;&#110;&#116;-&#84;&#114;&#97;&#110;&#115;&#102;&#101;&#114;-&#69;&#110;&#99;&#111;&#100;&#105;&#110;&#103; &#104;&#101;&#97;&#100;&#101;&#114;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#109;&#101;&#115;&#115;&#97;&#103;&#101; &#111;&#98;&#106;&#101;&#99;&#116; (&#101;&#109;&#97;&#105;&#108;.&#77;&#101;&#115;&#115;&#97;&#103;&#101;) 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>

eric ide

mercurial