2
* Copyright (C) 2011 Rolf Eike Beer <kde@opensource.sf-tec.de>
5
/***************************************************************************
7
* This program is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
12
***************************************************************************/
14
#ifndef FOLDERCOMPRESSJOB_H
15
#define FOLDERCOMPRESSJOB_H
19
#include <QStringList>
23
#include "transactions/kgpgencrypt.h"
26
* @brief Show systray status for something KGpg is doing in the background
28
* @author Rolf Eike Beer
30
class FolderCompressJob : public KJob {
33
Q_DISABLE_COPY(FolderCompressJob)
34
FolderCompressJob(); // = delete C++0x
36
const QString m_description;
39
KTemporaryFile * const m_tempfile;
40
const QStringList m_keys;
41
QStringList m_options;
42
const KGpgEncrypt::EncryptOptions m_encOptions;
46
* @brief create a new KJob to compress and encrypt a folder
47
* @param parent object owning this job
50
* The job will take ownership of the transaction, i.e.
51
* will delete the transaction object when the job is done.
53
FolderCompressJob(QObject *parent, const KUrl &source, const KUrl &dest, KTemporaryFile *tempfile, const QStringList &keys, const QStringList &options, const KGpgEncrypt::EncryptOptions encOptions);
56
* @brief FolderCompressJob destructor
58
virtual ~FolderCompressJob();
61
* @brief shows the progress indicator
67
void slotEncryptionDone(int result);
70
#endif /* FOLDERCOMPRESSJOB_H */