forked from KDE/kdev-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuploadprofiledlg.h
73 lines (60 loc) · 1.88 KB
/
uploadprofiledlg.h
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
/***************************************************************************
* Copyright 2007 Niko Sams <[email protected]> *
* *
* 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. *
* *
***************************************************************************/
#ifndef UPLOADPROFILEDLG_H
#define UPLOADPROFILEDLG_H
#include <QDialog>
class QUrl;
class QListWidgetItem;
namespace Ui {
class UploadProfileDlg;
}
class UploadProfileItem;
/**
* Dialog to edit a upload profile
*/
class UploadProfileDlg : public QDialog
{
Q_OBJECT
public:
UploadProfileDlg( QWidget *parent = nullptr );
~UploadProfileDlg() override;
public Q_SLOTS:
/**
* Opens the Dialog to edit an upload profile
* @return dialog's result code, Accepted or Rejected.
*/
int editProfile(UploadProfileItem* item);
private Q_SLOTS:
/**
* Opens a directory browser to select the path
*/
void browse();
/**
* Opens a directory browser to select the local path
*/
void browseLocal();
protected Q_SLOTS:
/**
* Implemented to accept() not if the entered url does not exist
*/
virtual void slotAcceptButtonClicked();
private:
/**
* Builds the Url from the current entered data
*/
QUrl currentUrl();
/**
* Sets the values of the widgets to the given url
*/
void updateUrl( const QUrl& url );
Ui::UploadProfileDlg* m_ui;
};
#endif
// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on