VLCKit
VLCLibrary.h
1 /*****************************************************************************
2  * VLCLibrary.h: VLCKit.framework VLCLibrary header
3  *****************************************************************************
4  * Copyright (C) 2007 Pierre d'Herbemont
5  * Copyright (C) 2007-2019 VLC authors and VideoLAN
6  * $Id$
7  *
8  * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
9  * Felix Paul Kühne <fkuehne # videolan.org>
10  *
11  * This program is free software; you can redistribute it and/or modify it
12  * under the terms of the GNU Lesser General Public License as published by
13  * the Free Software Foundation; either version 2.1 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25 
26 #import <Foundation/Foundation.h>
27 #import "VLCAudio.h"
28 #import "VLCMediaList.h"
29 #import "VLCMedia.h"
30 
31 @class VLCAudio;
32 
33 NS_ASSUME_NONNULL_BEGIN
34 
36 
46 @interface VLCLibrary : NSObject
47 
53 
59  - (instancetype)initWithOptions:(NSArray *)options;
60 
65 @property (readwrite, nonatomic) BOOL debugLogging;
66 
77 @property (readwrite, nonatomic) int debugLoggingLevel;
78 
87 - (BOOL)setDebugLoggingToFile:(NSString *)filePath;
88 
94 @property (readwrite, nonatomic) id<VLCLibraryLogReceiverProtocol> debugLoggingTarget;
95 
100 @property (readonly, copy) NSString *version;
101 
106 @property (readonly, copy) NSString *compiler;
107 
112 @property (readonly, copy) NSString *changeset;
113 
120 - (void)setHumanReadableName:(NSString *)readableName withHTTPUserAgent:(NSString *)userAgent;
121 
128 - (void)setApplicationIdentifier:(NSString *)identifier withVersion:(NSString *)version andApplicationIconName:(NSString *)icon;
129 
134 @property (nonatomic, assign) void *instance;
135 
136 @end
137 
138 @protocol VLCLibraryLogReceiverProtocol <NSObject>
139 @required
145 - (void)handleMessage:(NSString *)message
146  debugLevel:(int)level;
147 @end
148 
149 NS_ASSUME_NONNULL_END
VLCLibrary::instance
void * instance
Definition: VLCLibrary.h:134
+[VLCLibrary sharedLibrary]
VLCLibrary * sharedLibrary()
VLCLibraryLogReceiverProtocol-p
Definition: VLCLibrary.h:138
VLCLibrary::version
NSString * version
Definition: VLCLibrary.h:100
VLCLibrary::debugLogging
BOOL debugLogging
Definition: VLCLibrary.h:65
VLCLibrary::changeset
NSString * changeset
Definition: VLCLibrary.h:112
VLCAudio
Definition: VLCAudio.h:37
VLCLibrary
Definition: VLCLibrary.h:47
VLCLibrary::compiler
NSString * compiler
Definition: VLCLibrary.h:106
VLCLibrary::debugLoggingLevel
int debugLoggingLevel
Definition: VLCLibrary.h:77
VLCLibrary::debugLoggingTarget
id< VLCLibraryLogReceiverProtocol > debugLoggingTarget
Definition: VLCLibrary.h:94