~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to akonadi/resources/imap/setupserver.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of the KDE project
2
 
   Copyright (C) 2009 Kevin Ottens <ervin@kde.org>
3
 
   Copyright (C) 2006-2008 Omat Holding B.V. <info@omat.nl>
4
 
 
5
 
   This program is free software; you can redistribute it and/or
6
 
   modify it under the terms of the GNU General Public
7
 
   License as published by the Free Software Foundation; either
8
 
   version 2 of the License, or (at your option) any later version.
9
 
 
10
 
   This program is distributed in the hope that it will be useful,
11
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
   General Public License for more details.
14
 
 
15
 
   You should have received a copy of the GNU General Public License
16
 
   along with this program; if not, write to the Free Software
17
 
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
*/
19
 
 
20
 
#ifndef SETUPSERVER_H
21
 
#define SETUPSERVER_H
22
 
 
23
 
#include <klineedit.h>
24
 
#include <kdialog.h>
25
 
 
26
 
class QProgressBar;
27
 
class QButtonGroup;
28
 
class QGroupBox;
29
 
class QLabel;
30
 
class QRadioButton;
31
 
class QPushButton;
32
 
 
33
 
namespace Ui
34
 
{
35
 
class SetupServerView;
36
 
}
37
 
 
38
 
namespace MailTransport
39
 
{
40
 
class ServerTest;
41
 
}
42
 
 
43
 
/**
44
 
 * @class SetupServer
45
 
 * These contain the account settings
46
 
 * @author Tom Albers <tomalbers@kde.nl>
47
 
 */
48
 
class SetupServer : public KDialog
49
 
{
50
 
  Q_OBJECT
51
 
 
52
 
public:
53
 
  /**
54
 
   * Constructor
55
 
   * @param parent Parent WId
56
 
   */
57
 
  SetupServer( WId parent );
58
 
 
59
 
  /**
60
 
   * Destructor
61
 
   */
62
 
  ~SetupServer();
63
 
 
64
 
  bool shouldClearCache() const;
65
 
 
66
 
private slots:
67
 
  /**
68
 
   * Call this if you want the settings saved from this page.
69
 
   */
70
 
  void applySettings();
71
 
 
72
 
private:
73
 
  void readSettings();
74
 
 
75
 
  Ui::SetupServerView *m_ui;
76
 
  MailTransport::ServerTest *m_serverTest;
77
 
  bool m_subscriptionEnabled;
78
 
  bool m_subscriptionsChanged;
79
 
  bool m_shouldClearCache;
80
 
 
81
 
private slots:
82
 
  void slotTest();
83
 
  void slotFinished( QList<int> testResult );
84
 
  void slotTestChanged();
85
 
  void slotComplete();
86
 
  void slotSafetyChanged();
87
 
  void slotManageSubscriptions();
88
 
};
89
 
 
90
 
#endif