blob: 27423d77b4b6f68c687a9c534ee3b4993b6d0e9a [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>
20
Alexandre Lisiona1eee3c2015-08-10 13:44:51 -040021@protocol CallDelegate;
22@protocol CallDelegate
Alexandre Lision58cab672015-06-09 15:25:40 -040023
24@optional
25
26-(void) callShouldToggleFullScreen;
Alexandre Lisiona1eee3c2015-08-10 13:44:51 -040027-(void) mouseIsMoving:(BOOL) move;
Alexandre Lision58cab672015-06-09 15:25:40 -040028
29@end
30
Alexandre Lision74dd47f2015-04-14 13:47:42 -040031@interface CallView : NSView <NSDraggingDestination, NSOpenSavePanelDelegate>
32{
33 //highlight the drop zone
34 BOOL highlight;
35}
36
37- (id)initWithCoder:(NSCoder *)coder;
38
39/**
40 * Sets weither this view allow first click interactions
41 */
42@property BOOL shouldAcceptInteractions;
43
Alexandre Lision58cab672015-06-09 15:25:40 -040044/**
45 * Delegate to inform about desire to move
46 */
Alexandre Lisiona1eee3c2015-08-10 13:44:51 -040047@property (nonatomic) id <CallDelegate> callDelegate;
Alexandre Lision58cab672015-06-09 15:25:40 -040048
Alexandre Lision74dd47f2015-04-14 13:47:42 -040049@end