2021-01-29 21:00:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Oleksandr Zolotov <alex@nextcloud.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FOLDERCREATIONDIALOG_H
|
|
|
|
#define FOLDERCREATIONDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2021-02-04 18:10:24 +03:00
|
|
|
namespace OCC {
|
|
|
|
|
2021-01-29 21:00:21 +03:00
|
|
|
namespace Ui {
|
|
|
|
class FolderCreationDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class FolderCreationDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit FolderCreationDialog(const QString &destination, QWidget *parent = nullptr);
|
2021-08-17 13:39:31 +03:00
|
|
|
~FolderCreationDialog() override;
|
2021-01-29 21:00:21 +03:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void accept() override;
|
|
|
|
|
|
|
|
void slotNewFolderNameEditTextEdited();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::FolderCreationDialog *ui;
|
|
|
|
|
|
|
|
QString _destination;
|
|
|
|
};
|
|
|
|
|
2021-02-04 18:10:24 +03:00
|
|
|
}
|
|
|
|
|
2021-01-29 21:00:21 +03:00
|
|
|
#endif // FOLDERCREATIONDIALOG_H
|