digiKam
coredbwatchadaptor.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2007-12-23
7  * Description : Core database DBus interface description
8  *
9  * Copyright (C) 2007-2008 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_CORE_DB_WATCH_ADAPTOR_H
25 #define DIGIKAM_CORE_DB_WATCH_ADAPTOR_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 #include <QDBusVariant>
31 #include <QDBusAbstractAdaptor>
32 
33 // Local includes
34 
35 #include "coredbwatch.h"
36 
37 // qdbuscpp2xml -S -M databasewatchadaptor.h -o org.kde.digikam.DatabaseChangesetRelay.xml
38 
39 class CoreDbWatchAdaptor : public QDBusAbstractAdaptor
40 {
41  Q_OBJECT
42  Q_CLASSINFO("D-Bus Interface", "org.kde.digikam.DatabaseChangesetRelay")
43 
44 public:
45 
46  explicit CoreDbWatchAdaptor(Digikam::CoreDbWatch* const watch);
47 
48 Q_SIGNALS:
49 
50  // These signals are the same as declared in CoreDbWatch, setAutoRelaySignals will
51  // automatically connect the CoreDbWatch signals to these, which are then sent over DBus.
52 
53  // NOTE: the full qualification with "Digikam::" for the changeset types in the following
54  // signals and slots are required to make moc pick them up.
55  // If moc does not get the namespace in its literal, DBus connections will silently break.
56 
57  void signalImageChangeDBus(const QString& databaseIdentifier,
58  const QString& applicationIdentifier,
59  const Digikam::ImageChangeset& changeset);
60 
61  void signalImageTagChangeDBus(const QString& databaseIdentifier,
62  const QString& applicationIdentifier,
63  const Digikam::ImageTagChangeset& changeset);
64 
65  void signalCollectionImageChangeDBus(const QString& databaseIdentifier,
66  const QString& applicationIdentifier,
67  const Digikam::CollectionImageChangeset& changeset);
68 
69  void signalAlbumChangeDBus(const QString& databaseIdentifier,
70  const QString& applicationIdentifier,
71  const Digikam::AlbumChangeset& changeset);
72 
73  void signalTagChangeDBus(const QString& databaseIdentifier,
74  const QString& applicationIdentifier,
75  const Digikam::TagChangeset& changeset);
76 
77  void signalAlbumRootChangeDBus(const QString& databaseIdentifier,
78  const QString& applicationIdentifier,
79  const Digikam::AlbumRootChangeset& changeset);
80 
81  void signalSearchChangeDBus(const QString& databaseIdentifier,
82  const QString& applicationIdentifier,
83  const Digikam::SearchChangeset& changeset);
84 };
85 
86 #endif // DIGIKAM_CORE_DB_WATCH_ADAPTOR_H
Definition: coredbwatchadaptor.h:40
void signalSearchChangeDBus(const QString &databaseIdentifier, const QString &applicationIdentifier, const Digikam::SearchChangeset &changeset)
CoreDbWatchAdaptor(Digikam::CoreDbWatch *const watch)
Definition: coredbwatchadaptor.cpp:26
void signalAlbumChangeDBus(const QString &databaseIdentifier, const QString &applicationIdentifier, const Digikam::AlbumChangeset &changeset)
void signalImageChangeDBus(const QString &databaseIdentifier, const QString &applicationIdentifier, const Digikam::ImageChangeset &changeset)
void signalTagChangeDBus(const QString &databaseIdentifier, const QString &applicationIdentifier, const Digikam::TagChangeset &changeset)
void signalAlbumRootChangeDBus(const QString &databaseIdentifier, const QString &applicationIdentifier, const Digikam::AlbumRootChangeset &changeset)
void signalImageTagChangeDBus(const QString &databaseIdentifier, const QString &applicationIdentifier, const Digikam::ImageTagChangeset &changeset)
void signalCollectionImageChangeDBus(const QString &databaseIdentifier, const QString &applicationIdentifier, const Digikam::CollectionImageChangeset &changeset)
Definition: coredbchangesets.h:262
Definition: coredbchangesets.h:337
Definition: coredbchangesets.h:152
Definition: coredbwatch.h:44
Definition: coredbchangesets.h:48
Definition: coredbchangesets.h:80
Definition: coredbchangesets.h:372
Definition: coredbchangesets.h:298