2
* Copyright (C) 2012 Ivan Cukic <ivan.cukic(at)kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2,
6
* or (at your option) any later version, as published by the Free
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
14
* You should have received a copy of the GNU General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
#include <utils/d_ptr.h>
29
class Ui: public QObject {
36
* Asynchronous way to ask for a password
37
* @arg title title for the window
38
* @arg message password prompt message
39
* @arg newPassword should the password be asked twice
40
* @arg receiver object to receive the signal when the password is returned
41
* @arg slot method to call
43
static void askPassword(const QString & title, const QString & message,
44
bool newPassword, bool unlockMode,
45
QObject * receiver, const char * slot);
47
static void ask(const QString & title, const QString & message,
48
const QStringList & choices,
49
QObject * receiver, const char * slot);
51
static void message(const QString & title, const QString & message);
53
static void setBusy(bool value = true);
63
void _askPassword(const QString & title, const QString & message,
64
bool newPassword, bool unlockMode,
65
QObject * receiver, const char * slot);
67
void _ask(const QString & title, const QString & message,
68
const QStringList & choices,
69
QObject * receiver, const char * slot);
71
void _message(const QString & title, const QString & message);
73
void _setBusy(bool value);