File indexing completed on 2024-07-14 04:54:31

0001 /*
0002  *  Bookmark editor
0003  *
0004  *  SPDX-FileCopyrightText: 2023 Alexander Reinholdt <alexander.reinholdt@kdemail.net>
0005  *  SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #ifndef SMB4KBOOKMARKEDITOR_H
0009 #define SMB4KBOOKMARKEDITOR_H
0010 
0011 // application specific includes
0012 #include "smb4kconfigpagebookmarks.h"
0013 
0014 // Qt includes
0015 #include <QDialog>
0016 #include <QPushButton>
0017 
0018 class Q_DECL_EXPORT Smb4KBookmarkEditor : public QDialog
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     /**
0024      * Constructor
0025      */
0026     explicit Smb4KBookmarkEditor(QWidget *parent = nullptr);
0027 
0028     /**
0029      * Destructor
0030      */
0031     virtual ~Smb4KBookmarkEditor();
0032 
0033 protected Q_SLOTS:
0034     /**
0035      * Invoked when the "Save" button should be enabled
0036      */
0037     void slotEnabledButtons();
0038 
0039     /**
0040      * Invoked when the dialog is accepted and the bookmarks
0041      * are to be saved.
0042      */
0043     void slotSaveBookmarks();
0044 
0045 private:
0046     Smb4KConfigPageBookmarks *m_mainWidget;
0047     QPushButton *m_saveButton;
0048     QPushButton *m_cancelButton;
0049 };
0050 
0051 #endif