LeechCraft  0.6.70-13729-g7046a9d2a7
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  * Boost Software License - Version 1.0 - August 17th, 2003
6  *
7  * Permission is hereby granted, free of charge, to any person or organization
8  * obtaining a copy of the software and accompanying documentation covered by
9  * this license (the "Software") to use, reproduce, display, distribute,
10  * execute, and transmit the Software, and to prepare derivative works of the
11  * Software, and to permit third-parties to whom the Software is furnished to
12  * do so, all subject to the following:
13  *
14  * The copyright notices in the Software and this entire statement, including
15  * the above license grant, this restriction and the following disclaimer,
16  * must be included in all copies of the Software, in whole or in part, and
17  * all derivative works of the Software, unless such copies or derivative
18  * works are solely in the form of machine-executable object code generated by
19  * a source language processor.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23  * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
24  * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
25  * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
26  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27  * DEALINGS IN THE SOFTWARE.
28  **********************************************************************/
29 
32 #include "xpcconfig.h"
33 
34 namespace LC::AN
35 {
36  const QString CatEventCancel { "org.LC.AdvNotifications.Cancel" };
37 
38  const QString CatIM { "org.LC.AdvNotifications.IM" };
39  const QString TypeIMAttention { CatIM + ".AttentionDrawn" };
40  const QString TypeIMIncFile { CatIM + ".IncomingFile" };
41  const QString TypeIMIncMsg { CatIM + ".IncomingMessage" };
42  const QString TypeIMMUCHighlight { CatIM + ".MUCHighlightMessage" };
43  const QString TypeIMMUCInvite { CatIM + ".MUCInvitation" };
44  const QString TypeIMMUCMsg { CatIM + ".MUCMessage" };
45  const QString TypeIMStatusChange { CatIM + ".StatusChange" };
46  const QString TypeIMSubscrGrant { CatIM + ".Subscr.Granted" };
47  const QString TypeIMSubscrRevoke { CatIM + ".Subscr.Revoked" };
48  const QString TypeIMSubscrRequest { CatIM + ".Subscr.Requested" };
49  const QString TypeIMSubscrSub { CatIM + ".Subscr.Subscribed" };
50  const QString TypeIMSubscrUnsub { CatIM + ".Subscr.Unsubscribed" };
51  const QString TypeIMEventTuneChange { CatIM + ".Event.Tune" };
52  const QString TypeIMEventMoodChange { CatIM + ".Event.Mood" };
53  const QString TypeIMEventActivityChange { CatIM + ".Event.Activity" };
54  const QString TypeIMEventLocationChange { CatIM + ".Event.Location" };
55 
56  const QString CatOrganizer { "org.LC.AdvNotifications.Organizer" };
57  const QString TypeOrganizerEventDue { CatOrganizer + ".EventDue" };
58 
59  const QString CatDownloads { "org.LC.AdvNotifications.Downloads" };
60  const QString TypeDownloadFinished { CatDownloads + ".DownloadFinished" };
61  const QString TypeDownloadError { CatDownloads + ".DownloadError" };
62 
63  const QString CatPackageManager { "org.LC.AdvNotifications.PackageManager" };
64  const QString TypePackageUpdated { CatPackageManager + ".PackageUpdated" };
65 
66  const QString CatMediaPlayer { "org.LC.AdvNotifications.MediaPlayer" };
67  const QString TypeMediaPlaybackStatus { CatMediaPlayer + ".PlaybackStatus" };
68 
69  const QString CatTerminal { "org.LC.AdvNotifications.Terminal" };
70  const QString TypeTerminalBell { CatTerminal + ".Bell" };
71  const QString TypeTerminalActivity { CatTerminal + ".Activity" };
72  const QString TypeTerminalInactivity { CatTerminal + ".Inactivity" };
73 
74  const QString CatNews { "org.LC.AdvNotifications.News" };
75  const QString TypeNewsSourceUpdated { CatNews + ".Updated" };
76  const QString TypeNewsSourceBroken { CatNews + ".Broken" };
77 
78  const QString CatGeneric { "org.LC.AdvNotifications.Generic" };
79  const QString TypeGeneric { CatGeneric + ".Generic" };
80 
81  namespace Field
82  {
83  const QString MediaPlayerURL { CatMediaPlayer + ".Fields.URL" };
84  const QString MediaPlaybackStatus { CatMediaPlayer + ".Fields.PlaybackStatus" };
85  const QString MediaTitle { CatMediaPlayer + ".Fields.Title" };
86  const QString MediaArtist { CatMediaPlayer + ".Fields.Artist" };
87  const QString MediaAlbum { CatMediaPlayer + ".Fields.Album" };
88  const QString MediaLength { CatMediaPlayer + ".Fields.Length" };
89  const QString TerminalActive { CatTerminal + ".Fields.Active" };
90  const QString IMActivityGeneral { CatIM + ".Fields.Activity.General" };
91  const QString IMActivitySpecific { CatIM + ".Fields.Activity.Specific" };
92  const QString IMActivityText { CatIM + ".Fields.Activity.Text" };
93  const QString IMMoodGeneral { CatIM + ".Fields.Mood.General" };
94  const QString IMMoodText { CatIM + ".Fields.Mood.Text" };
95  const QString IMLocationLongitude { CatIM + ".Fields.Location.Longitude" };
96  const QString IMLocationLatitude { CatIM + ".Fields.Location.Latitude" };
97  const QString IMLocationCountry { CatIM + ".Fields.Location.Country" };
98  const QString IMLocationLocality { CatIM + ".Fields.Location.Locality" };
99  const QString NewsSourceName { CatNews + ".Fields.Source.Name" };
100  }
101 
102  namespace EF
103  {
104  const QString SenderID { "org.LC.AdvNotifications.SenderID" };
105  const QString EventCategory { "org.LC.AdvNotifications.EventCategory" };
106  const QString EventID { "org.LC.AdvNotifications.EventID" };
107  const QString VisualPath { "org.LC.AdvNotifications.VisualPath" };
108  const QString EventType { "org.LC.AdvNotifications.EventType" };
109  const QString FullText { "org.LC.AdvNotifications.FullText" };
110  const QString ExtendedText { "org.LC.AdvNotifications.ExtendedText" };
111  const QString DeltaCount { "org.LC.AdvNotifications.DeltaCount" };
112  const QString Count { "org.LC.AdvNotifications.Count" };
113  const QString OpenConfiguration { "org.LC.AdvNotifications.OpenConfiguration" };
114  const QString IsSingleShot { "org.LC.AdvNotifications.SingleShot" };
115  const QString NotifyTransient { "org.LC.AdvNotifications.NotifyTransient" };
116  const QString NotifyPersistent { "org.LC.AdvNotifications.NotifyPersistent" };
117  const QString NotifyAudio { "org.LC.AdvNotifications.NotifyAudio" };
118  }
119 }
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.
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 TypeIMEventLocationChange
User's location has changed.
Q_DECL_IMPORT const QString IMActivitySpecific
Specific activity name of a contact (QString).
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 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 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 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's position (double).
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.
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 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 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 IsSingleShot
Whether the created rule should be single-shot (bool).
Q_DECL_IMPORT const QString CatGeneric
Generic notifications that don't fit into any other category.
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 TypeIMStatusChange
Another user in our user'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'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 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's activity has changed.
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.
Q_DECL_IMPORT const QString OpenConfiguration
Whether configuration dialog should be opened (bool).
Q_DECL_IMPORT const QString IMLocationLatitude
Latitude of a contact's position (double).
Q_DECL_IMPORT const QString IMLocationCountry
Country a contact is currently in (QString).
Q_DECL_IMPORT const QString IMActivityGeneral
General activity name of a contact (QString).
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 MediaPlaybackStatus
Playback status of the URL (QString).
Q_DECL_IMPORT const QString TypeIMEventMoodChange
User'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's attention.
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.