PageRenderTime 25ms CodeModel.GetById 16ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 75 lines | 38 code | 14 blank | 23 comment | 1 complexity | 0b0cf4d993863531c055d42ba343ee1d 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//  GDataIM.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 GDATAIM_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_EXTERN NSString* const kGDataIMProtocolAIM        _INITIALIZE_AS(@"http://schemas.google.com/g/2005#AIM");
35_EXTERN NSString* const kGDataIMProtocolGoogleTalk _INITIALIZE_AS(@"http://schemas.google.com/g/2005#GOOGLE_TALK");
36_EXTERN NSString* const kGDataIMProtocolICQ        _INITIALIZE_AS(@"http://schemas.google.com/g/2005#ICQ");
37_EXTERN NSString* const kGDataIMProtocolJabber     _INITIALIZE_AS(@"http://schemas.google.com/g/2005#JABBER");
38_EXTERN NSString* const kGDataIMProtocolMSN        _INITIALIZE_AS(@"http://schemas.google.com/g/2005#MSN");
39_EXTERN NSString* const kGDataIMProtocolNetMeeting _INITIALIZE_AS(@"http://schemas.google.com/g/2005#NETMEETING");
40_EXTERN NSString* const kGDataIMProtocolQQ         _INITIALIZE_AS(@"http://schemas.google.com/g/2005#QQ");
41_EXTERN NSString* const kGDataIMProtocolSkype      _INITIALIZE_AS(@"http://schemas.google.com/g/2005#SKYPE");
42_EXTERN NSString* const kGDataIMProtocolYahoo      _INITIALIZE_AS(@"http://schemas.google.com/g/2005#YAHOO");
43
44// IM element, as in
45//   <gd:im protocol="http://schemas.google.com/g/2005#MSN"
46//      address="foo@bar.example.com" label="Alternate"
47//      rel="http://schemas.google.com/g/2005#other" >
48//
49// http://code.google.com/apis/gdata/common-elements.html#gdIm
50
51@interface GDataIM : GDataObject <GDataExtension> {
52}
53
54+ (GDataIM *)IMWithProtocol:(NSString *)protocol
55                        rel:(NSString *)rel
56                      label:(NSString *)label
57                    address:(NSString *)address;
58
59- (NSString *)address;
60- (void)setAddress:(NSString *)str;
61
62- (NSString *)label;
63- (void)setLabel:(NSString *)str;
64
65- (NSString *)rel;
66- (void)setRel:(NSString *)str;
67
68- (NSString *)protocol;
69- (void)setProtocol:(NSString *)str;
70
71- (BOOL)isPrimary;
72- (void)setIsPrimary:(BOOL)flag;
73@end
74
75#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE