~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kdm/kcm/kdm-conv.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 2000 Oswald Buddenhagen <ossi@kde.org>
 
3
    Based on several other files.
 
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 Library General Public License
 
16
    along with this library; see the file COPYING.LIB.  If not, write to
 
17
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
18
    Boston, MA 02110-1301, USA.
 
19
*/
 
20
 
 
21
#ifndef __KDMCONV_H__
 
22
#define __KDMCONV_H__
 
23
 
 
24
#include <QWidget>
 
25
 
 
26
class QListWidget;
 
27
class QListWidgetItem;
 
28
class KComboBox;
 
29
class QCheckBox;
 
30
class QGroupBox;
 
31
class QRadioButton;
 
32
 
 
33
class KDMConvenienceWidget : public QWidget {
 
34
    Q_OBJECT
 
35
 
 
36
  public:
 
37
    KDMConvenienceWidget(QWidget *parent = 0);
 
38
 
 
39
    void load();
 
40
    void save();
 
41
    void defaults();
 
42
 
 
43
  public Q_SLOTS:
 
44
    void slotClearUsers();
 
45
    void slotAddUsers(const QMap<QString, int> &);
 
46
    void slotDelUsers(const QMap<QString, int> &);
 
47
 
 
48
 
 
49
  Q_SIGNALS:
 
50
    void changed();
 
51
 
 
52
  private Q_SLOTS:
 
53
    void slotPresChanged();
 
54
    void slotSetAutoUser(const QString &user);
 
55
    void slotSetPreselUser(const QString &user);
 
56
    void slotUpdateNoPassUser(QListWidgetItem *item);
 
57
 
 
58
  private:
 
59
    QGroupBox *alGroup, *puGroup, *npGroup, *btGroup;
 
60
    QCheckBox *cbarlen, *cbjumppw, *autoLockCheck;
 
61
    QRadioButton *npRadio, *ppRadio, *spRadio;
 
62
    KComboBox *userlb, *puserlb;
 
63
    QListWidget *npuserlv;
 
64
    QString autoUser, preselUser;
 
65
    QStringList noPassUsers;
 
66
};
 
67
 
 
68
#endif