blob: ca95da603d6034da018d0738a88517c394dd18d7 [file] [log] [blame]
kkostiuk957020c2021-05-20 20:26:23 -04001/*
2 * Copyright (C) 2021 Savoir-faire Linux Inc.
3 * Author: Kateryna Kostiuk <kateryna.kostiuk@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.
18 */
19
20#import <Cocoa/Cocoa.h>
21#import <qstring.h>
22
23namespace lrc {
24 namespace api {
25 class AVModel;
26 }
27}
28
29typedef enum {
30 input = 1,
31 output
32} AudioType;
33
34@protocol ChangeAudioVolumeDelegate <NSObject>
35-(BOOL)isAudioMuted:(AudioType)audioType;
36@end
37
38NS_ASSUME_NONNULL_BEGIN
39
40@interface ChangeAudioVolumeVC : NSViewController
41@property (copy) void (^onMuted)();
42@property (retain, nonatomic) id <ChangeAudioVolumeDelegate> delegate;
43
44-(void)setMediaDevice:(const QString&)device avModel:(lrc::api::AVModel *)avModel andType:(AudioType)type;
45@end
46
47NS_ASSUME_NONNULL_END