~ubuntu-branches/ubuntu/vivid/smb4k/vivid

« back to all changes in this revision

Viewing changes to core/smb4kprocess.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-06-15 16:27:38 UTC
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20140615162738-t1426an8s5beix1b
Tags: upstream-1.1.2
Import upstream version 1.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
    smb4kprocess  -  This class executes shell processes.
3
3
                             -------------------
4
4
    begin                : Mi Mär 4 2009
5
 
    copyright            : (C) 2009-2011 by Alexander Reinholdt
 
5
    copyright            : (C) 2009-2012 by Alexander Reinholdt
6
6
    email                : alexander.reinholdt@kdemail.net
7
7
 ***************************************************************************/
8
8
 
19
19
 *                                                                         *
20
20
 *   You should have received a copy of the GNU General Public License     *
21
21
 *   along with this program; if not, write to the                         *
22
 
 *   Free Software Foundation, 51 Franklin Street, Suite 500, Boston,      *
 
22
 *   Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston,*
23
23
 *   MA 02110-1335, USA                                                    *
24
24
 ***************************************************************************/
25
25
 
26
26
#ifndef SMB4KPROCESS_H
27
27
#define SMB4KPROCESS_H
28
28
 
29
 
#ifdef HAVE_CONFIG_H
30
 
#include <config.h>
31
 
#endif
 
29
// Qt includes
 
30
#include <QtCore/QScopedPointer>
32
31
 
33
32
// KDE includes
34
33
#include <kprocess.h>
35
34
 
 
35
// forward declarations
 
36
class Smb4KProcessPrivate;
 
37
 
36
38
/**
37
39
 * This class provides a version of KProcess adjusted to the needs of Smb4K.
38
40
 * It executes shell processes.
39
41
 *
40
 
 * @author Alexander Reinholdt <dustpuppy@users.berlios.de>
 
42
 * @author Alexander Reinholdt <alexander.reinholdt@kdemail.net>
41
43
 */
42
44
 
43
45
class Smb4KProcess : public KProcess
44
46
{
45
47
  Q_OBJECT
46
48
 
 
49
  friend class Smb4KProcessPrivate;
 
50
 
47
51
  public:
48
52
    /**
49
53
     * The constructor
50
54
     *
51
55
     * @param parent        The parent object
52
56
     */
53
 
    Smb4KProcess( QObject *parent = 0 );
 
57
    explicit Smb4KProcess( QObject *parent = 0 );
54
58
 
55
59
    /**
56
60
     * The destructor
69
73
     *
70
74
     * @returns TRUE if the process was aborted.
71
75
     */
72
 
    bool isAborted() { return m_aborted; }
 
76
    bool isAborted() const;
73
77
 
74
78
  private:
75
 
    bool m_aborted;
 
79
    const QScopedPointer<Smb4KProcessPrivate> d;
76
80
};
77
81
 
78
82