blob: baa8aa7d5f763e4a4f41f93ea7829d8e9930413c [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"
agsantoscfaf2902021-04-20 16:21:24 -040027#import "ChoosePluginHandlerVC.h"
Kateryna Kostiuk4db61092019-10-17 16:57:40 -040028#import "CallInConferenceVC.h"
Kateryna Kostiuk1705a5a2020-08-26 09:48:00 -040029#import "views/ConferenceOverlayView.h"
Kateryna Kostiuk4db61092019-10-17 16:57:40 -040030
Kateryna Kostiuk5d90c3b2019-07-18 12:03:52 -040031namespace lrc {
32 namespace api {
33 class AVModel;
agsantoscfaf2902021-04-20 16:21:24 -040034 class PluginModel;
Kateryna Kostiuk5d90c3b2019-07-18 12:03:52 -040035 }
36}
37
Kateryna Kostiuk133364b2018-10-31 11:36:08 -040038@protocol CallViewControllerDelegate
39
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040040-(void) conversationInfoUpdatedFor:(const QString&) conversationID;
Kateryna Kostiuk1705a5a2020-08-26 09:48:00 -040041-(void) chooseConversation:(const lrc::api::conversation::Info&)conv model:(lrc::api::ConversationModel*)model;
Kateryna Kostiuk4db61092019-10-17 16:57:40 -040042-(void) callFinished;
Kateryna Kostiuk133364b2018-10-31 11:36:08 -040043
44@end
45
Kateryna Kostiuk1705a5a2020-08-26 09:48:00 -040046@interface CurrentCallVC : NSViewController <NSSplitViewDelegate, CallDelegate, ChooseContactVCDelegate, CallInConferenceVCDelegate, ConferenceLayoutDelegate> {
Alexandre Lisionc5148052015-03-04 15:10:35 -050047
48}
Kateryna Kostiuk133364b2018-10-31 11:36:08 -040049@property (retain, nonatomic) id <CallViewControllerDelegate> delegate;
Alexandre Lision0f66bd32016-01-18 11:30:45 -050050-(void) initFrame;
Kateryna Kostiuk4f37d952018-12-04 13:19:17 -050051-(void) cleanUp;
Andreas Traczykecdc4fa2018-03-22 16:11:47 -040052-(void) showWithAnimation:(BOOL)animate;
53-(void) hideWithAnimation:(BOOL)animate;
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040054-(void) setCurrentCall:(const QString&)callUid
55 conversation:(const QString&)convUid
Kateryna Kostiuk5d90c3b2019-07-18 12:03:52 -040056 account:(const lrc::api::account::Info*)account
agsantoscfaf2902021-04-20 16:21:24 -040057 avModel:(lrc::api::AVModel *)avModel
58 pluginModel:(lrc::api::PluginModel*)pluginModel;
Alexandre Lisionc5148052015-03-04 15:10:35 -050059@end