LeechCraft  0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
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 #include <QVariant>
13 
14 namespace LC
15 {
16  const QString IgnoreSelf { QStringLiteral ("IgnoreSelf") };
17  const QString AllowedSemantics { QStringLiteral ("AllowedSemantics") };
18 }
19 
20 namespace LC::EF
21 {
22  const QString Priority { QStringLiteral ("Priority") };
23  const QString NotificationActions { QStringLiteral ("NotificationActions") };
24  const QString NotificationPixmap { QStringLiteral ("NotificationPixmap") };
25  const QString NotificationTimeout { QStringLiteral ("NotificationTimeout") };
26  const QString HandlingObject { QStringLiteral ("HandlingObject") };
27  const QString UserVisibleName { QStringLiteral ("UserVisibleName") };
28  const QString Text { QStringLiteral ("Text") };
29  const QString Tags { QStringLiteral (" Tags") };
30 
31  namespace GlobalAction
32  {
33  const QString ActionID { QStringLiteral ("ActionID") };
34  const QString Shortcut { QStringLiteral ("Shortcut") };
35  const QString Receiver { QStringLiteral ("Receiver") };
36  const QString Method { QStringLiteral ("Method") };
37  const QString AltShortcuts { QStringLiteral ("AltShortcuts") };
38  }
39 
40  namespace PowerState
41  {
42  const QString TimeLeft { QStringLiteral ("TimeLeft") };
43  }
44 }
45 
46 namespace LC::Mimes
47 {
48 #define MIME_NOTIFICATION "x-leechcraft/notification"
49  const QString Notification { QStringLiteral (MIME_NOTIFICATION) };
50  const QString NotificationRuleCreate { QStringLiteral (MIME_NOTIFICATION "-rule-create") };
51 
52  const QString GlobalActionRegister { QStringLiteral ("x-leechcraft/global-action-register") };
53  const QString GlobalActionUnregister { QStringLiteral ("x-leechcraft/global-action-unregister") };
54 
55  const QString PowerStateChanged { QStringLiteral ("x-leechcraft/power-state-changed") };
56 
57  const QString DataFilterRequest { QStringLiteral ("x-leechcraft/data-filter-request") };
58 }
59 
60 namespace LC::PowerState
61 {
62  const QVariant Sleeping { QByteArray { "Sleeping" } };
63  const QVariant WokeUp { QByteArray { "WokeUp" } };
64 }
65 
66 namespace LC::AN
67 {
68  const QString CatEventCancel { QStringLiteral ("org.LC.AdvNotifications.Cancel") };
69 
70 #define CAT_IM "org.LC.AdvNotifications.IM"
71  const QString CatIM { QStringLiteral (CAT_IM) };
72  const QString TypeIMAttention { QStringLiteral (CAT_IM ".AttentionDrawn") };
73  const QString TypeIMIncFile { QStringLiteral (CAT_IM ".IncomingFile") };
74  const QString TypeIMIncMsg { QStringLiteral (CAT_IM ".IncomingMessage") };
75  const QString TypeIMMUCHighlight { QStringLiteral (CAT_IM ".MUCHighlightMessage") };
76  const QString TypeIMMUCInvite { QStringLiteral (CAT_IM ".MUCInvitation") };
77  const QString TypeIMMUCMsg { QStringLiteral (CAT_IM ".MUCMessage") };
78  const QString TypeIMStatusChange { QStringLiteral (CAT_IM ".StatusChange") };
79  const QString TypeIMSubscrGrant { QStringLiteral (CAT_IM ".Subscr.Granted") };
80  const QString TypeIMSubscrRevoke { QStringLiteral (CAT_IM ".Subscr.Revoked") };
81  const QString TypeIMSubscrRequest { QStringLiteral (CAT_IM ".Subscr.Requested") };
82  const QString TypeIMSubscrSub { QStringLiteral (CAT_IM ".Subscr.Subscribed") };
83  const QString TypeIMSubscrUnsub { QStringLiteral (CAT_IM ".Subscr.Unsubscribed") };
84  const QString TypeIMEventTuneChange { QStringLiteral (CAT_IM ".Event.Tune") };
85  const QString TypeIMEventMoodChange { QStringLiteral (CAT_IM ".Event.Mood") };
86  const QString TypeIMEventActivityChange { QStringLiteral (CAT_IM ".Event.Activity") };
87  const QString TypeIMEventLocationChange { QStringLiteral (CAT_IM ".Event.Location") };
88 
89 #define CAT_ORGANIZER "org.LC.AdvNotifications.Organizer"
90  const QString CatOrganizer { QStringLiteral (CAT_ORGANIZER) };
91  const QString TypeOrganizerEventDue { QStringLiteral (CAT_ORGANIZER ".EventDue") };
92 
93 #define CAT_DOWNLOADS "org.LC.AdvNotifications.Downloads"
94  const QString CatDownloads { QStringLiteral (CAT_DOWNLOADS) };
95  const QString TypeDownloadFinished { QStringLiteral (CAT_DOWNLOADS ".DownloadFinished") };
96  const QString TypeDownloadError { QStringLiteral (CAT_DOWNLOADS ".DownloadError") };
97 
98 #define CAT_PACKAGE_MANAGER "org.LC.AdvNotifications.PackageManager"
99  const QString CatPackageManager { QStringLiteral (CAT_PACKAGE_MANAGER) };
100  const QString TypePackageUpdated { QStringLiteral (CAT_PACKAGE_MANAGER ".PackageUpdated") };
101 
102 #define CAT_MEDIA_PLAYER "org.LC.AdvNotifications.MediaPlayer"
103  const QString CatMediaPlayer { QStringLiteral (CAT_MEDIA_PLAYER) };
104  const QString TypeMediaPlaybackStatus { QStringLiteral (CAT_MEDIA_PLAYER ".PlaybackStatus") };
105 
106 #define CAT_TERMINAL "org.LC.AdvNotifications.Terminal"
107  const QString CatTerminal { QStringLiteral (CAT_TERMINAL) };
108  const QString TypeTerminalBell { QStringLiteral (CAT_TERMINAL ".Bell") };
109  const QString TypeTerminalActivity { QStringLiteral (CAT_TERMINAL ".Activity") };
110  const QString TypeTerminalInactivity { QStringLiteral (CAT_TERMINAL ".Inactivity") };
111 
112 #define CAT_NEWS "org.LC.AdvNotifications.News"
113  const QString CatNews { QStringLiteral (CAT_NEWS) };
114  const QString TypeNewsSourceUpdated { QStringLiteral (CAT_NEWS ".Updated") };
115  const QString TypeNewsSourceBroken { QStringLiteral (CAT_NEWS ".Broken") };
116 
117 #define CAT_GENERIC "org.LC.AdvNotifications.Generic"
118  const QString CatGeneric { QStringLiteral (CAT_GENERIC) };
119  const QString TypeGeneric { QStringLiteral (CAT_GENERIC ".Generic") };
120 
121  namespace Field
122  {
123  const QString MediaPlayerURL { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.URL") };
124  const QString MediaPlaybackStatus { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.PlaybackStatus") };
125  const QString MediaTitle { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Title") };
126  const QString MediaArtist { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Artist") };
127  const QString MediaAlbum { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Album") };
128  const QString MediaLength { QStringLiteral (CAT_MEDIA_PLAYER ".Fields.Length") };
129  const QString TerminalActive { QStringLiteral (CAT_TERMINAL ".Fields.Active") };
130  const QString IMActivityGeneral { QStringLiteral (CAT_IM ".Fields.Activity.General") };
131  const QString IMActivitySpecific { QStringLiteral (CAT_IM ".Fields.Activity.Specific") };
132  const QString IMActivityText { QStringLiteral (CAT_IM ".Fields.Activity.Text") };
133  const QString IMMoodGeneral { QStringLiteral (CAT_IM ".Fields.Mood.General") };
134  const QString IMMoodText { QStringLiteral (CAT_IM ".Fields.Mood.Text") };
135  const QString IMLocationLongitude { QStringLiteral (CAT_IM ".Fields.Location.Longitude") };
136  const QString IMLocationLatitude { QStringLiteral (CAT_IM ".Fields.Location.Latitude") };
137  const QString IMLocationCountry { QStringLiteral (CAT_IM ".Fields.Location.Country") };
138  const QString IMLocationLocality { QStringLiteral (CAT_IM ".Fields.Location.Locality") };
139  const QString NewsSourceName { QStringLiteral (CAT_NEWS ".Fields.Source.Name") };
140  const QString NewsSourceURL { QStringLiteral (CAT_NEWS ".Fields.Source.URL") };
141  }
142 
143  namespace EF
144  {
145  const QString SenderID { QStringLiteral ("org.LC.AdvNotifications.SenderID") };
146  const QString EventCategory { QStringLiteral ("org.LC.AdvNotifications.EventCategory") };
147  const QString EventID { QStringLiteral ("org.LC.AdvNotifications.EventID") };
148  const QString VisualPath { QStringLiteral ("org.LC.AdvNotifications.VisualPath") };
149  const QString EventType { QStringLiteral ("org.LC.AdvNotifications.EventType") };
150  const QString FullText { QStringLiteral ("org.LC.AdvNotifications.FullText") };
151  const QString ExtendedText { QStringLiteral ("org.LC.AdvNotifications.ExtendedText") };
152  const QString DeltaCount { QStringLiteral ("org.LC.AdvNotifications.DeltaCount") };
153  const QString Count { QStringLiteral ("org.LC.AdvNotifications.Count") };
154 
155  const QString WindowIndex { QStringLiteral ("org.LC.AdvNotifications.WindowIndex") };
156 
157  const QString OpenConfiguration { QStringLiteral ("org.LC.AdvNotifications.OpenConfiguration") };
158  const QString IsSingleShot { QStringLiteral ("org.LC.AdvNotifications.SingleShot") };
159  const QString NotifyTransient { QStringLiteral ("org.LC.AdvNotifications.NotifyTransient") };
160  const QString NotifyPersistent { QStringLiteral ("org.LC.AdvNotifications.NotifyPersistent") };
161  const QString NotifyAudio { QStringLiteral ("org.LC.AdvNotifications.NotifyAudio") };
162 
163  const QString RuleID { QStringLiteral ("org.LC.AdvNotifications.RuleID") };
164  const QString AssocColor { QStringLiteral ("org.LC.AdvNotifications.AssocColor") };
165  const QString IsEnabled { QStringLiteral ("org.LC.AdvNotifications.IsEnabled") };
166  }
167 }
Q_DECL_IMPORT const QString TypeIMSubscrUnsub
Another user has unsubscribed from our user.
Q_DECL_IMPORT const QString CatOrganizer
Category of Organizer-related events.
Q_DECL_IMPORT const QString TypePackageUpdated
A package has been updated.
Q_DECL_IMPORT const QString TypeIMMUCHighlight
User has been highlighted in a multiuser chat.
#define CAT_ORGANIZER
Q_DECL_IMPORT const QString HandlingObject
Q_DECL_IMPORT const QString CatTerminal
Category for terminal emulation events.
Q_DECL_IMPORT const QString MediaArtist
The artist of the currently playing media (QString).
Q_DECL_IMPORT const QString Notification
Q_DECL_IMPORT const QString TypeIMEventLocationChange
User&#39;s location has changed.
Q_DECL_IMPORT const QString GlobalActionUnregister
#define CAT_IM
#define CAT_PACKAGE_MANAGER
Q_DECL_IMPORT const QString IMActivitySpecific
Specific activity name of a contact (QString).
#define CAT_GENERIC
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 IsEnabled
Q_DECL_IMPORT const QString CatDownloads
Category of Downloads-related events.
Q_DECL_IMPORT const QString TypeTerminalActivity
Activity in terminal window.
Q_DECL_IMPORT const QString TypeIMSubscrSub
Another user has subscribed to our user.
Q_DECL_IMPORT const QString UserVisibleName
Q_DECL_IMPORT const QString Count
The new total event count (int).
Q_DECL_IMPORT const QString MediaTitle
The title of the currently playing media (QString).
Q_DECL_IMPORT const QString TerminalActive
Whether the terminal window is active (bool).
Q_DECL_IMPORT const QString TypeOrganizerEventDue
An event due date is coming.
Q_DECL_IMPORT const QString TypeIMMUCInvite
User has been invited to a multiuser chat.
Q_DECL_IMPORT const QString NotificationTimeout
Q_DECL_IMPORT const QString Tags
Q_DECL_IMPORT const QString CatIM
Category of Instant Messaging-related events.
Q_DECL_IMPORT const QString TypeGeneric
Generic type for generic notifications.
Q_DECL_IMPORT const QString IMLocationLongitude
Longitude of a contact&#39;s position (double).
#define CAT_NEWS
The values of the Entity::Entity_ corresponding to LC::Mimes::PowerStateChanged.
The various well-known values of the inter-plugin Entity&#39;s MIME_ field.
Q_DECL_IMPORT const QString IMActivityText
Accompanying activity text entered by a contact (QString).
Q_DECL_IMPORT const QString TypeTerminalBell
A bell has ringed in a terminal window.
Q_DECL_IMPORT const QString TypeNewsSourceBroken
News source is detected to be broken.
Q_DECL_IMPORT const QString MediaPlayerURL
The URL to the file being played.
#define MIME_NOTIFICATION
Q_DECL_IMPORT const QString Receiver
Q_DECL_IMPORT const QString TypeNewsSourceUpdated
News source got updated.
Q_DECL_IMPORT const QString EventID
The ID of the event (QString).
Q_DECL_IMPORT const QString TypeTerminalInactivity
Inactivity in terminal window.
Q_DECL_IMPORT const QString NotificationActions
Q_DECL_IMPORT const QString IgnoreSelf
Q_DECL_IMPORT const QString ExtendedText
The even more detailed text than FullText (QString).
Q_DECL_IMPORT const QString NewsSourceURL
News source URL (QString).
Q_DECL_IMPORT const QString ActionID
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 TimeLeft
Q_DECL_IMPORT const QString EventCategory
The category of the event (QString).
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 MediaAlbum
The album of the currently playing media (QString).
Q_DECL_IMPORT const QString CatNews
Category for news-related events.
Q_DECL_IMPORT const QString NotificationRuleCreate
Q_DECL_IMPORT const QString IsSingleShot
Whether the created rule should be single-shot (bool).
Q_DECL_IMPORT const QString Method
Q_DECL_IMPORT const QString CatGeneric
Generic notifications that don&#39;t fit into any other category.
Q_DECL_IMPORT const QString GlobalActionRegister
Registration of a global system-wide action.
Q_DECL_IMPORT const QString AltShortcuts
Q_DECL_IMPORT const QVariant WokeUp
Q_DECL_IMPORT const QString IMMoodText
Accompanying mood text entered by a contact (QString).
Priority
Definition: structures.h:214
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 TypeIMStatusChange
Another user in our user&#39;s contact list has changed its status.
Q_DECL_IMPORT const QString CatMediaPlayer
Category of media player-related events.
Q_DECL_IMPORT const QString SenderID
The plugin ID of the sender (QByteArray or QString).
Q_DECL_IMPORT const QString TypeMediaPlaybackStatus
A media file playback status has been changed.
Q_DECL_IMPORT const QString TypeIMEventTuneChange
User&#39;s tune has changed.
Q_DECL_IMPORT const QString FullText
The detailed text of the event (QString).
Q_DECL_IMPORT const QString TypeDownloadFinished
A download has been finished successfully without errors.
Q_DECL_IMPORT const QString Shortcut
Q_DECL_IMPORT const QString PowerStateChanged
Energy power state has changed.
Q_DECL_IMPORT const QString DataFilterRequest
Q_DECL_IMPORT const QString CatPackageManager
Category of package manager-related events.
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 TypeIMEventActivityChange
User&#39;s activity has changed.
Q_DECL_IMPORT const QVariant Sleeping
Q_DECL_IMPORT const QString NewsSourceName
News source name (QString).
Q_DECL_IMPORT const QString TypeIMIncFile
Another user has sent our user a file.
Q_DECL_IMPORT const QString TypeIMMUCMsg
A message has been sent to a multiuser chat.
#define CAT_DOWNLOADS
Q_DECL_IMPORT const QString OpenConfiguration
Whether configuration dialog should be opened (bool).
Q_DECL_IMPORT const QString NotificationPixmap
Q_DECL_IMPORT const QString IMLocationLatitude
Latitude of a contact&#39;s position (double).
Q_DECL_IMPORT const QString IMLocationCountry
Country a contact is currently in (QString).
Q_DECL_IMPORT const QString AssocColor
#define CAT_TERMINAL
Q_DECL_IMPORT const QString IMActivityGeneral
General activity name of a contact (QString).
Q_DECL_IMPORT const QString AllowedSemantics
#define CAT_MEDIA_PLAYER
The various Additional_ entity fields.
Q_DECL_IMPORT const QString CatEventCancel
Event cancel pseudo-category.
Q_DECL_IMPORT const QString TypeIMSubscrRevoke
Another user has revoked subscription from our user.
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 VisualPath
Visual path to this event (QStringList).
Q_DECL_IMPORT const QString IMMoodGeneral
General mood name of a contact (QString).
Q_DECL_IMPORT const QString Text
Q_DECL_IMPORT const QString MediaPlaybackStatus
Playback status of the URL (QString).
Q_DECL_IMPORT const QString TypeIMEventMoodChange
User&#39;s mood has changed.
Q_DECL_IMPORT const QString MediaLength
The length of the currently playing media (int).
Q_DECL_IMPORT const QString TypeIMAttention
Another user has requested our user&#39;s attention.
Q_DECL_IMPORT const QString RuleID
Q_DECL_IMPORT const QString WindowIndex
The index of the window associated with this event (int).
Q_DECL_IMPORT const QString TypeIMIncMsg
User has received a message in a standard one-to-one chat.
Q_DECL_IMPORT const QString TypeIMSubscrRequest
Another user has requested subscription from our user.