1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/legacy/TelegraphKit/TGDialogListCompanion.h
2016-02-25 01:03:51 +01:00

67 lines
1.9 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 <UIKit/UIKit.h>
#import "TGUser.h"
#import "TGConversation.h"
#import "TGMessage.h"
#import "TGDialogListCellAssetsSource.h"
@class TGDialogListController;
@interface TGDialogListCompanion : NSObject
@property (nonatomic, weak) TGDialogListController *dialogListController;
@property (nonatomic) bool showListEditingControl;
@property (nonatomic) bool forwardMode;
@property (nonatomic) bool privacyMode;
@property (nonatomic) bool showBroadcastsMenu;
@property (nonatomic) bool showSecretInForwardMode;
@property (nonatomic) bool showGroupsOnly;
@property (nonatomic) bool botStartMode;
@property (nonatomic) int unreadCount;
- (id<TGDialogListCellAssetsSource>)dialogListCellAssetsSource;
- (id)processSearchResultItem:(id)item;
- (void)dialogListReady;
- (void)clearData;
- (void)loadMoreItems;
- (void)composeMessageAndOpenSearch:(bool)openSearch;
- (void)navigateToBroadcastLists;
- (void)navigateToNewGroup;
- (void)conversationSelected:(TGConversation *)conversation;
- (void)deleteItem:(TGConversation *)conversation animated:(bool)animated;
- (void)clearItem:(TGConversation *)conversation animated:(bool)animated;
- (void)beginSearch:(NSString *)queryString inMessages:(bool)inMessages;
- (void)searchResultSelectedUser:(TGUser *)user;
- (void)searchResultSelectedConversation:(TGConversation *)conversation;
- (void)searchResultSelectedConversation:(TGConversation *)conversation atMessageId:(int)messageId;
- (void)searchResultSelectedMessage:(TGMessage *)message;
- (bool)shouldDisplayEmptyListPlaceholder;
- (void)wakeUp;
- (void)resetLocalization;
- (bool)isConversationOpened:(int64_t)conversationId;
- (int64_t)openedConversationId;
@end