]> git.sesse.net Git - vlc/blob - projects/mozilla/control/npovlc.h
abd44954d6dbe5e9adacaa1af3ede5da8775dde0
[vlc] / projects / mozilla / control / npovlc.h
1 /*****************************************************************************\r
2  * npovlc.h: deprecated APIs implemented in late XPCOM interface\r
3  *****************************************************************************\r
4  * Copyright (C) 2002-2006 the VideoLAN team\r
5  *\r
6  * Authors: Damien Fouilleul <damien.fouilleul@laposte.net>\r
7  *\r
8  * This program is free software; you can redistribute it and/or modify\r
9  * it under the terms of the GNU General Public License as published by\r
10  * the Free Software Foundation; either version 2 of the License, or\r
11  * (at your option) any later version.\r
12  *\r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU General Public License\r
19  * along with this program; if not, write to the Free Software\r
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.\r
21  *****************************************************************************/\r
22 \r
23 /*\r
24 ** defined runtime script objects\r
25 */\r
26 \r
27 #include "nporuntime.h"\r
28 \r
29 class VlcNPObject: public RuntimeNPObject\r
30 {\r
31 protected:\r
32     friend class RuntimeNPClass<VlcNPObject>;\r
33 \r
34     VlcNPObject(NPP instance, const NPClass *aClass) :\r
35         RuntimeNPObject(instance, aClass) {};\r
36     virtual ~VlcNPObject() {};\r
37 \r
38     static const int propertyCount;\r
39     static const NPUTF8 * const propertyNames[];\r
40 \r
41     static const int methodCount;\r
42     static const NPUTF8 * const methodNames[];\r
43 \r
44     virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);\r
45 };\r
46 \r