3
* Copyright © 2004 Bastien Nocera <hadess@hadess.net>
4
* Copyright © 2002 David A. Schleef <ds@schleef.org>
5
* Copyright © 2006, 2008 Christian Persch
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301 USA.
29
#include "totemPlugin.h"
30
#include "totemConePlaylistItems.h"
32
static const char *propertyNames[] = {
36
static const char *methodNames[] = {
40
TOTEM_IMPLEMENT_NPCLASS (totemConePlaylistItems,
41
propertyNames, G_N_ELEMENTS (propertyNames),
42
methodNames, G_N_ELEMENTS (methodNames),
45
totemConePlaylistItems::totemConePlaylistItems (NPP aNPP)
46
: totemNPObject (aNPP)
51
totemConePlaylistItems::~totemConePlaylistItems ()
57
totemConePlaylistItems::InvokeByIndex (int aIndex,
58
const NPVariant *argv,
62
TOTEM_LOG_INVOKE (aIndex, totemConePlaylistItems);
64
switch (Methods (aIndex)) {
66
Plugin()->ClearPlaylist ();
67
return VoidVariant (_result);
74
totemConePlaylistItems::GetPropertyByIndex (int aIndex,
77
TOTEM_LOG_GETTER (aIndex, totemConePlaylistItems);
79
switch (Properties (aIndex)) {
81
TOTEM_WARN_GETTER_UNIMPLEMENTED (aIndex, totemConePlaylistItems);
82
return Int32Variant (_result, 1);
89
totemConePlaylistItems::SetPropertyByIndex (int aIndex,
90
const NPVariant *aValue)
92
TOTEM_LOG_SETTER (aIndex, totemConePlaylistItems);
94
return ThrowPropertyNotWritable ();