PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 49 lines | 15 code | 13 blank | 21 comment | 1 complexity | aa3c7569282f3da3263b2295f8d6a6ce 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//  GDataEmail.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
21
22#import "GDataObject.h"
23
24
25// email element
26// <gd:email label="Personal" address="fubar@gmail.com"/>
27//
28// http://code.google.com/apis/gdata/common-elements.html#gdEmail
29
30@interface GDataEmail : GDataObject <GDataExtension>
31
32+ (GDataEmail *)emailWithLabel:(NSString *)label
33                       address:(NSString *)address;
34
35- (NSString *)label;
36- (void)setLabel:(NSString *)str;
37
38- (NSString *)address;
39- (void)setAddress:(NSString *)str;
40
41- (NSString *)rel;
42- (void)setRel:(NSString *)str;
43
44- (BOOL)isPrimary;
45- (void)setIsPrimary:(BOOL)flag;
46
47@end
48
49#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE