summaryrefslogtreecommitdiffstats
path: root/malloryclient/embeddata.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-10-03 20:32:40 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-10-03 20:32:40 +0300
commit19097d1bb96f8d52743121fb8f00d90029f1dfc0 (patch)
tree30a179f283f71a8bb8e6f9db9c9b3a3ce9198376 /malloryclient/embeddata.cpp
downloadtwin-style-mallory-19097d1bb96f8d52743121fb8f00d90029f1dfc0.tar.gz
twin-style-mallory-19097d1bb96f8d52743121fb8f00d90029f1dfc0.zip
Initial commit
Sourced from https://www.pling.com/p/1100385 Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'malloryclient/embeddata.cpp')
-rw-r--r--malloryclient/embeddata.cpp30
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;
+ }
+}