File indexing completed on 2024-04-14 03:51:21

0001 /*
0002     This file is part of the KContacts framework.
0003 
0004     SPDX-FileCopyrightText: 2003 Cornelius Schumacher <schumacher@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 #ifndef KCONTACTS_TESTLOCK_H
0009 #define KCONTACTS_TESTLOCK_H
0010 
0011 #include <QLabel>
0012 #include <QWidget>
0013 
0014 #include "kcontacts/lock.h"
0015 
0016 class QLabel;
0017 class QTreeWidget;
0018 
0019 class LockWidget : public QWidget
0020 {
0021     Q_OBJECT
0022 public:
0023     LockWidget(const QString &identifier);
0024     ~LockWidget();
0025 
0026 protected Q_SLOTS:
0027     void lock();
0028     void unlock();
0029 
0030     void updateLockView();
0031 
0032 private:
0033     KContacts::Lock *mLock = nullptr;
0034 
0035     QLabel *mStatus = nullptr;
0036     QTreeWidget *mLockView = nullptr;
0037 };
0038 
0039 #endif