summaryrefslogtreecommitdiffstats
path: root/src/digikam/imageattributeswatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/digikam/imageattributeswatch.cpp')
-rw-r--r--src/digikam/imageattributeswatch.cpp89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/digikam/imageattributeswatch.cpp b/src/digikam/imageattributeswatch.cpp
new file mode 100644
index 00000000..a91e4dea
--- /dev/null
+++ b/src/digikam/imageattributeswatch.cpp
@@ -0,0 +1,89 @@
+/* ============================================================
+ *
+ * This file is a part of digiKam project
+ * http://www.digikam.org
+ *
+ * Date : 2006-05-04
+ * Description : Watch image attributes
+ *
+ * Copyright (C) 2006-2007 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * ============================================================ */
+
+// Local includes.
+
+#include "imageattributeswatch.h"
+#include "imageattributeswatch.moc"
+
+namespace Digikam
+{
+
+ImageAttributesWatch *ImageAttributesWatch::m_instance = 0;
+
+ImageAttributesWatch::~ImageAttributesWatch()
+{
+ m_instance = 0;
+}
+
+void ImageAttributesWatch::cleanUp()
+{
+ delete m_instance;
+ m_instance = 0;
+}
+
+void ImageAttributesWatch::shutDown()
+{
+ if (m_instance)
+ m_instance->disconnect(0, 0, 0);
+}
+
+ImageAttributesWatch *ImageAttributesWatch::instance()
+{
+ if (!m_instance)
+ m_instance = new ImageAttributesWatch;
+ return m_instance;
+}
+
+void ImageAttributesWatch::imageTagsChanged(TQ_LLONG imageId)
+{
+ emit signalImageTagsChanged(imageId);
+}
+
+void ImageAttributesWatch::imagesChanged(int albumId)
+{
+ emit signalImagesChanged(albumId);
+}
+
+void ImageAttributesWatch::imageRatingChanged(TQ_LLONG imageId)
+{
+ emit signalImageRatingChanged(imageId);
+}
+
+void ImageAttributesWatch::imageDateChanged(TQ_LLONG imageId)
+{
+ emit signalImageDateChanged(imageId);
+}
+
+void ImageAttributesWatch::imageCaptionChanged(TQ_LLONG imageId)
+{
+ emit signalImageCaptionChanged(imageId);
+}
+
+void ImageAttributesWatch::fileMetadataChanged(const KURL &url)
+{
+ emit signalFileMetadataChanged(url);
+}
+
+} // namespace Digikam
+