3
* KDE Bluetooth Screen Locker
5
* Copyright (C) 2007 Tom Patzig <tpatzig@suse.de>
8
* This file is part of kbluelock.
10
* kbluelock is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* kbluelock is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with kbluelock; if not, write to the Free Software
22
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
#include <libkbluetooth/manager.h>
29
#include <libkbluetooth/adapter.h>
30
#include <libkbluetooth/dbussignal.h>
31
#include <libkbluetooth/dbusinit.h>
32
#include <qpushbutton.h>
33
#include <qmessagebox.h>
34
#include <qlistview.h>
36
#include <ksystemtray.h>
37
#include <qstringlist.h>
38
#include <qcheckbox.h>
39
#include <qmainwindow.h>
41
#include <kapplication.h>
42
#include <kuniqueapplication.h>
44
#include <kiconloader.h>
45
#include <kmessagebox.h>
47
#include <khelpmenu.h>
49
#include <kpopupmenu.h>
50
#include <dcopclient.h>
52
#include <qstatusbar.h>
56
#include "lockdialog.h"
58
using namespace KBluetooth;
60
class KBlueLock : public LockDialog {
73
QStringList *setupNewDevList;
74
QListViewItem *newdev;
81
DCOPClient* dcopclient;
83
KAction* disableAction;
84
KAction* enableAction;
90
QStatusBar* statusbar;
94
void insertDev(const QString&, int, short);
97
void checkBoxSlot(bool);
98
void activateLock(const QString&);
99
void slotAbout() { helpMenu->aboutApplication(); };
101
void updateDevName(const QString&, const QString&);
102
void disableActionSlot();
103
void enableActionSlot();
104
void restartPeriodicDiscovery();
107
void slotEnableSearch();
108
void setDiscoverStatusOn();
109
void activateUnlock(const QString&,int, short);
110
void slotStartPeriodicDisco();