File indexing completed on 2025-01-19 04:46:31
0001 /* 0002 This file is part of KAddressBook. 0003 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QDialog> 0011 0012 class QListView; 0013 class QPushButton; 0014 class TemplateSelectionDialog : public QDialog 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit TemplateSelectionDialog(QWidget *parent = nullptr); 0020 0021 bool templatesAvailable() const; 0022 0023 QString selectedTemplate() const; 0024 0025 private: 0026 void updateButtons(); 0027 QListView *mView = nullptr; 0028 QPushButton *mOkButton = nullptr; 0029 };