Fix iOS build

This commit is contained in:
Mykola Baibuz 2023-09-01 01:08:44 +03:00
parent 4e9f68acff
commit cacf74af3c
8 changed files with 15 additions and 18 deletions

View file

@ -1,9 +1,9 @@
#ifndef QTAPPDELEGATECINTERFACE_H
#define QTAPPDELEGATECINTERFACE_H
#include "ui/pages_logic/StartPageLogic.h"
#include "ui/controllers/importController.h"
void QtAppDelegateInitialize();
void setStartPageLogic(StartPageLogic*);
void setImportController(ImportController*);
#endif // QTAPPDELEGATECINTERFACE_H

View file

@ -1,9 +1,9 @@
#import <UIKit/UIKit.h>
#import "QtAppDelegate-C-Interface.h"
#include "ui/pages_logic/StartPageLogic.h"
#include "ui/controllers/importController.h"
@interface QtAppDelegate : UIResponder <UIApplicationDelegate>
+(QtAppDelegate *)sharedQtAppDelegate;
@property (nonatomic) StartPageLogic* startPageLogic;
@property (nonatomic) ImportController* ImportController;
@end

View file

@ -79,7 +79,7 @@
bool isOpenFile = file.open(QIODevice::ReadOnly);
QByteArray data = file.readAll();
[QtAppDelegate sharedQtAppDelegate].startPageLogic->importAnyFile(QString(data));
[QtAppDelegate sharedQtAppDelegate].ImportController->extractConfigFromData(QString(data));
return YES;
}
return NO;
@ -92,8 +92,8 @@ void QtAppDelegateInitialize()
NSLog(@"Created a new AppDelegate");
}
void setStartPageLogic(StartPageLogic* startPage) {
[QtAppDelegate sharedQtAppDelegate].startPageLogic = startPage;
void setImportController(ImportController* controller) {
[QtAppDelegate sharedQtAppDelegate].ImportController = controller;
}
@end