~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to mobile/mail/configwidget.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
 
3
    Copyright (c) 2010 Tobias Koenig <tobias.koenig@kdab.com>
 
4
 
 
5
    This library is free software; you can redistribute it and/or
 
6
    modify it under the terms of the GNU Lesser General Public
 
7
    License as published by the Free Software Foundation; either
 
8
    version 2.1 of the License, or (at your option) any later version.
 
9
 
 
10
    This library 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
    Lesser General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU Lesser General Public
 
16
    License along with this library; if not, write to the Free Software
 
17
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
18
*/
 
19
 
 
20
#ifndef CONFIGWIDGET_H
 
21
#define CONFIGWIDGET_H
 
22
 
 
23
#include "declarativewidgetbase.h"
 
24
#include "mainview.h"
 
25
 
 
26
#include <QtGui/QGraphicsProxyWidget>
 
27
#include <QtGui/QWidget>
 
28
 
 
29
class KConfigDialogManager;
 
30
 
 
31
class ConfigWidget : public QWidget
 
32
{
 
33
  Q_OBJECT
 
34
 
 
35
  public:
 
36
    explicit ConfigWidget( QWidget *parent = 0 );
 
37
 
 
38
  public Q_SLOTS:
 
39
    void load();
 
40
    void save();
 
41
 
 
42
  private Q_SLOTS:
 
43
    void configureCompletionOrder();
 
44
    void editRecentAddresses();
 
45
 
 
46
  Q_SIGNALS:
 
47
    void configChanged();
 
48
    void showTemplatesHelp();
 
49
 
 
50
  private:
 
51
    void loadFromExternalSettings();
 
52
    void saveToExternalSettings();
 
53
 
 
54
    KConfigDialogManager *mManager;
 
55
};
 
56
 
 
57
class DeclarativeConfigWidget :
 
58
#ifndef Q_MOC_RUN
 
59
public DeclarativeWidgetBase<ConfigWidget, MainView, &MainView::setConfigWidget>
 
60
#else
 
61
public QGraphicsProxyWidget
 
62
#endif
 
63
{
 
64
  Q_OBJECT
 
65
 
 
66
  public:
 
67
    explicit DeclarativeConfigWidget( QGraphicsItem *parent = 0 );
 
68
    ~DeclarativeConfigWidget();
 
69
 
 
70
  public Q_SLOTS:
 
71
    void load();
 
72
    void save();
 
73
 
 
74
  Q_SIGNALS:
 
75
    void configChanged();
 
76
 
 
77
  private:
 
78
    ConfigWidget *mConfigWidget;
 
79
};
 
80
 
 
81
#endif