qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Public Member Functions | Private Attributes | List of all members
NotificationGenerator Class Reference

#include <notificationgenerator.h>

Inheritance diagram for NotificationGenerator:
Inheritance graph
Collaboration diagram for NotificationGenerator:
Collaboration graph

Public Slots

void onNotificationActivated ()
 

Public Member Functions

 NotificationGenerator (INotificationSettings const &notificationSettings, Profile *profile)
 
virtual ~NotificationGenerator ()
 
 NotificationGenerator (const NotificationGenerator &)=delete
 
NotificationGeneratoroperator= (const NotificationGenerator &)=delete
 
 NotificationGenerator (NotificationGenerator &&)=delete
 
NotificationGeneratoroperator= (NotificationGenerator &&)=delete
 
NotificationData friendMessageNotification (const Friend *f, const QString &message)
 
NotificationData groupMessageNotification (const Group *g, const ToxPk &sender, const QString &message)
 
NotificationData fileTransferNotification (const Friend *f, const QString &filename, size_t fileSize)
 
NotificationData groupInvitationNotification (const Friend *from)
 
NotificationData friendRequestNotification (const ToxPk &sender, const QString &message)
 

Private Attributes

INotificationSettings const & notificationSettings
 
Profileprofile
 
QHash< const Friend *, size_t > friendNotifications
 
QHash< const Group *, size_t > groupNotifications
 

Detailed Description

Definition at line 33 of file notificationgenerator.h.

Constructor & Destructor Documentation

◆ NotificationGenerator() [1/3]

NotificationGenerator::NotificationGenerator ( INotificationSettings const &  notificationSettings,
Profile profile 
)

Definition at line 159 of file notificationgenerator.cpp.

◆ ~NotificationGenerator()

NotificationGenerator::~NotificationGenerator ( )
virtualdefault

◆ NotificationGenerator() [2/3]

NotificationGenerator::NotificationGenerator ( const NotificationGenerator )
delete

◆ NotificationGenerator() [3/3]

NotificationGenerator::NotificationGenerator ( NotificationGenerator &&  )
delete

Member Function Documentation

◆ fileTransferNotification()

NotificationData NotificationGenerator::fileTransferNotification ( const Friend f,
const QString &  filename,
size_t  fileSize 
)

Definition at line 204 of file notificationgenerator.cpp.

Here is the call graph for this function:

◆ friendMessageNotification()

NotificationData NotificationGenerator::friendMessageNotification ( const Friend f,
const QString &  message 
)

Definition at line 168 of file notificationgenerator.cpp.

Here is the call graph for this function:

◆ friendRequestNotification()

NotificationData NotificationGenerator::friendRequestNotification ( const ToxPk sender,
const QString &  message 
)

Definition at line 251 of file notificationgenerator.cpp.

Here is the call graph for this function:

◆ groupInvitationNotification()

NotificationData NotificationGenerator::groupInvitationNotification ( const Friend from)

Definition at line 235 of file notificationgenerator.cpp.

Here is the call graph for this function:

◆ groupMessageNotification()

NotificationData NotificationGenerator::groupMessageNotification ( const Group g,
const ToxPk sender,
const QString &  message 
)

Definition at line 186 of file notificationgenerator.cpp.

Here is the call graph for this function:

◆ onNotificationActivated

void NotificationGenerator::onNotificationActivated ( )
slot

Definition at line 266 of file notificationgenerator.cpp.

Here is the caller graph for this function:

◆ operator=() [1/2]

NotificationGenerator& NotificationGenerator::operator= ( const NotificationGenerator )
delete

◆ operator=() [2/2]

NotificationGenerator& NotificationGenerator::operator= ( NotificationGenerator &&  )
delete

Member Data Documentation

◆ friendNotifications

QHash<const Friend*, size_t> NotificationGenerator::friendNotifications
private

Definition at line 60 of file notificationgenerator.h.

◆ groupNotifications

QHash<const Group*, size_t> NotificationGenerator::groupNotifications
private

Definition at line 61 of file notificationgenerator.h.

◆ notificationSettings

INotificationSettings const& NotificationGenerator::notificationSettings
private

Definition at line 58 of file notificationgenerator.h.

◆ profile

Profile* NotificationGenerator::profile
private

Definition at line 59 of file notificationgenerator.h.


The documentation for this class was generated from the following files: