31 lines
1.1 KiB
C++
Executable file
31 lines
1.1 KiB
C++
Executable file
// (c) 2017 Ekkehard Gentz (ekke) @ekkescorner
|
|
// my blog about Qt for mobile: http://j.mp/qt-x
|
|
// see also /COPYRIGHT and /LICENSE
|
|
|
|
#ifndef __IOSSHAREUTILS_H__
|
|
#define __IOSSHAREUTILS_H__
|
|
|
|
#include "headers/shareUtils/platformshareutils.h"
|
|
|
|
class IosShareUtils : public PlatformShareUtils
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit IosShareUtils(QObject *parent = 0);
|
|
bool checkMimeTypeView(const QString &mimeType) override;
|
|
bool checkMimeTypeEdit(const QString &mimeType) override;
|
|
void shareText(const QString &text, const QUrl &url) override;
|
|
void sendFile(const QString &filePath, const QString &title, const QString &mimeType, const int &requestId) override;
|
|
void viewFile(const QString &filePath, const QString &title, const QString &mimeType, const int &requestId) override;
|
|
void editFile(const QString &filePath, const QString &title, const QString &mimeType, const int &requestId) override;
|
|
|
|
void handleDocumentPreviewDone(const int &requestId);
|
|
|
|
public slots:
|
|
void handleFileUrlReceived(const QUrl &url);
|
|
void handleHttpsUrlReceived(const QUrl &url);
|
|
|
|
};
|
|
|
|
#endif
|