~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kscd/smtpconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Kscd - A simple cd player for the KDE Project
 
3
 *
 
4
 * $Id: smtpconfig.h,v 1.4 2001/03/11 15:33:54 dfoerste Exp $
 
5
 *
 
6
 * Copyright (c) 1997 Bernd Johannes wuebben@math.cornell.edu
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2, or (at your option)
 
11
 * any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program; if not, write to the Free Software
 
20
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
21
 *
 
22
 */
 
23
 
 
24
#ifndef SMTPCONFIG_H
 
25
#define SMTPCONFIG_H
 
26
 
 
27
#include <qdialog.h>
 
28
 
 
29
#include <qpushbutton.h>
 
30
#include <qgroupbox.h>
 
31
#include <qcheckbox.h>
 
32
#include <qlineedit.h>
 
33
#include <qlabel.h>
 
34
 
 
35
#include <kcombobox.h>
 
36
#include <kemailsettings.h>
 
37
 
 
38
class SMTPConfig:public QDialog
 
39
{
 
40
    Q_OBJECT
 
41
public:
 
42
    struct SMTPConfigData{
 
43
        bool enabled;
 
44
        QString serverHost;
 
45
        QString serverPort;
 
46
        QString senderAddress;
 
47
        QString senderReplyTo;
 
48
        QString mailProfile;
 
49
    };
 
50
 
 
51
    SMTPConfig(QWidget *parent = NULL, const char *name = NULL, struct SMTPConfigData *_configData = NULL);
 
52
    ~SMTPConfig() {};
 
53
 
 
54
public slots:
 
55
    void commitData();
 
56
    void enableClicked();
 
57
    void mailProfileChanged(const QString &name);
 
58
 
 
59
signals:
 
60
 
 
61
protected:
 
62
    QGroupBox       *mainBox;
 
63
    QCheckBox       *enableCB;
 
64
    QLabel          *mailProfileLabel;
 
65
    KComboBox       *mailProfileCombo;
 
66
    QLabel          *serverHostLabel;
 
67
    QLineEdit       *serverHostEdit;
 
68
    QLabel          *serverPortLabel;
 
69
    QLineEdit       *serverPortEdit;
 
70
    QLabel          *senderAddressLabel;
 
71
    QLineEdit       *senderAddressEdit;
 
72
    QLabel          *senderReplyToLabel;
 
73
    QLineEdit       *senderReplyToEdit;
 
74
    KEMailSettings  *kes;
 
75
 
 
76
private:
 
77
    SMTPConfigData *configData;
 
78
};
 
79
#endif