20 #include "notificationsource_p.h"
22 using namespace Akonadi;
24 NotificationSource::NotificationSource( QObject *source ):
29 connect( source, SIGNAL(notifyV2(Akonadi::NotificationMessageV2::List)),
30 this, SIGNAL(notifyV2(Akonadi::NotificationMessageV2::List)) );
33 NotificationSource::~NotificationSource()
37 void NotificationSource::setAllMonitored(
bool allMonitored )
39 const bool ok = QMetaObject::invokeMethod( parent(),
"setAllMonitored",
40 Q_ARG(
bool, allMonitored ) );
45 void NotificationSource::setMonitoredCollection(
Entity::Id id,
bool monitored )
47 const bool ok = QMetaObject::invokeMethod( parent(),
"setMonitoredCollection",
48 Q_ARG( qlonglong,
id ),
49 Q_ARG(
bool, monitored ) );
54 void NotificationSource::setMonitoredItem(
Entity::Id id,
bool monitored )
56 const bool ok = QMetaObject::invokeMethod( parent(),
"setMonitoredItem",
57 Q_ARG( qlonglong,
id ),
58 Q_ARG(
bool, monitored ) );
63 void NotificationSource::setMonitoredResource(
const QByteArray &resource,
bool monitored )
65 const bool ok = QMetaObject::invokeMethod( parent(),
"setMonitoredResource",
66 Q_ARG( QByteArray, resource ),
67 Q_ARG(
bool, monitored ) );
72 void NotificationSource::setMonitoredMimeType(
const QString &mimeType,
bool monitored )
74 const bool ok = QMetaObject::invokeMethod( parent(),
"setMonitoredMimeType",
75 Q_ARG( QString, mimeType ),
76 Q_ARG(
bool, monitored ) );
81 void NotificationSource::setIgnoredSession(
const QByteArray &session,
bool ignored )
83 const bool ok = QMetaObject::invokeMethod( parent(),
"setIgnoredSession",
84 Q_ARG( QByteArray, session ),
85 Q_ARG(
bool, ignored ) );
90 QObject* NotificationSource::source()
const
qint64 Id
Describes the unique id type.