1 /*****************************************************************************
2 * npovlc.h: deprecated APIs implemented in late XPCOM interface
3 *****************************************************************************
4 * Copyright (C) 2002-2006 the VideoLAN team
6 * Authors: Damien Fouilleul <damien.fouilleul@laposte.net>
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.
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.
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 *****************************************************************************/
24 ** defined runtime script objects
27 #include "nporuntime.h"
29 class VlcNPObject: public RuntimeNPObject
32 friend class RuntimeNPClass<VlcNPObject>;
34 VlcNPObject(NPP instance, const NPClass *aClass) :
35 RuntimeNPObject(instance, aClass) {};
36 virtual ~VlcNPObject() {};
38 static const int propertyCount;
39 static const NPUTF8 * const propertyNames[];
41 static const int methodCount;
42 static const NPUTF8 * const methodNames[];
44 virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);