diff options
| author | Tannin <devnull@localhost> | 2013-06-15 14:42:20 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-06-15 14:42:20 +0200 |
| commit | 49cbe0349184419530d22782cc670946b61c9f01 (patch) | |
| tree | a73c952c93f0624771df97fa9b2b724b51ed0956 /src/nxmaccessmanager.h | |
| parent | 6069decb159ec30b7a69649294ee0e89783bb717 (diff) | |
- completed Qt5 compatibility
- added GetFileVerisonInfoW hook for Windows 8 compatibility
- fixed BossDummy to compile correctly with current version of the RGiesecke.DllExport assembly
- fixed NCC components compiling with different Framewerk versions
- dropped files-list in Nexus-tab of modinfo dialog
Diffstat (limited to 'src/nxmaccessmanager.h')
| -rw-r--r-- | src/nxmaccessmanager.h | 152 |
1 files changed, 76 insertions, 76 deletions
diff --git a/src/nxmaccessmanager.h b/src/nxmaccessmanager.h index 8b7e92a8..32829d69 100644 --- a/src/nxmaccessmanager.h +++ b/src/nxmaccessmanager.h @@ -17,79 +17,79 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef NXMACCESSMANAGER_H
-#define NXMACCESSMANAGER_H
-
-
-#include <QNetworkAccessManager>
-#include <QTimer>
-#include <QNetworkReply>
-
-
-/**
- * @brief access manager extended to handle nxm links
- **/
-class NXMAccessManager : public QNetworkAccessManager
-{
- Q_OBJECT
-public:
-
- explicit NXMAccessManager(QObject *parent);
-
- bool loggedIn() const;
-
- void login(const QString &username, const QString &password);
-
- void showCookies();
-
-signals:
-
- /**
- * @brief emitted when a nxm:// link is opened
- *
- * @param url the nxm-link
- **/
- void requestNXMDownload(const QString &url);
-
- /**
- * @brief emitted after a successful login or if login was not necessary
- *
- * @param necessary true if a login was necessary and succeeded, false if the user is still logged in
- **/
- void loginSuccessful(bool necessary);
-
- void loginFailed(const QString &message);
-
- private slots:
-
-// void pageLoginFinished();
- void loginFinished();
- void loginError(QNetworkReply::NetworkError errorCode);
- void loginTimeout();
-
-public slots:
-
-protected:
-
- virtual QNetworkReply *createRequest(
- QNetworkAccessManager::Operation operation, const QNetworkRequest &request,
- QIODevice *device);
-
-private:
-
- void pageLogin();
-// void dlLogin();
-
- bool hasLoginCookies() const;
-
-private:
-
- QTimer m_LoginTimeout;
- QNetworkReply *m_LoginReply;
-
- QString m_Username;
- QString m_Password;
-
-};
-
-#endif // NXMACCESSMANAGER_H
+#ifndef NXMACCESSMANAGER_H +#define NXMACCESSMANAGER_H + + +#include <QNetworkAccessManager> +#include <QTimer> +#include <QNetworkReply> + + +/** + * @brief access manager extended to handle nxm links + **/ +class NXMAccessManager : public QNetworkAccessManager +{ + Q_OBJECT +public: + + explicit NXMAccessManager(QObject *parent); + + bool loggedIn() const; + + void login(const QString &username, const QString &password); + + void showCookies(); + +signals: + + /** + * @brief emitted when a nxm:// link is opened + * + * @param url the nxm-link + **/ + void requestNXMDownload(const QString &url); + + /** + * @brief emitted after a successful login or if login was not necessary + * + * @param necessary true if a login was necessary and succeeded, false if the user is still logged in + **/ + void loginSuccessful(bool necessary); + + void loginFailed(const QString &message); + + private slots: + +// void pageLoginFinished(); + void loginFinished(); + void loginError(QNetworkReply::NetworkError errorCode); + void loginTimeout(); + +public slots: + +protected: + + virtual QNetworkReply *createRequest( + QNetworkAccessManager::Operation operation, const QNetworkRequest &request, + QIODevice *device); + +private: + + void pageLogin(); +// void dlLogin(); + + bool hasLoginCookies() const; + +private: + + QTimer m_LoginTimeout; + QNetworkReply *m_LoginReply; + + QString m_Username; + QString m_Password; + +}; + +#endif // NXMACCESSMANAGER_H |
