This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJakimSolatParser.h
51 lines (39 loc) · 1.59 KB
/
JakimSolatParser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// JakimSolatParser.h
//
// Created by Sumardi Shukor <sumardi@wutmedia.com> on 2/26/12.
// Copyright (c) 2012 Wutmedia. All rights reserved.
//
// JakimSolatWrapper is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with JakimSolatWrapper. If not, see <http://www.gnu.org/licenses/>
//
#import <Foundation/Foundation.h>
@class JakimPrayerTime, JakimSolatParser;
@protocol JakimSolatDelegate <NSObject>
@optional
- (void)jakimSolatParser:(JakimSolatParser *)parser didParsePrayerTime:(JakimPrayerTime *)prayerTime;
- (void)jakimSolatParser:(JakimSolatParser *)parser didFailWithError:(NSError *)error;
@end
@interface JakimSolatParser : NSObject <NSURLConnectionDelegate, NSURLConnectionDataDelegate> {
id<JakimSolatDelegate> delegate;
NSURL *url;
NSURLConnection *urlConnection;
JakimPrayerTime *prayerTime;
NSMutableData *prayerTimeData;
}
@property (nonatomic, retain) id<JakimSolatDelegate> delegate;
@property (nonatomic, retain) JakimPrayerTime *prayerTime;
- (id)initWithURL:(NSURL *)urlJakim;
- (id)initWithCode:(NSString *)code;
- (BOOL)parse;
@end