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

« back to all changes in this revision

Viewing changes to kmail/vacationdialog.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
 
/*  -*- c++ -*-
2
 
    vacationdialog.h
3
 
 
4
 
    KMail, the KDE mail client.
5
 
    Copyright (c) 2002 Marc Mutz <mutz@kde.org>
6
 
 
7
 
    This program is free software; you can redistribute it and/or
8
 
    modify it under the terms of the GNU General Public License,
9
 
    version 2.0, as published by the Free Software Foundation.
10
 
    You should have received a copy of the GNU General Public License
11
 
    along with this program; if not, write to the Free Software Foundation,
12
 
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13
 
*/
14
 
 
15
 
#ifndef __KMAIL_VACATIONDIALOG_H__
16
 
#define __KMAIL_VACATIONDIALOG_H__
17
 
 
18
 
#include "kdialog.h"
19
 
 
20
 
class KIntSpinBox;
21
 
class KLineEdit;
22
 
class KTextEdit;
23
 
 
24
 
class QString;
25
 
class QCheckBox;
26
 
template <typename T> class QList;
27
 
 
28
 
namespace KMime {
29
 
  namespace Types {
30
 
    struct AddrSpec;
31
 
    typedef QList<AddrSpec> AddrSpecList;
32
 
  }
33
 
}
34
 
 
35
 
namespace KMail {
36
 
 
37
 
  class VacationDialog : public KDialog {
38
 
    Q_OBJECT
39
 
  public:
40
 
    explicit VacationDialog( const QString & caption, QWidget * parent=0,
41
 
                    const char * name=0, bool modal=true );
42
 
    virtual ~VacationDialog();
43
 
 
44
 
    virtual void enableDomainAndSendForSpam( bool enable = true );
45
 
 
46
 
    bool activateVacation() const;
47
 
    virtual void setActivateVacation( bool activate );
48
 
 
49
 
    bool domainCheck() const;
50
 
    virtual void setDomainCheck( bool check );
51
 
 
52
 
    QString messageText() const;
53
 
    virtual void setMessageText( const QString & text );
54
 
 
55
 
    int notificationInterval() const;
56
 
    virtual void setNotificationInterval( int days );
57
 
 
58
 
    KMime::Types::AddrSpecList mailAliases() const;
59
 
    virtual void setMailAliases( const KMime::Types::AddrSpecList & aliases );
60
 
    virtual void setMailAliases( const QString & aliases );
61
 
 
62
 
    QString domainName() const;
63
 
    virtual void setDomainName( const QString & domain );
64
 
 
65
 
    bool sendForSpam() const;
66
 
    virtual void setSendForSpam( bool enable );
67
 
 
68
 
  private slots:
69
 
    void slotIntervalSpinChanged( int value );
70
 
 
71
 
  protected:
72
 
    QCheckBox   * mActiveCheck;
73
 
    KIntSpinBox * mIntervalSpin;
74
 
    KLineEdit   * mMailAliasesEdit;
75
 
    KTextEdit   * mTextEdit;
76
 
    QCheckBox   * mSpamCheck;
77
 
    QCheckBox   * mDomainCheck;
78
 
    KLineEdit   * mDomainEdit;
79
 
 
80
 
  };
81
 
 
82
 
} // namespace KMail
83
 
 
84
 
#endif // __KMAIL_VACATIONDIALOG_H__