LeechCraft  0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
constants.h
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 
9 #pragma once
10 
11 #include <QString>
12 #include <QFlags>
13 
14 namespace LC::AN
15 {
20  Q_DECL_IMPORT extern const QString CatEventCancel;
21 
24  Q_DECL_IMPORT extern const QString CatIM;
25 
28  Q_DECL_IMPORT extern const QString TypeIMAttention;
29 
32  Q_DECL_IMPORT extern const QString TypeIMIncFile;
33 
36  Q_DECL_IMPORT extern const QString TypeIMIncMsg;
37 
45  Q_DECL_IMPORT extern const QString TypeIMMUCHighlight;
46 
49  Q_DECL_IMPORT extern const QString TypeIMMUCInvite;
50 
58  Q_DECL_IMPORT extern const QString TypeIMMUCMsg;
59 
63  Q_DECL_IMPORT extern const QString TypeIMStatusChange;
64 
67  Q_DECL_IMPORT extern const QString TypeIMSubscrGrant;
68 
71  Q_DECL_IMPORT extern const QString TypeIMSubscrRevoke;
72 
75  Q_DECL_IMPORT extern const QString TypeIMSubscrRequest;
76 
79  Q_DECL_IMPORT extern const QString TypeIMSubscrSub;
80 
83  Q_DECL_IMPORT extern const QString TypeIMSubscrUnsub;
84 
87  Q_DECL_IMPORT extern const QString TypeIMEventTuneChange;
88 
91  Q_DECL_IMPORT extern const QString TypeIMEventMoodChange;
92 
95  Q_DECL_IMPORT extern const QString TypeIMEventActivityChange;
96 
99  Q_DECL_IMPORT extern const QString TypeIMEventLocationChange;
100 
103  Q_DECL_IMPORT extern const QString CatOrganizer;
104 
107  Q_DECL_IMPORT extern const QString TypeOrganizerEventDue;
108 
111  Q_DECL_IMPORT extern const QString CatDownloads;
112 
115  Q_DECL_IMPORT extern const QString TypeDownloadFinished;
116 
119  Q_DECL_IMPORT extern const QString TypeDownloadError;
120 
123  Q_DECL_IMPORT extern const QString CatPackageManager;
124 
127  Q_DECL_IMPORT extern const QString TypePackageUpdated;
128 
131  Q_DECL_IMPORT extern const QString CatMediaPlayer;
132 
135  Q_DECL_IMPORT extern const QString TypeMediaPlaybackStatus;
136 
139  Q_DECL_IMPORT extern const QString CatTerminal;
140 
143  Q_DECL_IMPORT extern const QString TypeTerminalBell;
144 
147  Q_DECL_IMPORT extern const QString TypeTerminalActivity;
148 
151  Q_DECL_IMPORT extern const QString TypeTerminalInactivity;
152 
155  Q_DECL_IMPORT extern const QString CatNews;
156 
159  Q_DECL_IMPORT extern const QString TypeNewsSourceUpdated;
160 
163  Q_DECL_IMPORT extern const QString TypeNewsSourceBroken;
164 
167  Q_DECL_IMPORT extern const QString CatGeneric;
168 
171  Q_DECL_IMPORT extern const QString TypeGeneric;
172 
176  {
180 
188 
198  NotifyTransient = 1 << 1,
199 
211 
214  NotifyAudio = 1 << 3
215  };
216  Q_DECLARE_FLAGS (NotifyFlags, NotifyFlag);
217 
218  namespace Field
219  {
222  Q_DECL_IMPORT extern const QString MediaPlayerURL;
223 
231  Q_DECL_IMPORT extern const QString MediaPlaybackStatus;
232 
235  Q_DECL_IMPORT extern const QString MediaTitle;
236 
239  Q_DECL_IMPORT extern const QString MediaArtist;
240 
243  Q_DECL_IMPORT extern const QString MediaAlbum;
244 
247  Q_DECL_IMPORT extern const QString MediaLength;
248 
251  Q_DECL_IMPORT extern const QString TerminalActive;
252 
255  Q_DECL_IMPORT extern const QString IMActivityGeneral;
256 
259  Q_DECL_IMPORT extern const QString IMActivitySpecific;
260 
263  Q_DECL_IMPORT extern const QString IMActivityText;
264 
267  Q_DECL_IMPORT extern const QString IMMoodGeneral;
268 
271  Q_DECL_IMPORT extern const QString IMMoodText;
272 
275  Q_DECL_IMPORT extern const QString IMLocationLongitude;
276 
279  Q_DECL_IMPORT extern const QString IMLocationLatitude;
280 
283  Q_DECL_IMPORT extern const QString IMLocationCountry;
284 
288  Q_DECL_IMPORT extern const QString IMLocationLocality;
289 
292  Q_DECL_IMPORT extern const QString NewsSourceName;
293 
296  Q_DECL_IMPORT extern const QString NewsSourceURL;
297  }
298 }
299 
300 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::AN::NotifyFlags)
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&#39;s location has changed.
Q_DECL_IMPORT const QString IMActivitySpecific
Specific activity name of a contact (QString).
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 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&#39;s position (double).
Notify by playing back an audio file.
Definition: constants.h:214
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 TypeTerminalInactivity
Inactivity in terminal window.
Q_DECL_IMPORT const QString NewsSourceURL
News source URL (QString).
Rule should be triggered only once.
Definition: constants.h:187
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.
User should be notified visually via persistent notifications.
Definition: constants.h:210
Q_DECL_IMPORT const QString CatGeneric
Generic notifications that don&#39;t fit into any other category.
NotifyFlag
Describes the notification parameters.
Definition: constants.h:175
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&#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 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 TypeDownloadFinished
A download has been finished successfully without errors.
No notifications.
Definition: constants.h:179
Q_DECL_IMPORT const QString CatPackageManager
Category of package manager-related events.
Q_DECLARE_FLAGS(NotifyFlags, NotifyFlag)
Q_DECL_IMPORT const QString TypeIMEventActivityChange
User&#39;s activity has changed.
Q_DECL_IMPORT const QString NewsSourceName
News source name (QString).
User should be notified visually.
Definition: constants.h:198
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 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 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 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&#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 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.