1/* This file is part of the KDE project
2 Copyright (C) 2000 David Faure <faure@kde.org>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef __kserviceselectdlg_h
19#define __kserviceselectdlg_h
20#include <kdialog.h>
21#include <kservice.h>
22#include <klistwidget.h>
23class KServiceSelectDlg : public KDialog
24{
25 Q_OBJECT
26public:
27 /**
28 * Create a dialog to select a service (not application) for a given service type.
29 *
30 * @param serviceType the service type we want to choose a service for.
31 * @param value is the initial service to select (not implemented currently)
32 * @param parent parent widget
33 */
34 explicit KServiceSelectDlg( const QString& serviceType,
35 const QString& value = QString(),
36 QWidget *parent = 0L );
37
38 ~KServiceSelectDlg();
39
40 /**
41 * @return the chosen service
42 */
43 KService::Ptr service();
44protected slots:
45 void slotOk();
46private:
47 KListWidget * m_listbox;
48};
49
50#endif
51