File indexing completed on 2024-10-06 04:26:03

0001 /*
0002     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef _K3B_URL_NAVIGATOR_H_
0007 #define _K3B_URL_NAVIGATOR_H_
0008 
0009 #include <KUrlNavigator>
0010 #include <QUrl>
0011 
0012 namespace K3b {
0013     namespace Device {
0014         class Device;
0015     }
0016 
0017     class UrlNavigator : public KUrlNavigator
0018     {
0019         Q_OBJECT
0020 
0021     public:
0022         explicit UrlNavigator( KFilePlacesModel* model, QWidget* parent = 0 );
0023         ~UrlNavigator() override;
0024 
0025     public Q_SLOTS:
0026         void setDevice( K3b::Device::Device* );
0027 
0028     Q_SIGNALS:
0029         void activated( const QUrl& url );
0030         void activated( K3b::Device::Device* dev );
0031 
0032     private Q_SLOTS:
0033         void urlActivated( const QUrl &url );
0034 
0035     };
0036 }
0037 
0038 #endif