2012-07-26 16:35:57 +02:00
|
|
|
#ifndef GOOGLEDRIVEURLHANDLER_H
|
|
|
|
#define GOOGLEDRIVEURLHANDLER_H
|
|
|
|
|
|
|
|
#include "core/urlhandler.h"
|
|
|
|
|
|
|
|
class GoogleDriveService;
|
|
|
|
|
|
|
|
class GoogleDriveUrlHandler : public UrlHandler {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-02-10 16:03:54 +01:00
|
|
|
GoogleDriveUrlHandler(GoogleDriveService* service, QObject* parent = nullptr);
|
2012-07-26 16:35:57 +02:00
|
|
|
|
|
|
|
QString scheme() const { return "googledrive"; }
|
|
|
|
QIcon icon() const { return QIcon(":providers/googledrive.png"); }
|
|
|
|
LoadResult StartLoading(const QUrl& url);
|
|
|
|
|
|
|
|
private:
|
|
|
|
GoogleDriveService* service_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|