Changeset View
Changeset View
Standalone View
Standalone View
akonadi/notificationsource.cpp
Show All 15 Lines | /* | ||||
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||||
02110-1301, USA. | 02110-1301, USA. | ||||
*/ | */ | ||||
#include "notificationsource_p.h" | #include "notificationsource_p.h" | ||||
using namespace Akonadi; | using namespace Akonadi; | ||||
NotificationSource::NotificationSource(QObject *source) | NotificationSource::NotificationSource(QObject *source, const QString &name) | ||||
: QObject(source) | : QObject(source) | ||||
, mName(name) | |||||
{ | { | ||||
Q_ASSERT(source); | Q_ASSERT(source); | ||||
connect(source, SIGNAL(notifyV3(Akonadi::NotificationMessageV3::List)), | connect(source, SIGNAL(notifyV3(Akonadi::NotificationMessageV3::List)), | ||||
this, SIGNAL(notifyV3(Akonadi::NotificationMessageV3::List))); | this, SIGNAL(notifyV3(Akonadi::NotificationMessageV3::List))); | ||||
} | } | ||||
NotificationSource::~NotificationSource() | NotificationSource::~NotificationSource() | ||||
▲ Show 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | void NotificationSource::setSession(const QByteArray &session) | ||||
Q_ASSERT(ok); | Q_ASSERT(ok); | ||||
Q_UNUSED(ok); | Q_UNUSED(ok); | ||||
} | } | ||||
QObject *NotificationSource::source() const | QObject *NotificationSource::source() const | ||||
{ | { | ||||
return parent(); | return parent(); | ||||
} | } | ||||
QString NotificationSource::name() const | |||||
{ | |||||
return mName; | |||||
} | |||||
No newline at end of file |