/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Contacts/GDataContactJot.h
http://macfuse.googlecode.com/ · C++ Header · 56 lines · 25 code · 12 blank · 19 comment · 1 complexity · 4a7243206e8c14bb78611d5da0327a9c MD5 · raw file
- /* Copyright (c) 2009 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- //
- // GDataContactJot.h
- //
- #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
- #import "GDataObject.h"
- #undef _EXTERN
- #undef _INITIALIZE_AS
- #ifdef GDATACONTACTJOT_DEFINE_GLOBALS
- #define _EXTERN
- #define _INITIALIZE_AS(x) =x
- #else
- #define _EXTERN GDATA_EXTERN
- #define _INITIALIZE_AS(x)
- #endif
- // rel values
- _EXTERN NSString* kGDataContactJotHome _INITIALIZE_AS(@"home");
- _EXTERN NSString* kGDataContactJotKeywords _INITIALIZE_AS(@"keywords");
- _EXTERN NSString* kGDataContactJotOther _INITIALIZE_AS(@"other");
- _EXTERN NSString* kGDataContactJotUser _INITIALIZE_AS(@"user");
- _EXTERN NSString* kGDataContactJotWork _INITIALIZE_AS(@"work");
- // TODO - XML example snippet
- @interface GDataContactJot : GDataObject <GDataExtension>
- + (id)jotWithRel:(NSString *)rel
- value:(NSString *)value;
- - (NSString *)rel;
- - (void)setRel:(NSString *)str;
- - (NSString *)stringValue;
- - (void)setStringValue:(NSString *)str;
- @end
- #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE