PageRenderTime 18ms CodeModel.GetById 7ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataPhoneNumber.h

http://macfuse.googlecode.com/
C++ Header | 85 lines | 45 code | 15 blank | 25 comment | 1 complexity | b76170ad92d941ab29bd1d71874a3d6b MD5 | raw file
 1/* Copyright (c) 2007 Google Inc.
 2 *
 3 * Licensed under the Apache License, Version 2.0 (the "License");
 4 * you may not use this file except in compliance with the License.
 5 * You may obtain a copy of the License at
 6 *
 7 *     http://www.apache.org/licenses/LICENSE-2.0
 8 *
 9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16//
17//  GDataPhoneNumber.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
21
22#import "GDataObject.h"
23
24#undef _EXTERN
25#undef _INITIALIZE_AS
26#ifdef GDATAPHONENUMBER_DEFINE_GLOBALS
27#define _EXTERN
28#define _INITIALIZE_AS(x) =x
29#else
30#define _EXTERN GDATA_EXTERN
31#define _INITIALIZE_AS(x)
32#endif
33
34// Note: kGDataContactMobile, kGDataContactHome, and kGDataContactWork are
35// equivalent to kGDataPhoneNumberMobile, kGDataPhoneNumberHome, kGDataPhoneNumberWork
36
37_EXTERN NSString* const kGDataPhoneNumberAssistant   _INITIALIZE_AS(@"http://schemas.google.com/g/2005#assistant");
38_EXTERN NSString* const kGDataPhoneNumberCallback    _INITIALIZE_AS(@"http://schemas.google.com/g/2005#callback");
39_EXTERN NSString* const kGDataPhoneNumberCar         _INITIALIZE_AS(@"http://schemas.google.com/g/2005#car");
40_EXTERN NSString* const kGDataPhoneNumberCompanyMain _INITIALIZE_AS(@"http://schemas.google.com/g/2005#company_main");
41_EXTERN NSString* const kGDataPhoneNumberFax         _INITIALIZE_AS(@"http://schemas.google.com/g/2005#fax");
42_EXTERN NSString* const kGDataPhoneNumberHome        _INITIALIZE_AS(@"http://schemas.google.com/g/2005#home");
43_EXTERN NSString* const kGDataPhoneNumberHomeFax     _INITIALIZE_AS(@"http://schemas.google.com/g/2005#home_fax");
44_EXTERN NSString* const kGDataPhoneNumberISDN        _INITIALIZE_AS(@"http://schemas.google.com/g/2005#isdn");
45_EXTERN NSString* const kGDataPhoneNumberMobile      _INITIALIZE_AS(@"http://schemas.google.com/g/2005#mobile");
46_EXTERN NSString* const kGDataPhoneNumberOther       _INITIALIZE_AS(@"http://schemas.google.com/g/2005#other");
47_EXTERN NSString* const kGDataPhoneNumberOtherFax    _INITIALIZE_AS(@"http://schemas.google.com/g/2005#other_fax");
48_EXTERN NSString* const kGDataPhoneNumberPager       _INITIALIZE_AS(@"http://schemas.google.com/g/2005#pager");
49_EXTERN NSString* const kGDataPhoneNumberRadio       _INITIALIZE_AS(@"http://schemas.google.com/g/2005#radio");
50_EXTERN NSString* const kGDataPhoneNumberTelex       _INITIALIZE_AS(@"http://schemas.google.com/g/2005#telex");
51_EXTERN NSString* const kGDataPhoneNumberTTYTDD      _INITIALIZE_AS(@"http://schemas.google.com/g/2005#tty_tdd");
52_EXTERN NSString* const kGDataPhoneNumberWork        _INITIALIZE_AS(@"http://schemas.google.com/g/2005#work");
53_EXTERN NSString* const kGDataPhoneNumberWorkFax     _INITIALIZE_AS(@"http://schemas.google.com/g/2005#work_fax");
54_EXTERN NSString* const kGDataPhoneNumberWorkMobile  _INITIALIZE_AS(@"http://schemas.google.com/g/2005#work_mobile");
55_EXTERN NSString* const kGDataPhoneNumberWorkPager   _INITIALIZE_AS(@"http://schemas.google.com/g/2005#work_pager");
56
57// phone number, as in
58//  <gd:phoneNumber rel="http://schemas.google.com/g/2005#work" >
59//    (425) 555-8080 ext. 52585
60//  </gd:phoneNumber>
61//
62// http://code.google.com/apis/gdata/common-elements.html#gdPhoneNumber
63
64@interface GDataPhoneNumber : GDataObject <GDataExtension> {
65}
66
67+ (GDataPhoneNumber *)phoneNumberWithString:(NSString *)str;
68
69- (NSString *)rel;
70- (void)setRel:(NSString *)str;
71
72- (NSString *)label;
73- (void)setLabel:(NSString *)str;
74
75- (NSString *)URI;
76- (void)setURI:(NSString *)str;
77
78- (NSString *)stringValue;
79- (void)setStringValue:(NSString *)str;
80
81- (BOOL)isPrimary;
82- (void)setIsPrimary:(BOOL)flag;
83@end
84
85#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE