Developer Area

root/apps/iphone/superbook/trunk/DotTel_SDK/Classes/RecordLoc.h @ 479

Revision 363, 2.7 kB (checked in by henri, 5 years ago)

Updated copyright dates

Line 
1//
2//  RecordLoc.h
3//  DotTel SDK
4//
5//  Created by Henri Asseily on 9/13/08.
6/*
7 Copyright (c) 2008-2009, Telnic Ltd. All rights reserved.
8 
9 Redistribution and use in source and binary forms, with or without modification,
10 are permitted provided that the following conditions are met:
11 
12 Redistributions of source code must retain the above copyright notice, this list of conditions
13 and the following disclaimer. Redistributions in binary form must reproduce the above copyright
14 notice, this list of conditions and the following disclaimer in the documentation and/or other
15 materials provided with the distribution.
16 Neither the name of the Telnic Ltd. nor the names of its contributors may be used to endorse or
17 promote products derived from this software without specific prior written permission.
18 THIS DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
19 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
20 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27//
28
29#import <UIKit/UIKit.h>
30#import <CoreLocation/CoreLocation.h>
31#import "ldns.h"
32
33@interface RecordLoc : CLLocation {
34
35        BOOL isValid;
36        NSDate *expiryDate;     // Expiry date of the record, based on time-to-live
37       
38}
39
40/**
41 * Class method to initialize a LOC record from a ldns resource record
42 * This method calls recordWithRr:date: using the current date and time
43 *
44 * @return     the record
45 */
46+ (id)recordWithRr:(ldns_rr *)rr;
47
48/**
49 * Class method to initialize a LOC record from a ldns resource record
50 * Sets property isValid=NO on error or if the provided ldns rr is not a LOC.
51 * RecordLoc is a subclass of CLLocation.
52 *
53 * @return     the record
54 */
55+ (id)recordWithRr:(ldns_rr *)rr date:(NSDate *)lookupDate;
56
57/**
58 * Initializer for a LOC record from a ldns resource record
59 * Sets property isValid=NO on error or if the provided ldns rr is not a LOC.
60 * You shouldn't need to call this directly. Instead call the class method
61 * recordWithRr.
62 *
63 * @return     the record
64 */
65- (id)initWithRr:(ldns_rr *)rr date:(NSDate *)lookupDate;
66
67@property (readonly) BOOL isValid;
68@property (readonly, nonatomic, retain) NSDate *expiryDate;
69
70@end
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us