KJobWidgets 5.109.0
kjobwidgets.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2013 David Faure <faure@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef KJOBWIDGETS_H
9#define KJOBWIDGETS_H
10
11#include <kjobwidgets_export.h>
12
13class QWidget;
14class QWindow;
15class KJob;
16
20namespace KJobWidgets
21{
34KJOBWIDGETS_EXPORT void setWindow(KJob *job, QWidget *widget);
35
40KJOBWIDGETS_EXPORT QWidget *window(KJob *job);
41
46KJOBWIDGETS_EXPORT void updateUserTimestamp(KJob *job, unsigned long time);
51KJOBWIDGETS_EXPORT unsigned long userTimestamp(KJob *job);
52}
53
57namespace KJobWindows
58{
71KJOBWIDGETS_EXPORT void setWindow(KJob *job, QWindow *window);
72
77KJOBWIDGETS_EXPORT QWindow *window(KJob *job);
78}
79
80#endif
KJobWidgets namespace.
Definition kjobwidgets.h:21
void setWindow(KJob *job, QWidget *widget)
Associate this job with a window given by window.
QWidget * window(KJob *job)
Return the window associated with this job.
void updateUserTimestamp(KJob *job, unsigned long time)
Updates the last user action timestamp to the given time.
unsigned long userTimestamp(KJob *job)
Returns the last user action timestamp.
KJobWindows namespace.
Definition kjobwidgets.h:58
QWindow * window(KJob *job)
Return the window associated with this job.
void setWindow(KJob *job, QWindow *window)
Associate this job with a window given by window.