iOS: add infrastructure to natively send email

This will allow us to send attachments, just like we do on Android.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-08-29 16:40:04 -07:00
parent 0af410d6ce
commit 8164ca56ec
3 changed files with 140 additions and 0 deletions

18
ios/ios-share.h Normal file
View file

@ -0,0 +1,18 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef IOSSHARE_H
#define IOSSHARE_H
// onlt Qt headers and data structures allowed here
#include <QString>
class IosShare {
public:
IosShare();
~IosShare();
void supportEmail(const QString &firstPath, const QString &secondPath);
void shareViaEmail(const QString &subject, const QString &recipient, const QString &body, const QString &firstPath, const QString &secondPath);
private:
void *self;
};
#endif /* IOSSHARE_H */