| 1 | /* |
---|
| 2 | * Adium is the legal property of its developers, whose names are listed in the copyright file included |
---|
| 3 | * with this source distribution. |
---|
| 4 | * |
---|
| 5 | * This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
---|
| 6 | * General Public License as published by the Free Software Foundation; either version 2 of the License, |
---|
| 7 | * or (at your option) any later version. |
---|
| 8 | * |
---|
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
---|
| 10 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
---|
| 11 | * Public License for more details. |
---|
| 12 | * |
---|
| 13 | * You should have received a copy of the GNU General Public License along with this program; if not, |
---|
| 14 | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #import <Adium/AIListObject.h> |
---|
| 18 | #import <Adium/AIAccount.h> |
---|
| 19 | #import <Adium/AIListGroup.h> |
---|
| 20 | |
---|
| 21 | #define KEY_AB_UNIQUE_ID @"AB Unique ID" |
---|
| 22 | |
---|
| 23 | @class ABPerson; |
---|
| 24 | |
---|
| 25 | @interface AIListContact : AIListObject { |
---|
| 26 | AIAccount *account; |
---|
| 27 | NSString *remoteGroupName; |
---|
| 28 | NSString *internalUniqueObjectID; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | - (id)initWithUID:(NSString *)inUID account:(AIAccount *)inAccount service:(AIService *)inService; |
---|
| 32 | - (id)initWithUID:(NSString *)inUID service:(AIService *)inService; |
---|
| 33 | - (void)setRemoteGroupName:(NSString *)inName; |
---|
| 34 | - (NSString *)remoteGroupName; |
---|
| 35 | - (void)setUID:(NSString *)inUID; |
---|
| 36 | - (AIAccount *)account; |
---|
| 37 | - (NSString *)internalUniqueObjectID; |
---|
| 38 | + (NSString *)internalUniqueObjectIDForService:(AIService *)inService account:(AIAccount *)inAccount UID:(NSString *)inUID; |
---|
| 39 | - (void)restoreGrouping; |
---|
| 40 | |
---|
| 41 | - (AIListGroup *)parentGroup; |
---|
| 42 | - (AIListContact *)parentContact; |
---|
| 43 | |
---|
| 44 | - (NSString *)ownDisplayName; |
---|
| 45 | - (NSString *)ownPhoneticName; |
---|
| 46 | - (NSString *)serversideDisplayName; |
---|
| 47 | |
---|
| 48 | - (BOOL)canContainOtherContacts; |
---|
| 49 | - (BOOL)containsMultipleContacts; |
---|
| 50 | - (BOOL)canJoinMetaContacts; |
---|
| 51 | |
---|
| 52 | - (BOOL)isIntentionallyNotAStranger; |
---|
| 53 | |
---|
| 54 | - (void)setIsMobile:(BOOL)isMobile notify:(NotifyTiming)notify; |
---|
| 55 | - (void)setOnline:(BOOL)online notify:(NotifyTiming)notify silently:(BOOL)silent; |
---|
| 56 | - (void)setSignonDate:(NSDate *)signonDate notify:(NotifyTiming)notify; |
---|
| 57 | - (NSDate *)signonDate; |
---|
| 58 | - (void)setIsBlocked:(BOOL)yesOrNo updateList:(BOOL)addToPrivacyLists; |
---|
| 59 | - (void)setIsAllowed:(BOOL)yesOrNo updateList:(BOOL)addToPrivacyLists; |
---|
| 60 | - (void)setIsOnPrivacyList:(BOOL)yesOrNo updateList:(BOOL)addToPrivacyLists privacyType:(AIPrivacyType)privType; |
---|
| 61 | |
---|
| 62 | - (void)setIdle:(BOOL)isIdle sinceDate:(NSDate *)idleSinceDate notify:(NotifyTiming)notify; |
---|
| 63 | - (void)setServersideIconData:(NSData *)iconData notify:(NotifyTiming)notify; |
---|
| 64 | |
---|
| 65 | - (void)setWarningLevel:(int)warningLevel notify:(NotifyTiming)notify; |
---|
| 66 | - (int)warningLevel; |
---|
| 67 | |
---|
| 68 | - (void)setProfileArray:(NSArray *)array notify:(NotifyTiming)notify; |
---|
| 69 | - (void)setProfile:(NSAttributedString *)profile notify:(NotifyTiming)notify; |
---|
| 70 | - (NSArray *)profileArray; |
---|
| 71 | - (NSAttributedString *)profile; |
---|
| 72 | |
---|
| 73 | - (void)setServersideAlias:(NSString *)alias |
---|
| 74 | silently:(BOOL)silent; |
---|
| 75 | |
---|
| 76 | - (NSAttributedString *)contactListStatusMessage; |
---|
| 77 | |
---|
| 78 | - (NSWritingDirection)baseWritingDirection; |
---|
| 79 | - (void)setBaseWritingDirection:(NSWritingDirection)direction; |
---|
| 80 | |
---|
| 81 | - (ABPerson *)addressBookPerson; |
---|
| 82 | - (void)setAddressBookPerson:(ABPerson *)inPerson; |
---|
| 83 | |
---|
| 84 | @end |
---|