File indexing completed on 2024-05-12 05:11:13

0001 /*
0002     SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 class KJob;
0012 
0013 /**
0014   This class requests some LocalFolders, then exits the app with a status of 2
0015   if they were delivered OK, or 1 if they were not.
0016 
0017   NOTE: The non-standard exit status 2 in case of success is to make feel more
0018   comfortable than checking for zero (I actually had a bug causing it to always
0019   return zero).
0020 */
0021 class Requester : public QObject
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     Requester();
0027 
0028 private Q_SLOTS:
0029     void requestResult(KJob *job);
0030 };