Alexandre Lision | 74dd47f | 2015-04-14 13:47:42 -0400 | [diff] [blame] | 1 | /* |
Alexandre Lision | 9fe374b | 2016-01-06 10:17:31 -0500 | [diff] [blame] | 2 | * Copyright (C) 2015-2016 Savoir-faire Linux Inc. |
Alexandre Lision | 74dd47f | 2015-04-14 13:47:42 -0400 | [diff] [blame] | 3 | * Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
Alexandre Lision | 74dd47f | 2015-04-14 13:47:42 -0400 | [diff] [blame] | 18 | */ |
| 19 | #import <Cocoa/Cocoa.h> |
Kateryna Kostiuk | c867eb9 | 2020-03-08 13:15:17 -0400 | [diff] [blame] | 20 | #import <qstring.h> |
Alexandre Lision | 74dd47f | 2015-04-14 13:47:42 -0400 | [diff] [blame] | 21 | |
Alexandre Lision | a1eee3c | 2015-08-10 13:44:51 -0400 | [diff] [blame] | 22 | @protocol CallDelegate; |
| 23 | @protocol CallDelegate |
Alexandre Lision | 58cab67 | 2015-06-09 15:25:40 -0400 | [diff] [blame] | 24 | |
| 25 | @optional |
| 26 | |
| 27 | -(void) callShouldToggleFullScreen; |
Alexandre Lision | a1eee3c | 2015-08-10 13:44:51 -0400 | [diff] [blame] | 28 | -(void) mouseIsMoving:(BOOL) move; |
Kateryna Kostiuk | 5d90c3b | 2019-07-18 12:03:52 -0400 | [diff] [blame] | 29 | -(void) screenShare; |
| 30 | -(void) switchToDevice:(int)deviceID; |
| 31 | -(void) switchToFile:(std::string)uri; |
Kateryna Kostiuk | c867eb9 | 2020-03-08 13:15:17 -0400 | [diff] [blame] | 32 | -(QVector<QString>) getDeviceList; |
Kateryna Kostiuk | 32cf6be | 2019-10-28 12:22:45 -0400 | [diff] [blame] | 33 | -(NSString *) getDefaultDeviceName; |
Alexandre Lision | 58cab67 | 2015-06-09 15:25:40 -0400 | [diff] [blame] | 34 | |
| 35 | @end |
| 36 | |
Alexandre Lision | 74dd47f | 2015-04-14 13:47:42 -0400 | [diff] [blame] | 37 | @interface CallView : NSView <NSDraggingDestination, NSOpenSavePanelDelegate> |
| 38 | { |
| 39 | //highlight the drop zone |
| 40 | BOOL highlight; |
| 41 | } |
| 42 | |
| 43 | - (id)initWithCoder:(NSCoder *)coder; |
| 44 | |
| 45 | /** |
| 46 | * Sets weither this view allow first click interactions |
| 47 | */ |
| 48 | @property BOOL shouldAcceptInteractions; |
| 49 | |
Alexandre Lision | 58cab67 | 2015-06-09 15:25:40 -0400 | [diff] [blame] | 50 | /** |
| 51 | * Delegate to inform about desire to move |
| 52 | */ |
Alexandre Lision | a1eee3c | 2015-08-10 13:44:51 -0400 | [diff] [blame] | 53 | @property (nonatomic) id <CallDelegate> callDelegate; |
Alexandre Lision | 58cab67 | 2015-06-09 15:25:40 -0400 | [diff] [blame] | 54 | |
Alexandre Lision | 74dd47f | 2015-04-14 13:47:42 -0400 | [diff] [blame] | 55 | @end |