LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::AN Namespace Reference

Namespaces

namespace  EF
 Namespace for various AN entity fields.
 
namespace  Field
 

Enumerations

enum  NotifyFlag {
  NotifyNone = 0 ,
  NotifySingleShot = 1 << 0 ,
  NotifyTransient = 1 << 1 ,
  NotifyPersistent = 1 << 2 ,
  NotifyAudio = 1 << 3
}
 Describes the notification parameters. More...
 

Functions

 Q_DECLARE_FLAGS (NotifyFlags, NotifyFlag)
 

Variables

Q_DECL_IMPORT const QString CatEventCancel { QStringLiteral ("org.LC.AdvNotifications.Cancel") }
 Event cancel pseudo-category.
 
Q_DECL_IMPORT const QString CatIM { QStringLiteral (CAT_IM) }
 Category of Instant Messaging-related events.
 
Q_DECL_IMPORT const QString TypeIMAttention { QStringLiteral (CAT_IM ".AttentionDrawn") }
 Another user has requested our user's attention.
 
Q_DECL_IMPORT const QString TypeIMIncFile { QStringLiteral (CAT_IM ".IncomingFile") }
 Another user has sent our user a file.
 
Q_DECL_IMPORT const QString TypeIMIncMsg { QStringLiteral (CAT_IM ".IncomingMessage") }
 User has received a message in a standard one-to-one chat.
 
Q_DECL_IMPORT const QString TypeIMMUCHighlight { QStringLiteral (CAT_IM ".MUCHighlightMessage") }
 User has been highlighted in a multiuser chat.
 
Q_DECL_IMPORT const QString TypeIMMUCInvite { QStringLiteral (CAT_IM ".MUCInvitation") }
 User has been invited to a multiuser chat.
 
Q_DECL_IMPORT const QString TypeIMMUCMsg { QStringLiteral (CAT_IM ".MUCMessage") }
 A message has been sent to a multiuser chat.
 
Q_DECL_IMPORT const QString TypeIMStatusChange { QStringLiteral (CAT_IM ".StatusChange") }
 Another user in our user's contact list has changed its status.
 
Q_DECL_IMPORT const QString TypeIMSubscrGrant { QStringLiteral (CAT_IM ".Subscr.Granted") }
 Another user has granted subscription to our user.
 
Q_DECL_IMPORT const QString TypeIMSubscrRevoke { QStringLiteral (CAT_IM ".Subscr.Revoked") }
 Another user has revoked subscription from our user.
 
Q_DECL_IMPORT const QString TypeIMSubscrRequest { QStringLiteral (CAT_IM ".Subscr.Requested") }
 Another user has requested subscription from our user.
 
Q_DECL_IMPORT const QString TypeIMSubscrSub { QStringLiteral (CAT_IM ".Subscr.Subscribed") }
 Another user has subscribed to our user.
 
Q_DECL_IMPORT const QString TypeIMSubscrUnsub { QStringLiteral (CAT_IM ".Subscr.Unsubscribed") }
 Another user has unsubscribed from our user.
 
Q_DECL_IMPORT const QString TypeIMEventTuneChange { QStringLiteral (CAT_IM ".Event.Tune") }
 User's tune has changed.
 
Q_DECL_IMPORT const QString TypeIMEventMoodChange { QStringLiteral (CAT_IM ".Event.Mood") }
 User's mood has changed.
 
Q_DECL_IMPORT const QString TypeIMEventActivityChange { QStringLiteral (CAT_IM ".Event.Activity") }
 User's activity has changed.
 
Q_DECL_IMPORT const QString TypeIMEventLocationChange { QStringLiteral (CAT_IM ".Event.Location") }
 User's location has changed.
 
Q_DECL_IMPORT const QString CatOrganizer { QStringLiteral (CAT_ORGANIZER) }
 Category of Organizer-related events.
 
Q_DECL_IMPORT const QString TypeOrganizerEventDue { QStringLiteral (CAT_ORGANIZER ".EventDue") }
 An event due date is coming.
 
Q_DECL_IMPORT const QString CatDownloads { QStringLiteral (CAT_DOWNLOADS) }
 Category of Downloads-related events.
 
Q_DECL_IMPORT const QString TypeDownloadFinished { QStringLiteral (CAT_DOWNLOADS ".DownloadFinished") }
 A download has been finished successfully without errors.
 
Q_DECL_IMPORT const QString TypeDownloadError { QStringLiteral (CAT_DOWNLOADS ".DownloadError") }
 A download has been failed.
 
Q_DECL_IMPORT const QString CatPackageManager { QStringLiteral (CAT_PACKAGE_MANAGER) }
 Category of package manager-related events.
 
Q_DECL_IMPORT const QString TypePackageUpdated { QStringLiteral (CAT_PACKAGE_MANAGER ".PackageUpdated") }
 A package has been updated.
 
Q_DECL_IMPORT const QString CatMediaPlayer { QStringLiteral (CAT_MEDIA_PLAYER) }
 Category of media player-related events.
 
Q_DECL_IMPORT const QString TypeMediaPlaybackStatus { QStringLiteral (CAT_MEDIA_PLAYER ".PlaybackStatus") }
 A media file playback status has been changed.
 
Q_DECL_IMPORT const QString CatTerminal { QStringLiteral (CAT_TERMINAL) }
 Category for terminal emulation events.
 
Q_DECL_IMPORT const QString TypeTerminalBell { QStringLiteral (CAT_TERMINAL ".Bell") }
 A bell has ringed in a terminal window.
 
Q_DECL_IMPORT const QString TypeTerminalActivity { QStringLiteral (CAT_TERMINAL ".Activity") }
 Activity in terminal window.
 
Q_DECL_IMPORT const QString TypeTerminalInactivity { QStringLiteral (CAT_TERMINAL ".Inactivity") }
 Inactivity in terminal window.
 
Q_DECL_IMPORT const QString CatNews { QStringLiteral (CAT_NEWS) }
 Category for news-related events.
 
Q_DECL_IMPORT const QString TypeNewsSourceUpdated { QStringLiteral (CAT_NEWS ".Updated") }
 News source got updated.
 
Q_DECL_IMPORT const QString TypeNewsSourceBroken { QStringLiteral (CAT_NEWS ".Broken") }
 News source is detected to be broken.
 
Q_DECL_IMPORT const QString CatGeneric { QStringLiteral (CAT_GENERIC) }
 Generic notifications that don't fit into any other category.
 
Q_DECL_IMPORT const QString TypeGeneric { QStringLiteral (CAT_GENERIC ".Generic") }
 Generic type for generic notifications.
 

Enumeration Type Documentation

◆ NotifyFlag

Describes the notification parameters.

Enumerator
NotifyNone 

No notifications.

NotifySingleShot 

Rule should be triggered only once.

This corresponds to the single shot events. That is, after first triggering of the rule it should be disabled and user shouldn't get further notifications.

NotifyTransient 

User should be notified visually.

The user should be notified via transient notifications like a non-intrusive tooltip that will hide soon.

This is ortogonal to NotifyPersistent.

See also
NotifyPersistent
NotifyPersistent 

User should be notified visually via persistent notifications.

A persistent notification is something like a tray icon that will be displayed until the user reacts to the event.

This is ortogonal to NotifyTransient.

See also
NotifyTransient
NotifyAudio 

Notify by playing back an audio file.

Definition at line 175 of file constants.h.

Function Documentation

◆ Q_DECLARE_FLAGS()

LC::AN::Q_DECLARE_FLAGS ( NotifyFlags ,
NotifyFlag  )

Variable Documentation

◆ CatDownloads

const QString LC::AN::CatDownloads { QStringLiteral (CAT_DOWNLOADS) }

Category of Downloads-related events.

Definition at line 94 of file anconstantsdefs.cpp.

◆ CatEventCancel

const QString LC::AN::CatEventCancel { QStringLiteral ("org.LC.AdvNotifications.Cancel") }

Event cancel pseudo-category.

This category is used to cancel an event by a given event ID.

Definition at line 68 of file anconstantsdefs.cpp.

Referenced by LC::Util::MakeANCancel(), and LC::Util::MakeANCancel().

◆ CatGeneric

const QString LC::AN::CatGeneric { QStringLiteral (CAT_GENERIC) }

Generic notifications that don't fit into any other category.

Definition at line 118 of file anconstantsdefs.cpp.

◆ CatIM

const QString LC::AN::CatIM { QStringLiteral (CAT_IM) }

Category of Instant Messaging-related events.

Definition at line 71 of file anconstantsdefs.cpp.

◆ CatMediaPlayer

const QString LC::AN::CatMediaPlayer { QStringLiteral (CAT_MEDIA_PLAYER) }

Category of media player-related events.

Definition at line 103 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ CatNews

const QString LC::AN::CatNews { QStringLiteral (CAT_NEWS) }

Category for news-related events.

Definition at line 113 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ CatOrganizer

const QString LC::AN::CatOrganizer { QStringLiteral (CAT_ORGANIZER) }

Category of Organizer-related events.

Definition at line 90 of file anconstantsdefs.cpp.

◆ CatPackageManager

const QString LC::AN::CatPackageManager { QStringLiteral (CAT_PACKAGE_MANAGER) }

Category of package manager-related events.

Definition at line 99 of file anconstantsdefs.cpp.

◆ CatTerminal

const QString LC::AN::CatTerminal { QStringLiteral (CAT_TERMINAL) }

Category for terminal emulation events.

Definition at line 107 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeDownloadError

const QString LC::AN::TypeDownloadError { QStringLiteral (CAT_DOWNLOADS ".DownloadError") }

A download has been failed.

Definition at line 96 of file anconstantsdefs.cpp.

◆ TypeDownloadFinished

const QString LC::AN::TypeDownloadFinished { QStringLiteral (CAT_DOWNLOADS ".DownloadFinished") }

A download has been finished successfully without errors.

Definition at line 95 of file anconstantsdefs.cpp.

◆ TypeGeneric

const QString LC::AN::TypeGeneric { QStringLiteral (CAT_GENERIC ".Generic") }

Generic type for generic notifications.

Definition at line 119 of file anconstantsdefs.cpp.

◆ TypeIMAttention

const QString LC::AN::TypeIMAttention { QStringLiteral (CAT_IM ".AttentionDrawn") }

Another user has requested our user's attention.

Definition at line 72 of file anconstantsdefs.cpp.

◆ TypeIMEventActivityChange

const QString LC::AN::TypeIMEventActivityChange { QStringLiteral (CAT_IM ".Event.Activity") }

User's activity has changed.

Definition at line 86 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeIMEventLocationChange

const QString LC::AN::TypeIMEventLocationChange { QStringLiteral (CAT_IM ".Event.Location") }

User's location has changed.

Definition at line 87 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeIMEventMoodChange

const QString LC::AN::TypeIMEventMoodChange { QStringLiteral (CAT_IM ".Event.Mood") }

User's mood has changed.

Definition at line 85 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeIMEventTuneChange

const QString LC::AN::TypeIMEventTuneChange { QStringLiteral (CAT_IM ".Event.Tune") }

User's tune has changed.

Definition at line 84 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeIMIncFile

const QString LC::AN::TypeIMIncFile { QStringLiteral (CAT_IM ".IncomingFile") }

Another user has sent our user a file.

Definition at line 73 of file anconstantsdefs.cpp.

◆ TypeIMIncMsg

const QString LC::AN::TypeIMIncMsg { QStringLiteral (CAT_IM ".IncomingMessage") }

User has received a message in a standard one-to-one chat.

Definition at line 74 of file anconstantsdefs.cpp.

◆ TypeIMMUCHighlight

const QString LC::AN::TypeIMMUCHighlight { QStringLiteral (CAT_IM ".MUCHighlightMessage") }

User has been highlighted in a multiuser chat.

The primary difference from TypeIMMUCMsg is that our user must be explicitly mentioned in another user's message for this event.

See also
TypeIMMUCMsg

Definition at line 75 of file anconstantsdefs.cpp.

◆ TypeIMMUCInvite

const QString LC::AN::TypeIMMUCInvite { QStringLiteral (CAT_IM ".MUCInvitation") }

User has been invited to a multiuser chat.

Definition at line 76 of file anconstantsdefs.cpp.

◆ TypeIMMUCMsg

const QString LC::AN::TypeIMMUCMsg { QStringLiteral (CAT_IM ".MUCMessage") }

A message has been sent to a multiuser chat.

This event should be emitted for each MUC message, even for those our user isn't mentioned in.

See also
TypeIMMUCHighlight

Definition at line 77 of file anconstantsdefs.cpp.

◆ TypeIMStatusChange

const QString LC::AN::TypeIMStatusChange { QStringLiteral (CAT_IM ".StatusChange") }

Another user in our user's contact list has changed its status.

Definition at line 78 of file anconstantsdefs.cpp.

◆ TypeIMSubscrGrant

const QString LC::AN::TypeIMSubscrGrant { QStringLiteral (CAT_IM ".Subscr.Granted") }

Another user has granted subscription to our user.

Definition at line 79 of file anconstantsdefs.cpp.

◆ TypeIMSubscrRequest

const QString LC::AN::TypeIMSubscrRequest { QStringLiteral (CAT_IM ".Subscr.Requested") }

Another user has requested subscription from our user.

Definition at line 81 of file anconstantsdefs.cpp.

◆ TypeIMSubscrRevoke

const QString LC::AN::TypeIMSubscrRevoke { QStringLiteral (CAT_IM ".Subscr.Revoked") }

Another user has revoked subscription from our user.

Definition at line 80 of file anconstantsdefs.cpp.

◆ TypeIMSubscrSub

const QString LC::AN::TypeIMSubscrSub { QStringLiteral (CAT_IM ".Subscr.Subscribed") }

Another user has subscribed to our user.

Definition at line 82 of file anconstantsdefs.cpp.

◆ TypeIMSubscrUnsub

const QString LC::AN::TypeIMSubscrUnsub { QStringLiteral (CAT_IM ".Subscr.Unsubscribed") }

Another user has unsubscribed from our user.

Definition at line 83 of file anconstantsdefs.cpp.

◆ TypeMediaPlaybackStatus

const QString LC::AN::TypeMediaPlaybackStatus { QStringLiteral (CAT_MEDIA_PLAYER ".PlaybackStatus") }

A media file playback status has been changed.

Definition at line 104 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeNewsSourceBroken

const QString LC::AN::TypeNewsSourceBroken { QStringLiteral (CAT_NEWS ".Broken") }

News source is detected to be broken.

Definition at line 115 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeNewsSourceUpdated

const QString LC::AN::TypeNewsSourceUpdated { QStringLiteral (CAT_NEWS ".Updated") }

News source got updated.

Definition at line 114 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeOrganizerEventDue

const QString LC::AN::TypeOrganizerEventDue { QStringLiteral (CAT_ORGANIZER ".EventDue") }

An event due date is coming.

Definition at line 91 of file anconstantsdefs.cpp.

◆ TypePackageUpdated

const QString LC::AN::TypePackageUpdated { QStringLiteral (CAT_PACKAGE_MANAGER ".PackageUpdated") }

A package has been updated.

Definition at line 100 of file anconstantsdefs.cpp.

◆ TypeTerminalActivity

const QString LC::AN::TypeTerminalActivity { QStringLiteral (CAT_TERMINAL ".Activity") }

Activity in terminal window.

Definition at line 109 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeTerminalBell

const QString LC::AN::TypeTerminalBell { QStringLiteral (CAT_TERMINAL ".Bell") }

A bell has ringed in a terminal window.

Definition at line 108 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().

◆ TypeTerminalInactivity

const QString LC::AN::TypeTerminalInactivity { QStringLiteral (CAT_TERMINAL ".Inactivity") }

Inactivity in terminal window.

Definition at line 110 of file anconstantsdefs.cpp.

Referenced by LC::Util::GetStdANFields().