]> git.sesse.net Git - vlc/blob - modules/gui/macosx/AddonListDataSource.h
macosx: lock access to addon_entry_t
[vlc] / modules / gui / macosx / AddonListDataSource.h
1 /*****************************************************************************
2  * AddonListDataSource.h: Addons manager for the Mac
3  ****************************************************************************
4  * Copyright (C) 2014 VideoLAN and authors
5  * Authors:       Felix Paul Kühne <fkuehne # videolan.org>
6  *                David Fuhrmann <dfuhrmann # videolan.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21  *****************************************************************************/
22
23 #import <Cocoa/Cocoa.h>
24
25 #import <vlc_common.h>
26 #import <vlc_addons.h>
27
28 @interface VLCAddon : NSObject
29 {
30     addon_entry_t *p_addon_entry;
31 }
32
33 - (id)initWithAddon:(addon_entry_t *)p_entry;
34
35 - (NSData *)uuid;
36
37 - (NSString *)name;
38 - (NSString *)author;
39 - (NSString *)version;
40 - (NSString *)description;
41
42 - (BOOL)isInstalled;
43 - (addon_type_t)type;
44
45 @end