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

« back to all changes in this revision

Viewing changes to kdm/kfrontend/kchooser.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
 
 
3
chooser widget for KDM
 
4
 
 
5
Copyright (C) 2002-2003 Oswald Buddenhagen <ossi@kde.org>
 
6
based on the chooser (C) 1999 by Harald Hoyer <Harald.Hoyer@RedHat.de>
 
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 of the License, or
 
11
(at your option) 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
21
 
 
22
*/
 
23
 
 
24
#ifndef KCHOOSER_H
 
25
#define KCHOOSER_H
 
26
 
 
27
#include "kgdialog.h"
 
28
 
 
29
#include <QTimer>
 
30
 
 
31
class ChooserListViewItem;
 
32
 
 
33
class QLineEdit;
 
34
class QSocketNotifier;
 
35
class QTreeWidget;
 
36
 
 
37
class ChooserDlg : public KGDialog {
 
38
    Q_OBJECT
 
39
    typedef KGDialog inherited;
 
40
 
 
41
  public:
 
42
    ChooserDlg();
 
43
 
 
44
  public Q_SLOTS:
 
45
    void slotReadPipe();
 
46
    void addHostname();
 
47
//    void slotHelp();
 
48
    void pingHosts();
 
49
    void accept();
 
50
    void reject();
 
51
 
 
52
  private Q_SLOTS:
 
53
    void slotTimeout();
 
54
    void slotActivity();
 
55
 
 
56
  private:
 
57
    QString recvStr();
 
58
    ChooserListViewItem *findItem(int id);
 
59
 
 
60
    QTimer timer;
 
61
    QTreeWidget *host_view;
 
62
    QLineEdit *iline;
 
63
    QSocketNotifier *sn;
 
64
};
 
65
 
 
66
#endif /* KCHOOSER_H */