blob: b31967f63ffc2dd8ef4ef4840f84b1ac7ab62cb6 [file] [log] [blame]
Alexandre Lision74dd47f2015-04-14 13:47:42 -04001/*
Alexandre Lision9fe374b2016-01-06 10:17:31 -05002 * Copyright (C) 2015-2016 Savoir-faire Linux Inc.
Alexandre Lision74dd47f2015-04-14 13:47:42 -04003 * 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 Lision74dd47f2015-04-14 13:47:42 -040018 */
19#import <Cocoa/Cocoa.h>
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040020#import <qstring.h>
Alexandre Lision74dd47f2015-04-14 13:47:42 -040021
Alexandre Lisiona1eee3c2015-08-10 13:44:51 -040022@protocol CallDelegate;
23@protocol CallDelegate
Alexandre Lision58cab672015-06-09 15:25:40 -040024
25@optional
26
27-(void) callShouldToggleFullScreen;
Alexandre Lisiona1eee3c2015-08-10 13:44:51 -040028-(void) mouseIsMoving:(BOOL) move;
Kateryna Kostiuk5d90c3b2019-07-18 12:03:52 -040029-(void) screenShare;
30-(void) switchToDevice:(int)deviceID;
31-(void) switchToFile:(std::string)uri;
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040032-(QVector<QString>) getDeviceList;
Kateryna Kostiuk32cf6be2019-10-28 12:22:45 -040033-(NSString *) getDefaultDeviceName;
Alexandre Lision58cab672015-06-09 15:25:40 -040034
35@end
36
Alexandre Lision74dd47f2015-04-14 13:47:42 -040037@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 Lision58cab672015-06-09 15:25:40 -040050/**
51 * Delegate to inform about desire to move
52 */
Alexandre Lisiona1eee3c2015-08-10 13:44:51 -040053@property (nonatomic) id <CallDelegate> callDelegate;
Alexandre Lision58cab672015-06-09 15:25:40 -040054
Alexandre Lision74dd47f2015-04-14 13:47:42 -040055@end