Skip to content
14 changes: 10 additions & 4 deletions FsprgEmbeddedStore/FsprgEmbeddedStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@
// FsprgEmbeddedStore.h
// FsprgEmbeddedStore
//
// Created by Lars Steiger on 2/28/10.
// Copyright 2010 FastSpring. All rights reserved.
// Created by Luc Vandal on 2016-07-19.
// Copyright © 2016 Edovia Inc. All rights reserved.
//

#import <Cocoa/Cocoa.h>

//! Project version number for FsprgEmbeddedStore.
FOUNDATION_EXPORT double FsprgEmbeddedStoreVersionNumber;

//! Project version string for FsprgEmbeddedStore.
FOUNDATION_EXPORT const unsigned char FsprgEmbeddedStoreVersionString[];
#import "FsprgEmbeddedStoreController.h"
#import "FsprgEmbeddedStoreDelegate.h"
#import "FsprgStoreParameters.h"

// Model
// Mode"
#import "FsprgOrder.h"
#import "FsprgOrderItem.h"
#import "FsprgFulfillment.h"
Expand Down
20 changes: 11 additions & 9 deletions FsprgEmbeddedStore/FsprgEmbeddedStoreController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#import <WebKit/WebKit.h>
#import "FsprgEmbeddedStoreDelegate.h"

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

/*!
* Controller for FastSpring's embedded store.
Expand All @@ -21,19 +23,17 @@
NSMutableDictionary *hostCertificates;
}

- (WebView *)webView;
@property (NS_NONATOMIC_IOSONLY, strong) WebView *webView;
/*!
* Connects this controller to a web view.
* @param aWebView Web view to connect.
*/
- (void)setWebView:(WebView *)aWebView;

- (id <FsprgEmbeddedStoreDelegate>)delegate;
@property (NS_NONATOMIC_IOSONLY, assign) id<FsprgEmbeddedStoreDelegate> delegate;
/*!
* Sets a delegate to which it has a weak reference.
* @param aDelegate Delegate to set.
*/
- (void)setDelegate:(id <FsprgEmbeddedStoreDelegate>)aDelegate;

/*!
* Loads the store using the given parameters.
Expand All @@ -51,30 +51,32 @@
* Useful to trigger e.g. the hidden flag of a progress bar.
* @result TRUE if loading a page.
*/
- (BOOL)isLoading;
@property (NS_NONATOMIC_IOSONLY, getter=isLoading, readonly) BOOL loading;

/*!
* Useful to provide the value for a progress bar.
* @result The loading progress in percent of a page (0 - 100)
*/
- (double)estimatedLoadingProgress;
@property (NS_NONATOMIC_IOSONLY, readonly) double estimatedLoadingProgress;

/**
* Useful to show a secure icon.
* @result TRUE if connection is secure (SSL)
*/
- (BOOL)isSecure;
@property (NS_NONATOMIC_IOSONLY, getter=isSecure, readonly) BOOL secure;

/**
*
* @result NSArray containing SecCertificateRef objects for the host of the main frame, if it was loaded via https.
*/
- (NSArray *)securityCertificates;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *securityCertificates;

/*!
* Host that delivers the store (e.g. sites.fastspring.com).
* @result <code>nil</code> until the store has been loaded.
*/
- (NSString *)storeHost;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *storeHost;

#pragma clang diagnostic pop

@end
Loading