diff options
Diffstat (limited to 'malloryclient/embeddata.cpp')
-rw-r--r-- | malloryclient/embeddata.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/malloryclient/embeddata.cpp b/malloryclient/embeddata.cpp new file mode 100644 index 0000000..ec84f4e --- /dev/null +++ b/malloryclient/embeddata.cpp @@ -0,0 +1,30 @@ +// +// C++ Implementation: embeddata +// +// Description: +// +// +// Author: Remi Villatel <maxilys@tele2.fr>, (C) 2005 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +#include "embeddata.h" + +void qInitImages_KWinMallory() +{ + if ( !factory ) { + factory = new MimeSourceFactory_KWinMallory; + QMimeSourceFactory::defaultFactory()->addFactory( factory ); + } +} + +void qCleanupImages_KWinMallory() +{ + if ( factory ) { + QMimeSourceFactory::defaultFactory()->removeFactory( factory ); + delete factory; + factory = 0; + } +} |