LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
ijobholder.h
Go to the documentation of this file.
1
/**********************************************************************
2
* LeechCraft - modular cross-platform feature rich internet client.
3
* Copyright (C) 2006-2013 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
#ifndef INTERFACES_IJOBHOLDER_H
31
#define INTERFACES_IJOBHOLDER_H
32
#include <QtPlugin>
33
#include "
interfaces/structures.h
"
34
35
class
QModelIndex;
36
class
QAbstractItemModel;
37
class
QWidget;
38
39
namespace
LeechCraft
40
{
41
enum
JobHolderColumn
42
{
43
JobName
,
44
JobStatus
,
45
JobProgress
46
};
47
54
enum
JobHolderRow
55
{
59
Other
,
60
64
News
,
65
74
DownloadProgress
,
75
84
ProcessProgress
85
};
86
94
enum
ProcessState
95
{
101
Done
=
CustomDataRoles::RoleMAX
+ 1,
102
107
Total
,
108
112
TaskFlags
113
};
114
}
115
137
class
Q_DECL_EXPORT
IJobHolder
138
{
139
public
:
167
virtual
QAbstractItemModel* GetRepresentation ()
const
= 0;
168
171
virtual
~IJobHolder
() {}
172
};
173
174
Q_DECLARE_METATYPE
(
LeechCraft::JobHolderRow
);
175
Q_DECLARE_METATYPE
(QAbstractItemModel*);
176
Q_DECLARE_METATYPE
(QList<QModelIndex>);
177
Q_DECLARE_INTERFACE
(
IJobHolder
,
"org.Deviant.LeechCraft.IJobHolder/1.0"
);
178
179
#endif
180
LeechCraft::Done
Definition:
ijobholder.h:101
IJobHolder::~IJobHolder
virtual ~IJobHolder()
Virtual destructor.
Definition:
ijobholder.h:171
LeechCraft::Other
Definition:
ijobholder.h:59
LeechCraft::RoleMAX
Definition:
structures.h:281
structures.h
LeechCraft::ProcessState
ProcessState
Definition:
ijobholder.h:94
LeechCraft::JobStatus
Definition:
ijobholder.h:44
Q_DECLARE_INTERFACE
Q_DECLARE_INTERFACE(IColorThemeManager,"org.Deviant.LeechCraft.IColorThemeManager/1.0")
LeechCraft::TaskFlags
Definition:
ijobholder.h:112
IJobHolder
Interface for plugins holding jobs or persistent notifications.
Definition:
ijobholder.h:137
LeechCraft::JobHolderRow
JobHolderRow
Definition:
ijobholder.h:54
LeechCraft::News
Definition:
ijobholder.h:64
LeechCraft::Total
Definition:
ijobholder.h:107
LeechCraft::JobName
Definition:
ijobholder.h:43
LeechCraft::JobHolderColumn
JobHolderColumn
Definition:
ijobholder.h:41
LeechCraft::DownloadProgress
Definition:
ijobholder.h:74
LeechCraft::ProcessProgress
Definition:
ijobholder.h:84
LeechCraft::JobProgress
Definition:
ijobholder.h:45
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(LeechCraft::IHookProxy_ptr)
src
interfaces
ijobholder.h
Generated by
1.8.5