Files
WebODF/programs/nativeQtClient/odfview.h
T
Jos van den Oever 9cf1318458 Simplify Qt based executables.
Zip implementation is no longer in C++ but in JavaScript. Runtime customization is now shared between the two Qt executables.
2011-07-26 13:23:46 +02:00

31 lines
559 B
C++

#ifndef ODFVIEW_H
#define ODFVIEW_H
#include <QtWebKit/QWebView>
#include <QtNetwork/QNetworkAccessManager>
class NativeIO;
class OdfView : public QWebView
{
Q_OBJECT
public:
OdfView(QWidget* parent);
~OdfView();
QString currentFile() { return curFile; }
public slots:
bool loadFile(const QString &fileName);
private slots:
void slotLoadFinished(bool ok);
void slotInitWindowObjects();
private:
bool loaded;
QString curFile;
QNetworkAccessManager* networkaccessmanager;
NativeIO* nativeio;
};
#endif // ODFVIEW_H