LeechCraft  0.6.70-10870-g558588d6ec
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  * 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 
30 #pragma once
31 
32 #include <QString>
33 #include <QFlags>
34 
35 namespace LeechCraft
36 {
37 namespace AN
38 {
43  const QString CatEventCancel = "org.LC.AdvNotifications.Cancel";
44 
47  const QString CatIM = "org.LC.AdvNotifications.IM";
50  const QString TypeIMAttention = CatIM + ".AttentionDrawn";
53  const QString TypeIMIncFile = CatIM + ".IncomingFile";
56  const QString TypeIMIncMsg = CatIM + ".IncomingMessage";
64  const QString TypeIMMUCHighlight = CatIM + ".MUCHighlightMessage";
67  const QString TypeIMMUCInvite = CatIM + ".MUCInvitation";
75  const QString TypeIMMUCMsg = CatIM + ".MUCMessage";
79  const QString TypeIMStatusChange = CatIM + ".StatusChange";
82  const QString TypeIMSubscrGrant = CatIM + ".Subscr.Granted";
85  const QString TypeIMSubscrRevoke = CatIM + ".Subscr.Revoked";
88  const QString TypeIMSubscrRequest = CatIM + ".Subscr.Requested";
91  const QString TypeIMSubscrSub = CatIM + ".Subscr.Subscribed";
94  const QString TypeIMSubscrUnsub = CatIM + ".Subscr.Unsubscribed";
97  const QString TypeIMEventTuneChange = CatIM + ".Event.Tune";
100  const QString TypeIMEventMoodChange = CatIM + ".Event.Mood";
103  const QString TypeIMEventActivityChange = CatIM + ".Event.Activity";
106  const QString TypeIMEventLocationChange = CatIM + ".Event.Location";
107 
110  const QString CatOrganizer = "org.LC.AdvNotifications.Organizer";
113  const QString TypeOrganizerEventDue = CatOrganizer + ".EventDue";
114 
117  const QString CatDownloads = "org.LC.AdvNotifications.Downloads";
120  const QString TypeDownloadFinished = CatDownloads + ".DownloadFinished";
123  const QString TypeDownloadError = CatDownloads + ".DownloadError";
124 
127  const QString CatPackageManager = "org.LC.AdvNotifications.PackageManager";
130  const QString TypePackageUpdated = CatPackageManager + ".PackageUpdated";
131 
134  const QString CatMediaPlayer = "org.LC.AdvNotifications.MediaPlayer";
135 
138  const QString TypeMediaPlaybackStatus = CatMediaPlayer + ".PlaybackStatus";
139 
142  const QString CatTerminal = "org.LC.AdvNotifications.Terminal";
143 
146  const QString TypeTerminalBell = CatTerminal + ".Bell";
147 
150  const QString TypeTerminalActivity = CatTerminal + ".Activity";
151 
154  const QString TypeTerminalInactivity = CatTerminal + ".Inactivity";
155 
158  const QString CatGeneric = "org.LC.AdvNotifications.Generic";
159 
162  const QString TypeGeneric = CatGeneric + ".Generic";
163 
167  {
171 
179 
189  NotifyTransient = 1 << 1,
190 
202 
205  NotifyAudio = 1 << 3
206  };
207  Q_DECLARE_FLAGS (NotifyFlags, NotifyFlag);
208 
209  namespace Field
210  {
213  const QString MediaPlayerURL = CatMediaPlayer + ".Fields.URL";
214 
222  const QString MediaPlaybackStatus = CatMediaPlayer + ".Fields.PlaybackStatus";
223 
226  const QString MediaTitle = CatMediaPlayer + ".Fields.Title";
227 
230  const QString MediaArtist = CatMediaPlayer + ".Fields.Artist";
231 
234  const QString MediaAlbum = CatMediaPlayer + ".Fields.Album";
235 
238  const QString MediaLength = CatMediaPlayer + ".Fields.Length";
239 
242  const QString TerminalActive = CatTerminal + ".Fields.Active";
243 
246  const QString IMActivityGeneral = CatIM + ".Fields.Activity.General";
249  const QString IMActivitySpecific = CatIM + ".Fields.Activity.Specific";
252  const QString IMActivityText = CatIM + ".Fields.Activity.Text";
253 
256  const QString IMMoodGeneral = CatIM + ".Fields.Mood.General";
259  const QString IMMoodText = CatIM + ".Fields.Mood.Text";
260 
263  const QString IMLocationLongitude = CatIM + ".Fields.Location.Longitude";
266  const QString IMLocationLatitude = CatIM + ".Fields.Location.Latitude";
269  const QString IMLocationCountry = CatIM + ".Fields.Location.Country";
273  const QString IMLocationLocality = CatIM + ".Fields.Location.Locality";
274  }
275 }
276 }
277 
278 Q_DECLARE_OPERATORS_FOR_FLAGS (LeechCraft::AN::NotifyFlags)
const QString TypeIMMUCHighlight
User has been highlighted in a multiuser chat.
Definition: constants.h:64
const QString IMActivitySpecific
Specific activity name of a contact (QString).
Definition: constants.h:249
const QString MediaArtist
The artist of the currently playing media (QString).
Definition: constants.h:230
const QString TypeGeneric
Generic type for generic notifications.
Definition: constants.h:162
const QString MediaAlbum
The album of the currently playing media (QString).
Definition: constants.h:234
const QString TypeIMIncMsg
User has received a message in a standard one-to-one chat.
Definition: constants.h:56
const QString CatDownloads
Category of Downloads-related events.
Definition: constants.h:117
const QString TypeOrganizerEventDue
An event due date is coming.
Definition: constants.h:113
const QString IMMoodGeneral
General mood name of a contact (QString).
Definition: constants.h:256
const QString TypeIMSubscrRevoke
Another user has revoked subscription from our user.
Definition: constants.h:85
const QString TypeIMSubscrRequest
Another user has requested subscription from our user.
Definition: constants.h:88
const QString TypeIMEventTuneChange
User&#39;s tune has changed.
Definition: constants.h:97
const QString TypeIMEventActivityChange
User&#39;s activity has changed.
Definition: constants.h:103
NotifyFlag
Describes the notification parameters.
Definition: constants.h:166
Rule should be triggered only once.
Definition: constants.h:178
User should be notified visually.
Definition: constants.h:189
const QString TypeDownloadError
A download has been failed.
Definition: constants.h:123
const QString TypeIMSubscrGrant
Another user has granted subscription to our user.
Definition: constants.h:82
const QString TypeMediaPlaybackStatus
A media file playback status has been changed.
Definition: constants.h:138
const QString TypeTerminalBell
A bell has ringed in a terminal window.
Definition: constants.h:146
const QString TypeDownloadFinished
A download has been finished successfully without errors.
Definition: constants.h:120
const QString TypeTerminalActivity
Activity in terminal window.
Definition: constants.h:150
const QString TerminalActive
Whether the terminal window is active (bool).
Definition: constants.h:242
const QString IMLocationLocality
Exact locality, like a town or a city, a contact is currently in (QString).
Definition: constants.h:273
const QString CatEventCancel
Event cancel pseudo-category.
Definition: constants.h:43
const QString IMLocationCountry
Country a contact is currently in (QString).
Definition: constants.h:269
const QString CatTerminal
Category for terminal emulation events.
Definition: constants.h:142
const QString TypeIMAttention
Another user has requested our user&#39;s attention.
Definition: constants.h:50
const QString TypeIMSubscrSub
Another user has subscribed to our user.
Definition: constants.h:91
const QString MediaTitle
The title of the currently playing media (QString).
Definition: constants.h:226
const QString TypeIMEventMoodChange
User&#39;s mood has changed.
Definition: constants.h:100
const QString CatPackageManager
Category of package manager-related events.
Definition: constants.h:127
const QString CatIM
Category of Instant Messaging-related events.
Definition: constants.h:47
const QString IMMoodText
Accompanying mood text entered by a contact (QString).
Definition: constants.h:259
const QString IMLocationLatitude
Latitude of a contact&#39;s position (double).
Definition: constants.h:266
const QString TypeIMEventLocationChange
User&#39;s location has changed.
Definition: constants.h:106
const QString TypePackageUpdated
A package has been updated.
Definition: constants.h:130
const QString TypeIMMUCInvite
User has been invited to a multiuser chat.
Definition: constants.h:67
const QString IMActivityText
Accompanying activity text entered by a contact (QString).
Definition: constants.h:252
No notifications.
Definition: constants.h:170
const QString CatOrganizer
Category of Organizer-related events.
Definition: constants.h:110
const QString IMActivityGeneral
General activity name of a contact (QString).
Definition: constants.h:246
const QString MediaPlaybackStatus
Playback status of the URL (QString).
Definition: constants.h:222
const QString TypeTerminalInactivity
Inactivity in terminal window.
Definition: constants.h:154
const QString IMLocationLongitude
Longitude of a contact&#39;s position (double).
Definition: constants.h:263
const QString CatMediaPlayer
Category of media player-related events.
Definition: constants.h:134
const QString TypeIMStatusChange
Another user in our user&#39;s contact list has changed its status.
Definition: constants.h:79
Q_DECLARE_FLAGS(NotifyFlags, NotifyFlag)
const QString MediaPlayerURL
The URL to the file being played.
Definition: constants.h:213
const QString MediaLength
The length of the currently playing media (int).
Definition: constants.h:238
User should be notified visually via persistent notifications.
Definition: constants.h:201
const QString CatGeneric
Generic notifications that don&#39;t fit into any other category.
Definition: constants.h:158
const QString TypeIMIncFile
Another user has sent our user a file.
Definition: constants.h:53
const QString TypeIMMUCMsg
A message has been sent to a multiuser chat.
Definition: constants.h:75
Notify by playing back an audio file.
Definition: constants.h:205
const QString TypeIMSubscrUnsub
Another user has unsubscribed from our user.
Definition: constants.h:94