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

Namespace for various AN entity fields. More...

Variables

Q_DECL_IMPORT const QString SenderID { QStringLiteral ("org.LC.AdvNotifications.SenderID") }
 The plugin ID of the sender (QByteArray or QString).
 
Q_DECL_IMPORT const QString EventCategory { QStringLiteral ("org.LC.AdvNotifications.EventCategory") }
 The category of the event (QString).
 
Q_DECL_IMPORT const QString EventID { QStringLiteral ("org.LC.AdvNotifications.EventID") }
 The ID of the event (QString).
 
Q_DECL_IMPORT const QString VisualPath { QStringLiteral ("org.LC.AdvNotifications.VisualPath") }
 Visual path to this event (QStringList).
 
Q_DECL_IMPORT const QString EventType { QStringLiteral ("org.LC.AdvNotifications.EventType") }
 The type of the event (QString).
 
Q_DECL_IMPORT const QString FullText { QStringLiteral ("org.LC.AdvNotifications.FullText") }
 The detailed text of the event (QString).
 
Q_DECL_IMPORT const QString ExtendedText { QStringLiteral ("org.LC.AdvNotifications.ExtendedText") }
 The even more detailed text than FullText (QString).
 
Q_DECL_IMPORT const QString DeltaCount { QStringLiteral ("org.LC.AdvNotifications.DeltaCount") }
 The change in event count (int).
 
Q_DECL_IMPORT const QString Count { QStringLiteral ("org.LC.AdvNotifications.Count") }
 The new total event count (int).
 
Q_DECL_IMPORT const QString WindowIndex { QStringLiteral ("org.LC.AdvNotifications.WindowIndex") }
 The index of the window associated with this event (int).
 
Q_DECL_IMPORT const QString OpenConfiguration { QStringLiteral ("org.LC.AdvNotifications.OpenConfiguration") }
 Whether configuration dialog should be opened (bool).
 
Q_DECL_IMPORT const QString IsSingleShot { QStringLiteral ("org.LC.AdvNotifications.SingleShot") }
 Whether the created rule should be single-shot (bool).
 
Q_DECL_IMPORT const QString NotifyTransient { QStringLiteral ("org.LC.AdvNotifications.NotifyTransient") }
 Whether a transient notifier should be enabled by default in the rule being created (bool).
 
Q_DECL_IMPORT const QString NotifyPersistent { QStringLiteral ("org.LC.AdvNotifications.NotifyPersistent") }
 Whether a persistent notifier should be enabled by default in the rule being created (bool).
 
Q_DECL_IMPORT const QString NotifyAudio { QStringLiteral ("org.LC.AdvNotifications.NotifyAudio") }
 Whether an audio notifier should be enabled by default in the rule being created (bool).
 
Q_DECL_IMPORT const QString RuleID { QStringLiteral ("org.LC.AdvNotifications.RuleID") }
 
Q_DECL_IMPORT const QString AssocColor { QStringLiteral ("org.LC.AdvNotifications.AssocColor") }
 
Q_DECL_IMPORT const QString IsEnabled { QStringLiteral ("org.LC.AdvNotifications.IsEnabled") }
 

Detailed Description

Namespace for various AN entity fields.

This namespace contains various constants for widely-used fields in an AdvancedNotifications-related Entity structure. Both event notification fields and rule creation fields are mentioned.

Variable Documentation

◆ AssocColor

const QString LC::AN::EF::AssocColor { QStringLiteral ("org.LC.AdvNotifications.AssocColor") }

Definition at line 164 of file anconstantsdefs.cpp.

◆ Count

const QString LC::AN::EF::Count { QStringLiteral ("org.LC.AdvNotifications.Count") }

The new total event count (int).

This field represents how many events with the given EventID are there pending now.

Note
Either this field or the DeltaCount field should be present for event notification entities.

Definition at line 153 of file anconstantsdefs.cpp.

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

◆ DeltaCount

const QString LC::AN::EF::DeltaCount { QStringLiteral ("org.LC.AdvNotifications.DeltaCount") }

The change in event count (int).

This field represents the change in the count of the events with the given EventID.

For example, if two messages arrive simultaneously from the same contact in an IM client, this field should be equal to 2.

Note
Either this field or the Count field should be present for event notification entities.

Definition at line 152 of file anconstantsdefs.cpp.

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

◆ EventCategory

const QString LC::AN::EF::EventCategory { QStringLiteral ("org.LC.AdvNotifications.EventCategory") }

The category of the event (QString).

To notify about an event, this field should contain one of the predefined event categories (like CatIM, CatDownloads and so on). To cancel an event (for example, when all unread messages have been read), this field should contain the CatEventCancel category.

Note
This field is required for event notification entities.
This field is required for rule creation entities.

Definition at line 146 of file anconstantsdefs.cpp.

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

◆ EventID

const QString LC::AN::EF::EventID { QStringLiteral ("org.LC.AdvNotifications.EventID") }

The ID of the event (QString).

Events relating to the same object (like IM messages from the same contact) should have the same event ID.

Note
This field is required for event notification entities.
This field is required for rule creation entities.

Definition at line 147 of file anconstantsdefs.cpp.

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

◆ EventType

const QString LC::AN::EF::EventType { QStringLiteral ("org.LC.AdvNotifications.EventType") }

The type of the event (QString).

This field should contain one of the event types related to the given EventCategory, like TypeIMAttention or TypeIMIncMsg for the CatIM category.

Note
This field is also used when creating rules. In this case, it should contain a QStringList with all the event types the rule being created relates to.
This field is required for event notification entities.
This field is required for rule creation entities.

Definition at line 149 of file anconstantsdefs.cpp.

Referenced by LC::Util::MakeAN(), and LC::Util::MakeANRule().

◆ ExtendedText

const QString LC::AN::EF::ExtendedText { QStringLiteral ("org.LC.AdvNotifications.ExtendedText") }

The even more detailed text than FullText (QString).

Note
This field is optional for event notification entities.

Definition at line 151 of file anconstantsdefs.cpp.

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

◆ FullText

const QString LC::AN::EF::FullText { QStringLiteral ("org.LC.AdvNotifications.FullText") }

The detailed text of the event (QString).

Note
This field is optional for event notification entities.

Definition at line 150 of file anconstantsdefs.cpp.

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

◆ IsEnabled

const QString LC::AN::EF::IsEnabled { QStringLiteral ("org.LC.AdvNotifications.IsEnabled") }

Definition at line 165 of file anconstantsdefs.cpp.

◆ IsSingleShot

const QString LC::AN::EF::IsSingleShot { QStringLiteral ("org.LC.AdvNotifications.SingleShot") }

Whether the created rule should be single-shot (bool).

Note
This field is optional for rule creation entities.

Definition at line 158 of file anconstantsdefs.cpp.

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

◆ NotifyAudio

const QString LC::AN::EF::NotifyAudio { QStringLiteral ("org.LC.AdvNotifications.NotifyAudio") }

Whether an audio notifier should be enabled by default in the rule being created (bool).

Note
This field is optional for rule creation entities.

Definition at line 161 of file anconstantsdefs.cpp.

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

◆ NotifyPersistent

const QString LC::AN::EF::NotifyPersistent { QStringLiteral ("org.LC.AdvNotifications.NotifyPersistent") }

Whether a persistent notifier should be enabled by default in the rule being created (bool).

Note
This field is optional for rule creation entities.

Definition at line 160 of file anconstantsdefs.cpp.

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

◆ NotifyTransient

const QString LC::AN::EF::NotifyTransient { QStringLiteral ("org.LC.AdvNotifications.NotifyTransient") }

Whether a transient notifier should be enabled by default in the rule being created (bool).

Note
This field is optional for rule creation entities.

Definition at line 159 of file anconstantsdefs.cpp.

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

◆ OpenConfiguration

const QString LC::AN::EF::OpenConfiguration { QStringLiteral ("org.LC.AdvNotifications.OpenConfiguration") }

Whether configuration dialog should be opened (bool).

If this field is set to true,

Note
This field is optional for rule creation entities.

Definition at line 157 of file anconstantsdefs.cpp.

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

◆ RuleID

const QString LC::AN::EF::RuleID { QStringLiteral ("org.LC.AdvNotifications.RuleID") }

Definition at line 163 of file anconstantsdefs.cpp.

◆ SenderID

const QString LC::AN::EF::SenderID { QStringLiteral ("org.LC.AdvNotifications.SenderID") }

The plugin ID of the sender (QByteArray or QString).

Note
This field is required for event notification entities.
This field is required for rule creation entities and should be equal to org.LC.AdvNotifications.RuleRegister.

Definition at line 145 of file anconstantsdefs.cpp.

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

◆ VisualPath

const QString LC::AN::EF::VisualPath { QStringLiteral ("org.LC.AdvNotifications.VisualPath") }

Visual path to this event (QStringList).

This field should contain the list of human-readable strings that allow grouping of various events into tree-like structures.

Note
This field is required for event notification entities.

Definition at line 148 of file anconstantsdefs.cpp.

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

◆ WindowIndex

const QString LC::AN::EF::WindowIndex { QStringLiteral ("org.LC.AdvNotifications.WindowIndex") }

The index of the window associated with this event (int).

This field contains the index of the window containing the tab (or other widget) associated with the event. For example, for an IM notification, this could be the window containing the tab with the conversation in question.

Definition at line 155 of file anconstantsdefs.cpp.