File indexing completed on 2024-12-22 04:31:07

0001 #ifndef MAUIMACOS_H
0002 #define MAUIMACOS_H
0003 
0004 #include "abstractplatform.h"
0005 
0006 /**
0007  * @brief The MAUIMacOS class
0008  */
0009 class MAUIMacOS : public AbstractPlatform
0010 {
0011     Q_OBJECT
0012 public:
0013     explicit MAUIMacOS(QObject *parent = nullptr);
0014     /**
0015      * @brief removeTitlebarFromWindow
0016      * @param winId
0017      */
0018     static void removeTitlebarFromWindow(long winId = -1);
0019 
0020     /**
0021      * @brief runApp
0022      * @param app
0023      * @param files
0024      */
0025     static void runApp(const QString &app, const QList<QUrl> &files);
0026 
0027     // AbstractPlatform interface
0028 public slots:
0029     void shareFiles(const QList<QUrl> &urls) override final;
0030     void shareText(const QString &urls) override final;
0031     bool hasKeyboard() override final;
0032     bool hasMouse() override final;
0033 };
0034 
0035 #endif // MAUIMACOS_H