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 
73 @property (readwrite, nonatomic) int debugLoggingLevel;
74 
83 - (BOOL)setDebugLoggingToFile:(NSString *)filePath;
84 
90 @property (readwrite, nonatomic) id<VLCLibraryLogReceiverProtocol> debugLoggingTarget;
91 
96 @property (readonly, copy) NSString *version;
97 
102 @property (readonly, copy) NSString *compiler;
103 
108 @property (readonly, copy) NSString *changeset;
109 
116 - (void)setHumanReadableName:(NSString *)readableName withHTTPUserAgent:(NSString *)userAgent;
117 
124 - (void)setApplicationIdentifier:(NSString *)identifier withVersion:(NSString *)version andApplicationIconName:(NSString *)icon;
125 
130 @property (nonatomic, assign) void *instance;
131 
132 @end
133 
134 @protocol VLCLibraryLogReceiverProtocol <NSObject>
135 @required
141 - (void)handleMessage:(NSString *)message
142  debugLevel:(int)level;
143 @end
144 
145 NS_ASSUME_NONNULL_END
Definition: VLCLibrary.h:134
void * instance
Definition: VLCLibrary.h:130
NSString * compiler
Definition: VLCLibrary.h:102
Definition: VLCLibrary.h:46
id< VLCLibraryLogReceiverProtocol > debugLoggingTarget
Definition: VLCLibrary.h:90
NSString * version
Definition: VLCLibrary.h:96
BOOL debugLogging
Definition: VLCLibrary.h:65
Definition: VLCAudio.h:36
int debugLoggingLevel
Definition: VLCLibrary.h:73
VLCLibrary * sharedLibrary()
NSString * changeset
Definition: VLCLibrary.h:108