--- a/src/hbcore/effects/hbeffect.cpp Fri Sep 17 08:32:10 2010 +0300
+++ b/src/hbcore/effects/hbeffect.cpp Mon Oct 04 00:38:12 2010 +0300
@@ -1083,6 +1083,35 @@
/*!
\internal
*/
+bool HbEffectInternal::add(const char *itemType[], const char *filePath[], const char *effectEvent[], int count)
+{
+#ifdef HB_EFFECT_API_OFF
+ Q_UNUSED(itemType);
+ Q_UNUSED(filePath);
+ Q_UNUSED(effectEvent);
+ return false;
+#else
+ bool ret = false;
+ // Try to add all the files, stop when one fails.
+ for (int i = 0; i < count; ++i) {
+ ret = add(QLatin1String(itemType[i]), QLatin1String(filePath[i]), !effectEvent ? QString() : QLatin1String(effectEvent[i]));
+ if (!ret) {
+ break;
+ }
+ }
+ // If any of the files were not added then remove all the others too.
+ if (!ret) {
+ for (int i = 0; i < count; ++i) {
+ remove(QLatin1String(itemType[i]), QLatin1String(filePath[i]), !effectEvent ? QString() : QLatin1String(effectEvent[i]));
+ }
+ }
+ return ret;
+#endif // HB_EFFECT_API_OFF
+}
+
+/*!
+ \internal
+*/
bool HbEffectInternal::add(QGraphicsItem *item, const QString &filePath, const QString &effectEvent)
{
#ifdef HB_EFFECT_API_OFF