NCChatTitleView.h 936 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import <UIKit/UIKit.h>
  6. #import "NCRoom.h"
  7. @class AvatarImageView;
  8. @class NCChatTitleView;
  9. @protocol NCChatTitleViewDelegate <NSObject>
  10. - (void)chatTitleViewTapped:(NCChatTitleView *)titleView;
  11. @end
  12. @interface NCChatTitleView : UIView
  13. @property (nonatomic, weak) id<NCChatTitleViewDelegate> delegate;
  14. @property (weak, nonatomic) IBOutlet UITextView *titleTextView;
  15. @property (weak, nonatomic) IBOutlet AvatarImageView *avatarimage;
  16. @property (weak, nonatomic) IBOutlet UIImageView *userStatusImage;
  17. @property (assign, nonatomic) BOOL showSubtitle;
  18. @property (strong, nonatomic) UIColor *titleTextColor;
  19. @property (strong, nonatomic) UIColor *userStatusBackgroundColor;
  20. @property (strong, nonatomic) UILongPressGestureRecognizer *longPressGestureRecognizer;
  21. - (void)updateForRoom:(NCRoom *)room;
  22. @end