2014-10-24 16:02:10 -04:00
|
|
|
//
|
|
|
|
|
// UIComputerView.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-10-24 16:02:10 -04:00
|
|
|
//
|
|
|
|
|
// Created by Diego Waxemberg on 10/22/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-10-24 16:02:10 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2015-12-01 20:31:24 -08:00
|
|
|
#import "TemporaryHost.h"
|
2014-10-24 16:02:10 -04:00
|
|
|
|
2014-10-26 02:15:53 -04:00
|
|
|
@protocol HostCallback <NSObject>
|
|
|
|
|
|
2015-12-01 20:31:24 -08:00
|
|
|
- (void) hostClicked:(TemporaryHost*)host view:(UIView*)view;
|
|
|
|
|
- (void) hostLongClicked:(TemporaryHost*)host view:(UIView*)view;
|
2014-10-26 02:15:53 -04:00
|
|
|
- (void) addHostClicked;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2020-11-14 15:57:16 -06:00
|
|
|
#if !TARGET_OS_TV
|
|
|
|
|
@interface UIComputerView : UIButton <UIContextMenuInteractionDelegate>
|
|
|
|
|
#else
|
2019-09-22 20:08:24 -07:00
|
|
|
@interface UIComputerView : UIButton
|
2020-11-14 15:57:16 -06:00
|
|
|
#endif
|
2014-10-24 16:02:10 -04:00
|
|
|
|
2015-12-01 20:31:24 -08:00
|
|
|
- (id) initWithComputer:(TemporaryHost*)host andCallback:(id<HostCallback>)callback;
|
2014-10-26 02:15:53 -04:00
|
|
|
- (id) initForAddWithCallback:(id<HostCallback>)callback;
|
2015-01-02 23:58:59 -05:00
|
|
|
|
2014-10-24 16:02:10 -04:00
|
|
|
@end
|