/*****************************************************************************
- * vlcpeer.h: a VideoLAN plugin for Mozilla
+ * vlcpeer.h: scriptable peer descriptor
*****************************************************************************
- * Copyright (C) 2002 VideoLAN
- * $Id: vlcpeer.h,v 1.1 2002/09/17 08:18:24 sam Exp $
+ * Copyright (C) 2002-2005 VideoLAN
+ * $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
*****************************************************************************/
#include "vlcintf.h"
-#include "classinfo.h"
-
-#include "nsMemory.h"
+#include "support/classinfo.h"
class VlcPlugin;
NS_DECL_ISUPPORTS
NS_DECL_VLCINTF
- VlcPeer();
- VlcPeer( VlcPlugin * );
-
- void Disable() { p_plugin = NULL; }
-
+ // These flags are used by the DOM and security systems to signal that
+ // JavaScript callers are allowed to call this object's scriptable methods.
+ NS_IMETHOD GetFlags(PRUint32 *aFlags)
+ {
+ *aFlags = nsIClassInfo::PLUGIN_OBJECT | nsIClassInfo::DOM_OBJECT;
+ return NS_OK;
+ }
+
+ NS_IMETHOD GetImplementationLanguage(PRUint32 *aImplementationLanguage)
+ {
+ *aImplementationLanguage = nsIProgrammingLanguage::CPLUSPLUS;
+ return NS_OK;
+ }
+
+ VlcPeer();
+ VlcPeer( VlcPlugin * );
virtual ~VlcPeer();
- /* additional members */
+
+ void Disable();
private:
VlcPlugin * p_plugin;