/usr/include/KF5/KIOFileWidgets/knameandurlinputdialog.h is in libkf5kio-dev 5.44.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | /*
Copyright (c) 1998, 2008, 2009 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License or ( at
your option ) version 3 or, at the discretion of KDE e.V. ( which shall
act as a proxy as in section 14 of the GPLv3 ), any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KNAMEANDURLINPUTDIALOG_H
#define KNAMEANDURLINPUTDIALOG_H
#include "kiofilewidgets_export.h"
#include <QDialog>
class KLineEdit;
class KUrlRequester;
class KNameAndUrlInputDialogPrivate;
class QUrl;
/**
* @class KNameAndUrlInputDialog knameandurlinputdialog.h <KNameAndUrlInputDialog>
*
* Dialog to ask for a name (e.g. filename) and a URL
* Basically a merge of KLineEditDlg and KUrlRequesterDlg ;)
* @since 4.5
* @author David Faure <faure@kde.org>
*/
class KIOFILEWIDGETS_EXPORT KNameAndUrlInputDialog : public QDialog
{
Q_OBJECT
public:
/**
* @param nameLabel label for the name field
* @param urlLabel label for the URL requester
* @param startDir start directory for the URL requester (optional)
* @param parent parent widget
*/
KNameAndUrlInputDialog(const QString &nameLabel, const QString &urlLabel, const QUrl &startDir, QWidget *parent);
/**
* Destructor.
*/
virtual ~KNameAndUrlInputDialog();
/**
* Pre-fill the name lineedit.
*/
void setSuggestedName(const QString &name);
/**
* Pre-fill the URL requester.
*/
void setSuggestedUrl(const QUrl &url);
/**
* @return the name the user entered
*/
QString name() const;
/**
* @return the URL the user entered
*/
QUrl url() const;
/**
* @return the URL the user entered, as plain text.
* This is only useful for creating relative symlinks.
* @since 5.25
*/
QString urlText() const;
private:
Q_PRIVATE_SLOT(d, void _k_slotNameTextChanged(const QString &))
Q_PRIVATE_SLOT(d, void _k_slotURLTextChanged(const QString &))
KNameAndUrlInputDialogPrivate *const d;
};
#endif
|