blob: 813db1ec493f7defe056746ed3418a4dba708af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/***************************************************************************
* Copyright (C) 2004 by Sashmit Bhaduri *
* smt@vfemail.net *
* *
* Licensed under GPL. *
***************************************************************************/
#ifndef FRAME_H
#define FRAME_H
#include <kparts/part.h>
#include <qobject.h>
namespace KPIM
{
class ProgressItem;
}
namespace KlamAV
{
class Frame : public QObject
{
Q_OBJECT
public:
Frame(QObject *parent, KParts::ReadOnlyPart *part, QWidget *w, const QString& tit, bool watch=true);
~Frame();
enum {Idle, Started, Completed, Canceled};
KParts::ReadOnlyPart *part() const;
QWidget *widget() const;
const QString title() const;
const QString caption() const;
int state() const;
int progress() const;
const QString statusText() const;
public slots:
void setStarted();
void setCanceled(const QString &);
void setCompleted();
void setState(int);
void setProgress(int);
void setCaption(const QString &);
void setTitle(const QString &);
void setStatusText(const QString &);
signals:
void captionChanged(const QString &);
void started();
void canceled(const QString &);
void completed();
void loadingProgress(int);
void statusText(const QString &);
private:
KParts::ReadOnlyPart *m_part;
QWidget *m_widget;
QString m_title;
QString m_caption;
int m_state;
int m_progress;
QString m_statusText;
QString m_progressId;
KPIM::ProgressItem *m_progressItem;
};
}
#endif
// vim: set et ts=4 sts=4 sw=4:
|