-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JUS support (need a configuration item to be able to switch) + co…
…nvert files to unix format
- Loading branch information
Showing
13 changed files
with
469 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#include "qqbigornoitem.h" | ||
|
||
QQBigornoItem::QQBigornoItem(int postition, const QString & word) | ||
{ | ||
m_position = postition; | ||
m_word = word; | ||
m_wasNotified = false; | ||
} | ||
|
||
#include "qqbigornoitem.h" | ||
|
||
QQBigornoItem::QQBigornoItem(int postition, const QString & word) | ||
{ | ||
m_position = postition; | ||
m_word = word; | ||
m_wasNotified = false; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#ifndef QQBIGORNOITEM_H | ||
#define QQBIGORNOITEM_H | ||
|
||
#include <QString> | ||
|
||
class QQBigornoItem | ||
{ | ||
public: | ||
QQBigornoItem(int postition, const QString & word); | ||
|
||
int position() { return m_position; } | ||
QString word() { return m_word; } | ||
bool wasNotified() { return m_wasNotified; } | ||
void setNotified() { m_wasNotified = true; } | ||
|
||
private: | ||
int m_position; | ||
QString m_word; | ||
bool m_wasNotified; | ||
}; | ||
|
||
#endif // QQBIGORNOITEM_H | ||
#ifndef QQBIGORNOITEM_H | ||
#define QQBIGORNOITEM_H | ||
|
||
#include <QString> | ||
|
||
class QQBigornoItem | ||
{ | ||
public: | ||
QQBigornoItem(int postition, const QString & word); | ||
|
||
int position() { return m_position; } | ||
QString word() { return m_word; } | ||
bool wasNotified() { return m_wasNotified; } | ||
void setNotified() { m_wasNotified = true; } | ||
|
||
private: | ||
int m_position; | ||
QString m_word; | ||
bool m_wasNotified; | ||
}; | ||
|
||
#endif // QQBIGORNOITEM_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,57 @@ | ||
#ifndef QQNETWORKACCESSOR_H | ||
#define QQNETWORKACCESSOR_H | ||
|
||
#include <QDateTime> | ||
#include <QMap> | ||
#include <QMutex> | ||
#include <QNetworkAccessManager> | ||
#include <QNetworkReply> | ||
#include <QObject> | ||
#include <QPointer> | ||
#include <QTimer> | ||
|
||
class QAbstractNetworkCache; | ||
|
||
class QQNetworkAccessor : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
QQNetworkAccessor(QObject *parent); | ||
|
||
static void updateProxySettings(); | ||
|
||
protected slots: | ||
virtual void requestFinishedSlot(QNetworkReply *reply) = 0; | ||
|
||
protected: | ||
int name_to_month(QByteArray month_str); | ||
QDateTime parseRC822(QString string); | ||
|
||
protected: | ||
QNetworkReply *httpGet(const QNetworkRequest &request); | ||
QNetworkReply *httpHead(const QNetworkRequest &request); | ||
QNetworkReply *httpPost(const QNetworkRequest &request, | ||
const QByteArray &postData); | ||
QNetworkReply *httpPost(const QNetworkRequest &request, | ||
QHttpMultiPart *multiPart); | ||
void setNetCacheManager(QAbstractNetworkCache *networkCache) { m_qnam->setCache(networkCache); } | ||
|
||
protected slots: | ||
void onProxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator); | ||
void onRemoveTimer(QObject *obj); | ||
void onRequestTimeout(); | ||
|
||
private: | ||
QPointer<QNetworkAccessManager> m_qnam; | ||
QMap<QNetworkReply *, QTimer *> m_replyTimers; | ||
|
||
// Gestion du proxy | ||
static QMutex m_proxyPopupMutex; | ||
static QString m_proxyUser; | ||
static QString m_proxyPasswd; | ||
}; | ||
|
||
#endif // QQNETWORKACCESSOR_H | ||
#ifndef QQNETWORKACCESSOR_H | ||
#define QQNETWORKACCESSOR_H | ||
|
||
#include <QDateTime> | ||
#include <QMap> | ||
#include <QMutex> | ||
#include <QNetworkAccessManager> | ||
#include <QNetworkReply> | ||
#include <QObject> | ||
#include <QPointer> | ||
#include <QTimer> | ||
|
||
class QAbstractNetworkCache; | ||
|
||
class QQNetworkAccessor : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
QQNetworkAccessor(QObject *parent); | ||
|
||
static void updateProxySettings(); | ||
|
||
protected slots: | ||
virtual void requestFinishedSlot(QNetworkReply *reply) = 0; | ||
|
||
protected: | ||
int name_to_month(QByteArray month_str); | ||
QDateTime parseRC822(QString string); | ||
|
||
protected: | ||
QNetworkReply *httpGet(const QNetworkRequest &request); | ||
QNetworkReply *httpHead(const QNetworkRequest &request); | ||
QNetworkReply *httpPost(const QNetworkRequest &request, | ||
const QByteArray &postData); | ||
QNetworkReply *httpPost(const QNetworkRequest &request, | ||
QHttpMultiPart *multiPart); | ||
QNetworkReply *httpPut(const QNetworkRequest &request, | ||
QIODevice *data); | ||
void setNetCacheManager(QAbstractNetworkCache *networkCache) { m_qnam->setCache(networkCache); } | ||
|
||
protected slots: | ||
void onProxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator); | ||
void onRemoveTimer(QObject *obj); | ||
void onRequestTimeout(); | ||
|
||
private: | ||
QPointer<QNetworkAccessManager> m_qnam; | ||
QMap<QNetworkReply *, QTimer *> m_replyTimers; | ||
|
||
// Gestion du proxy | ||
static QMutex m_proxyPopupMutex; | ||
static QString m_proxyUser; | ||
static QString m_proxyPasswd; | ||
}; | ||
|
||
#endif // QQNETWORKACCESSOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#include "qqpurgebouchothistoevent.h" | ||
|
||
const QEvent::Type QQPurgeBouchotHistoEvent::PURGE_BOUCHOT_HISTO = | ||
(QEvent::Type)QEvent::registerEventType(); | ||
|
||
QQPurgeBouchotHistoEvent::QQPurgeBouchotHistoEvent() : | ||
QEvent(PURGE_BOUCHOT_HISTO) | ||
{ | ||
} | ||
#include "qqpurgebouchothistoevent.h" | ||
|
||
const QEvent::Type QQPurgeBouchotHistoEvent::PURGE_BOUCHOT_HISTO = | ||
(QEvent::Type)QEvent::registerEventType(); | ||
|
||
QQPurgeBouchotHistoEvent::QQPurgeBouchotHistoEvent() : | ||
QEvent(PURGE_BOUCHOT_HISTO) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#ifndef QQPURGEBOUCHOTHISTOEVENT_H | ||
#define QQPURGEBOUCHOTHISTOEVENT_H | ||
|
||
#include <QEvent> | ||
#include <QString> | ||
|
||
class QQPurgeBouchotHistoEvent : public QEvent | ||
{ | ||
public: | ||
static const QEvent::Type PURGE_BOUCHOT_HISTO; | ||
QQPurgeBouchotHistoEvent(); | ||
}; | ||
|
||
#endif // QQPURGEBOUCHOTHISTOEVENT_H | ||
#ifndef QQPURGEBOUCHOTHISTOEVENT_H | ||
#define QQPURGEBOUCHOTHISTOEVENT_H | ||
|
||
#include <QEvent> | ||
#include <QString> | ||
|
||
class QQPurgeBouchotHistoEvent : public QEvent | ||
{ | ||
public: | ||
static const QEvent::Type PURGE_BOUCHOT_HISTO; | ||
QQPurgeBouchotHistoEvent(); | ||
}; | ||
|
||
#endif // QQPURGEBOUCHOTHISTOEVENT_H |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.