LeechCraft  0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
structures.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 <memory>
12 #include <QMetaType>
13 #include <QVariant>
14 #include <QString>
15 
16 class QMenu;
17 class QIODevice;
18 
19 namespace LC
20 {
24  {
28 
32 
36 
41 
45 
49 
53  Internal = 64,
54 
59 
64 
68  OnlyHandle = 512,
69 
73  OnlyDownload = 1024,
74 
78  AutoAccept = 2048,
79 
84  };
85 
86  Q_DECLARE_FLAGS (TaskParameters, TaskParameter);
87 
95  struct Entity
96  {
112  QVariant Entity_;
113 
122  QString Location_;
123 
148  QString Mime_;
149 
152  TaskParameters Parameters_ = NoParameters;
153 
165  };
166 
174  {
178  RoleTags = Qt::UserRole + 100,
179 
184 
190 
196 
201 
206 
210 
212  };
213 
214  enum class Priority
215  {
216  Info,
217  Warning,
218  Critical
219  };
220 };
221 
222 typedef std::shared_ptr<QObject> QObject_ptr;
223 
226 Q_DECLARE_METATYPE (LC::TaskParameters)
228 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::TaskParameters)
CustomDataRoles
Definition: structures.h:173
TaskParameter
Describes single task parameter.
Definition: structures.h:23
std::shared_ptr< QObject > QObject_ptr
Definition: structures.h:220
QString Mime_
MIME type of the entity.
Definition: structures.h:148
TaskParameters Parameters_
Parameters of this task.
Definition: structures.h:152
QVariant Entity_
The entity that this object represents.
Definition: structures.h:112
QMap< QString, QVariant > Additional_
Additional parameters.
Definition: structures.h:164
Priority
Definition: structures.h:214
Q_DECLARE_METATYPE(QVariantList *)
A message used for inter-plugin communication.
Definition: structures.h:95
QString Location_
Source or destination.
Definition: structures.h:122
Q_DECLARE_FLAGS(TabFeatures, LC::TabFeature)