aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/widgets/fmwebdav.h
blob: 04d29e3b4f4f4d939fe46dd695a8d940a41b8c91 (plain)
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
#ifndef FMWEBDAV_H
#define FMWEBDAV_H

#include <QtCore>
#include <QtNetwork>
#include <QNetworkAccessManager>

public:

    enum QWebdavConnectionType {HTTP = 1, HTTPS};

    QString hostname() const;
    int port() const;
    QString rootPath() const;
    QString username() const;
    QString password() const;
    QWebdavConnectionType connectionType() const;
    bool isSSL() const;

 void setConnectionSettings( const QWebdavConnectionType connectionType, const QString *hostname, const QString *rootPath = "/", const QString *username = "", const QString *password = "", int *port = 0;


private:

    QString wdRootPath;
    QString wdUsername;
    QString wdPassword;
    QUrl wdBaseUrl;
    QWebdavConnectionType wdCurrentConnectionType;






#endif // FMWEBDAV
bgstack15