//
//  GSApplicationPluginProtocol.h
//  Glyphs
//
//  Created by Martin Winter on 18/12/2018.
//  Copyright © 2018 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsApp/GSDocument.h>

@class GSDocument;

NS_ASSUME_NONNULL_BEGIN

/**
 Enables code (e. g. plugins) to call certain methods of `GSApplication` without having to import the class.
 */
@protocol GSApplicationPluginProtocol <NSObject>

- (NSArray<GSDocument *> *)fontDocuments;

- (nullable GSDocument *)currentFontDocument;

- (void)presentErrors:(NSDictionary *)errors;

- (void)presentErrorDelayed:(NSError *)error;
#ifndef GLYPHS_LITE
- (nullable NSString *)serialNumber;
#endif

- (BOOL)reportPythonException:(NSException *)exception;

@end

NS_ASSUME_NONNULL_END
