22 lines
486 B
C
22 lines
486 B
C
|
#ifndef GOOGLEDRIVEURLHANDLER_H
|
||
|
#define GOOGLEDRIVEURLHANDLER_H
|
||
|
|
||
|
#include "core/urlhandler.h"
|
||
|
|
||
|
class GoogleDriveService;
|
||
|
|
||
|
class GoogleDriveUrlHandler : public UrlHandler {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
GoogleDriveUrlHandler(GoogleDriveService* service, QObject* parent = 0);
|
||
|
|
||
|
QString scheme() const { return "googledrive"; }
|
||
|
QIcon icon() const { return QIcon(":providers/googledrive.png"); }
|
||
|
LoadResult StartLoading(const QUrl& url);
|
||
|
|
||
|
private:
|
||
|
GoogleDriveService* service_;
|
||
|
};
|
||
|
|
||
|
#endif
|