LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
anconstantsdefs.cpp
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
12
13namespace LC::EF
14{
15 const QString Priority { QStringLiteral ("Priority") };
16 const QString NotificationActions { QStringLiteral ("NotificationActions") };
17 const QString NotificationPixmap { QStringLiteral ("NotificationPixmap") };
18 const QString NotificationTimeout { QStringLiteral ("NotificationTimeout") };
19 const QString HandlingObject { QStringLiteral ("HandlingObject") };
20 const QString UserVisibleName { QStringLiteral ("UserVisibleName") };
21 const QString Text { QStringLiteral ("Text") };
22 const QString Tags { QStringLiteral (" Tags") };
23}
24
25namespace LC::Mimes
26{
27#define MIME_NOTIFICATION "x-leechcraft/notification"
28 const QString Notification { QStringLiteral (MIME_NOTIFICATION) };
29 const QString NotificationRuleCreate { QStringLiteral (MIME_NOTIFICATION "-rule-create") };
30}
31
32namespace LC::AN
33{
34 const QString CatEventCancel { QStringLiteral ("org.LC.AdvNotifications.Cancel") };
35
36#define CAT_IM "org.LC.AdvNotifications.IM"
37 const QString CatIM { QStringLiteral (CAT_IM) };
38 const QString TypeIMAttention { QStringLiteral (CAT_IM ".AttentionDrawn") };
39 const QString TypeIMIncFile { QStringLiteral (CAT_IM ".IncomingFile") };
40 const QString TypeIMIncMsg { QStringLiteral (CAT_IM ".IncomingMessage") };
41 const QString TypeIMMUCHighlight { QStringLiteral (CAT_IM ".MUCHighlightMessage") };
42 const QString TypeIMMUCInvite { QStringLiteral (CAT_IM ".MUCInvitation") };
43 const QString TypeIMMUCMsg { QStringLiteral (CAT_IM ".MUCMessage") };
44 const QString TypeIMStatusChange { QStringLiteral (CAT_IM ".StatusChange") };
45 const QString TypeIMSubscrGrant { QStringLiteral (CAT_IM ".Subscr.Granted") };
46 const QString TypeIMSubscrRevoke { QStringLiteral (CAT_IM ".Subscr.Revoked") };
47 const QString TypeIMSubscrRequest { QStringLiteral (CAT_IM ".Subscr.Requested") };
48 const QString TypeIMSubscrSub { QStringLiteral (CAT_IM ".Subscr.Subscribed") };
49 const QString TypeIMSubscrUnsub { QStringLiteral (CAT_IM ".Subscr.Unsubscribed") };
50 const QString TypeIMEventTuneChange { QStringLiteral (CAT_IM ".Event.Tune") };
51 const QString TypeIMEventMoodChange { QStringLiteral (CAT_IM ".Event.Mood") };
52 const QString TypeIMEventActivityChange { QStringLiteral (CAT_IM ".Event.Activity") };
53 const QString TypeIMEventLocationChange { QStringLiteral (CAT_IM ".Event.Location") };
54
55#define CAT_ORGANIZER "org.LC.AdvNotifications.Organizer"
56 const QString CatOrganizer { QStringLiteral (CAT_ORGANIZER) };
57 const QString TypeOrganizerEventDue { QStringLiteral (CAT_ORGANIZER ".EventDue") };
58
59#define CAT_DOWNLOADS "org.LC.AdvNotifications.Downloads"
60 const QString CatDownloads { QStringLiteral (CAT_DOWNLOADS) };
61 const QString TypeDownloadFinished { QStringLiteral (CAT_DOWNLOADS ".DownloadFinished") };
62 const QString TypeDownloadError { QStringLiteral (CAT_DOWNLOADS ".DownloadError") };
63
64#define CAT_PACKAGE_MANAGER "org.LC.AdvNotifications.PackageManager"
65 const QString CatPackageManager { QStringLiteral (CAT_PACKAGE_MANAGER) };
66 const QString TypePackageUpdated { QStringLiteral (CAT_PACKAGE_MANAGER ".PackageUpdated") };
67
68#define CAT_MEDIA_PLAYER "org.LC.AdvNotifications.MediaPlayer"
69 const QString CatMediaPlayer { QStringLiteral (CAT_MEDIA_PLAYER) };
70 const QString TypeMediaPlaybackStatus { QStringLiteral (CAT_MEDIA_PLAYER ".PlaybackStatus") };
71
72#define CAT_TERMINAL "org.LC.AdvNotifications.Terminal"
73 const QString CatTerminal { QStringLiteral (CAT_TERMINAL) };
74 const QString TypeTerminalBell { QStringLiteral (CAT_TERMINAL ".Bell") };
75 const QString TypeTerminalActivity { QStringLiteral (CAT_TERMINAL ".Activity") };
76 const QString TypeTerminalInactivity { QStringLiteral (CAT_TERMINAL ".Inactivity") };
77
78#define CAT_NEWS "org.LC.AdvNotifications.News"
79 const QString CatNews { QStringLiteral (CAT_NEWS) };
80 const QString TypeNewsSourceUpdated { QStringLiteral (CAT_NEWS ".Updated") };
81 const QString TypeNewsSourceBroken { QStringLiteral (CAT_NEWS ".Broken") };
82
83#define CAT_GENERIC "org.LC.AdvNotifications.Generic"
84 const QString CatGeneric { QStringLiteral (CAT_GENERIC) };
85 const QString TypeGeneric { QStringLiteral (CAT_GENERIC ".Generic") };
86
87 namespace Field
88 {
89 const QString MediaPlayerURL { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.URL") };
90 const QString MediaPlaybackStatus { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.PlaybackStatus") };
91 const QString MediaTitle { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Title") };
92 const QString MediaArtist { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Artist") };
93 const QString MediaAlbum { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Album") };
94 const QString MediaLength { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Length") };
95 const QString TerminalActive { QStringLiteral (CAT_TERMINAL ".Fields.Active") };
96 const QString IMActivityGeneral { QStringLiteral (CAT_IM ".Fields.Activity.General") };
97 const QString IMActivitySpecific { QStringLiteral (CAT_IM ".Fields.Activity.Specific") };
98 const QString IMActivityText { QStringLiteral (CAT_IM ".Fields.Activity.Text") };
99 const QString IMMoodGeneral { QStringLiteral (CAT_IM ".Fields.Mood.General") };
100 const QString IMMoodText { QStringLiteral (CAT_IM ".Fields.Mood.Text") };
101 const QString IMLocationLongitude { QStringLiteral (CAT_IM ".Fields.Location.Longitude") };
102 const QString IMLocationLatitude { QStringLiteral (CAT_IM ".Fields.Location.Latitude") };
103 const QString IMLocationCountry { QStringLiteral (CAT_IM ".Fields.Location.Country") };
104 const QString IMLocationLocality { QStringLiteral (CAT_IM ".Fields.Location.Locality") };
105 const QString NewsSourceName { QStringLiteral (CAT_NEWS ".Fields.Source.Name") };
106 const QString NewsSourceURL { QStringLiteral (CAT_NEWS ".Fields.Source.URL") };
107 }
108
109 namespace EF
110 {
111 const QString SenderID { QStringLiteral ("org.LC.AdvNotifications.SenderID") };
112 const QString EventCategory { QStringLiteral ("org.LC.AdvNotifications.EventCategory") };
113 const QString EventID { QStringLiteral ("org.LC.AdvNotifications.EventID") };
114 const QString VisualPath { QStringLiteral ("org.LC.AdvNotifications.VisualPath") };
115 const QString EventType { QStringLiteral ("org.LC.AdvNotifications.EventType") };
116 const QString FullText { QStringLiteral ("org.LC.AdvNotifications.FullText") };
117 const QString ExtendedText { QStringLiteral ("org.LC.AdvNotifications.ExtendedText") };
118 const QString DeltaCount { QStringLiteral ("org.LC.AdvNotifications.DeltaCount") };
119 const QString Count { QStringLiteral ("org.LC.AdvNotifications.Count") };
120
121 const QString WindowIndex { QStringLiteral ("org.LC.AdvNotifications.WindowIndex") };
122
123 const QString OpenConfiguration { QStringLiteral ("org.LC.AdvNotifications.OpenConfiguration") };
124 const QString IsSingleShot { QStringLiteral ("org.LC.AdvNotifications.SingleShot") };
125 const QString NotifyTransient { QStringLiteral ("org.LC.AdvNotifications.NotifyTransient") };
126 const QString NotifyPersistent { QStringLiteral ("org.LC.AdvNotifications.NotifyPersistent") };
127 const QString NotifyAudio { QStringLiteral ("org.LC.AdvNotifications.NotifyAudio") };
128
129 const QString RuleID { QStringLiteral ("org.LC.AdvNotifications.RuleID") };
130 const QString AssocColor { QStringLiteral ("org.LC.AdvNotifications.AssocColor") };
131 const QString IsEnabled { QStringLiteral ("org.LC.AdvNotifications.IsEnabled") };
132 }
133}
#define CAT_PACKAGE_MANAGER
#define CAT_NEWS
#define CAT_GENERIC
#define MIME_NOTIFICATION
#define CAT_MEDIA_PLAYER
#define CAT_IM
#define CAT_DOWNLOADS
#define CAT_TERMINAL
#define CAT_ORGANIZER
Q_DECL_IMPORT const QString Count
The new total event count (int).
Q_DECL_IMPORT const QString EventID
The ID of the event (QString).
Q_DECL_IMPORT const QString SenderID
The plugin ID of the sender (QByteArray or QString).
Q_DECL_IMPORT const QString OpenConfiguration
Whether configuration dialog should be opened (bool).
Q_DECL_IMPORT const QString NotifyPersistent
Whether a persistent notifier should be enabled by default in the rule being created (bool).
Q_DECL_IMPORT const QString VisualPath
Visual path to this event (QStringList).
Q_DECL_IMPORT const QString NotifyAudio
Whether an audio notifier should be enabled by default in the rule being created (bool).
Q_DECL_IMPORT const QString WindowIndex
The index of the window associated with this event (int).
Q_DECL_IMPORT const QString RuleID
Q_DECL_IMPORT const QString IsEnabled
Q_DECL_IMPORT const QString ExtendedText
The even more detailed text than FullText (QString).
Q_DECL_IMPORT const QString NotifyTransient
Whether a transient notifier should be enabled by default in the rule being created (bool).
Q_DECL_IMPORT const QString EventCategory
The category of the event (QString).
Q_DECL_IMPORT const QString FullText
The detailed text of the event (QString).
Q_DECL_IMPORT const QString AssocColor
Q_DECL_IMPORT const QString DeltaCount
The change in event count (int).
Q_DECL_IMPORT const QString EventType
The type of the event (QString).
Q_DECL_IMPORT const QString IsSingleShot
Whether the created rule should be single-shot (bool).
Q_DECL_IMPORT const QString IMActivityGeneral
General activity name of a contact (QString).
Q_DECL_IMPORT const QString IMActivitySpecific
Specific activity name of a contact (QString).
Q_DECL_IMPORT const QString TerminalActive
Whether the terminal window is active (bool).
Q_DECL_IMPORT const QString MediaAlbum
The album of the currently playing media (QString).
Q_DECL_IMPORT const QString IMLocationCountry
Country a contact is currently in (QString).
Q_DECL_IMPORT const QString IMMoodText
Accompanying mood text entered by a contact (QString).
Q_DECL_IMPORT const QString IMLocationLocality
Exact locality, like a town or a city, a contact is currently in (QString).
Q_DECL_IMPORT const QString MediaTitle
The title of the currently playing media (QString).
Q_DECL_IMPORT const QString MediaLength
The length of the currently playing media (int).
Q_DECL_IMPORT const QString NewsSourceName
News source name (QString).
Q_DECL_IMPORT const QString MediaPlayerURL
The URL to the file being played.
Q_DECL_IMPORT const QString MediaPlaybackStatus
Playback status of the URL (QString).
Q_DECL_IMPORT const QString IMMoodGeneral
General mood name of a contact (QString).
Q_DECL_IMPORT const QString IMLocationLatitude
Latitude of a contact's position (double).
Q_DECL_IMPORT const QString MediaArtist
The artist of the currently playing media (QString).
Q_DECL_IMPORT const QString IMLocationLongitude
Longitude of a contact's position (double).
Q_DECL_IMPORT const QString IMActivityText
Accompanying activity text entered by a contact (QString).
Q_DECL_IMPORT const QString NewsSourceURL
News source URL (QString).
Q_DECL_IMPORT const QString TypeTerminalActivity
Activity in terminal window.
Q_DECL_IMPORT const QString TypeIMEventActivityChange
User's activity has changed.
Q_DECL_IMPORT const QString TypeOrganizerEventDue
An event due date is coming.
Q_DECL_IMPORT const QString CatGeneric
Generic notifications that don't fit into any other category.
Q_DECL_IMPORT const QString TypeNewsSourceUpdated
News source got updated.
Q_DECL_IMPORT const QString TypeMediaPlaybackStatus
A media file playback status has been changed.
Q_DECL_IMPORT const QString TypeIMEventLocationChange
User's location has changed.
Q_DECL_IMPORT const QString TypeIMAttention
Another user has requested our user's attention.
Q_DECL_IMPORT const QString TypeIMMUCHighlight
User has been highlighted in a multiuser chat.
Q_DECL_IMPORT const QString TypeGeneric
Generic type for generic notifications.
Q_DECL_IMPORT const QString TypeIMSubscrUnsub
Another user has unsubscribed from our user.
Q_DECL_IMPORT const QString TypeIMSubscrSub
Another user has subscribed to our user.
Q_DECL_IMPORT const QString CatOrganizer
Category of Organizer-related events.
Q_DECL_IMPORT const QString CatIM
Category of Instant Messaging-related events.
Q_DECL_IMPORT const QString TypeIMSubscrRevoke
Another user has revoked subscription from our user.
Q_DECL_IMPORT const QString CatNews
Category for news-related events.
Q_DECL_IMPORT const QString CatTerminal
Category for terminal emulation events.
Q_DECL_IMPORT const QString TypeTerminalBell
A bell has ringed in a terminal window.
Q_DECL_IMPORT const QString CatDownloads
Category of Downloads-related events.
Q_DECL_IMPORT const QString CatEventCancel
Event cancel pseudo-category.
Q_DECL_IMPORT const QString TypeIMSubscrRequest
Another user has requested subscription from our user.
Q_DECL_IMPORT const QString TypePackageUpdated
A package has been updated.
Q_DECL_IMPORT const QString TypeIMMUCInvite
User has been invited to a multiuser chat.
Q_DECL_IMPORT const QString TypeIMIncFile
Another user has sent our user a file.
Q_DECL_IMPORT const QString CatPackageManager
Category of package manager-related events.
Q_DECL_IMPORT const QString CatMediaPlayer
Category of media player-related events.
Q_DECL_IMPORT const QString TypeTerminalInactivity
Inactivity in terminal window.
Q_DECL_IMPORT const QString TypeIMEventTuneChange
User's tune has changed.
Q_DECL_IMPORT const QString TypeIMIncMsg
User has received a message in a standard one-to-one chat.
Q_DECL_IMPORT const QString TypeIMEventMoodChange
User's mood has changed.
Q_DECL_IMPORT const QString TypeIMStatusChange
Another user in our user's contact list has changed its status.
Q_DECL_IMPORT const QString TypeNewsSourceBroken
News source is detected to be broken.
Q_DECL_IMPORT const QString TypeIMSubscrGrant
Another user has granted subscription to our user.
Q_DECL_IMPORT const QString TypeDownloadError
A download has been failed.
Q_DECL_IMPORT const QString TypeIMMUCMsg
A message has been sent to a multiuser chat.
Q_DECL_IMPORT const QString TypeDownloadFinished
A download has been finished successfully without errors.
Q_DECL_IMPORT const QString NotificationTimeout
Q_DECL_IMPORT const QString UserVisibleName
Q_DECL_IMPORT const QString NotificationPixmap
Q_DECL_IMPORT const QString HandlingObject
Q_DECL_IMPORT const QString NotificationActions
Q_DECL_IMPORT const QString Text
Q_DECL_IMPORT const QString Tags
Q_DECL_IMPORT const QString NotificationRuleCreate
Q_DECL_IMPORT const QString Notification
Priority
Definition: structures.h:215