/*! @file @id $Id$ */ // 1 2 3 4 5 6 7 8 // 45678901234567890123456789012345678901234567890123456789012345678901234567890 #include #include #include #include #ifndef LOG #define LOG qDebug()<<__PRETTY_FUNCTION__ #endif class SslClientAuthNetworkAccessManager: public QNetworkAccessManager { Q_OBJECT; public: SslClientAuthNetworkAccessManager(QObject* parent = 0): QNetworkAccessManager(parent) { LOG; } virtual ~SslClientAuthNetworkAccessManager() { LOG; } void scAuth(SmartCardAuth* auth) { _scAuth = std::auto_ptr(auth); } Q_SIGNALS: void created(QNetworkReply*); protected: virtual QNetworkReply* createRequest(Operation op, const QNetworkRequest& req, QIODevice* outgoingData = 0 ) { LOG<login(false); } QNetworkReply* rep (QNetworkAccessManager::createRequest(op, req, outgoingData)); created(rep); LOG<<"Reply to URL: "<url().toString(); return rep; } private: std::auto_ptr _scAuth; };