[vlmc-devel] commit: EffectHelper: Adding an UUID for each effect instance. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Wed Jul 28 00:22:08 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Jul 27 00:16:01 2010 +0200| [c14bb4cc964d447b028be821ad47a6cb5a08a0cb] | committer: Hugo Beauzée-Luyssen
EffectHelper: Adding an UUID for each effect instance.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c14bb4cc964d447b028be821ad47a6cb5a08a0cb
---
src/EffectsEngine/EffectsEngine.cpp | 7 ++++++-
src/EffectsEngine/EffectsEngine.h | 4 +++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/EffectsEngine/EffectsEngine.cpp b/src/EffectsEngine/EffectsEngine.cpp
index c1bb955..08b2e36 100644
--- a/src/EffectsEngine/EffectsEngine.cpp
+++ b/src/EffectsEngine/EffectsEngine.cpp
@@ -36,11 +36,16 @@ EffectsEngine::~EffectsEngine()
{
}
-EffectsEngine::EffectHelper::EffectHelper( Effect *_effect, qint64 _start, qint64 _end ) :
+EffectsEngine::EffectHelper::EffectHelper( Effect *_effect, qint64 _start, qint64 _end,
+ const QString& _uuid ) :
effect( _effect ),
start( _start ),
end( _end )
{
+ if ( _uuid.isNull() == true )
+ uuid = QUuid::createUuid();
+ else
+ uuid = _uuid;
}
void
diff --git a/src/EffectsEngine/EffectsEngine.h b/src/EffectsEngine/EffectsEngine.h
index 17debc3..cf2be67 100644
--- a/src/EffectsEngine/EffectsEngine.h
+++ b/src/EffectsEngine/EffectsEngine.h
@@ -38,10 +38,12 @@ class EffectsEngine : public QObject, public Singleton<EffectsEngine>
public:
struct EffectHelper
{
- EffectHelper( Effect* effect, qint64 start = 0, qint64 end = -1 );
+ EffectHelper( Effect* effect, qint64 start = 0, qint64 end = -1,
+ const QString& uuid = QString() );
Effect* effect;
qint64 start;
qint64 end;
+ QUuid uuid;
};
typedef QList<EffectHelper*> EffectList;
More information about the Vlmc-devel
mailing list