| 1 |
//C- -*- C++ -*- |
| 2 |
//C- ------------------------------------------------------------------- |
| 3 |
//C- DjView4 |
| 4 |
//C- Copyright (c) 2006- Leon Bottou |
| 5 |
//C- |
| 6 |
//C- This software is subject to, and may be distributed under, the |
| 7 |
//C- GNU General Public License, either version 2 of the license, |
| 8 |
//C- or (at your option) any later version. The license should have |
| 9 |
//C- accompanied the software or you may obtain a copy of the license |
| 10 |
//C- from the Free Software Foundation at http://www.fsf.org . |
| 11 |
//C- |
| 12 |
//C- This program is distributed in the hope that it will be useful, |
| 13 |
//C- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
//C- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
//C- GNU General Public License for more details. |
| 16 |
//C- ------------------------------------------------------------------ |
| 17 |
|
| 18 |
#ifndef QDJVUNET_H |
| 19 |
#define QDJVUNET_H |
| 20 |
|
| 21 |
#if AUTOCONF |
| 22 |
# include "config.h" |
| 23 |
#endif |
| 24 |
|
| 25 |
#include <qdjvu.h> |
| 26 |
|
| 27 |
class QAuthenticator; |
| 28 |
class QNetworkAccessManager; |
| 29 |
|
| 30 |
class QDjVuNetDocument : public QDjVuDocument |
| 31 |
{ |
| 32 |
Q_OBJECT |
| 33 |
public: |
| 34 |
~QDjVuNetDocument(); |
| 35 |
QDjVuNetDocument(bool autoDelete=false, QObject *parent=0); |
| 36 |
QDjVuNetDocument(QObject *parent); |
| 37 |
bool setUrl(QDjVuContext *ctx, QUrl url, bool cache=true); |
| 38 |
static QNetworkAccessManager* manager(); |
| 39 |
static void setProxy(QUrl proxyurl); |
| 40 |
protected: |
| 41 |
virtual void newstream(int streamid, QString name, QUrl url); |
| 42 |
signals: |
| 43 |
void authRequired(QString why, QString &user, QString &pass); |
| 44 |
void sslWhiteList(QString why, bool &okay); |
| 45 |
void gotContentType(QString type, bool &okay); |
| 46 |
private: |
| 47 |
class Private; |
| 48 |
Private *p; |
| 49 |
}; |
| 50 |
|
| 51 |
#endif |
| 52 |
|
| 53 |
/* ------------------------------------------------------------- |
| 54 |
Local Variables: |
| 55 |
c++-font-lock-extra-types: ( "\\sw+_t" "Q[A-Z]\\sw*[a-z]\\sw*" ) |
| 56 |
End: |
| 57 |
------------------------------------------------------------- */ |