Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 52 lines (33 sloc) 1.343 kB
d5a2bcf @millenomi Initial commit.
authored
1 //
2 // ILSimSKPaymentQueue.h
3 // SimStoreKit
4 //
5 // Created by ∞ on 02/02/10.
6 // Copyright 2010 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import "ILSimSKPayment.h"
11 #import "ILSimSKPaymentTransaction.h"
12
13 @protocol ILSimSKPaymentTransactionObserver;
14
15
16 @interface ILSimSKPaymentQueue : NSObject {
17 NSMutableSet* observers;
18 NSMutableArray* transactions;
19
20 ILSimSKPaymentTransaction* currentTransaction;
21 }
22
23 + (BOOL) canMakePayments;
24
25 + (ILSimSKPaymentQueue*) defaultQueue;
26
27 - (void) addPayment:(ILSimSKPayment*) p;
28 - (void) addTransactionObserver:(id <ILSimSKPaymentTransactionObserver>) o;
29 - (void) removeTransactionObserver:(id <ILSimSKPaymentTransactionObserver>) o;
30
31 - (void) finishTransaction:(ILSimSKPaymentTransaction*) t;
32
33 - (void) restoreCompletedTransactions;
34
35 @property(nonatomic, readonly) NSArray* transactions;
36
37 @end
38
39
40 @protocol ILSimSKPaymentTransactionObserver <NSObject>
293cfd9 @millenomi Added test app, fixed typos, added restoring.
authored
41 @required
d5a2bcf @millenomi Initial commit.
authored
42 - (void) paymentQueue:(ILSimSKPaymentQueue*) queue updatedTransactions:(NSArray*) transactions;
43
293cfd9 @millenomi Added test app, fixed typos, added restoring.
authored
44 @optional
d5a2bcf @millenomi Initial commit.
authored
45 - (void) paymentQueue:(ILSimSKPaymentQueue*) queue removedTransactions:(NSArray*) transactions;
46
47 - (void) paymentQueue:(ILSimSKPaymentQueue*) queue restoreCompletedTransactionsFailedWithError:(NSError*) e;
48
49 - (void) paymentQueueRestoreCompletedTransactionsFinished:(ILSimSKPaymentQueue*) queue;
50
51 @end
Something went wrong with that request. Please try again.