1 #ifndef FMWEBDAV_H
2 #define FMWEBDAV_H
3 
4 #include <QtCore>
5 #include <QtNetwork>
6 #include <QNetworkAccessManager>
7 
8 public:
9 
10     enum QWebdavConnectionType {HTTP = 1, HTTPS};
11 
12     QString hostname() const;
13     int port() const;
14     QString rootPath() const;
15     QString username() const;
16     QString password() const;
17     QWebdavConnectionType connectionType() const;
18     bool isSSL() const;
19 
20  void setConnectionSettings( const QWebdavConnectionType connectionType, const QString *hostname, const QString *rootPath = "/", const QString *username = "", const QString *password = "", int *port = 0;
21 
22 
23 private:
24 
25     QString wdRootPath;
26     QString wdUsername;
27     QString wdPassword;
28     QUrl wdBaseUrl;
29     QWebdavConnectionType wdCurrentConnectionType;
30 
31 
32 
33 
34 
35 
36 #endif // FMWEBDAV
37