moonlight-ios/Limelight/UIComputerView.h

29 lines
687 B
C
Raw Normal View History

2014-10-24 16:02:10 -04:00
//
// UIComputerView.h
// Moonlight
2014-10-24 16:02:10 -04:00
//
// Created by Diego Waxemberg on 10/22/14.
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
2014-10-24 16:02:10 -04:00
//
#import <UIKit/UIKit.h>
#import "TemporaryHost.h"
2014-10-24 16:02:10 -04:00
@protocol HostCallback <NSObject>
- (void) hostClicked:(TemporaryHost*)host view:(UIView*)view;
- (void) hostLongClicked:(TemporaryHost*)host view:(UIView*)view;
- (void) addHostClicked;
@end
#if !TARGET_OS_TV
@interface UIComputerView : UIButton <UIContextMenuInteractionDelegate>
#else
@interface UIComputerView : UIButton
#endif
2014-10-24 16:02:10 -04:00
- (id) initWithComputer:(TemporaryHost*)host andCallback:(id<HostCallback>)callback;
- (id) initForAddWithCallback:(id<HostCallback>)callback;
2014-10-24 16:02:10 -04:00
@end