3
* KBluetooth4 - KDE Bluetooth Framework
5
* Copyright (C) 2008 Tom Patzig <tpatzig@suse.de>
7
* This file is part of kbluetooth4.
9
* kbluetooth4 is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* kbluetooth4 is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with kbluetooth4; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
#include "authdialog.h"
27
AuthDialog::AuthDialog(QObject* parent) : Ui_AuthDialog()
32
setWindowIcon(KIcon("preferences-system-bluetooth"));
33
iconLabel->setPixmap(KIcon("preferences-system-bluetooth").pixmap(32,32));
34
connect(trustButton,SIGNAL(clicked()),this,SLOT(slotTrustButton()));
35
connect(cancelButton,SIGNAL(clicked()),this,SLOT(slotCancelButton()));
36
connect(allwTrustButton,SIGNAL(clicked()),this,SLOT(slotAlwaysTrust()));
40
AuthDialog::~AuthDialog()
46
void AuthDialog::setAddr(QString addr)
48
addressLabel->setText(addr);
51
void AuthDialog::setName(QString name)
53
nameLabel->setText(name);
56
void AuthDialog::setService(QString service)
58
serviceLabel->setText(service);
61
void AuthDialog::slotTrustButton()
66
void AuthDialog::slotCancelButton()
70
void AuthDialog::slotAlwaysTrust()