blob: f97018f8fa3f8d48b12d6d41eb1448b5acd94ffc [file] [log] [blame]
Alexandre Lisionc5148052015-03-04 15:10:35 -05001/*
Alexandre Lision9fe374b2016-01-06 10:17:31 -05002 * Copyright (C) 2015-2016 Savoir-faire Linux Inc.
Alexandre Lisionc5148052015-03-04 15:10:35 -05003 * 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 Lisionc5148052015-03-04 15:10:35 -050018 */
Alexandre Lisionc5148052015-03-04 15:10:35 -050019
Alexandre Lision9fe374b2016-01-06 10:17:31 -050020
Alexandre Lisionc5148052015-03-04 15:10:35 -050021#import <Cocoa/Cocoa.h>
22
Alexandre Lision58cab672015-06-09 15:25:40 -040023#import "views/CallView.h"
Olivier Soldano994971f2017-12-05 16:30:12 -050024#import <api/account.h>
Alexandre Lisionc5148052015-03-04 15:10:35 -050025
Kateryna Kostiuk4db61092019-10-17 16:57:40 -040026#import "ChooseContactVC.h"
27#import "CallInConferenceVC.h"
Kateryna Kostiuk1705a5a2020-08-26 09:48:00 -040028#import "views/ConferenceOverlayView.h"
Kateryna Kostiuk4db61092019-10-17 16:57:40 -040029
Kateryna Kostiuk5d90c3b2019-07-18 12:03:52 -040030namespace lrc {
31 namespace api {
32 class AVModel;
33 }
34}
35
Kateryna Kostiuk133364b2018-10-31 11:36:08 -040036@protocol CallViewControllerDelegate
37
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040038-(void) conversationInfoUpdatedFor:(const QString&) conversationID;
Kateryna Kostiuk1705a5a2020-08-26 09:48:00 -040039-(void) chooseConversation:(const lrc::api::conversation::Info&)conv model:(lrc::api::ConversationModel*)model;
Kateryna Kostiuk4db61092019-10-17 16:57:40 -040040-(void) callFinished;
Kateryna Kostiuk133364b2018-10-31 11:36:08 -040041
42@end
43
Kateryna Kostiuk1705a5a2020-08-26 09:48:00 -040044@interface CurrentCallVC : NSViewController <NSSplitViewDelegate, CallDelegate, ChooseContactVCDelegate, CallInConferenceVCDelegate, ConferenceLayoutDelegate> {
Alexandre Lisionc5148052015-03-04 15:10:35 -050045
46}
Kateryna Kostiuk133364b2018-10-31 11:36:08 -040047@property (retain, nonatomic) id <CallViewControllerDelegate> delegate;
Alexandre Lision0f66bd32016-01-18 11:30:45 -050048-(void) initFrame;
Kateryna Kostiuk4f37d952018-12-04 13:19:17 -050049-(void) cleanUp;
Andreas Traczykecdc4fa2018-03-22 16:11:47 -040050-(void) showWithAnimation:(BOOL)animate;
51-(void) hideWithAnimation:(BOOL)animate;
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040052-(void) setCurrentCall:(const QString&)callUid
53 conversation:(const QString&)convUid
Kateryna Kostiuk5d90c3b2019-07-18 12:03:52 -040054 account:(const lrc::api::account::Info*)account
55 avModel:(lrc::api::AVModel *)avModel;
Alexandre Lisionc5148052015-03-04 15:10:35 -050056@end