1 | /* |
2 | Copyright (c) 2009 Volker Krause <vkrause@kde.org> |
3 | Copyright (c) 2010 Tom Albers <toma@kde.org> |
4 | Copyright (c) 2012 Laurent Montel <montel@kde.org> |
5 | |
6 | This library is free software; you can redistribute it and/or modify it |
7 | under the terms of the GNU Library General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or (at your |
9 | option) any later version. |
10 | |
11 | This library is distributed in the hope that it will be useful, but WITHOUT |
12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public |
14 | License for more details. |
15 | |
16 | You should have received a copy of the GNU Library General Public License |
17 | along with this library; see the file COPYING.LIB. If not, write to the |
18 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
19 | 02110-1301, USA. |
20 | */ |
21 | |
22 | #ifndef PERSONALDATA_H |
23 | #define PERSONALDATA_H |
24 | |
25 | #include "page.h" |
26 | #include "setupmanager.h" |
27 | #include "dialog.h" |
28 | |
29 | #include "ui_personaldatapage.h" |
30 | |
31 | class Ispdb; |
32 | |
33 | class PersonalDataPage : public Page |
34 | { |
35 | Q_OBJECT |
36 | public: |
37 | explicit PersonalDataPage( Dialog* parent = 0 ); |
38 | void setHideOptionInternetSearch( bool ); |
39 | |
40 | virtual void leavePageNext(); |
41 | virtual void leavePageNextRequested(); |
42 | |
43 | private slots: |
44 | void ispdbSearchFinished( bool ok ); |
45 | void slotTextChanged(); |
46 | void slotCreateAccountClicked(); |
47 | void slotRadioButtonClicked( QAbstractButton* button); |
48 | void slotSearchType(const QString&); |
49 | |
50 | signals: |
51 | void manualWanted( bool ); |
52 | |
53 | private: |
54 | void automaticConfigureAccount(); |
55 | void configureSmtpAccount(); |
56 | void configureImapAccount(); |
57 | void configurePop3Account(); |
58 | |
59 | Ui::PersonalDataPage ui; |
60 | Ispdb* mIspdb; |
61 | SetupManager *mSetupManager; |
62 | }; |
63 | |
64 | #endif |
65 | |