1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/Telegraph/TGUserInfoCollectionItem.h
2014-07-10 18:11:09 +04:00

43 lines
1.3 KiB
Objective-C

/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGCollectionItem.h"
#import "TGUser.h"
#import "ASWatcher.h"
@interface TGUserInfoCollectionItem : TGCollectionItem <ASWatcher>
@property (nonatomic, strong) ASHandle *actionHandle;
@property (nonatomic, strong) ASHandle *interfaceHandle;
@property (nonatomic) bool automaticallyManageUserPresence;
@property (nonatomic) bool useRealName;
@property (nonatomic) bool disableAvatar;
@property (nonatomic) CGFloat additinalHeight;
@property (nonatomic) CGSize avatarOffset;
@property (nonatomic) CGSize nameOffset;
- (void)setUser:(TGUser *)user animated:(bool)animated;
- (void)setEditing:(bool)editing animated:(bool)animated;
- (void)setUpdatingFirstName:(NSString *)updatingFirstName updatingLastName:(NSString *)updatingLastName;
- (void)setUpdatingAvatar:(UIImage *)updatingAvatar hasUpdatingAvatar:(bool)hasUpdatingAvatar;
- (bool)hasUpdatingAvatar;
- (void)updateTimestamp;
- (id)visibleAvatarView;
- (void)makeNameFieldFirstResponder;
- (void)copyUpdatingAvatarToCacheWithUri:(NSString *)uri;
- (NSString *)editingFirstName;
- (NSString *)editingLastName;
@end