Author: everaldo
Date: 2007-06-13 02:28:05 -0400 (Wed, 13 Jun 2007)
New Revision: 79383
Modified:
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/plugin-class.cpp
trunk/moon/plugin/plugin-class.h
Log:
* plugin-class.cpp, plugin-class.h: Add SetProperty to PLUGIN_PROPERTIES
and implement it for all classes.
2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-13 06:18:07 UTC (rev 79382)
+++ trunk/moon/plugin/ChangeLog 2007-06-13 06:28:05 UTC (rev 79383)
@@ -1,5 +1,10 @@
2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
+ * plugin-class.cpp, plugin-class.h: Add SetProperty to PLUGIN_PROPERTIES
+ and implement it for all classes.
+
+2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
+
* plugin-class.cpp, plugin-class.h:
- Fix IndexOf method.
- Create and uses macros PLUGIN_PROPERTIES and PLUGIN_METHODS to define
Modified: trunk/moon/plugin/plugin-class.cpp
===================================================================
--- trunk/moon/plugin/plugin-class.cpp 2007-06-13 06:18:07 UTC (rev 79382)
+++ trunk/moon/plugin/plugin-class.cpp 2007-06-13 06:28:05 UTC (rev 79383)
@@ -243,6 +243,12 @@
return false;
}
+bool
+PluginRootClass::ClassSetProperty (NPObject *npobj, NPIdentifier name, const
NPVariant *value)
+{
+ return false;
+}
+
bool
PluginRootClass::ClassInvoke (NPObject *npobj, NPIdentifier name,
const NPVariant *args, uint32_t argCount,
NPVariant *result)
@@ -255,7 +261,7 @@
bool
PluginSettings::ClassGetProperty (NPObject *npobj, NPIdentifier name,
NPVariant *result)
{
- if (name == NPID ("version"))
+ if (name == NPID ("version"))
{
int len = strlen (PLUGIN_VERSION);
char *version = (char *) NPN_MemAlloc (len + 1);
@@ -268,6 +274,12 @@
return false;
}
+bool
+PluginSettings::ClassSetProperty (NPObject *npobj, NPIdentifier name, const
NPVariant *value)
+{
+ return false;
+}
+
/*** PluginContent
************************************************************/
bool
@@ -276,6 +288,12 @@
return false;
}
+bool
+PluginContent::ClassSetProperty (NPObject *npobj, NPIdentifier name, const
NPVariant *value)
+{
+ return false;
+}
+
bool
PluginContent::ClassInvoke (NPObject *npobj, NPIdentifier name,
const NPVariant *args, uint32_t argCount,
NPVariant *result)
Modified: trunk/moon/plugin/plugin-class.h
===================================================================
--- trunk/moon/plugin/plugin-class.h 2007-06-13 06:18:07 UTC (rev 79382)
+++ trunk/moon/plugin/plugin-class.h 2007-06-13 06:28:05 UTC (rev 79383)
@@ -20,7 +20,9 @@
bool ClassHasProperty (NPObject *npobj, NPIdentifier name) \
{ return IndexOf (name, x, (sizeof (x) / sizeof (char *))) >
-1; }; \
virtual bool ClassGetProperty ( \
- NPObject *npobj, NPIdentifier name, NPVariant *result);
+ NPObject *npobj, NPIdentifier name, NPVariant *result); \
+ virtual bool ClassSetProperty ( \
+ NPObject *npobj, NPIdentifier name, const NPVariant *value);
#define PLUGIN_METHODS(x) \
bool ClassHasMethod (NPObject *npobj, NPIdentifier name) \
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches