Debian Codegraph @

src/emailDialog.h

raw symbols SCIP
1 /* ---------------------------------- emailDialog.h ---------------------------------------------------------------------------
2 header file used by emailDialog.cpp
3
4 ===============================================================================================================================
5 ===============================================================================================================================
6 This file is part of "luckyBackup" project
7 Copyright, Loukas Avgeriou
8 luckyBackup is distributed under the terms of the GNU General Public License
9 luckyBackup is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 luckyBackup is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with luckyBackup. If not, see <http://www.gnu.org/licenses/>.
21
22
23 project version : Please see "main.cpp" for project version
24
25 developer : luckyb
26 last modified : 06 Feb 2014
27 ===============================================================================================================================
28 ===============================================================================================================================
29 */
30
31 #ifndef EMAILDIALOG_H
32 #define EMAILDIALOG_H
33
34 #include "ui_emailDialog.h"
35
36 //==============================================================================================================
37 //Declaration of emailDialog class
38 // accessor function getGoOn returns true or false
39 class emailDialog : public QDialog
40 {
41 Q_OBJECT
42
43 public:
44 emailDialog (QDialog *parent=0);
45 int getGoOn();
46 QString getCommand();
47
48 private slots:
49 void okay(); // Okay pressed
50 void cancel(); // Cancel pressed
51 void revertDefault(const int); // SLOT to revert a field to the default value
52 void emailTest(); // Send an email now, using current fields
53 void enableTLS(); // Enable/disable the TLS option
54
55 private:
56 Ui::emailDialog uiE;
57
58 bool checkFields(); // Function to check if all fields are ok
59
60 int GoOn; // return an integer according to exit status
61 void fillWindow(); // Fill all gui fields from variables
62 void fillVariables(); // Fill relevant variables from gui fields
63 QString warningMessage; // Warning message to display if the fields are not ok
64
65 protected:
66 void closeEvent(QCloseEvent *);
67 };
68
69 #endif
70
71 // end of emailDialog.h ---------------------------------------------------------------------------