PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/externals/GData/Source/Elements/GDataName.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 70 lines | 35 code | 17 blank | 18 comment | 1 complexity | ff5b039850c62d1d6cbe7857d5f75549 MD5 | raw file
 1/* Copyright (c) 2009 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//  GDataName.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
21
22#import "GDataObject.h"
23
24@interface GDataNameElement : GDataObject
25
26+ (id)nameElementWithString:(NSString *)str;
27
28- (NSString *)stringValue;
29- (void)setStringValue:(NSString *)str;
30
31// an optional yomi attribute for pronunciation
32- (void)setYomi:(NSString *)str;
33- (NSString *)yomi;
34@end
35
36@interface GDataName : GDataObject <GDataExtension>
37
38+ (GDataName *)name;
39+ (GDataName *)nameWithFullNameString:(NSString *)str;
40+ (GDataName *)nameWithPrefix:(NSString *)prefix
41                  givenString:(NSString *)first
42             additionalString:(NSString *)middle
43                 familyString:(NSString *)last
44                       suffix:(NSString *)suffix;
45
46- (GDataNameElement *)additionalName;
47- (void)setAdditionalName:(GDataNameElement *)obj;
48- (void)setAdditionalNameWithString:(NSString *)str;
49
50- (GDataNameElement *)familyName;
51- (void)setFamilyName:(GDataNameElement *)obj;
52- (void)setFamilyNameWithString:(NSString *)str;
53
54- (GDataNameElement *)fullName;
55- (void)setFullName:(GDataNameElement *)obj;
56- (void)setFullNameWithString:(NSString *)str;
57
58- (GDataNameElement *)givenName;
59- (void)setGivenName:(GDataNameElement *)obj;
60- (void)setGivenNameWithString:(NSString *)str;
61
62- (NSString *)namePrefix;
63- (void)setNamePrefix:(NSString *)str;
64
65- (NSString *)nameSuffix;
66- (void)setNameSuffix:(NSString *)str;
67
68@end
69
70#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE