LeechCraft  0.6.70-15082-g543737046d
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 
175  enum NotifyFlag
176  {
179  NotifyNone = 0,
180 
187  NotifySingleShot = 1 << 0,
188 
198  NotifyTransient = 1 << 1,
199 
210  NotifyPersistent = 1 << 2,
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)
LC::AN::Field::IMLocationLocality
const Q_DECL_IMPORT QString IMLocationLocality
Exact locality, like a town or a city, a contact is currently in (QString).
Definition: anconstantsdefs.cpp:104
LC::AN::Field::MediaArtist
const Q_DECL_IMPORT QString MediaArtist
The artist of the currently playing media (QString).
Definition: anconstantsdefs.cpp:92
LC::AN::TypeIMEventMoodChange
const Q_DECL_IMPORT QString TypeIMEventMoodChange
User's mood has changed.
Definition: anconstantsdefs.cpp:51
LC::AN::TypeTerminalActivity
const Q_DECL_IMPORT QString TypeTerminalActivity
Activity in terminal window.
Definition: anconstantsdefs.cpp:75
LC::AN::TypeIMEventLocationChange
const Q_DECL_IMPORT QString TypeIMEventLocationChange
User's location has changed.
Definition: anconstantsdefs.cpp:53
LC::AN::Field::IMActivitySpecific
const Q_DECL_IMPORT QString IMActivitySpecific
Specific activity name of a contact (QString).
Definition: anconstantsdefs.cpp:97
LC::AN::TypeIMSubscrGrant
const Q_DECL_IMPORT QString TypeIMSubscrGrant
Another user has granted subscription to our user.
Definition: anconstantsdefs.cpp:45
LC::AN::TypeIMSubscrUnsub
const Q_DECL_IMPORT QString TypeIMSubscrUnsub
Another user has unsubscribed from our user.
Definition: anconstantsdefs.cpp:49
LC::AN::Field::TerminalActive
const Q_DECL_IMPORT QString TerminalActive
Whether the terminal window is active (bool).
Definition: anconstantsdefs.cpp:95
LC::AN::Field::IMActivityGeneral
const Q_DECL_IMPORT QString IMActivityGeneral
General activity name of a contact (QString).
Definition: anconstantsdefs.cpp:96
LC::AN::Field::MediaAlbum
const Q_DECL_IMPORT QString MediaAlbum
The album of the currently playing media (QString).
Definition: anconstantsdefs.cpp:93
LC::AN::CatDownloads
const Q_DECL_IMPORT QString CatDownloads
Category of Downloads-related events.
Definition: anconstantsdefs.cpp:60
LC::AN::TypeOrganizerEventDue
const Q_DECL_IMPORT QString TypeOrganizerEventDue
An event due date is coming.
Definition: anconstantsdefs.cpp:57
LC::AN::NotifyNone
@ NotifyNone
No notifications.
Definition: constants.h:185
LC::AN::Field::NewsSourceURL
const Q_DECL_IMPORT QString NewsSourceURL
News source URL (QString).
Definition: anconstantsdefs.cpp:106
LC::AN::TypeGeneric
const Q_DECL_IMPORT QString TypeGeneric
Generic type for generic notifications.
Definition: anconstantsdefs.cpp:85
LC::AN::CatOrganizer
const Q_DECL_IMPORT QString CatOrganizer
Category of Organizer-related events.
Definition: anconstantsdefs.cpp:56
LC::AN::TypeTerminalBell
const Q_DECL_IMPORT QString TypeTerminalBell
A bell has ringed in a terminal window.
Definition: anconstantsdefs.cpp:74
LC::AN::CatIM
const Q_DECL_IMPORT QString CatIM
Category of Instant Messaging-related events.
Definition: anconstantsdefs.cpp:37
LC::AN::TypeIMSubscrSub
const Q_DECL_IMPORT QString TypeIMSubscrSub
Another user has subscribed to our user.
Definition: anconstantsdefs.cpp:48
LC::AN::Field::NewsSourceName
const Q_DECL_IMPORT QString NewsSourceName
News source name (QString).
Definition: anconstantsdefs.cpp:105
LC::AN::NotifySingleShot
@ NotifySingleShot
Rule should be triggered only once.
Definition: constants.h:193
LC::AN
Definition: constants.h:14
LC::AN::TypeIMMUCInvite
const Q_DECL_IMPORT QString TypeIMMUCInvite
User has been invited to a multiuser chat.
Definition: anconstantsdefs.cpp:42
LC::AN::NotifyTransient
@ NotifyTransient
User should be notified visually.
Definition: constants.h:204
LC::AN::Field::IMLocationLongitude
const Q_DECL_IMPORT QString IMLocationLongitude
Longitude of a contact's position (double).
Definition: anconstantsdefs.cpp:101
LC::AN::TypeTerminalInactivity
const Q_DECL_IMPORT QString TypeTerminalInactivity
Inactivity in terminal window.
Definition: anconstantsdefs.cpp:76
LC::AN::TypeNewsSourceBroken
const Q_DECL_IMPORT QString TypeNewsSourceBroken
News source is detected to be broken.
Definition: anconstantsdefs.cpp:81
LC::AN::CatNews
const Q_DECL_IMPORT QString CatNews
Category for news-related events.
Definition: anconstantsdefs.cpp:79
LC::AN::TypeDownloadFinished
const Q_DECL_IMPORT QString TypeDownloadFinished
A download has been finished successfully without errors.
Definition: anconstantsdefs.cpp:61
LC::AN::TypeNewsSourceUpdated
const Q_DECL_IMPORT QString TypeNewsSourceUpdated
News source got updated.
Definition: anconstantsdefs.cpp:80
LC::AN::NotifyPersistent
@ NotifyPersistent
User should be notified visually via persistent notifications.
Definition: constants.h:216
LC::AN::TypeIMEventTuneChange
const Q_DECL_IMPORT QString TypeIMEventTuneChange
User's tune has changed.
Definition: anconstantsdefs.cpp:50
LC::AN::TypeIMIncFile
const Q_DECL_IMPORT QString TypeIMIncFile
Another user has sent our user a file.
Definition: anconstantsdefs.cpp:39
LC::AN::Field::MediaTitle
const Q_DECL_IMPORT QString MediaTitle
The title of the currently playing media (QString).
Definition: anconstantsdefs.cpp:91
LC::AN::Field::IMActivityText
const Q_DECL_IMPORT QString IMActivityText
Accompanying activity text entered by a contact (QString).
Definition: anconstantsdefs.cpp:98
LC::AN::Q_DECLARE_FLAGS
Q_DECLARE_FLAGS(NotifyFlags, NotifyFlag)
LC::AN::NotifyFlag
NotifyFlag
Describes the notification parameters.
Definition: constants.h:181
LC::AN::Field::MediaPlaybackStatus
const Q_DECL_IMPORT QString MediaPlaybackStatus
Playback status of the URL (QString).
Definition: anconstantsdefs.cpp:90
LC::AN::TypeIMStatusChange
const Q_DECL_IMPORT QString TypeIMStatusChange
Another user in our user's contact list has changed its status.
Definition: anconstantsdefs.cpp:44
LC::AN::TypeIMMUCMsg
const Q_DECL_IMPORT QString TypeIMMUCMsg
A message has been sent to a multiuser chat.
Definition: anconstantsdefs.cpp:43
LC::AN::CatMediaPlayer
const Q_DECL_IMPORT QString CatMediaPlayer
Category of media player-related events.
Definition: anconstantsdefs.cpp:69
LC::AN::Field::MediaPlayerURL
const Q_DECL_IMPORT QString MediaPlayerURL
The URL to the file being played.
Definition: anconstantsdefs.cpp:89
LC::AN::Field::IMLocationCountry
const Q_DECL_IMPORT QString IMLocationCountry
Country a contact is currently in (QString).
Definition: anconstantsdefs.cpp:103
LC::AN::CatGeneric
const Q_DECL_IMPORT QString CatGeneric
Generic notifications that don't fit into any other category.
Definition: anconstantsdefs.cpp:84
LC::AN::TypeIMAttention
const Q_DECL_IMPORT QString TypeIMAttention
Another user has requested our user's attention.
Definition: anconstantsdefs.cpp:38
LC::AN::CatEventCancel
const Q_DECL_IMPORT QString CatEventCancel
Event cancel pseudo-category.
Definition: anconstantsdefs.cpp:34
LC::AN::TypeMediaPlaybackStatus
const Q_DECL_IMPORT QString TypeMediaPlaybackStatus
A media file playback status has been changed.
Definition: anconstantsdefs.cpp:70
LC::AN::TypeDownloadError
const Q_DECL_IMPORT QString TypeDownloadError
A download has been failed.
Definition: anconstantsdefs.cpp:62
LC::AN::TypePackageUpdated
const Q_DECL_IMPORT QString TypePackageUpdated
A package has been updated.
Definition: anconstantsdefs.cpp:66
LC::AN::Field::MediaLength
const Q_DECL_IMPORT QString MediaLength
The length of the currently playing media (int).
Definition: anconstantsdefs.cpp:94
LC::AN::CatPackageManager
const Q_DECL_IMPORT QString CatPackageManager
Category of package manager-related events.
Definition: anconstantsdefs.cpp:65
LC::AN::TypeIMSubscrRequest
const Q_DECL_IMPORT QString TypeIMSubscrRequest
Another user has requested subscription from our user.
Definition: anconstantsdefs.cpp:47
LC::AN::Field::IMLocationLatitude
const Q_DECL_IMPORT QString IMLocationLatitude
Latitude of a contact's position (double).
Definition: anconstantsdefs.cpp:102
LC::AN::TypeIMIncMsg
const Q_DECL_IMPORT QString TypeIMIncMsg
User has received a message in a standard one-to-one chat.
Definition: anconstantsdefs.cpp:40
LC::AN::TypeIMEventActivityChange
const Q_DECL_IMPORT QString TypeIMEventActivityChange
User's activity has changed.
Definition: anconstantsdefs.cpp:52
LC::AN::Field::IMMoodText
const Q_DECL_IMPORT QString IMMoodText
Accompanying mood text entered by a contact (QString).
Definition: anconstantsdefs.cpp:100
LC::AN::Field::IMMoodGeneral
const Q_DECL_IMPORT QString IMMoodGeneral
General mood name of a contact (QString).
Definition: anconstantsdefs.cpp:99
LC::AN::TypeIMMUCHighlight
const Q_DECL_IMPORT QString TypeIMMUCHighlight
User has been highlighted in a multiuser chat.
Definition: anconstantsdefs.cpp:41
LC::AN::TypeIMSubscrRevoke
const Q_DECL_IMPORT QString TypeIMSubscrRevoke
Another user has revoked subscription from our user.
Definition: anconstantsdefs.cpp:46
LC::AN::NotifyAudio
@ NotifyAudio
Notify by playing back an audio file.
Definition: constants.h:220
LC::AN::CatTerminal
const Q_DECL_IMPORT QString CatTerminal
Category for terminal emulation events.
Definition: anconstantsdefs.cpp:73