PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Contacts/GDataEntryContactGroup.h

http://macfuse.googlecode.com/
C++ Header | 66 lines | 30 code | 15 blank | 21 comment | 1 complexity | 64a0b7ebeb563c74a16bddcefc938c8f MD5 | raw file
 1/* Copyright (c) 2008 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//  GDataEntryContactGroup.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
21
22#import "GDataEntryBase.h"
23#import "GDataExtendedProperty.h"
24
25#undef _EXTERN
26#undef _INITIALIZE_AS
27#ifdef GDATAENTRYCONTACTGROUP_DEFINE_GLOBALS
28#define _EXTERN
29#define _INITIALIZE_AS(x) =x
30#else
31#define _EXTERN GDATA_EXTERN
32#define _INITIALIZE_AS(x)
33#endif
34
35// for a contact groups feed, use these constants with -entryForSystemGroupID
36// to find a specific system group entry
37_EXTERN NSString* const kGDataSystemGroupIDMyContacts _INITIALIZE_AS(@"Contacts");
38_EXTERN NSString* const kGDataSystemGroupIDFriends    _INITIALIZE_AS(@"Friends");
39_EXTERN NSString* const kGDataSystemGroupIDFamily     _INITIALIZE_AS(@"Family");
40_EXTERN NSString* const kGDataSystemGroupIDCoworkers  _INITIALIZE_AS(@"Coworkers");
41
42
43// system group identifier, like <gContact:systemGroup id="Contacts"/>
44@interface GDataContactSystemGroup : GDataValueConstruct <GDataExtension>
45- (NSString *)attributeName; // returns "id"
46
47- (NSString *)identifier;
48- (void)setIdentifier:(NSString *)str;
49@end
50
51@interface GDataEntryContactGroup : GDataEntryBase
52
53+ (GDataEntryContactGroup *)contactGroupEntryWithTitle:(NSString *)title;
54
55- (GDataContactSystemGroup *)systemGroup;
56- (void)setSystemGroup:(GDataContactSystemGroup *)obj;
57
58- (NSArray *)extendedProperties;
59- (void)setExtendedProperties:(NSArray *)arr;
60- (void)addExtendedProperty:(GDataExtendedProperty *)obj;
61
62// note: support for gd:deleted is in GDataEntryBase
63
64@end
65
66#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE